Struct highs::Problem[][src]

pub struct Problem { /* fields omitted */ }

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]

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]

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.