pub trait Optimizer {
    // Required method
    fn solve(&mut self, u: &mut [f64]) -> Result<SolverStatus, SolverError>;
}
Expand description

A general optimizer

Required Methods§

source

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

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

Returns the solver status

Implementors§

source§

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

source§

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