pub enum Outcome {
Solved(Solution),
Unsolvable,
LimitReached,
Exhausted,
}Expand description
How a solver run ended.
Variants§
Solved(Solution)
A conflict-free solution. Its quality is what the solver guarantees: optimal for CBS, ICTS and M*, within the suboptimality factor for ECBS, none for PBS.
Unsolvable
Proven unsolvable: an agent cannot reach its goal even alone, or a complete solver ran out of options.
LimitReached
The Budget stopped the search. The instance may be unsolvable:
for some unsolvable instances, such as two agents swapping the ends of a corridor,
the search space is infinite and complete solvers only ever stop this way.
Exhausted
An incomplete solver (pbs) ran out of options before its budget.
This proves nothing: the instance may still be solvable.
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Forget for Outcome
impl Freeze for Outcome
impl Move for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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