[−][src]Struct minilp::LinearExpr
A sum of variables multiplied by constant coefficients used as a left-hand side when defining constraints.
Implementations
impl LinearExpr
[src]
pub fn empty() -> Self
[src]
Creates an empty linear expression.
pub fn add(&mut self, var: Variable, coeff: f64)
[src]
Add a single term to the linear expression.
Variables can be added to an expression in any order, but adding the same variable
several times is forbidden (the Problem::add_constraint
method will panic).
Trait Implementations
impl Clone for LinearExpr
[src]
fn clone(&self) -> LinearExpr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LinearExpr
[src]
impl Extend<(Variable, f64)> for LinearExpr
[src]
impl<I: IntoIterator<Item = impl Into<LinearTerm>>> From<I> for LinearExpr
[src]
impl FromIterator<(Variable, f64)> for LinearExpr
[src]
Auto Trait Implementations
impl RefUnwindSafe for LinearExpr
impl Send for LinearExpr
impl Sync for LinearExpr
impl Unpin for LinearExpr
impl UnwindSafe for LinearExpr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,