#[non_exhaustive]pub enum MilpStatus {
Optimal,
Infeasible,
Unbounded,
NodeLimit,
}Expand description
The outcome of milp.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Optimal
An optimal solution within mip_rel_gap.
Infeasible
No integer point satisfies the constraints.
Unbounded
The LP relaxation is unbounded.
NodeLimit
The node limit was reached; x is the best integer solution found, if any.
Trait Implementations§
Source§impl Clone for MilpStatus
impl Clone for MilpStatus
impl Copy for MilpStatus
Source§impl Debug for MilpStatus
impl Debug for MilpStatus
impl Eq for MilpStatus
Source§impl PartialEq for MilpStatus
impl PartialEq for MilpStatus
impl StructuralPartialEq for MilpStatus
Auto Trait Implementations§
impl Freeze for MilpStatus
impl RefUnwindSafe for MilpStatus
impl Send for MilpStatus
impl Sync for MilpStatus
impl Unpin for MilpStatus
impl UnsafeUnpin for MilpStatus
impl UnwindSafe for MilpStatus
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