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

iteration depend previous annealing #12

Closed
yuyamashiro opened this issue Apr 10, 2019 · 2 comments
Closed

iteration depend previous annealing #12

yuyamashiro opened this issue Apr 10, 2019 · 2 comments

Comments

@yuyamashiro
Copy link
Member

iteration で複数回 annealing したときにスピンの状態を初期化していないので、前のアニーリングの結果に引きずられているっぽい。ちゃんと初期化しないといけない。
c++側で初期化メソッドを作るか、python側でiterationのたびにcxxjij.graph.Graphインスタンスを再生性しないいけない。

@j-i-k-o
Copy link
Collaborator

j-i-k-o commented Apr 10, 2019

これに関してはその通りで、Modelクラスがスピン状態を保存しているので連続でアニーリング回すには初期化メソッド作る必要があります。
C++側でinit_spin的な関数を実装する予定です。
python側でやるとすればGraphインスタンスではなくてModelインスタンスを初期化する必要があります(がたぶんC++側でやったほうがいいと思う)

yuyamashiro pushed a commit that referenced this issue Apr 23, 2019
@yuyamashiro
Copy link
Member Author

close by #19

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

No branches or pull requests

2 participants