abstract struct GSL::Siman::Configuration
- GSL::Siman::Configuration
- Struct
- Value
- Object
Overview
Abstract struct, represents state in a search space for simulated Annealing
User should inherit from this struct to use simulated annealing
User should define clone
if copying it is not trivial
Defined in:
gsl/maths/optimization/siman.crConstructors
Instance Method Summary
-
#distance(other : self) : Float64
This function should return the distance between configurations
self
andother
: -
#energy : Float64
This function should return the energy of a configuration.
- #initialize
-
#step(rng : Random, step_size : Float64) : self
This function should modify the configuration using a random step taken from the generator
rng
, up to a maximum distance ofstep_size
:
Constructor Detail
Instance Method Detail
This function should return the distance between configurations self
and other
:
This function should return the energy of a configuration. Less energy == more optimal configuration.
This function should modify the configuration using a random step taken from the generator rng
, up to a maximum distance of step_size
: