Berth planning plays an important role in improving the efficiency of a container terminal. This study focuses on the berth template problem (BTP), which determines the berthing windows of the calling ships within a planning horizon (e.g. a week) in a cyclical way. As a mid-term tactical decision problem, BTP provides the decision support for a terminal operator to negotiate the contracts with …