#[non_exhaustive]pub struct Solution {
pub status: Status,
pub problem: Problem,
pub sensitivity: Option<Sensitivity>,
pub trace: Trace,
}Expand description
The status, the problem that was solved, the sensitivity analysis (when optimal) and the full step-by-step trace.
With the serde feature the status fields sit at the top level:
{"status": "optimal", "objective": "17/5", "values": [...], "problem": {...}, "sensitivity": {...}, "trace": {...}}.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: Status§problem: ProblemThe problem this solution answers, so that reoptimize can extend it.
sensitivity: Option<Sensitivity>Shadow prices, reduced costs and ranges, computed for every optimal solution.
None exactly when the status is not optimal.
trace: TraceTrait Implementations§
Source§impl<'de> Deserialize<'de> for Solution
impl<'de> Deserialize<'de> for Solution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Solution
impl StructuralPartialEq for Solution
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnsafeUnpin for Solution
impl UnwindSafe for Solution
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