Abstract. is paper focuses on the optimization of container shipping network and its operations under changing cargo demand and freight rates. e problem is formulated as a mixed integer non-linear programming problem (MINP) with an objective of maximizing the average unit ship-slot pro t at three stages using analytical methodology.e issues such as empty container repositioning, ship-slot allocating, ship sizing, and container con guration are simultaneously considered based on a series of the matrices of demand for a year. To solve the model, a bi-level genetic algorithm based method is proposed. Finally, numerical experiments are provided to illustrate the validity of the proposed model and algorithms. e obtained results show that the suggested model can provide a more realistic solution to the issues on the basis of changing demand and freight rates and arrange a more e ective approach to the optimization of container shipping network structures and operations than does the model based on the average demand.