Skip to content

About

Hierarchical planning problems in HDDL 2.1 with time: generators, problems, harness and results

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Klimax benchmarks

Hierarchical planning problems in HDDL 2.1 with what the benchmarks of the HTN tracks of the IPC do not have: time. Generators with a seed and a size, the problems they give, a harness that runs any planner of Unified Planning on them with the same limits, and the results.

They are made to measure Klimax against other planners, and are not written for it: every problem is built with Unified Planning, so that every engine that takes temporal hierarchical problems gets the same one, and is also given as HDDL files.

Status: a first set, with time, and a family for each feature of HDDL 2.1 that no public benchmark has.

Families

Forty problems: four families of ten, of growing size (p01 to p10; the seed is the size). Each has durative actions and an initial task network that does not order its tasks, so that a plan may run actions at once.

Family What it is What it has
transport Trucks deliver packages over roads of some length durations from a function; a recursive task (get-to)
satellite A satellite takes images of sites that are visible only for a while timed initial literals; conditions over all
workshop Pieces go through two machines in order; a machine does one piece at a time a shared resource; actions of different tasks at once
cellar Fuses are mended by the light of matches that burn for a while actions that must overlap: no plan with one action after another

Families by feature

Thirty-six problems in features/: six families of six, each for a feature of HDDL 2.1 that neither the IPC benchmarks nor the numeric one of Quenard et al. have (as klimax --check finds them). In each family p01 to p05 have a plan, of growing size, and p06 has none (features/expected.tsv), to catch a planner that claims "unsolvable" falsely or gives a plan for an impossible task. They are written as HDDL by generators/features.py: Unified Planning does not express orderings between time points, durative methods or constraints on states.

Family Feature What it is Without a plan (p06)
deliveries object fluents Robots deliver packages; where each is, is an object a place no road reaches
couriers action costs, a metric to minimize Couriers bring parcels over roads that cost a depot no road goes into
lamps conditional effects A switch lights a lamp and turns some others off two lamps whose switches turn each other off
meetings orderings between time points The two talks of a meeting start at once a worker who meets itself
shifts durative methods, their durations A shift of three jobs may last up to a limit a worker twice in a shift
rooms constraints on states A room is lit just before someone walks in; lights are dimmed to save power a light dimmed before the visit

FEATURES.md says which features of HDDL 2.1 each family uses.

Layout

  • generators/features.py: the families by feature, written as HDDL (features/<family>/domain.hddl, pNN.hddl and features/expected.tsv).
  • generators/temporal.py: the generators. transport(size, seed) and the others return a HierarchicalProblem of Unified Planning; run as a script it writes every problem as HDDL.
  • temporal/<family>/domain-pNN.hddl and pNN.hddl: the problems, as Unified Planning writes them in HDDL (a domain file per problem: only its name changes within a family).
  • tools/run.py and tools/one.py: the harness.
  • results/: what was measured, as CSV.

Running it

With Unified Planning, up-klimax (its validator checks the plans of every planner) and the engines to measure installed:

python generators/temporal.py temporal                 # write the problems again
python tools/run.py --engines klimax,aries --timeout 30 --jobs 10 --cpus 6-15 --out out.csv

Each run is one process on one core, with 8 GB of address space and the time limit for the whole process: it is stopped then, whatever the planner does. A plan counts if it is out in time and the validator accepts it. The CSV has the status (solved, invalid, timeout, failed:...), the seconds, the actions of the plan and when it ends (the makespan).

On the HDDL files, Klimax runs without Unified Planning:

klimax temporal/cellar/domain-p03.hddl temporal/cellar/p03.hddl --timeline

Results

At 30 s per problem, one core and 8 GB (results/2026-11-26-temporal.csv; Klimax at b93e6de, Aries as up-aries 0.5.0):

Family Klimax Aries
transport 10 0
satellite 10 10
workshop 10 10
cellar 10 10
Total 40 of 40 30 of 40
  • In transport Aries runs out of time in five problems and gives a plan in the five smallest, which the validator rejects: each drive lasts 0.1 more than the problem says (the length of its road). They are counted as not solved.
  • In the thirty that both solve, the plans of Klimax end at 3218 in all and those of Aries at 3314.
  • No verifier of temporal hierarchical plans existed: the plans of every planner are checked by Klimax's, which follows the plan with the evaluator of Kairos' validator and shares no code with Klimax's searches. A second, independent one is welcome.

By feature

The families by feature, at 30 s per problem, one core and 8 GB, with the planners that read HDDL (the harness of Klimax's comparison with the planners of IPC 2023, on the HDDL files; Klimax at its version of 2026-11-27, results/2026-11-27-features.csv). The plans are verified by Klimax's verifier: the IPC one reads only HDDL 1.0. Counted: the five problems with a plan of each family.

Family Klimax Aries PANDA PANDA ppro PANDA lamda Linear-Simple Linear-Complex SIADEX
couriers 5 0 3 5 5 5 5 0
deliveries 5 0 0 0 0 0 0 0
lamps 5 0 3 3 3 3 3 1
meetings 5 0 0 0 0 0 0 0
rooms 5 0 0 0 0 0 0 0
shifts 5 0 0 0 0 0 0 0
Total 30 of 30 0 6 8 8 8 8 1
  • No planner gives a plan for the problems without one (p06).
  • Aries' executable reads none of these families, and through Unified Planning they cannot be expressed (orderings between time points, durative methods and constraints on states are not in it).
  • Planners that ignore the metric still solve couriers: their plans are valid, not the cheapest. In lamps, the others solve the three smallest.

License

Apache-2.0.

About

Hierarchical planning problems in HDDL 2.1 with time: generators, problems, harness and results

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages