Enum highs::HighsModelStatus[][src]

pub enum HighsModelStatus {
    NotSet,
    LoadError,
    ModelError,
    PresolveError,
    SolveError,
    PostsolveError,
    ModelEmpty,
    PrimalInfeasible,
    PrimalUnbounded,
    Optimal,
    ReachedDualObjectiveValueUpperBound,
    ReachedTimeLimit,
    ReachedIterationLimit,
    PrimalDualInfeasible,
    DualInfeasible,
}

The kinds of results of an optimization

Variants

NotSet

not initialized

LoadError

Unable to load model

ModelError

invalid model

PresolveError

Unable to run the pre-solve phase

SolveError

Unable to solve

PostsolveError

Unable to clean after solve

ModelEmpty

No variables in the model: nothing to optimize

use highs::*;
let solved = ColProblem::new().optimise(Sense::Maximise).solve();
assert_eq!(solved.status(), HighsModelStatus::ModelEmpty);
PrimalInfeasible

There is no solution to the problem

PrimalUnbounded

The problem is unbounded: there is no single optimal value

Optimal

An optimal solution was found

ReachedDualObjectiveValueUpperBound

reached limit

ReachedTimeLimit

reached limit

ReachedIterationLimit

reached limit

PrimalDualInfeasible

cannot solve dual

DualInfeasible

cannot solve dual

Trait Implementations

impl Clone for HighsModelStatus[src]

impl Copy for HighsModelStatus[src]

impl Debug for HighsModelStatus[src]

impl Eq for HighsModelStatus[src]

impl Ord for HighsModelStatus[src]

impl PartialEq<HighsModelStatus> for HighsModelStatus[src]

impl PartialOrd<HighsModelStatus> for HighsModelStatus[src]

impl StructuralEq for HighsModelStatus[src]

impl StructuralPartialEq for HighsModelStatus[src]

impl TryFrom<i32> for HighsModelStatus[src]

type Error = InvalidStatus

The type returned in the event of a conversion error.

Auto Trait Implementations

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.