pub struct ObjectiveBounds {
pub sense: String,
pub primal: Option<f64>,
pub dual: Option<f64>,
}Fields§
§sense: Stringminimize or maximize: the dual bound is a lower bound when
minimizing and an upper bound when maximizing.
primal: Option<f64>Objective of the best feasible point, if one was found.
dual: Option<f64>Proven bound on the optimal objective, if the solver proved one.
Implementations§
Source§impl ObjectiveBounds
impl ObjectiveBounds
Sourcepub fn ordered(&self) -> bool
pub fn ordered(&self) -> bool
Whether the bounds are in order: when both exist, the dual bound lies
below the primal one when minimizing and above it when maximizing,
within BOUND_TOLERANCE. A dual bound beyond the objective of a
feasible point contradicts it: one of the two is wrong.
Trait Implementations§
Source§impl Clone for ObjectiveBounds
impl Clone for ObjectiveBounds
Source§impl Debug for ObjectiveBounds
impl Debug for ObjectiveBounds
Source§impl Default for ObjectiveBounds
impl Default for ObjectiveBounds
Source§impl<'de> Deserialize<'de> for ObjectiveBounds
impl<'de> Deserialize<'de> for ObjectiveBounds
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
Source§impl PartialEq for ObjectiveBounds
impl PartialEq for ObjectiveBounds
Source§impl Serialize for ObjectiveBounds
impl Serialize for ObjectiveBounds
impl StructuralPartialEq for ObjectiveBounds
Auto Trait Implementations§
impl Freeze for ObjectiveBounds
impl RefUnwindSafe for ObjectiveBounds
impl Send for ObjectiveBounds
impl Sync for ObjectiveBounds
impl Unpin for ObjectiveBounds
impl UnsafeUnpin for ObjectiveBounds
impl UnwindSafe for ObjectiveBounds
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