Enum grb::Status

source ·
#[repr(i32)]
pub enum Status {
Show 15 variants Loaded = 1, Optimal = 2, Infeasible = 3, InfOrUnbd = 4, Unbounded = 5, CutOff = 6, IterationLimit = 7, NodeLimit = 8, TimeLimit = 9, SolutionLimit = 10, Interrupted = 11, Numeric = 12, SubOptimal = 13, InProgress = 14, UserObjLimit = 15,
}
Expand description

Status of a model

Variants§

§

Loaded = 1

Model is loaded, but no solution information is available.

§

Optimal = 2

Model was solved to optimality (subject to tolerances), and an optimal solution is available.

§

Infeasible = 3

Model was proven to be infeasible.

§

InfOrUnbd = 4

Model was proven to be either infeasible or unbounded. To obtain a more definitive conclusion, set the DualReductions parameter to 0 and reoptimize

§

Unbounded = 5

Model was proven to be unbounded.

Important note: an unbounded status indicates the presence of an unbounded ray that allows the objective to improve without limit. It says nothing about whether the model has a feasible solution. If you require information on feasibility, you should set the objective to zero and reoptimize.

§

CutOff = 6

Optimal objective for model was proven to be worse than the value specified in the Cutoff parameter. No solution information is available.

§

IterationLimit = 7

Optimization terminated because the total number of simplex iterations performed exceeded the value specified in the IterationLimit parameter, or because the total number of barrier iterations exceeded the value specified in the BarIterLimit parameter.

§

NodeLimit = 8

Optimization terminated because the total number of branch-and-cut nodes explored exceeded the value specified in the NodeLimit parameter.

§

TimeLimit = 9

Optimization terminated because the time expended exceeded the value specified in the TimeLimit parameter.

§

SolutionLimit = 10

Optimization terminated because the number of solutions found reached the value specified in the SolutionLimit parameter.

§

Interrupted = 11

Optimization was terminated by the user.

§

Numeric = 12

Optimization was terminated due to unrecoverable numerical difficulties.

§

SubOptimal = 13

Unable to satisfy optimality tolerances; a sub-optimal solution is available.

§

InProgress = 14

An asynchronous optimization call was made, but the associated optimization run is not yet complete.

§

UserObjLimit = 15

User specified an objective limit (a bound on either the best objective or the best bound), and that limit has been reached.

Trait Implementations§

source§

impl Clone for Status

source§

fn clone(&self) -> Status

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ModelAttrGet<Status> for ModelStatusAttr

source§

fn get(&self, model: &Model) -> Result<Status>

Query the value for this attribute
source§

impl PartialEq for Status

source§

fn eq(&self, other: &Status) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<i32> for Status

§

type Error = String

The type returned in the event of a conversion error.
source§

fn try_from(val: i32) -> Result<Status, String>

Performs the conversion.
source§

impl Copy for Status

source§

impl StructuralPartialEq for Status

Auto Trait Implementations§

§

impl Freeze for Status

§

impl RefUnwindSafe for Status

§

impl Send for Status

§

impl Sync for Status

§

impl Unpin for Status

§

impl UnwindSafe for Status

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.