concepts.dm.pdsketch.strips.strips_grounding.GStripsProblem#
- class GStripsProblem[source]#
Bases:
object
A grounded STRIPS task. It is composed of three parts:
The current state, which is a set of propositions.
The goal state, which is a grounded STRIPS classifier.
The operators, which is a list of applicable grounded STRIPS operators.
Methods
compile
()Compile all operators and derived predicates.
Attributes
The relevant facts in the task.
The initial state.
The goal expression.
The list of operators.
The list of regression rules.
The list of derived predicates.
Whether the task is a delete-relaxed task.
The implicit propositions in the goal.
- __init__(state, goal, operators, is_relaxed=False, goal_implicit_propositions=None, regression_rules=None, derived_predicates=None, facts=None)[source]#
- Parameters:
goal (GSBoolOutputExpression)
operators (Sequence[GStripsOperator])
is_relaxed (bool)
regression_rules (Sequence[GStripsRegressionRule] | None)
derived_predicates (Sequence[GStripsDerivedPredicate] | None)
- __new__(**kwargs)#
- derived_predicates: Tuple[GStripsDerivedPredicate]#
The list of derived predicates.
- property facts#
The relevant facts in the task.
- goal: GSBoolOutputExpression#
The goal expression.
- operators: Tuple[GStripsOperator]#
The list of operators.
- regression_rules: Tuple[GStripsRegressionRule]#
The list of regression rules.