-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
焼きなまし法の記事を追加 #169
base: gh-pages
Are you sure you want to change the base?
焼きなまし法の記事を追加 #169
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
個人的には関数の最適化は最小化として定式化することが多かったので、どちら向きなのか一瞬分かりませんでした。しかし文章に手を加えるほどではないという気もしました。
## 詳細 | ||
|
||
焼きなまし法は次のような疑似コードで定義される。 | ||
ただし採択確率関数 $p$ には定数 $k \in \mathbb{R} _ {\gt 0}$ を使って $p(\Delta, T) = \exp(k \Delta / T)$ と定義されるものを使うことが多い。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ただし採択確率関数 $p$ には定数 $k \in \mathbb{R} _ {\gt 0}$ を使って $p(\Delta, T) = \exp(k \Delta / T)$ と定義されるものを使うことが多い。 | |
ただし採択確率関数 $p$ には定数 $k \in \mathbb{R} _ {\gt 0}$ を使って $p(\Delta, T) = \exp(- k \Delta / T)$ と定義されるものを使うことが多い。 |
6. $\mathtt{while}$ 現在時刻 $t$ が $t \lt t_e$: | ||
7. $T \gets 1 - \frac{t - t_s}{t_e - t_s}$ | ||
8. $(x, y) \in E$ であるような頂点 $y \in V$ をランダムにひとつ選ぶ。 | ||
9. $\varphi(x) \gt \varphi(y)$ のとき、真偽値 $q$ を確率 $p(\varphi(y) - \varphi(x), T)$ で真になるようにランダムに選ぶ。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9. $\varphi(x) \gt \varphi(y)$ のとき、真偽値 $q$ を確率 $p(\varphi(y) - \varphi(x), T)$ で真になるようにランダムに選ぶ。 | |
9. $\varphi(x) \gt \varphi(y)$ のとき、真偽値 $q$ を確率 $p(\varphi(x) - \varphi(y), T)$ で真になるようにランダムに選ぶ。 |
|
||
## その他 | ||
|
||
- 焼きなまし法とビームサーチが両方使える問題においては、一般に焼きなまし法の方が良い解を出力することが多い。ただし解空間が広すぎる場合などにはビームサーチの方が良い解を出力することもある。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良い解を出力することが多い。 がやや漠然としているので、根拠があると嬉しいです
## その他 | ||
|
||
- 焼きなまし法とビームサーチが両方使える問題においては、一般に焼きなまし法の方が良い解を出力することが多い。ただし解空間が広すぎる場合などにはビームサーチの方が良い解を出力することもある。 | ||
- 焼きなまし法の初期解には、貪欲法などの他のアルゴリズムから得られた解を利用してもよい。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
利用しても良い、は自明なので「利用すると良い解が得られることがある」くらいは言っても良いかも?(結局言ってることは同じですが)
close #167
関連 #170
プレビュー: https://kmyk.github.io/algorithm-encyclopedia-staging/simulated-annealing#noredirect