Skip to content

Fix bug in simulated annealing when dealing with negative objectives#331

Merged
benvanwerkhoven merged 2 commits intomasterfrom
simulated-annealing-fix
Jan 21, 2026
Merged

Fix bug in simulated annealing when dealing with negative objectives#331
benvanwerkhoven merged 2 commits intomasterfrom
simulated-annealing-fix

Conversation

@stijnh
Copy link
Member

@stijnh stijnh commented Sep 30, 2025

Simulated annealing works poorly when the cost is negative, as it takes the difference relative to the old cost (which can be negative).

This PR makes it take the difference relative to the absolute cost.

@sonarqubecloud
Copy link

@benvanwerkhoven benvanwerkhoven merged commit c2f990e into master Jan 21, 2026
4 checks passed
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