pub enum BoundType<F> {
LowerContinuous(F),
UpperContinuous(F),
Fixed(F),
Free,
LowerMinusInfinity,
UpperInfinity,
Binary,
LowerInteger(F),
UpperInteger(F),
SemiContinuous(F, F),
}Expand description
The MPS format defines the BoundTypes described in this enum.
§Note
Not all BoundType variants are currently supported.
Variants§
LowerContinuous(F)
b <- x (< +inf)
UpperContinuous(F)
(0 <=) x <= b
Fixed(F)
x = b
Free
-inf < x < +inf
LowerMinusInfinity
-inf < x (<= 0)
UpperInfinity
(0 <=) x < +inf
Binary
x = 0 or 1
LowerInteger(F)
b <= x (< +inf)
UpperInteger(F)
(0 <=) x <= b
SemiContinuous(F, F)
x = 0 or l =< x =< b
Note: appears only very rarely in the MIPLIB benchmark set.
Trait Implementations§
impl<F: Copy> Copy for BoundType<F>
impl<F: Eq> Eq for BoundType<F>
impl<F> StructuralPartialEq for BoundType<F>
Auto Trait Implementations§
impl<F> Freeze for BoundType<F>where
F: Freeze,
impl<F> RefUnwindSafe for BoundType<F>where
F: RefUnwindSafe,
impl<F> Send for BoundType<F>where
F: Send,
impl<F> Sync for BoundType<F>where
F: Sync,
impl<F> Unpin for BoundType<F>where
F: Unpin,
impl<F> UnwindSafe for BoundType<F>where
F: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more