pub enum SolveStatus {
NotSolved,
Optimal,
Infeasible,
Unbounded,
Other(String),
}Expand description
Represents the state of a solution after attempting to solve an optimization problem.
Used in Solution to indicate whether the solver found an optimal solution,
whether the problem is infeasible or unbounded, or if it encountered some other state.
§Examples
let status = SolveStatus::Optimal;
assert_eq!(status.to_string(), "Optimal");Variants§
NotSolved
The solver has not attempted to solve the model yet.
Optimal
The solver found an optimal solution.
Infeasible
The problem is infeasible: no solution satisfies all constraints.
Unbounded
The problem is unbounded: the objective can increase/decrease without limit.
Other(String)
Trait Implementations§
Source§impl Clone for SolveStatus
impl Clone for SolveStatus
Source§fn clone(&self) -> SolveStatus
fn clone(&self) -> SolveStatus
Returns a duplicate 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 SolveStatus
impl Debug for SolveStatus
Source§impl Display for SolveStatus
impl Display for SolveStatus
Source§impl PartialEq for SolveStatus
impl PartialEq for SolveStatus
impl Eq for SolveStatus
impl StructuralPartialEq for SolveStatus
Auto Trait Implementations§
impl Freeze for SolveStatus
impl RefUnwindSafe for SolveStatus
impl Send for SolveStatus
impl Sync for SolveStatus
impl Unpin for SolveStatus
impl UnsafeUnpin for SolveStatus
impl UnwindSafe for SolveStatus
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