This study proposes a framework based on stochastic dynamic programming approach to model the berth allocation problem.
We characterize optimal polices under stochastic arrival and handling times for different types of calling vessels.
We find that the optimal control policy is of threshold type depending on the number of vessels in a certain berth group.
The derived policies can be used at container terminals for the optimal use of their berthing facilities.