In the formula, µ refers to the handling service rate. S refers to the number of handling service desks. c_s refers to the cost of each service desk handling a ship in the unit time. c_w refers to the cost of every ship staying in the handling system in the unit time. This model is to strive for when the total cost of handling to a minimum, the optimal service rate of handling, and the optimal number of handling service desks.