pub struct SolveResult {
pub status: SolveStatus,
pub values: Vec<BigRational>,
pub objective: BigRational,
pub shadow_prices: Vec<BigRational>,
}Expand description
Result returned by SimplexSolver::solve.
Fields§
§status: SolveStatusTermination status.
values: Vec<BigRational>Optimal values for each decision variable.
objective: BigRationalOptimal objective value (valid only when status == Optimal).
shadow_prices: Vec<BigRational>Shadow price (dual variable) for each original constraint.
Valid only when status == Optimal.
Trait Implementations§
Source§impl Clone for SolveResult
impl Clone for SolveResult
Source§fn clone(&self) -> SolveResult
fn clone(&self) -> SolveResult
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 Freeze for SolveResult
impl RefUnwindSafe for SolveResult
impl Send for SolveResult
impl Sync for SolveResult
impl Unpin for SolveResult
impl UnsafeUnpin for SolveResult
impl UnwindSafe for SolveResult
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