This paper analyses the delaying discipline of vehicles in both directions along route.A mathematical model which can optimize the phase separation of the X-by-wire system is established.The phase separation is optimizd,the scope of duration and greenratio is given.The invalid duration and greenratio are avoided.