Enum highs::HighsModelStatus
source · pub enum HighsModelStatus {
Show 16 variants
NotSet = 0,
LoadError = 1,
ModelError = 2,
PresolveError = 3,
SolveError = 4,
PostsolveError = 5,
ModelEmpty = 6,
Infeasible = 8,
UnboundedOrInfeasible = 9,
Unbounded = 10,
Optimal = 7,
ObjectiveBound = 11,
ObjectiveTarget = 12,
ReachedTimeLimit = 13,
ReachedIterationLimit = 14,
Unknown = 15,
}
Expand description
The kinds of results of an optimization
Variants§
NotSet = 0
not initialized
LoadError = 1
Unable to load model
ModelError = 2
invalid model
PresolveError = 3
Unable to run the pre-solve phase
SolveError = 4
Unable to solve
PostsolveError = 5
Unable to clean after solve
ModelEmpty = 6
No variables in the model: nothing to optimize
use highs::*;
let solved = ColProblem::new().optimise(Sense::Maximise).solve();
assert_eq!(solved.status(), HighsModelStatus::ModelEmpty);
Infeasible = 8
There is no solution to the problem
UnboundedOrInfeasible = 9
The problem in unbounded or infeasible
Unbounded = 10
The problem is unbounded: there is no single optimal value
Optimal = 7
An optimal solution was found
ObjectiveBound = 11
objective bound
ObjectiveTarget = 12
objective target
ReachedTimeLimit = 13
reached limit
ReachedIterationLimit = 14
reached limit
Unknown = 15
Unknown model status
Trait Implementations§
source§impl Clone for HighsModelStatus
impl Clone for HighsModelStatus
source§fn clone(&self) -> HighsModelStatus
fn clone(&self) -> HighsModelStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HighsModelStatus
impl Debug for HighsModelStatus
source§impl Ord for HighsModelStatus
impl Ord for HighsModelStatus
source§fn cmp(&self, other: &HighsModelStatus) -> Ordering
fn cmp(&self, other: &HighsModelStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HighsModelStatus
impl PartialEq for HighsModelStatus
source§fn eq(&self, other: &HighsModelStatus) -> bool
fn eq(&self, other: &HighsModelStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HighsModelStatus
impl PartialOrd for HighsModelStatus
source§fn partial_cmp(&self, other: &HighsModelStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &HighsModelStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for HighsModelStatus
impl TryFrom<i32> for HighsModelStatus
impl Copy for HighsModelStatus
impl Eq for HighsModelStatus
impl StructuralEq for HighsModelStatus
impl StructuralPartialEq for HighsModelStatus
Auto Trait Implementations§
impl RefUnwindSafe for HighsModelStatus
impl Send for HighsModelStatus
impl Sync for HighsModelStatus
impl Unpin for HighsModelStatus
impl UnwindSafe for HighsModelStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more