[][src]Trait optimization_engine::core::Optimizer

pub trait Optimizer {
    fn solve(&mut self, u: &mut [f64]) -> SolverStatus;
}

A general optimizer

Required methods

fn solve(&mut self, u: &mut [f64]) -> SolverStatus

solves a given problem and updates the initial estimate u with the solution

Returns the solver status

Loading content...

Implementors

impl<'life, GradientType, ConstraintType, CostType> Optimizer for FBSOptimizer<'life, GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> Result<(), Error> + 'life,
    CostType: Fn(&[f64], &mut f64) -> Result<(), Error> + 'life,
    ConstraintType: Constraint + 'life, 
[src]

impl<'life, GradientType, ConstraintType, CostType> Optimizer for PANOCOptimizer<'life, GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> Result<(), Error> + 'life,
    CostType: Fn(&[f64], &mut f64) -> Result<(), Error>,
    ConstraintType: Constraint + 'life, 
[src]

Loading content...