|
OMTPlan: Optimal Planning Modulo Theories
|
Public Member Functions | |
| def | __init__ (self, model, encoder, objective=None) |
| def | validate (self, val, domain, problem) |
| Validates plan (when one is found). More... | |
| def | pprint (self, dest) |
| Prints plan to file. More... | |
Public Attributes | |
| plan | |
| cost | |
Private Member Functions | |
| def | _extractPlan (self, model, encoder) |
| Extracts plan from model of the formula. More... | |
| def | _extractCost (self, objective=None) |
| Extracts cost of plan. More... | |
Plan objects are instances of this class. Defines methods to extract, validate and print plans.
|
private |
Extracts cost of plan.
| objective | Z3 object that contains objective function (default None). |
|
private |
Extracts plan from model of the formula.
Plan returned is linearized.
| model | Z3 model of the planning formula. |
| encoder | encoder object, contains maps variable/variable names. |
| def planner.plan.Plan.pprint | ( | self, | |
| dest | |||
| ) |
Prints plan to file.
| dest | path to destination folder. |
| def planner.plan.Plan.validate | ( | self, | |
| val, | |||
| domain, | |||
| problem | |||
| ) |
Validates plan (when one is found).
| val | path to VAL executable. |
| domain | path to PDDL domain file. |
| problem | path to PDDL problem file. |
1.8.11