pub struct Var {
pub id: VarId,
pub lb: Option<f64>,
pub ub: Option<f64>,
pub is_integer: bool,
pub is_artificial: bool,
}Expand description
Represents a decision variable in a model.
Contains information about optional bounds, whether the variable is integer, and whether it is an artificial variable used in simplex initialization.
Fields§
§id: VarIdUnique identifier for the variable.
lb: Option<f64>Optional lower bound.
ub: Option<f64>Optional upper bound.
is_integer: boolWhether the variable is restricted to integer values.
is_artificial: boolWhether this is an artificial variable (used for inequality constraints in simplex initialization).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Var
impl RefUnwindSafe for Var
impl Send for Var
impl Sync for Var
impl Unpin for Var
impl UnsafeUnpin for Var
impl UnwindSafe for Var
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