pub struct OptimizeResult {
pub x: Vec<f64>,
pub fx: f64,
pub iterations: usize,
pub status: ConvergenceStatus,
}Expand description
The result of minimizing an Objective.
The fields together answer the three questions a caller has after a run: did it converge, how good is the result, and how much work did it take.
Fields§
§x: Vec<f64>The located minimizer (the point at which the run stopped).
fx: f64The objective value f(x) at the located point.
iterations: usizeThe number of iterations actually performed (always ≥ 0).
status: ConvergenceStatusWhether the run converged or exhausted its iteration budget.
Trait Implementations§
Source§impl Clone for OptimizeResult
impl Clone for OptimizeResult
Source§fn clone(&self) -> OptimizeResult
fn clone(&self) -> OptimizeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OptimizeResult
impl RefUnwindSafe for OptimizeResult
impl Send for OptimizeResult
impl Sync for OptimizeResult
impl Unpin for OptimizeResult
impl UnsafeUnpin for OptimizeResult
impl UnwindSafe for OptimizeResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more