Berth Allocation Under Uncertainty: Handling Vessel Delays Gracefully
A berth plan is built days ahead from arrival times that are almost always wrong. Here is how terminals plan for delays instead of being surprised by them, and why plan stability matters as much as quay utilisation.


Every container terminal publishes a berth plan: which vessel goes to which stretch of quay, when it is expected to berth and when it should leave. The plan is built days in advance from the estimated arrival times that shipping lines send. Those estimates are almost never exactly right.
A vessel delayed by weather or by congestion at its previous port arrives hours late. Another one, sailing faster to recover its schedule, turns up early. A crane breaks down and a call that should take eighteen hours takes twenty-six. Each of these changes pushes into the next vessel's slot, and a plan that looked comfortable on Monday is in pieces by Wednesday.
The question for a terminal planner is not how to build a perfect plan. It is how to build one that bends without breaking, and how to repair it when it does break without upsetting everyone downstream.
§ 01The Berth Allocation Problem in Brief
In operations research terms, the berth allocation problem assigns each arriving vessel a position along the quay and a start time. On a discrete quay the berths are fixed slots. On a continuous quay a vessel can moor anywhere its length fits, which gives more flexibility and a much larger problem.
The objective is usually to keep vessels from waiting while using the quay as fully as possible. Real terminals add more detail. Handling time depends on where the vessel moors, because a berth close to the yard blocks that hold its export containers means shorter truck trips. It also depends on how many quay cranes are assigned, so berth allocation is closely tied to crane assignment and crane scheduling. Tidal windows and draft limits rule out some positions at some hours.
Even the deterministic version, with every arrival time known, is NP-hard. Adding uncertainty does not make it easier. It changes what a good answer looks like.
§ 02Where the Uncertainty Comes From
Arrival times are the obvious source. Weather, delays at earlier ports in the rotation, canal or strait queues and deliberate speed changes all move the actual arrival away from the estimate. The further ahead the plan looks, the wider the spread.
Handling times are the second source and are often underestimated. The number of moves can change when bookings are updated late. Cranes break down, labour shifts start late, and yard congestion slows the trucks that feed the cranes. A long call with many moves has more room to slip than a short one.
The two interact. A late arrival is manageable if the previous vessel leaves early. It becomes a cascade when the previous vessel is also running long, and the next one is arriving on time.
§ 03Three Ways to Plan for Delays
The first approach is buffers. The planner leaves slack between consecutive vessels on the same berth, so that a moderate delay is absorbed without moving anyone else. Buffers are simple and transparent. Their cost is quay time left idle when everything runs on schedule, and on a busy terminal idle quay time is expensive. The useful refinement is to size buffers by risk: more slack after a long call or a vessel with a poor punctuality record, less after a short, reliable one.
The second approach is reactive rescheduling. The terminal keeps a tight plan and re-plans when updated arrival estimates or progress reports come in. This makes good use of the quay, but every re-plan has a cost of its own. Crane gangs, truck schedules, yard pre-stacking and the shipping lines' own plans all depend on the published berth times. A plan that changes every few hours is hard to work with, even if each version is mathematically better than the last. We discussed this trade-off between a quick repair and a full re-optimisation in an earlier post on schedule disruptions.
The third approach builds the uncertainty into the model. Stochastic models optimise the expected outcome over a set of scenarios for arrival and handling times. Robust models look for a plan that stays acceptable across a whole range of possible delays, not just the average case. Both produce plans that place buffers where the risk is, rather than spreading them evenly. They need more data and more computing time, and their output is harder to explain to the people who have to follow it.
§ 04Stability Is an Objective, Not a Side Effect
Most academic formulations measure waiting time and quay utilisation. In practice, terminals also care about how much the plan moves. A vessel that is told its berth time three times in two days is a problem for its operator, even if it waits no longer in the end.
One practical way to handle this is to put stability into the objective: penalise every change to a vessel's published berth time or position, with heavier penalties as the berthing approaches. Another is a frozen horizon, a window, often the next 12 to 24 hours, inside which the plan is only changed for a real disruption. Beyond the frozen horizon the planner is free to re-optimise.
With both in place, the planner can re-run the model whenever new information arrives without producing a different plan each time.
§ 05Better Arrival Estimates Help Most
The cheapest way to reduce uncertainty is to know more, earlier. Vessel position data from AIS, combined with speed, weather and the vessel's own history, gives arrival predictions that are more accurate than a fixed estimate sent days before. Feeding these updated predictions into the planning cycle narrows the spread the plan has to absorb.
The same information supports just-in-time arrival. If the terminal can tell a vessel that its berth will not be free until a later time, the vessel can slow down and arrive when it is needed instead of waiting at anchor. That saves fuel and emissions, and it shortens the queue the terminal has to manage.
§ 06What to Measure
A terminal that wants to know whether its berth planning copes with uncertainty can track a short list of indicators: the average and worst-case waiting time before berthing, quay utilisation, the gap between planned and actual berthing time, and the number of changes made to each vessel's plan after it was first published.
Waiting time and utilisation pull in opposite directions, and stability pulls against both. There is no single best point. But measuring all three makes the trade-off visible, and a visible trade-off can be managed.
The berth plan will never be exact. The aim is a plan that expects to be wrong, knows where it is most likely to be wrong, and changes no more than it has to.
Not ready for a project? Ask an engineer your question by email. No call needed.
Ask a question

