Skip to content
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

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

Conversation

kmyk
Copy link
Collaborator

@kmyk kmyk commented May 22, 2021

Copy link
Owner

@noshi91 noshi91 left a 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)$ と定義されるものを使うことが多い。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ただし採択確率関数 $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)$ で真になるようにランダムに選ぶ。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)$ で真になるようにランダムに選ぶ。


## その他

- 焼きなまし法とビームサーチが両方使える問題においては、一般に焼きなまし法の方が良い解を出力することが多い。ただし解空間が広すぎる場合などにはビームサーチの方が良い解を出力することもある。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良い解を出力することが多い。 がやや漠然としているので、根拠があると嬉しいです

## その他

- 焼きなまし法とビームサーチが両方使える問題においては、一般に焼きなまし法の方が良い解を出力することが多い。ただし解空間が広すぎる場合などにはビームサーチの方が良い解を出力することもある。
- 焼きなまし法の初期解には、貪欲法などの他のアルゴリズムから得られた解を利用してもよい。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

利用しても良い、は自明なので「利用すると良い解が得られることがある」くらいは言っても良いかも?(結局言ってることは同じですが)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[アルゴリズム] 焼きなまし法
2 participants