Struct lp_solvers::problem::Problem [−][src]
A concrete linear problem
Fields
name: Stringproblem name. “lp_solvers_problem” by default Write the problem in the lp file format to the given formatter
sense: LpObjectiveWhether to maximize or minimize the objective
objective: EXPRTarget 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]
&'a VAR: AsVariable,
&'a EXPR: WriteToLpFileFormat,
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
fn name(&self) -> &str[src]
fn variables(&'a self) -> Self::VariableIterator[src]
fn objective(&'a self) -> Self::Expression[src]
fn sense(&self) -> LpObjective[src]
fn constraints(&'a self) -> Self::ConstraintIterator[src]
fn to_lp_file_format(&'a self, f: &mut Formatter<'_>) -> Result[src]
fn display_lp(&'a self) -> DisplayedLp<'_, Self> where
Self: Sized, [src]
Self: Sized,
fn to_tmp_file(&'a self) -> Result<NamedTempFile> where
Self: Sized, [src]
Self: Sized,
Auto Trait Implementations
impl<EXPR, VAR> RefUnwindSafe for Problem<EXPR, VAR> where
EXPR: RefUnwindSafe,
VAR: RefUnwindSafe,
EXPR: RefUnwindSafe,
VAR: RefUnwindSafe,
impl<EXPR, VAR> Send for Problem<EXPR, VAR> where
EXPR: Send,
VAR: Send,
EXPR: Send,
VAR: Send,
impl<EXPR, VAR> Sync for Problem<EXPR, VAR> where
EXPR: Sync,
VAR: Sync,
EXPR: Sync,
VAR: Sync,
impl<EXPR, VAR> Unpin for Problem<EXPR, VAR> where
EXPR: Unpin,
VAR: Unpin,
EXPR: Unpin,
VAR: Unpin,
impl<EXPR, VAR> UnwindSafe for Problem<EXPR, VAR> where
EXPR: UnwindSafe,
VAR: UnwindSafe,
EXPR: UnwindSafe,
VAR: 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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,