pub fn siw<P: GoalCount>(problem: &P, max_k: usize) -> SearchResult<P::Action>Expand description
Serialized IW (SIW): reaches the goal one subgoal at a time.
From the current state it runs IW(1), IW(2), … up to max_k until a
state with fewer unsatisfied goals (#g) is found, or a goal state. The
plans of these searches are concatenated; each search starts with an
empty novelty table.
This is a simplified SIW. LAPKT’s SIW (after Lipovetzky & Geffner,
ECAI 2012) tracks goal atoms: a subgoal state must keep every goal achieved
so far, and a newly achieved goal is accepted only if the full goal stays
reachable in the delete relaxation without actions that delete achieved
goals. GoalCount exposes only the number of unsatisfied goals, so here
any drop in #g counts. A subgoal may then undo earlier goals or commit to
one that must be undone later, which gives longer plans (blocksworld).
SIW is incomplete: it gives up (plan: None) when no subgoal is reachable
within width max_k. That happens in dead ends left by earlier subplans,
but also in live states whose next subgoal needs a width above max_k.
Node counts add up over all IW runs, failed ones included.