pub struct OptimResult<S: Scalar> {Show 17 fields
pub x: Vec<S>,
pub f: S,
pub grad: Vec<S>,
pub iterations: usize,
pub n_feval: usize,
pub n_geval: usize,
pub converged: bool,
pub message: String,
pub status: OptimStatus,
pub history: Vec<IterationRecord<S>>,
pub lambda_eq: Vec<S>,
pub lambda_ineq: Vec<S>,
pub active_bounds: Vec<usize>,
pub constraint_violation: S,
pub wall_time_secs: f64,
pub pareto: Option<ParetoResult<S>>,
pub sensitivity: Option<ParamSensitivity<S>>,
}Expand description
Result of an optimization.
Fields§
§x: Vec<S>§f: S§grad: Vec<S>§iterations: usize§n_feval: usize§n_geval: usize§converged: bool§message: String§status: OptimStatus§history: Vec<IterationRecord<S>>§lambda_eq: Vec<S>§lambda_ineq: Vec<S>§active_bounds: Vec<usize>§constraint_violation: S§wall_time_secs: f64§pareto: Option<ParetoResult<S>>§sensitivity: Option<ParamSensitivity<S>>Implementations§
Source§impl<S: Scalar> OptimResult<S>
impl<S: Scalar> OptimResult<S>
Sourcepub fn unconstrained(
x: Vec<S>,
f: S,
grad: Vec<S>,
iterations: usize,
n_feval: usize,
n_geval: usize,
converged: bool,
message: String,
status: OptimStatus,
) -> Self
pub fn unconstrained( x: Vec<S>, f: S, grad: Vec<S>, iterations: usize, n_feval: usize, n_geval: usize, converged: bool, message: String, status: OptimStatus, ) -> Self
Construct a result for an unconstrained optimization, filling constrained fields with defaults.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for OptimResult<S>where
S: Freeze,
impl<S> RefUnwindSafe for OptimResult<S>where
S: RefUnwindSafe,
impl<S> Send for OptimResult<S>
impl<S> Sync for OptimResult<S>
impl<S> Unpin for OptimResult<S>where
S: Unpin,
impl<S> UnsafeUnpin for OptimResult<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for OptimResult<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more