Struct argmin_core::ArgminResult
source · pub struct ArgminResult<T> {
pub param: T,
pub cost: f64,
pub iters: u64,
pub terminated: bool,
pub termination_reason: TerminationReason,
}
Expand description
Return struct for all solvers.
Fields
param: T
Final parameter vector
cost: f64
Final cost value
iters: u64
Number of iterations
terminated: bool
Indicated whether it terminated or not
termination_reason: TerminationReason
Reason of termination
Implementations
sourceimpl<T> ArgminResult<T>
impl<T> ArgminResult<T>
sourcepub fn new(
param: T,
cost: f64,
iters: u64,
termination_reason: TerminationReason
) -> Self
pub fn new(
param: T,
cost: f64,
iters: u64,
termination_reason: TerminationReason
) -> Self
Constructor
param
: Final (best) parameter vector
cost
: Final (best) cost function value
iters
: Number of iterations
termination_reason
: Reason of termination
Trait Implementations
sourceimpl<T: Clone> Clone for ArgminResult<T>
impl<T: Clone> Clone for ArgminResult<T>
sourcefn clone(&self) -> ArgminResult<T>
fn clone(&self) -> ArgminResult<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for ArgminResult<T>where
T: RefUnwindSafe,
impl<T> Send for ArgminResult<T>where
T: Send,
impl<T> Sync for ArgminResult<T>where
T: Sync,
impl<T> Unpin for ArgminResult<T>where
T: Unpin,
impl<T> UnwindSafe for ArgminResult<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more