pub struct WeightedSum<W> {
pub weight: u32,
pub heuristic: W,
}Expand description
The weighted-sum heuristic of the paper’s Section 5 for
boa_star_anytime_ws: a scalar lower bound heuristic(s) on
c1 + weight · c2 of every path from s to a goal.
The exact one is a single-objective Dijkstra from the goal with edge
cost c1 + weight · c2; any admissible bound is sound. A state for
which heuristic returns None is treated as a dead end.
Fields§
§weight: u32The weight w > 0 of the second objective.
heuristic: WThe lower bound on c1 + weight · c2.
Trait Implementations§
Source§impl<W: Clone> Clone for WeightedSum<W>
impl<W: Clone> Clone for WeightedSum<W>
impl<W: Copy> Copy for WeightedSum<W>
Auto Trait Implementations§
impl<W> Forget for WeightedSum<W>
impl<W> Freeze for WeightedSum<W>where
W: Freeze,
impl<W> Move for WeightedSum<W>
impl<W> RefUnwindSafe for WeightedSum<W>where
W: RefUnwindSafe,
impl<W> Send for WeightedSum<W>where
W: Send,
impl<W> Sync for WeightedSum<W>where
W: Sync,
impl<W> Unpin for WeightedSum<W>where
W: Unpin,
impl<W> UnsafeUnpin for WeightedSum<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WeightedSum<W>where
W: 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