pub trait Minimizer<D: Dimension, F: ?Sized, MinimizerArg> {
    type Solution: Evaluation<D>;

    // Required method
    fn minimize(
        &self,
        function: &F,
        initial_position: &Array<f64, D>,
        args: Option<MinimizerArg>
    ) -> Self::Solution;
}
Expand description

Defines an optimizer that is able to minimize a given objective function F.

Required Associated Types§

source

type Solution: Evaluation<D>

Type of the solution the Minimizer returns.

Required Methods§

source

fn minimize( &self, function: &F, initial_position: &Array<f64, D>, args: Option<MinimizerArg> ) -> Self::Solution

Performs the actual minimization and returns a solution. MinimizerArg should provide a number of iterations, a min error , or anything needed for implemented algorithm

Implementors§