Struct highs::Problem [−][src]
A complete optimization problem Depending on the MATRIX type parameter, the problem will be built constraint by constraint (with MATRIX=RowMatrix), or variable by variable (with MATRIX=ColMatrix)
Implementations
impl Problem<RowMatrix>
[src]
pub fn add_column<N: Into<f64> + Copy, B: RangeBounds<N>>(
&mut self,
col_factor: f64,
bounds: B
) -> Col
[src]
&mut self,
col_factor: f64,
bounds: B
) -> Col
add a variable to the problem
pub fn add_row<N: Into<f64> + Copy, B: RangeBounds<N>, ITEM: Borrow<(Col, f64)>, I: IntoIterator<Item = ITEM>>(
&mut self,
bounds: B,
row_factors: I
)
[src]
&mut self,
bounds: B,
row_factors: I
)
add a constraint to the problem
impl Problem<ColMatrix>
[src]
pub fn add_row<N: Into<f64> + Copy, B: RangeBounds<N>>(
&mut self,
bounds: B
) -> Row
[src]
&mut self,
bounds: B
) -> Row
Add a row (a constraint) to the problem. The concrete factors are added later, when adding columns
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<MATRIX: Clone> Clone for Problem<MATRIX>
[src]
impl<MATRIX: Debug> Debug for Problem<MATRIX>
[src]
impl<MATRIX: Default> Default for Problem<MATRIX>
[src]
impl From<Problem<RowMatrix>> for Problem<ColMatrix>
[src]
impl<MATRIX: PartialEq> PartialEq<Problem<MATRIX>> for Problem<MATRIX>
[src]
fn eq(&self, other: &Problem<MATRIX>) -> bool
[src]
fn ne(&self, other: &Problem<MATRIX>) -> bool
[src]
impl<MATRIX> StructuralPartialEq for Problem<MATRIX>
[src]
Auto Trait Implementations
impl<MATRIX> RefUnwindSafe for Problem<MATRIX> where
MATRIX: RefUnwindSafe,
MATRIX: RefUnwindSafe,
impl<MATRIX> Send for Problem<MATRIX> where
MATRIX: Send,
MATRIX: Send,
impl<MATRIX> Sync for Problem<MATRIX> where
MATRIX: Sync,
MATRIX: Sync,
impl<MATRIX> Unpin for Problem<MATRIX> where
MATRIX: Unpin,
MATRIX: Unpin,
impl<MATRIX> UnwindSafe for Problem<MATRIX> where
MATRIX: UnwindSafe,
MATRIX: UnwindSafe,
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>,