#[non_exhaustive]pub struct MilpResult {
pub status: MilpStatus,
pub x: Vec<f64>,
pub objective: f64,
pub dual_bound: f64,
pub mip_gap: f64,
pub nodes: usize,
}Expand description
The result of milp.
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: MilpStatus§x: Vec<f64>The best integer-feasible point (integer variables rounded exactly); empty if none.
objective: f64Its objective value (∞ if none).
dual_bound: f64The best bound on the optimum, from the open nodes’ relaxations.
mip_gap: f64(objective − dual_bound)/|objective|.
nodes: usizeLP relaxations solved.
Trait Implementations§
Source§impl Clone for MilpResult
impl Clone for MilpResult
Auto Trait Implementations§
impl Freeze for MilpResult
impl RefUnwindSafe for MilpResult
impl Send for MilpResult
impl Sync for MilpResult
impl Unpin for MilpResult
impl UnsafeUnpin for MilpResult
impl UnwindSafe for MilpResult
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