pub trait CmaEsFitness: Send + Sync {
// Required method
fn evaluate(&self, x: &RealVector) -> f64;
}Expand description
Trait for fitness functions used with CMA-ES
CMA-ES is a minimization algorithm, so lower values are better.
Required Methods§
Sourcefn evaluate(&self, x: &RealVector) -> f64
fn evaluate(&self, x: &RealVector) -> f64
Evaluate the fitness of a solution (lower is better)
Implementors§
impl<F> CmaEsFitness for F
Available on crate feature
parallel only.Implement CmaEsFitness for any Fn that matches the signature