Skip to content

Commit

Permalink
[trivial] Clean up documentation of iterated search.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensBuechner committed Jul 16, 2024
1 parent 7aae43f commit 308812c
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/search/search_algorithms/iterated_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ class IteratedSearchFeature
"Note 1",
"We don't cache heuristic values between search iterations at"
" the moment. If you perform a LAMA-style iterative search,"
" heuristic values will be computed multiple times.");
" heuristic values and other per-state information will be computed"
" multiple times.");
document_note(
"Note 2",
"The configuration\n```\n"
Expand All @@ -173,18 +174,12 @@ class IteratedSearchFeature
"lazy_wastar([ipdb()],w=2), lazy_wastar([ipdb()],w=1)])\"\n"
"```\nwould perform the preprocessing phase of the ipdb heuristic "
"5 times (once before each iteration).\n\n"
"To avoid this, use heuristic predefinition, which avoids duplicate "
"preprocessing, as follows:\n```\n"
"--evaluator \"h=ipdb()\" --search "
"\"iterated([lazy_wastar([h],w=10), lazy_wastar([h],w=5), lazy_wastar([h],w=3), "
"lazy_wastar([h],w=2), lazy_wastar([h],w=1)])\"\n"
"To avoid this, use heuristic predefinition, which avoids "
"duplicate preprocessing, as follows:\n```\n"
"\"let(h,ipdb(),iterated([lazy_wastar([h],w=10), "
"lazy_wastar([h],w=5), lazy_wastar([h],w=3), lazy_wastar([h],w=2), "
"lazy_wastar([h],w=1)]))\"\n"
"```");
document_note(
"Note 3",
"If you reuse the same landmark count heuristic "
"(using heuristic predefinition) between iterations, "
"the path data (that is, landmark status for each visited state) "
"will be saved between iterations.");
}

virtual shared_ptr<IteratedSearch> create_component(const plugins::Options &options, const utils::Context &context) const override {
Expand Down

0 comments on commit 308812c

Please sign in to comment.