pub struct LinearTerm {
pub coefficient: f64,
pub variable: VariableRef,
}Expand description
One term in a linear constraint expression: coefficient * variable.
The expression is coefficient × variable_ref. A coefficient of 1.0
represents an unweighted variable reference.
Fields§
§coefficient: f64Scalar multiplier for the variable reference.
variable: VariableRefThe LP variable being referenced.
Trait Implementations§
Source§impl Clone for LinearTerm
impl Clone for LinearTerm
Source§fn clone(&self) -> LinearTerm
fn clone(&self) -> LinearTerm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearTerm
impl Debug for LinearTerm
Source§impl PartialEq for LinearTerm
impl PartialEq for LinearTerm
impl StructuralPartialEq for LinearTerm
Auto Trait Implementations§
impl Freeze for LinearTerm
impl RefUnwindSafe for LinearTerm
impl Send for LinearTerm
impl Sync for LinearTerm
impl Unpin for LinearTerm
impl UnsafeUnpin for LinearTerm
impl UnwindSafe for LinearTerm
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