MachineLearning/simulated_annealing library
Simulated Annealing (generic)
A production-minded, generic simulated annealing optimizer.
The implementation is small, auditable and includes features expected
by engineering teams: generic candidate type T, pluggable energy and
neighbor functions, a temperature schedule and reproducible RNG.
Contract:
- Input: initial candidate
T,energy(T)->doubleto minimize,neighbor(T, Random)->Tthat proposes a local move, andtemperature(step). - Output:
optimizereturns a map withbestandenergy. - Errors: throws ArgumentError for invalid inputs.