pub enum OptimisationResult<Stop> {
Optimal(Solution),
Satisfiable(Solution),
Stopped(Solution, Stop),
Unsatisfiable,
Unknown,
}Expand description
The result of a call to Solver::optimise.
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.
Stopped(Solution, Stop)
The optimisation was stopped by the solution callback.
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<Stop> Freeze for OptimisationResult<Stop>where
Stop: Freeze,
impl<Stop> RefUnwindSafe for OptimisationResult<Stop>where
Stop: RefUnwindSafe,
impl<Stop> Send for OptimisationResult<Stop>where
Stop: Send,
impl<Stop> Sync for OptimisationResult<Stop>where
Stop: Sync,
impl<Stop> Unpin for OptimisationResult<Stop>where
Stop: Unpin,
impl<Stop> UnsafeUnpin for OptimisationResult<Stop>where
Stop: UnsafeUnpin,
impl<Stop> UnwindSafe for OptimisationResult<Stop>where
Stop: UnwindSafe,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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