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

Allow exiting the anneal early via .min_energy #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adolenc
Copy link

@adolenc adolenc commented Apr 8, 2024

Hey!

Thank you for this very nice library. While simulated annealing is not really that difficult to write from scratch, this library has a very nice abstraction, nice visualization, and the auto() searching for parameters is extremely handy.

I have now used this library a couple of times to generate pretty complex timetables, and it has worked great. What I do find a bit frustrating is that sometimes I know that my problem has an optimal solution and I know what it is, but I have no automatic way of letting the algorithm know that, so it keeps searching even after already finding that solution.

This PR adds a .min_energy member allowing the user to specify an energy that is acceptable, letting the anneal() exit early.

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.

1 participant