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

Pass current temperature to move function #45

Open
andryr opened this issue May 3, 2021 · 2 comments
Open

Pass current temperature to move function #45

andryr opened this issue May 3, 2021 · 2 comments

Comments

@andryr
Copy link

andryr commented May 3, 2021

Hi
I think it would be a good thing to have access to the current temperature in the move function, either by passing it as a parameter or by making it a class member.
It would allow for smaller changes in the state when the temperature is small for example

@FlorinAndrei
Copy link

This is a great idea. This would be closer to the idea of Adaptive Simulated Annealing:

https://en.wikipedia.org/wiki/Adaptive_simulated_annealing

When looking for the minimum of a continuous function, and while doing a move at each step, I would like to be able to adjust the size of the step based on temperature. As it gets closer to the end, the size of the step should decrease.

Generally speaking, I want access to temperature, somehow, from the move function. Also, ideally, access to the min and max values of temperature. This way, I could vary the size of the gaussian jump at each step, based on temperature.

@ilanashapiro
Copy link

Hi! I know this is old but I'm doing this right now for my current project. You can easily make this change yourself -- just go into anneal.py and change T to self.T in the Annealer class, and then access in move() as self.T

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

3 participants