Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

landmark extraction

35 views
Skip to first unread message

Nicholas Rossetti

unread,
Feb 14, 2025, 7:38:33 AMFeb 14
to Fast Downward
Hello,
I am trying to extract landmarks from a problem using fast downward using different configurations, however without success, do you have an example I can take inspiration from?
Best regards


Informativa sulla Privacy: https://www.unibs.it/it/node/1452

Michael Katz

unread,
Feb 14, 2025, 3:10:17 PMFeb 14
to fast-d...@googlegroups.com
Hi Nicholas,

If you just want to get the landmarks for the initial state of a planning task, I have wrapped up Fast Downward (my extended fork, on pypi) with a function that would give you that:
from forbiditerative import planners
from pathlib import Path

domain_file = Path("your/path/domain.pddl")
problem_file = Path("your/path/problem.pddl")

# Example: getting exhaustive landmarks (https://www.fast-downward.org/Doc/LandmarkFactory) 
landmarks = planners.get_landmarks(domain_file=domain_file, problem_file=problem_file, method = 'exhaust')
print(landmarks)

--
You received this message because you are subscribed to the Google Groups "Fast Downward" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fast-downwar...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fast-downward/c921ded9-9956-4232-aa72-14cb359f0f10n%40googlegroups.com.

Clemens Büchner

unread,
Feb 17, 2025, 7:58:20 AMFeb 17
to 'Nicholas Rossetti' via Fast Downward
Dear Nicholas,

you can run Fast Downward with verbosity DEBUG in the landmark
generation component to print the landmark graph in DOT format which can
be visualized using Graphviz. For example:

./fast-downward.py /path/to/domain.pddl /path/to/problem.pddl \
--search "lazy_greedy([landmark_sum(lm_X(verbosity=debug))])"

where lm_X can be one of {lm_rhw, lm_hm, lm_exhaust, lm_zg}. You will
find the line "Dumping landmark graph:" followed by the DOT string in
the logs. (This was introduced not too long ago, so make sure you're
using one of the latest releases for this to work.) Maybe DOT is
overkill for what you're actually looking for. If so, consider looking
at `src/search/landmarks/util.cc` to see how the DOT string is generated
in the function `dump_landmark_graph()` to extract exactly the
information you would like.

If this is not what you're looking for, I need more details on what
information you would like to extract in order to help you further.
Don't hesitate to reach out again!

Best regards,
Clemens


On 14.02.25 10:30, 'Nicholas Rossetti' via Fast Downward wrote:
> Hello,
> I am trying to extract landmarks from a problem using fast downward
> using different configurations, however without success, do you have an
> example I can take inspiration from?
> Best regards
>
>
> Informativa sulla Privacy: https://www.unibs.it/it/node/1452 <https://
> www.unibs.it/it/node/1452>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Fast Downward" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to fast-downwar...@googlegroups.com <mailto:fast-
> downward+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/fast-
> downward/c921ded9-9956-4232-aa72-14cb359f0f10n%40googlegroups.com
> <https://groups.google.com/d/msgid/fast-downward/c921ded9-9956-4232-
> aa72-14cb359f0f10n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Nicholas Rossetti

unread,
Feb 17, 2025, 9:12:36 AMFeb 17
to Fast Downward
Dear Michael and Clemens,
thank you so much for your answers,
that's exactly what I was looking for, now I'll try to launch the two systems to see which one is more compatible.


Reply all
Reply to author
Forward
0 new messages