Skip to main content

bfws_r

Function bfws_r 

Source
pub fn bfws_r<P>(problem: &P, k: usize) -> SearchResult<P::Action>
where P: RelaxedPlan, P::State: Hash + Eq,
Expand description

BFWS(f5) with f = ⟨w_{#g,#r}, #g⟩ (Lipovetzky & Geffner, AAAI 2017): like bfws, but novelty is computed separately for each pair of #g and #r.

#r counts the relaxed-plan features reached on the way to a state. The relaxed plan comes from RelaxedPlan::relaxed_plan_features, computed at the initial state and again at every state where #g drops, as in LAPKT’s BFWS-f5. Features already true in the state the relaxed plan was computed from are not counted. #r is path-dependent: it counts every relevant feature true in some state since that recomputation.

Complete on finite state spaces.

§Panics

Panics if k is 0.