Skip to content
ipc2026-numericPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

nplanner — IPC 2026 Numeric Track Submission

C++17 numeric planner with a tight ppmajal-driven JSON bridge for PDDL parsing. Single self-contained binary, no LP/SMT runtime dependencies. Builds and runs on a stock Ubuntu 20.04 / 22.04 install with g++ and openjdk-21-jdk-headless.

Build

./compile

Compiles the Java JSON bridge (against the ppmajal jars bundled in tools/ppmajal-json-bridge/lib/) and the C++ planner. Produces build/nplanner and makes the run-* scripts executable.

Run

Every run-* script takes three positional arguments:

./run-lnp-<track>-<N>  <domain.pddl>  <problem.pddl>  <plan_out>

Output plan is the standard IPC format (one action per line). Exit code is 0 on success, 1 if unsolved, ≥ 2 on usage / parse errors.

Configurations

Four entries: at most two per (fragment, track) per IPC 2026 rules. All entries share the same build/nplanner binary; per-config behaviour is selected by the planner CLI flags inside each script.

Fragment Track Script Strategy
LNP SAT run-lnp-sat-1 Three-phase portfolio (--track sat)
LNP SAT run-lnp-sat-2 Anytime restart (--search anytime)
LNP Agile run-lnp-agile-1 Novelty-2-first + GBFS fallback (--track agile)
LNP Agile run-lnp-agile-2 Dual-queue + helpful actions (--search dq)

SNP is a strict subset of LNP and the same planner handles both, so LNP configurations cover the SNP domains in the entire benchmark set without needing separate SNP-restricted entries.

Architecture

Grounder (src/grounder/). Walks the lifted task over object tuples respecting type hierarchies, with static-atom detection and post-grounding compaction (drops static atoms and var-direction- Ignore numeric variables that no action mutates and no goal / precondition reads). Lazy enumeration for static predicates and functions — only tuples appearing in :init are materialised.

Heuristics (src/search/heuristic.h).

  • h_add_numeric — Hoffmann h_add with numeric-aware precondition costing. Multi-variable linear-LHS Cmps decomposed into (var, sign) contributors charged the per-variable max effective rate. Helpful-action variant adds numeric-direction-helpful actions.
  • h_mrp_numeric — multi-rep relaxed plan with action-chain propagation; sharper gradient on chained-numeric LNP domains where plain h_add saturates.

Search engines (src/search/search.cc).

  • Plain GBFS over h_add_numeric and over h_mrp_numeric (SAT portfolio phases 1 and 2).
  • Multi-queue GBFS — preferred / width-1 novelty / width-2 novelty / normal, round-robin (SAT phase 3 and Agile phase 1).
  • Dual-queue GBFS with helpful actions (--search dq).
  • Anytime restart — plain GBFS (≤ 30 s) → dual-queue GBFS → width-2 novelty multi-queue cascade for the first plan, then descending- weight bounded WA* refinement (Richter–Westphal–Helmert SoCS 2010 Joy-of-Forgetting) for plan-cost reduction (--search anytime).

Memory management. State numeric values stored as float32 to halve per-node heap. malloc_trim(0) between SAT / Agile portfolio phases so phase-2 allocation does not compound phase-1 RSS. Per-task node cap based on post-compaction state size keeps the search frontier inside the 8 GB IPC memlimit.

Sound state-dominance pruning. DominanceClosed.admit prunes states dominated in direction (Max / Min) within atom-hash buckets. Enabled on all search engines. Per-task bucket-pathology guard auto-disables on tasks where the bucket-key discriminating dimensions (n_atoms + n_equal_vars) drop below 5, preventing O(N²) frontier walks on tasks with too few discriminating dimensions to make bucket lookups effective.

Track dispatch

  • SAT (--track sat) — time-budgeted three-phase portfolio: plain GBFS over h_add → plain GBFS over h_mrp → width-2 novelty multi-queue. Each phase exits cleanly on the node cap, letting the next phase try. Phases 1 and 2 get 15 % of the search budget each; phase 3 (novelty) takes the remainder to escape long plateaus at the IPC 1800 s budget.
  • Agile (--track agile) — no-refinement two-phase: width-2 novelty multi-queue (70 % budget) → plain GBFS fallback. Returns immediately on first plan; the plan is written at search return so wall-time equals first-plan time.

File layout

nplanner/
├── compile             # build entry point
├── Recipe              # Apptainer recipe
├── README.md           # this file
├── run-lnp-<track>-<N> # four entries (sat-1/2, agile-1/2)
├── src/                # C++17 planner sources
│   ├── grounder/
│   ├── parser/
│   ├── search/
│   └── util/
└── tools/              # ppmajal → JSON bridge (Java) + bundled jars

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages