pub trait OptimizationAlgorithm<T: FloatNumber, N: Dim, D: Dim>{
// Required methods
fn step(&mut self);
fn state(&self) -> &State<T, N, D>;
// Provided method
fn get_simplex(&self) -> Option<&Vec<OVector<T, D>>> { ... }
}
pub trait OptimizationAlgorithm<T: FloatNumber, N: Dim, D: Dim>{
// Required methods
fn step(&mut self);
fn state(&self) -> &State<T, N, D>;
// Provided method
fn get_simplex(&self) -> Option<&Vec<OVector<T, D>>> { ... }
}