This study attempts to optimize the wagon flow organization of railway terminal with multiple marshalling stations and balance the disintegration and marshalling ability of each shunting yard.Firstly,we propose a mathematical programming model,it considers some constraints indicating the train formation capacity of marshalling station,the number of wagons transshipping in bottleneck railways,and the objective function of which is minimizing the total cost of wagon flow moving,accumulation,reorganization and deviation between actual capacity utilization and expected capacity utilization of shunting yard.Secondly,the initial matching scheme between train,marshalling station,and shunting yard is given by the train receiving and departure capacity of marshalling station.And the matching scheme is updated by the capacity of wagons transship in bottleneck railways,wagons accumulation,train makeup,and train breakup.After that,the matching scheme is expressed by double integer coding.And then the five phase updating approachis used to find the optimal matching scheme.Finally,the experimental scenarios are set up,and the train and wagon flow allocation scheme considering marshalling station work division is obtained by the proposed approach.The results show that the cost of train and wagon flow allocation scheme considering marshalling station work division reduces by 9.5%,and the deviation of the capacity utilization ratio of the shunting yard reduces by 16.6%.