Trait optimization_engine::core::Optimizer
source · pub trait Optimizer {
// Required method
fn solve(&mut self, u: &mut [f64]) -> Result<SolverStatus, SolverError>;
}
Expand description
A general optimizer
Required Methods§
sourcefn solve(&mut self, u: &mut [f64]) -> Result<SolverStatus, SolverError>
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