← All posts

Testing Container Stacking Rules in a Port Twin to Cut Rehandling

In a container yard, boxes are stacked in blocks, several high. Only the top box can be lifted. If the container a truck needs today sits under three others, the crane must move those three first. These extra moves are called rehandles. They use crane time and fuel, and they keep trucks waiting at the block. They rarely show up in a berth schedule, yet they slow the whole terminal.

Stacking rules decide where each container goes when it arrives. A rule may group boxes by vessel, size, weight class or destination. A rule that looks tidy on paper can still create rehandles. If one group holds containers that leave on very different days, the early ones end up buried under the late ones. It is hard to see this by reading a rulebook. It is much easier to see in a replay.

A port twin holds a 3D model of the yard blocks, the stack height limits and the position of cranes and trucks. It receives data from the terminal operating system, which records every container and every move. To test a rule, the planner replays a real week of arrivals and pick-up requests. For each arrival the twin places the box according to the rule. When a pick-up request comes in, it counts the moves needed to reach the box. Then the planner runs the same week with another rule and compares the results.

Take a block that stores import containers collected by truck over five days. Stacking by vessel puts early and late pick-ups in the same stack. The replay may show that most rehandles pile up in one block on the busiest day. The planner can then try a rule that uses the pick-up appointment day as the main grouping, and check the result in rehandles per block, crane travel and truck queue length.

The test must stay honest about uncertainty. Pick-up appointments change, so the planner should also replay the week with some pick-ups moved by a day, and see whether the new rule still holds up. The rule must also respect fixed constraints, such as slots with power for refrigerated containers and the separation distances for dangerous goods. A rule that cuts rehandles but breaks these constraints is not usable.

Before trusting the results, check the baseline. Run the current rule on last week's data and compare the twin's rehandle count with what actually happened. If the numbers differ, fix the model first. When the baseline matches, try the new rule in one block, measure it for a few weeks, and keep the decision with the yard planners. TwinUp builds port twins that bring yard, equipment and gate data into one 3D model, which is the kind of setting where such rule changes can be rehearsed before they reach the yard.

All posts

Frequently asked

What are container stacking rules?

Container stacking rules are the policies that decide where each container is placed in a yard block when it arrives. They may group boxes by vessel, size, weight class, destination or pick-up day. The chosen rule strongly affects how easily a container can be reached later.

What is rehandling in a container yard?

Rehandling means extra crane moves made to lift containers that sit on top of the one that is needed. Only the top box in a stack can be lifted, so a buried container forces the crane to relocate the boxes above it. Rehandles consume crane time and fuel and keep trucks waiting.

How can a port digital twin test stacking rules?

A port digital twin replays a real week of container arrivals and pick-up requests. For each arrival it places the box according to the rule being tested, and for each pick-up it counts the moves needed to reach the container. The planner then runs the same week with another rule and compares the results.

What data does a port twin need for stacking tests?

The twin needs a model of the yard blocks, stack height limits and the positions of cranes and trucks. It also needs terminal operating system data, which records every container and every move. Arrival times and pick-up requests for a real period are the core inputs for the replay.

Why can a tidy stacking rule still cause rehandles?

A rule can look orderly yet group containers that leave on very different days into the same stack. The early pick-ups then end up buried under boxes that leave later. This is hard to spot by reading a rulebook but becomes visible when a real week is replayed.

Which metrics show whether a new stacking rule works?

Useful metrics include rehandles per block, crane travel distance and truck queue length at the block. Comparing these between the current rule and the new rule over the same week shows the real effect. Looking at the busiest day separately often reveals where problems concentrate.

How do planners handle uncertainty in pick-up appointments?

Pick-up appointments often change, so a good test also replays the week with some pick-ups moved by a day. If the new rule still performs well under these shifts, it is more robust. A rule that only works with perfect appointment data is risky to adopt.

What constraints must a stacking rule respect?

A rule must respect fixed yard constraints such as slots with power for refrigerated containers and separation distances for dangerous goods. A rule that cuts rehandles but breaks these constraints cannot be used. The twin should include these constraints so that tests reflect real operating limits.

How do you check that the twin is accurate before trusting it?

Run the current stacking rule on last week's data and compare the twin's rehandle count with what actually happened. If the numbers differ, the model should be corrected first. Only when the baseline matches should results for a new rule be trusted.

Who uses stacking rule simulations in a port?

Yard planners and terminal operations teams use these simulations to evaluate rule changes before applying them. The twin supports their decisions with measured results, while the final decision stays with the planners who know the yard.

How should a terminal start rolling out a new stacking rule?

After the baseline check, the terminal can try the new rule in a single block and measure results for a few weeks. This limits risk and gives real data to compare with the twin's prediction. If results hold, the rule can be extended to more blocks.

Does TwinUp offer port digital twins?

Yes, TwinUp builds port twins that bring yard, equipment and gate data into one 3D model. In that setting, planners can rehearse changes such as stacking rules before applying them in the yard.