pub enum SimplexConstraint {
Equal(Vec<f64>, f64),
LessThan(Vec<f64>, f64),
GreaterThan(Vec<f64>, f64),
}
Expand description
Constraints you can add to your LP problem
Equal is x + y + z = N LessThan is x + y + z <= N GreaterThan is x + y + z >= N
Variants§
Auto Trait Implementations§
impl Freeze for SimplexConstraint
impl RefUnwindSafe for SimplexConstraint
impl Send for SimplexConstraint
impl Sync for SimplexConstraint
impl Unpin for SimplexConstraint
impl UnwindSafe for SimplexConstraint
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