Optimal control of maritime container terminals for tactical-operational planning