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.cr

Class Method Summary

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 search
  • params defines algorithm parameters (see GSL::Siman::Params)
  • if print_status is true, current state will be printed to STDOUT during search
  • random sets random generator

[View source]