Skip to main content

PathTchebycheff

Struct PathTchebycheff 

Source
pub struct PathTchebycheff<'a, G: Graph, H, P> { /* private fields */ }
Expand description

The TPA subproblem on a graph: the path to a goal that minimizes the scalarized score, by best-first search on the score of g + h with per-state dominance pruning.

Trait Implementations§

Source§

impl<G: Graph, H, P> Debug for PathTchebycheff<'_, G, H, P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<G, H, C, P, const N: usize> TchebycheffSolver<C, N> for PathTchebycheff<'_, G, H, P>
where G: Graph<Weight = [C; N]>, H: Heuristic<G::State, [C; N]>, C: Cost + ExactArith<Exact = BigUint>, P: Fn(&G::State) -> bool,

Source§

type Solution = Vec<<G as Graph>::State>

The solution type.
Source§

fn minimize( &mut self, scalarization: &Scalarization<C, N>, ) -> Option<(Vec<G::State>, [C; N])>

Minimizes scalarization.score over all solutions.

Auto Trait Implementations§

§

impl<'a, G, H, P> Forget for PathTchebycheff<'a, G, H, P>

§

impl<'a, G, H, P> Freeze for PathTchebycheff<'a, G, H, P>
where &'a G: Freeze, H: Freeze, <G as Graph>::State: Freeze, P: Freeze,

§

impl<'a, G, H, P> Move for PathTchebycheff<'a, G, H, P>

§

impl<'a, G, H, P> RefUnwindSafe for PathTchebycheff<'a, G, H, P>

§

impl<'a, G, H, P> Send for PathTchebycheff<'a, G, H, P>
where P: Send, H: Send, &'a G: Send, <G as Graph>::State: Send,

§

impl<'a, G, H, P> Sync for PathTchebycheff<'a, G, H, P>
where P: Sync, H: Sync, &'a G: Sync, <G as Graph>::State: Sync,

§

impl<'a, G, H, P> Unpin for PathTchebycheff<'a, G, H, P>
where P: Unpin, H: Unpin, &'a G: Unpin, <G as Graph>::State: Unpin,

§

impl<'a, G, H, P> UnsafeUnpin for PathTchebycheff<'a, G, H, P>

§

impl<'a, G, H, P> UnwindSafe for PathTchebycheff<'a, G, H, P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.