In order to alleviate traffic congestion and construct green traffic system,this paper researches the system optimization problem and proposes a two-stage model in the traffic system with ridesharing.The travel modes are split,and user equilibrium model and system optimal model for traffic assignment are constructed.An efficient algorithm is implemented to solve the problem.The numerical example illustrates the system optimal effect based on time cost and emission cost.Additionally,the change of traffic vol...