Skip to content

jendrikseipp/batch-pddl-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch PDDL Generator

Specify PDDL generator parameters and their value ranges and let BPG generate PDDL tasks for you.

Installation

  • Install uv.

  • Clone repo with PDDL generators, and build the generators:

    git clone [email protected]:AI-Planning/pddl-generators.git
    cd pddl-generators
    ./build_all
    

Usage

Generate the Cartesian product of instances over the given parameter values. For example, when you specify the following domain

Domain(
    "tetris",
    "generator.py {rows} {block_type} {seed}",
    [
        get_int("rows", lower=4, upper=8, step_size=2),
        get_enum("block_type", ["1", "2", "3"], "1"),
    ],
),

the command

uv run src/generate-instances.py <path/to/generators> tetris /tmp/tasks

will generate instances at /tmp/tasks for the following combination of rows and blocks:

[(4, 1), (4, 2), (4, 3), (6, 1), (6, 2), (6, 3), (8, 1), (8, 2), (8, 3)]

Finding Duplicate Tasks

After generating the benchmark tasks, you might want to run the find-duplicate-instances.py script to detect duplicates.

About

Python library for creating sets of PDDL tasks

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •