Struct highs::Problem [−][src]
A complete optimization problem
Implementations
impl Problem
[src]
pub fn add_row<B: RangeBounds<f64>>(&mut self, bounds: B) -> Row
[src]
Add a row (a constraint) to the problem. The bounds indicate the maximum allowed value for the linear combination of variables that will be in the constraint. The actual constraint definition happens when adding a variable to the problem with add_column.
pub fn add_column<N: Into<f64> + Copy, B: RangeBounds<N>, ITEM: Borrow<(Row, f64)>, I: IntoIterator<Item = ITEM>>(
&mut self,
col_factor: f64,
bounds: B,
row_factors: I
)
[src]
&mut self,
col_factor: f64,
bounds: B,
row_factors: I
)
Add a column (a variable) to the problem. col_factor represents the factor in front of the variable in the objective function. The row_factors argument defines how much this variable weights in each constraint.
Trait Implementations
impl Clone for Problem
[src]
impl Debug for Problem
[src]
impl Default for Problem
[src]
impl PartialEq<Problem> for Problem
[src]
impl StructuralPartialEq for Problem
[src]
Auto Trait Implementations
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,