The research development a mathematical model to optimize the size of a liner fleet, given demand in ports on the service route. A variety of real cases are also performed to demonstrate the ability of the model to deal with multi-route and multi-period problems.