pub trait Anneal {
    type Param;
    type Output;
    type Float;

    // Required method
    fn anneal(
        &self,
        param: &Self::Param,
        extent: Self::Float
    ) -> Result<Self::Output, Error>;
}
Expand description

This trait handles the annealing of a parameter vector. Problems which are to be solved using SimulatedAnnealing must implement this trait.

Required Associated Types§

source

type Param

Type of the parameter vector

source

type Output

Return type of the anneal function

source

type Float

Precision of floats

Required Methods§

source

fn anneal( &self, param: &Self::Param, extent: Self::Float ) -> Result<Self::Output, Error>

Anneal a parameter vector

Implementors§