Research Article

An Adjustment Method for the Customized Trains of the Railway

Algorithm 1

Step1: Built the alternative set of CT
 Step1.1: Determine the number of CTs and the number and the ratio of sleeping train units and seat train units of each train according to equation (1);
 Step1.2: Determine the stop plan of the CT according to equation (2);
 Step1.3: Determine the original departure time period and the passenger demand of the CTs based on the questionnaires.
 Step1.4: The alternatives set of CTs is built BL = {i ∈ [1, nc]};
Step2: The function of CTs selection
(1)The CTs operation scheme set SL = {f [1, ns]};
(2)Z = 0; flag = 0; A = f;
(3)For f = 1 to nsdo
(4)For i = 1 to ncdo
(5)  The can be obtained by the questionnaires;
(6)   For s = 1 to m do
(7)    If equations (6)–(12) cannot be satisfied then
(8)     flag = 1;
(9)     Z1 = Z1 + Equation (5);
(10)    End If
(11)   End For
(12) End For
(13)If flag == 0
(14)  Z2 = function2 (f);
(15)End If
(16)If Z2 ! = Null then
(17)  Z′ = Z1 − Z2;
(18)  If Z′ > Z then
(19)   Z = Z′; A = f;
(20)  End If
(21)End If
(22)End For
Step3: The function of the train adjustment Z2=function2 (A)
(1)Nadj = number of delayed trains, including the CTs.
(2)For i = 1 to Nadj do
(3)For s = 1 to m do
(4)  If then
(5)   Totaladj = 100000;
(6)   For u = 1 to 3 do
(7)    If the constraints of the strategy u is satisfied then
(8)     If Tu < TotaladjThen
(9)      Totaladj = Tu;
(10)      ;
(11)     End If
(12)    End if
(13)   End for
(14)  End if
(15)End for
(16)If equations (14)–(16) cannot be satisfied then
(17)  A = Null;
(18)  Break;
(19)End if
(20)End for
(21)Return Z2 = Equation (13);