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:
initialdefines starting position for searchparamsdefines algorithm parameters (seeGSL::Siman::Params)- if
print_statusis true, current state will be printed toSTDOUTduring search randomsets random generator