Struct highs::Problem[][src]

pub struct Problem<MATRIX = ColMatrix> { /* fields omitted */ }

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]

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]

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]

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]

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]

impl<MATRIX> StructuralPartialEq for Problem<MATRIX>[src]

Auto Trait Implementations

impl<MATRIX> RefUnwindSafe for Problem<MATRIX> where
    MATRIX: RefUnwindSafe

impl<MATRIX> Send for Problem<MATRIX> where
    MATRIX: Send

impl<MATRIX> Sync for Problem<MATRIX> where
    MATRIX: Sync

impl<MATRIX> Unpin for Problem<MATRIX> where
    MATRIX: Unpin

impl<MATRIX> UnwindSafe for Problem<MATRIX> where
    MATRIX: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.