pub struct SolutionFile<'a> {
pub message: &'a str,
pub x: &'a [f64],
pub mult_g: &'a [f64],
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 [f64]Primal variable values, length n.
mult_g: &'a [f64]Constraint multipliers in pounce’s internal (cyipopt)
convention, length m: the lambda of
L = f + lambda' g - z_L (x - x_L) + z_U (x - x_U), so
d obj / d b = -lambda.
format_sol negates these on the way out, because the AMPL
.sol dual block carries marginal values (d obj / d b),
not Lagrange multipliers. Pass the internal multipliers here
and let the writer do the translation — do not pre-negate at
the call site.
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>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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> ⓘ
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> ⓘ
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