Skip to content

00Personal projectNov 2026 – now

LoadPlan

A 3D container‑loading planner in C++17, with Python bindings

Personal project

Data model, BR1–BR7 parser and JSON I/O built

BELTLAYER 1LAYER 2ABC

0/12 placed

Fig. 00The placement demo, from above. Drop cartons on the belt. The amber slot is the one chosen; dashed slots were feasible and passed over.

What it is

Given a container and a list of cartons, decide where each carton goes. C++17 core, pybind11 bindings, pytest.

THPACK FILEBR1–BR7PARSEROR-Library formatPROBLEMcontainerbox typesPLANNERextreme pointwall buildingPLACEMENTSpositionorientationJSON INVALIDATORoverlap · boundsorientation · supportJSON OUTSOLID: BUILT · DASHED: NEXT
Fig. 01Data flow. Solid parts are built: the data model, the BR1–BR7 parser and JSON in and out. Dashed parts come next.

Built

  • Data model: box types, container, placements.
  • Parser for OR-Library thpack (Bischoff and Ratcliff BR1–BR7).
  • JSON in and out.

Next

  • Validator: overlap, bounds, orientation, support.
  • Extreme-point and wall-building heuristics, then a BR1–BR7 table.
  • A simulated arm loading in the planned order.

Prototype due Dec 6; Stage 1 due Jan 31.

OVERLAPBOUNDSORIENTATIONSUPPORTAMBER MARKS WHAT EACH CHECK CATCHES
Fig. 02What the validator checks. A placement list is only a plan if nothing overlaps, everything is inside, every carton is turned a way it allows, and nothing hangs in the air.

The demos

The one above fills by a fixed rule: bottom layer, back row, far end first. The home page's dock runs a small extreme-point search on BR1 problem 1's container and box types at full size. Neither is the C++ planner.

LAYER 1LAYER 2030201060504090807121110ABCA SLOT IS FEASIBLE WHEN IT IS EMPTY AND HAS A CARTON (OR THE FLOOR) UNDER IT
Fig. 03The fill order of the demo above. The demo at the top of this page fills a 3 × 2 × 2 container with this fixed rule. It is a demo rule, separate from the planner.