pub enum VarKind {
Continuous,
Integer,
Binary,
}Expand description
Integrality requirement for a decision variable.
Continuous is the default (matches pre-MIP behaviour). Integer / Binary
route the model through the MILP/MIQP branch-and-bound solver. Binary is an
Integer variable additionally fixed to the [0, 1] box.
Variants§
Continuous
Real-valued variable (no integrality requirement).
Integer
Variable constrained to integer values within its bounds.
Binary
Integer variable additionally restricted to {0, 1}.
Trait Implementations§
impl Copy for VarKind
impl Eq for VarKind
impl StructuralPartialEq for VarKind
Auto Trait Implementations§
impl Freeze for VarKind
impl RefUnwindSafe for VarKind
impl Send for VarKind
impl Sync for VarKind
impl Unpin for VarKind
impl UnsafeUnpin for VarKind
impl UnwindSafe for VarKind
Blanket Implementations§
impl<T> Boilerplate for T
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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