pub struct CheckX0Outcome {Show 29 fields
pub n_vars: usize,
pub n_cons: usize,
pub nl_sha256: Option<String>,
pub source: String,
pub x0_source: String,
pub x0_all_zero: bool,
pub objective: Option<Number>,
pub grad_nonfinite: Vec<NonFinite>,
pub grad_nonfinite_count: usize,
pub g_nonfinite: Vec<NonFinite>,
pub g_nonfinite_count: usize,
pub jac_nonfinite: Vec<NonFiniteEntry>,
pub jac_nonfinite_count: usize,
pub hess_nonfinite_count: Option<usize>,
pub bound_violations: Vec<RowReport>,
pub n_bound_violations: usize,
pub max_bound_violation: Number,
pub n_on_bounds: usize,
pub clamp_moves: Vec<ClampMove>,
pub n_clamp_moved: usize,
pub max_clamp_move: Number,
pub con_violations: Vec<RowReport>,
pub n_con_violations: usize,
pub max_con_violation: Number,
pub grad_spread: ScaleSpread,
pub jac_spread: ScaleSpread,
pub warnings: Vec<String>,
pub fatal: bool,
pub verdict: &'static str,
}Expand description
The fully-evaluated preflight result.
Fields§
§n_vars: usize§n_cons: usize§nl_sha256: Option<String>§source: String§x0_source: String§x0_all_zero: bool§objective: Option<Number>§grad_nonfinite: Vec<NonFinite>§grad_nonfinite_count: usize§g_nonfinite: Vec<NonFinite>§g_nonfinite_count: usize§jac_nonfinite: Vec<NonFiniteEntry>§jac_nonfinite_count: usize§hess_nonfinite_count: Option<usize>None when the TNLP declines exact Hessians (quasi-Newton).
bound_violations: Vec<RowReport>§n_bound_violations: usize§max_bound_violation: Number§n_on_bounds: usize§clamp_moves: Vec<ClampMove>§n_clamp_moved: usize§max_clamp_move: Number§con_violations: Vec<RowReport>§n_con_violations: usize§max_con_violation: Number§grad_spread: ScaleSpread§jac_spread: ScaleSpread§warnings: Vec<String>§fatal: bool§verdict: &'static strTrait Implementations§
Auto Trait Implementations§
impl Freeze for CheckX0Outcome
impl RefUnwindSafe for CheckX0Outcome
impl Send for CheckX0Outcome
impl Sync for CheckX0Outcome
impl Unpin for CheckX0Outcome
impl UnsafeUnpin for CheckX0Outcome
impl UnwindSafe for CheckX0Outcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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