Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackwardsSearch does not support constrained problems #6

Open
simonblauth opened this issue Jul 30, 2022 · 0 comments
Open

BackwardsSearch does not support constrained problems #6

simonblauth opened this issue Jul 30, 2022 · 0 comments

Comments

@simonblauth
Copy link
Contributor

The construction of BackwardSearchGoal fails when goal is a StateConstrainedGoal. Here is a minimal (not) working example:

using PDDL
import SymbolicPlanners as SP

domain = @pddl("(define (domain d)
                (:predicates
                    (something)
                )
                (:action do-something
                    :parameters ()
                    :precondition (and (not (something)))
                    :effect (and something)
                )
                )")
problem = @pddl("(define (problem p) (:domain d)
                 (:init (not (something)))
                 (:goal (and (something)))
                 (:constraints (and))
                 )")

planner = SP.BackwardPlanner(heuristic=SP.HAddR())
planner(domain, initstate(domain, problem), PDDL.get_goal(problem)) # works
planner(domain, initstate(domain, problem), SP.StateConstrainedGoal(problem)) # errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant