Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
serivan authored Nov 20, 2023
1 parent f9caa9c commit 9f22b64
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,32 @@ If you need an older version, you can install it with:
pip install up-lpg==<version number>
```

You can test it using:
```
python up_test_cases/report.py lpg lpg-anytime lpg-repairer
```

## Usage

### Solving a planning problem
You can for example call it as follows:

```
from unified_planning.shortcuts import *
from unified_planning.engines import PlanGenerationResultStatus
problem = Problem('myproblem')
# specify the problem (e.g. fluents, initial state, actions, goal)
...
planner = OneshotPlanner(name="lpg")
result = planner.solve(problem)
if result.status == PlanGenerationResultStatus.SOLVED_SATISFICING:
print(f'{Found a plan.\nThe plan is: {result.plan}')
else:
print("No plan found.")
```


### Features:
- One shot planning
Expand Down

0 comments on commit 9f22b64

Please sign in to comment.