pub struct Polyhedron {
pub a: Matrix,
pub b: Vec<f64>,
pub variables: Vec<VariableFloat>,
pub index: Vec<Option<u32>>,
}Expand description
Data structure for polyhedron with a as Matrix and b as Vec and bounds as a Vec of Tuples.
Note that the number of rows of a must be the same as the length of b and the number of columns of a
must be the same as the length of bounds.
Fields§
§a: MatrixThe left-hand side of linear constraints on the form $ a + b + c \ge x $.
b: Vec<f64>The right-hand side of linear constraints as described above.
variables: Vec<VariableFloat>Upper and lower bounds (lower_bound, upper_bound) of the variables given by a.
index: Vec<Option<u32>>Implementations§
Trait Implementations§
Source§impl Clone for Polyhedron
impl Clone for Polyhedron
Source§impl Debug for Polyhedron
impl Debug for Polyhedron
Source§impl Default for Polyhedron
impl Default for Polyhedron
Source§fn default() -> Polyhedron
fn default() -> Polyhedron
Returns the “default value” for a type. Read more
Source§impl PartialEq for Polyhedron
impl PartialEq for Polyhedron
Auto Trait Implementations§
impl Freeze for Polyhedron
impl RefUnwindSafe for Polyhedron
impl Send for Polyhedron
impl Sync for Polyhedron
impl Unpin for Polyhedron
impl UnwindSafe for Polyhedron
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