abstract struct GSL::Siman::Configuration

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

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def distance(other : self) : Float64 #

This function should return the distance between configurations self and other:


[View source]
abstract def energy : Float64 #

This function should return the energy of a configuration. Less energy == more optimal configuration.


[View source]
def initialize #

[View source]
abstract def 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 of step_size:


[View source]