Struct lp_solvers::problem::Problem[][src]

pub struct Problem<EXPR = StrExpression, VAR = Variable> {
    pub name: String,
    pub sense: LpObjective,
    pub objective: EXPR,
    pub variables: Vec<VAR>,
    pub constraints: Vec<Constraint<EXPR>>,
}

A concrete linear problem

Fields

name: String

problem name. “lp_solvers_problem” by default Write the problem in the lp file format to the given formatter

sense: LpObjective

Whether to maximize or minimize the objective

objective: EXPR

Target objective function

variables: Vec<VAR>

Variables of the problem

constraints: Vec<Constraint<EXPR>>

List of constraints to apply

Trait Implementations

impl<'a, EXPR: 'a, VAR: 'a> LpProblem<'a> for Problem<EXPR, VAR> where
    &'a VAR: AsVariable,
    &'a EXPR: WriteToLpFileFormat
[src]

type Variable = &'a VAR

variable type

type Expression = &'a EXPR

expression type

type ConstraintIterator = Box<dyn Iterator<Item = Constraint<&'a EXPR>> + 'a>

Iterator over constraints

type VariableIterator = Iter<'a, VAR>

Iterator over variables

Auto Trait Implementations

impl<EXPR, VAR> RefUnwindSafe for Problem<EXPR, VAR> where
    EXPR: RefUnwindSafe,
    VAR: RefUnwindSafe

impl<EXPR, VAR> Send for Problem<EXPR, VAR> where
    EXPR: Send,
    VAR: Send

impl<EXPR, VAR> Sync for Problem<EXPR, VAR> where
    EXPR: Sync,
    VAR: Sync

impl<EXPR, VAR> Unpin for Problem<EXPR, VAR> where
    EXPR: Unpin,
    VAR: Unpin

impl<EXPR, VAR> UnwindSafe for Problem<EXPR, VAR> where
    EXPR: UnwindSafe,
    VAR: 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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,