pub struct SolutionFile<'a> {
pub message: &'a str,
pub x: &'a [Number],
pub lambda: &'a [Number],
pub solve_result_num: i32,
pub suffixes: &'a [SolSuffix],
}Expand description
Solution payload bundled for a .sol write.
Fields§
§message: &'a strFree-text banner / status line(s). Goes at the top of the file.
x: &'a [Number]Primal variable values, length n.
lambda: &'a [Number]Constraint dual values, length m.
solve_result_num: i32AMPL solver return code. Convention: 0 = solved, 100..199 = “solved with warning”, 200..299 = “infeasible”, 300..399 = “unbounded”, 400..499 = “limit reached”, 500..599 = “failure”. See Gay §5, table on p. 23.
suffixes: &'a [SolSuffix]Suffix blocks to emit after the primal/dual blocks. Empty when no sensitivity / reduced-Hessian outputs are populated.
Trait Implementations§
Source§impl<'a> Clone for SolutionFile<'a>
impl<'a> Clone for SolutionFile<'a>
Source§fn clone(&self) -> SolutionFile<'a>
fn clone(&self) -> SolutionFile<'a>
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<'a> Freeze for SolutionFile<'a>
impl<'a> RefUnwindSafe for SolutionFile<'a>
impl<'a> Send for SolutionFile<'a>
impl<'a> Sync for SolutionFile<'a>
impl<'a> Unpin for SolutionFile<'a>
impl<'a> UnsafeUnpin for SolutionFile<'a>
impl<'a> UnwindSafe for SolutionFile<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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