pub enum OptimisationResult {
Optimal(Solution),
Satisfiable(Solution),
Unsatisfiable,
Unknown,
}Expand description
The result of a call to Solver::maximise or Solver::minimise.
Variants§
Optimal(Solution)
Indicates that an optimal solution has been found and proven to be optimal. It provides an
instance of Solution which contains the optimal solution.
Satisfiable(Solution)
Indicates that a solution was found and provides an instance of Solution which contains
best known solution by the solver.
Unsatisfiable
Indicates that there is no solution to the problem.
Unknown
Indicates that it is not known whether a solution exists. This is likely due to a
TerminationCondition triggering.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptimisationResult
impl RefUnwindSafe for OptimisationResult
impl Send for OptimisationResult
impl Sync for OptimisationResult
impl Unpin for OptimisationResult
impl UnwindSafe for OptimisationResult
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more