module GSL::Siman
Overview
This module implements Simulated Annealing
Note: this module doesn't use GSL function (gsl_siman_solve
), instead entire algorithm was rewritten in Crystal (it is quite simple)
Defined in:
gsl/maths/optimization/siman.crClass Method Summary
-
.solve(initial : Configuration, params : Params, print_status = false, random : Random = Random::DEFAULT) : Configuration
Perform simulated annealing algorithm and returns found configuration with minimal energy
Class Method Detail
def self.solve(initial : Configuration, params : Params, print_status = false, random : Random = Random::DEFAULT) : Configuration
#
Perform simulated annealing algorithm and returns found configuration with minimal energy
Parameters have following meaning:
initial
defines starting position for searchparams
defines algorithm parameters (seeGSL::Siman::Params
)- if
print_status
is true, current state will be printed toSTDOUT
during search random
sets random generator