Optimization method and device of crew replanning for high-speed railway in typical scenarios

Information

  • Patent Grant
  • 11694134
  • Patent Number
    11,694,134
  • Date Filed
    Thursday, June 23, 2022
    2 years ago
  • Date Issued
    Tuesday, July 4, 2023
    a year ago
Abstract
Provided herein are a method and device of crew replanning for high-speed railway typical scenarios, and an electronic device and a computer-readable storage medium. The method includes: building a high-speed railway crew connection network; establishing a model for high-speed railway crew replanning; decomposing the model into a first sub-model for team leaders and a second sub-model for general crew members; and designing a Lagrangian relaxation algorithm to solve the first sub-model and the second sub-model.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of priority from Chinese Patent Application No. 202110715764.9, filed on Jun. 28, 2021. The content of the aforementioned application, including any intervening amendments thereto, is incorporated herein by reference in its entirety.


TECHNICAL FIELD

This application relates to high-speed railway crew scheduling, and more specifically to an optimization method and device of crew replanning for high-speed railway typical scenarios, and an electronic device and a computer-readable storage medium.


BACKGROUND

Crew scheduling is an important part of railway passenger transport operation management, is directly associated with the service quality of passenger transportation and the safety of train operation. With the rapid development of the high-speed railway in China, crew replanning during railway operation becomes increasingly frequent. Due to the unique operation and organization complexity, the high-speed railway has higher requirements for crew replanning. How to scientifically and reasonably replan the crew scheduling to achieve the scientific decision-making and overall management is urgently needed to be solved in the high-speed railway operation and management.


Traditionally, the crew scheduling plan is established manually, which often struggles with large labor intensity, low efficiency and poor accuracy, and thus fails to meet the current requirements of the high-speed railway operation and development. In some cases, a real-time adjustment is required to be made to the crew scheduling, which requires higher professional competence. In view of this, the manual establishment generally cannot arrive at the desired crew scheduling, thereby seriously affecting the service quality and the subsequent crew scheduling.


However, the existing researches mainly focus on the anonymous crew replanning, and it has been rarely studied on crew replanning for each crew member. Moreover, the existing researches are predominated by the flight crew replanning, in which with the replanning period set to one day, and a multi-commodity flow model with an objective of cost minimization is established for optimizing crew replanning in combination with preprocessing, D-W decomposition and branch-and-bound algorithm. Among the relatively few railway crew replanning methods, the train delay is mainly used as a scenario for the crew replanning, and solved through column generation and Lagrangian relaxation. The existing researches fail to take the following factors in to consideration: the current working status of individual crew members, the individual difference between crew members, the cooperating preference of different crew members, and the responsibility preference of each crew member. In addition, the replanned crew rostering also needs to be artificially delivered to each crew member, failing to enable the completely automatic replanning.


SUMMARY

In order to solve the problems mentioned above, the present disclosure provides an optimization method and device of crew replanning for high-speed railway typical scenarios, and an electronic device and a computer-readable storage medium.


The technical solutions of the present disclosure are described as follows.


In a first aspect, this application provides an optimization method of crew replanning for high-speed railway typical scenarios, comprising:


(1) building a high-speed railway crew connection network;


(2) establishing a model for high-speed railway crew replanning;


(3) decomposing the model into a first sub-model for team leaders and a second sub-model for general crew members; and


(4) designing a Lagrangian relaxation algorithm to solve the first sub-model and the second sub-model;


wherein the high-speed railway crew connection network is built through steps of:


performing node establishment; and


establishing a connection arc;


wherein the node establishment comprises steps of:


denoting a day before a start of a scheduling cycle as d=0; denoting moment 0:00 of d=0 as time zero, in minutes; wherein for ∀e∈E, a start time tdestart is expressed as tdestart=testart+1440×de, and an end time tdeend is expressed as tdeend=teend+1440×de; for ∀eT∈ET, a start time tdeTstart is expressed as tdeTstart=teTstart1440×4deT, and an end time tdeTend is expressed as tdeTend=teTend+1440×deT; and


establishing nodes respectively corresponding to an initial state of each crew member, a crew duty of each day within the scheduling cycle and a replanning crew duty according to schedule day;


the node establishment further comprises:


establishing virtual crew base source nodes m1O, m2O, . . . , mnO for all crew bases in a crew area involved in crew scheduling, respectively, and denoting a set of the virtual crew base source nodes as VO; wherein there is a unique crew base for ∀r∈R;


establishing virtual crew base end nodes m1D, m2D, . . . mnD for all crew bases in the crew area involved in the crew scheduling, respectively, and denoting a set of the virtual crew base end nodes as VD; and


for ∀e∈R, de∈{d|d=1 . . . ND−1} and ∀eT∈ET, deT ∈{d|d=1 . . . ND−1}, establishing an intermediate node ved corresponding to the crew duty and an intermediate node veTd of the replanning crew duty; wherein the intermediate node ved and the intermediate node veTd each has seven attributes, respectively start position, start time, end position, end time, duration, schedule day serial number and crew preference;


denoting a set of intermediate nodes of all crew duties in the scheduling cycle as VmidE;


denoting a set of intermediate nodes of all replanning crew duties as VmidT;


denoting a set of all intermediate nodes as Vmid; and


denoting a set of all nodes as V;


wherein R represents a set of all crew members; r is any one of all crew members; D is a set of all schedule days in the scheduling cycle, D={d|d=1, 2, 2, . . . , ND}, wherein d is any one of the schedule days, and ND is the total number of days in the scheduling cycle;


E represents a set of all crew duties in the scheduling cycle; e is any one of all crew duties; sestart is a start position of the crew duty e; seend is an end position of the crew duty e; testart is a start time of the crew duty e; teend is an end time of the crew duty e; te is a duration of the crew duty e; de represents a schedule day serial number of the crew duty e; and ke represents the crew preference of the crew duty e;


ET represents a set of all replanning crew duties in the scheduling cycle; eT is any one of all replanning crew duties; seTstart of the replanning crew duty eT; seTend is an end position of the replanning crew duty eT; teTstart represents a start time of the replanning crew duty eT; teTend represents an end time of the replanning crew duty eT; teT represents a duration of the replanning crew duty eT; deT represents a schedule day serial number of the replanning crew duty eT; and keT represents the crew preference of the replanning crew duty eT; and


mn represents a crew base, wherein n is a positive integer;


wherein the connection arc is established as follows:


a) for ∀r∈R, if a crew base to which the crew member r belongs is the same as a start position of ∀e∈E and ∀eT∈ET, and the crew member r conforms to a preference of ∀e∈E and ∀eT∈ET for crew member, establishing a crew On-duty arc (mn0, ved) between a virtual crew base source node mno and the intermediate node ved, or establishing a crew On-duty arc (mno, veTd) between the virtual crew base source node mno and the intermediate node VeTd; and


denoting a set of all crew On-duty arcs as AOn-duty;


b) from the schedule day d=0 to schedule day d=ND−1, for any one-day crew duty and replanning crew duty, if end position of a previous crew duty is the same as start position of a next crew duty, establishing a crew connection arc (ve1d, ve1d) between an intermediate node ve1d and an intermediate node ve2d, a crew connection arc (veTd, ved) between the intermediate node veTd and the intermediate node ved, or a crew connection arc (ved, veTd) between the intermediate node ved and the intermediate node VeTd; and


denoting a set of all crew connection arcs as Aconnection;


c) from the schedule day d=0 to the schedule day d=ND−1, for ∀r∈R, when the end position of an intermediate node, which crew r completed, is different from a start position of the next intermediate node to be completed but the same as a start position of the another intermediate node, establishing a deadheading arc (veid, ve1d) between the intermediate node Ve1d and the intermediate node ve2d, a deadheading arc (veTd, ved) between the intermediate node veTd and the intermediate node ved, or a deadheading arc (ved, veTd) between the intermediate node ved and the intermediate node veTd and


denoting a set of all deadheading arcs as Adeadheading;


d) for ∀r∈R, if the crew base to which the crew member r belongs is the same as an end position of ∀e∈E and ∀eT∈ET, and the crew member r conforms to the crew preference of ∀e∈E and ∀eT∈ET, for crew member, establishing a crew Off-duty arc (ved,mnD) between a virtual crew base end node mnD and the intermediate node ved, or a crew Off-duty arc (veTd, mnD) between the virtual crew base end node mnD and the intermediate node veTd; and


denoting a set of all crew Off-duty arcs as AOff-duty;


e) denoting a set of all arcs as A; and


wherein the high-speed railway crew connection network is expressed as N(V,A).


In an embodiment, the step of “establishing a model for high-speed railway crew replanning” comprises:


establishing an objective function of the model;


wherein an optimization objective of the model is to minimize cost of replanned crew scheduling, and the objective function is expressed as:








min





r

R






p


P
r





c
p
r



x
p
r





+




i


N
C





f
i



y
i



+




r


R
G







i


N
G





h
i
r



z
i
r





;




wherein NC is a set of crew tasks of all crew members; NG is a set of crew tasks of general crew members; Pr represents a set of feasible crew pairings for the crew member r; p is any one of the crew pairings; cpr represents cost required for the crew pairing p∈pr; xpr is a 0-1 decision variable; if the crew member r∈R undertakes the crew pairing p∈pr, xpr is equal to 1; otherwise, xpr is equal to 0; i represents a crew task, fi represents a penalty cost when the crew task i is assigned to one less crew member, and one less crew member is allowed; yi is a 0-1 decision variable, wherein if one less crew member is assigned to perform the crew task i∈Nc, yi is equal to 1; otherwise, yi is equal to 0; RG is a set of the general crew members; hir represents a penalty cost when the crew member r does not undertake the crew task i with a corresponding leader; and zir is a 0-1 decision variable, wherein if the crew member r∈RG does not undertake the crew task i∈NG with the corresponding leader, zir is equal to 1; otherwise, zir is equal to 0;


the cost cpr is calculated as follows:








c
p
r

=


α
r

+




i


N
p





β
i



b
pi
r



+




i


N
p





μ
i



a
pi
r



+


η
r



δ
p
r




;




wherein αr represents a penalty value for the crew member r when deviating from an original crew pairing; NP represents a set of crew tasks included in the crew pairing p; βi represents a cost when crew members deadhead as passengers to the crew task; bppir is a 0-1 variable, wherein if the crew member r is added as a passenger to the crew task i in the crew pairing p, bpir is equal to 1; otherwise, bpir is equal to 0; μi represents a cost of matching preference of the crew task i; αpir is a 0-1 variable, wherein if the crew pairing p∈Pr comprises the crew task i∈N, αpir is equal to 1; otherwise, αpir is equal to 0; ηr represents a penalty coefficient of deviated monthly working hours of the crew member r; and δpr represents deviated of the monthly working hours of the crew member r when undertaking the crew pairing p.


In an embodiment, the step of “establishing a model for high-speed railway crew replanning” further comprises:


establishing constraints for the model;


wherein the constraints include:


a) crew pairing unique constraint, any one of crew members is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,




r

R


;





b) a crew task coverage constraint, for all crew tasks of the leader, all crew tasks of cabin crew members and all crew tasks of safety personnel, there is a matching crew member, expressed as follows:














r


R
L







p


P
r





a
pi
r



x
p
r




=

g
i
L


,




i


N
L



;











r


R
C







p


P
r





a
pi
r



x
p
r




+

y
i


=

g
i
C


,




i


N
C



;
and











r


R
S







p


P
r





a
pi
r



x
p
r




=

g
i
S


,





i


N
S



;







c) a crew member preference constraint, when arranging a task with crew preference, it is needed to meet the crew preference, expressed as follows:











r


R
G








p


P
r






e
pi
rk



x
p
r






d
i
k


,



k

K


,


i


N
G


;





d) cabin and leader matching constraints, a leader-crew matching constraint, expressed as follows:












p


P
r





a
pi
r



x
p
r



-




p


P

π

(
r
)






a

p


σ

(
i
)



π

(
r
)




x
p

π

(
r
)







z
i
r


,



r


R
G



,

i


N

G
;







wherein when the crew member r∈RG does not undertake the crew task i∈NG together with the corresponding leader π(r), zir=1; and


e) a decision variable constraint:

xpr∈{0,1},∀r∈R,p∈Pr;
yi∈{0,1},∀i∈NC; and
zir∈{0,1},∀r∈RG,i∈NG;


wherein RL represents a set of leaders; represents the number of leaders required to undertake the crew task i∈N; NL represents a set of crew tasks of the leader; RC represents a set of cabin; giC represents the number of cabins required to undertake the crew task i∈N; RS represents a set of the safety personnel; giS represents the number of the safety personnel required to undertake the crew task i∈N. NS represents a set of crew tasks of the safety personnel; epirk represents a known 0-1 variable, which indicates that the crew task i∈NG in the crew pairing p has a preference k∈K for the crew member r; if the preference points to males, when the crew member r is male, epirk is equal to 1; otherwise, epirk is equal to 0; dik represents a threshold of the preference k of the crew task i; if the preference points to males, the threshold is equal to the number of male crew members required by the crew task i; K represents a set of preferences of the crew task to crew member assignment; k is any one of the set of preferences; π(r) represents the leader in a crew team corresponding to any general crew member r∈RG, and π(r)∈RL; Pπ(r) represents a set of feasible crew pairings of a leader π(r) corresponding to the crew member r; απ(r) is a 0-1 variable, wherein if the crew pairing p∈Pπ(r) comprises a crew task σ(i)∈N, αpσ(i)π(r) is equal to 1; otherwise, αpσ(i)π(r) is equal to 0; and xpπ(p) s a 0-1 decision variable, wherein if the crew pairing p undertaken by the leader π(r) corresponding to the crew member r∈R belongs to Pπ(r), xpπ(r) is equal to 1; otherwise, xpπ(p) is equal to 0.


In an embodiment, the first sub-model is configured to complete leader crew tasks, and an optimization objective of the first sub-model is to minimize a cost of completing the leader crew tasks, expressed as







min





r


R
L








p


P
r





c
p
r



x
p
r





;





wherein constraints of the first sub-model include:


a) crew pairing unique constraint, any one of leaders is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,




r


R
L



;





b) a crew task coverage constraint, for any one of the leader crew tasks, there is a matching leader to undertake, expressed as follows:











r


R
L








p


P
r





a
pi
r



x
p
r




=

g
i
L


,




i


N
L



;






and


c) a decision variable constraint, expressed as follows:

xpr∈{0,1},∀r∈RL,p∈Pr;


wherein the second sub-model is configured to complete the crew tasks of general crew members, and an optimization objective of the second sub-model is to minimize a cost of completing the crew tasks of general crew members, expressed as follows:








min





r


R
G








p


P
r






c
^

p
r



x
p
r





+




i


N
C





f
i



y
i




;




wherein since the scheduling of the leader is determined after the first sub-model is solved, a value of zir can be determined according to the scheduling of the general crew members, so as to obtain a cost ĉpr for a general crew member r to undertake the crew pairing p expressed as:









c
^

p
r

=


c
p
r

+




i


N
p





h
i
r



z
i
r





;




constraints of the second sub-model include:


a) crew pairing unique constraint, any one of general crew members is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,




r


R
G



;





b) a crew task coverage constraint, for any one of the crew tasks of general crew members, there is a matching general crew member to undertake, expressed as follows:












r


R
C








p


P
r





a
pi
r



x
p
r




+

y
i


=

g
i
C


,




i


N
C



;

and












r


R
S








p


P
r





a
pi
r



x
p
r




=

g
i
S


,




i


N
S



;





c) a crew member preference constraint, wherein when arranging a crew task with a crew member preference, it is needed to meet the crew member preference, expressed as follows:











r


R
G








p


P
r





e
pi
rk



x
p
r






d
i
k


,



k

K


,


i


N
G


;






and


d) a decision variable constraint, expressed as follows:

xpr∈{0,1},∀r∈RG,p∈Pr; and
yi∈{0,1},∀i∈NC.


In an embodiment, the crew task coverage constraint in the first sub-model is relaxed and added into the objective function as a penalty item, and the crew task coverage constraint in the second sub-model and the crew member preference constraint are relaxed and added into the objective function as penalty items;


wherein the first sub-model with the crew task coverage constraint relaxed is expressed as:









Θ
L

(
λ
)

=





r


R
L








p


P
r





(


c
p
r

-




i


N
L





λ
i
L



a
pi
r




)



x
p
r




+




i


N
L





λ
i
L



g
i
L





;








s
.
t
.





p


P
r




x
p
r



=
1

,




r


R
L



;

and









x
p
r



{

0
,
1

}


,



r


R
L



,


p


P
r


;





wherein λiL is a Lagrange multiplier, indicating a cost generated when the leader L undertakes the crew task i;


the second sub-model with the crew task coverage constraint and the crew member preference constraint relaxed is expressed as:









Θ
G

(

λ
,
γ

)

=





r


R
G








p


P
r





(



c
^

p
r

-




i


N
G





λ
i
G



a
pi
r



-




k

K







i


N
G





γ
i
k



e
pi
rk





)



x
p
r




+




i


N
C





(


f
i

-

λ
i
C


)



y
i



+




i


N
G






λ
i
G



g
i
G



+




k

K







i


N
G





γ
i
k



d
i
k






;














s
.
t
.





p


P
r




x
p
r



=
1

,




r


R
G



;












x
p
r



{

0
,
1

}


,



r


R
G



,


p


P
r


;

and












y
i



{

0
,
1

}


,




i


N
C



;






wherein λiC, λiG and γik are respectively a Lagrange multiplier, indicating the cost generated when general crew members undertake the crew task i.


In an embodiment, the first sub-model and the second sub-model are solved using the Lagrangian relaxation algorithm through steps of:


(i) relaxing the crew task coverage constraint in the first sub-model, the crew task coverage constraint in the second sub-model and the crew member preference constraint to form a Lagrangian relaxation problem;


(ii) initializing the number of iterations q to 1; initializing Lagrangian multipliers λiC, λiG and γik to 0; and setting an initial iteration step size αq as k/(q+1), setting the values for the maximum number of iterations Qmax and the minimum upper bound-lower bound interval ∈min;


(iii) solving the Lagrangian relaxation problem using a shortest path solution method to obtain a lower bound of the first sub-model and a lower bound of the second sub-model; adding the feasible crew pairing to a column pool;


(iv) based on continuous update of the column pool, solving the original problem to obtain an upper bound;


(v) calculating an interval between the upper bound and the lower bound of the original problem and determining whether the Lagrangian relaxation algorithm ending condition is met;


if yes, ending the Lagrangian relaxation algorithm;


otherwise, proceeding to step (vi); and


(vi) updating the Lagrangian multipliers using a subgradient method; and returning to step (iii).


In a second aspect, the present disclosure provides a device of crew replanning for high-speed railway typical scenarios, comprising:


a first module for building a high-speed railway crew connection network;


a second module for establishing a model for high-speed railway crew replanning;


a third module for decomposing the model into a first sub-model for team leaders and a second sub-model for general crew members; and


a fourth module for designing a Lagrangian relaxation algorithm to solve two sub-models.


In a third aspect, the present disclosure provides an electronic device, comprising:


a processor;


a memory; and


a computer program;


wherein the computer program is stored on the memory and is configured to be executed by the processor to implement the method for optimizing crew replanning for high-speed railway typical scenarios.


In a fourth aspect, the present disclosure also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program; and the computer program is configured to be executed by a processor to implement the method for optimizing crew replanning for high-speed railway typical scenarios.


Compared to the prior art, the present disclosure has the following beneficial effects.


(1) Compared with the traditional manual crew replanning, the present disclosure constructs an optimization model and solves the problem to greatly improve an efficiency of crew replanning;


(2) the deviation of the crew replanning, the number of times adding the crew member as a passenger, the matching preference of the crew member and deviated monthly working hours of the crew member are comprehensively considered to construct the model, which causes the crew replanning more scientific and reasonable;


and


(3) the Lagrangian relaxation algorithm designed by the present disclosure can be used to solve the model of crew replanning, which has an excellent versatility, good solution quality and high solution efficiency.





BRIEF DESCRIPTION OF THE DRAWINGS

In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the drawings that need to be used in the embodiments will be briefly described below.



FIG. 1 schematically shows a flow chart of a method of crew replanning for high-speed railway typical scenarios according to an embodiment of the present disclosure;



FIG. 2 is a schematic diagram of crew connection network according to an embodiment of the present disclosure;



FIG. 3 is a solution flow chart of Lagrangian relaxation algorithm according to an embodiment of the present disclosure;



FIG. 4 schematically shows a structural block diagram of a device of crew replanning for high-speed railway typical scenarios according to an embodiment of the present disclosure; and



FIG. 5 shows a crew scheduling output by the device according to an embodiment of the disclosure.





DETAILED DESCRIPTION OF EMBODIMENTS

The disclosure will be described completely and clearly below with reference to the accompanying drawings and embodiments to make the object, technical solutions, and beneficial effects of the present disclosure clearer. Obviously, the embodiments provided in the accompanying drawings are merely illustrative, and are not intended to limit the scope of the present disclosure. It should be understood that any modifications, replacements and improvements made by those skilled in the art without departing from the spirit and scope of the present disclosure should fall within the scope of the present disclosure defined by the appended claims.


Provided herein is a method of crew replanning for high-speed railway typical scenarios, which firstly analyzes several typical application scenarios of crew replanning for high-speed railway; based on this, constructs a high-speed railway crew connection network, and establishes a model, close to reality, for high-speed railway crew replanning; decomposes the model to a first sub-model for team leaders and a second sub-model for general crew members; and designs a Lagrangian relaxation algorithm to solve two sub-models.


A research process of the method includes analysis of the several typical scenarios of crew replanning for high-speed railway, construction of high-speed railway crew connection network, establishment of the model for high-speed railway crew replanning, decomposition of the model for high-speed railway crew replanning and design of the Lagrangian relaxation algorithm.


Actually, the method of the present disclosure is optimized and replanning based on the following scenarios, which are described as follows.


In a process of railway operation, when changing timetable, adding temporary passenger trains, coupling or uncoupling train, and enabling hot-backup occur, the crew scheduling plan for high-speed railway needs to be replanned, which are described as follows.


(1) In the process of railway operation, when there is a peak passenger flow, the railway operation department usually increases the capacity by coupling the trains.


During the process, the number of the crew members needs to be increased to meet an increased crew task. Normally, when a train consists of 8 composition, 1 leader and 2 general crew members are required; and when the train is coupling to 8+8 composition, 2 leaders and 4 general crew members are required. At this time, the crew assignment has changed, and a selected crew member needs to be re-assigned to complete the increased crew task. In addition, since the selected crew member is assigned to undertake the increased crew task, an original crew task undertaken by the selected crew member may not be available to continue to complete the original crew task, therefore, an entire crew scheduling needs to be replanned.


(2) With the increase in the types of China railway high-speed (CRH) train, the 16 composition trains have been put into use. In the process of railway operation, the 16 composition and 8+8 composition trains are often used instead. However, the 16 composition trains need to be equipped with 1 leader and 4 general crew members, while the 8+8 composition trains need to be equipped with 2 leader and 4 general crew members, which are quite different from each other. Therefore, when the 16 composition and 8+8 composition trains are replaced with each other according to operational requirement, the crew scheduling needs to be replanned.


In view of the above scenarios of crew replanning, the present disclosure provides the optimization method of crew replanning for high-speed railway.



FIG. 1 schematically shows a flow chart of the method of crew replanning for high-speed railway typical scenarios. The method is performed as follows.


1. A high-speed railway crew connection network is built.


(1) Connection network parameters are defined.


R represents a set of all crew members; r is any one of all crew members.


The crew members are divided into a leader and a general crew member, and the general crew member is divided in to a cabin crew member and a safety personnel.


D is a set of all schedule days in a scheduling cycle, D={d|d=1, 2, 3, . . . , ND}, where d is any one of the schedule days, and ND is the total number of days in the scheduling cycle.


E represents a set of all crew duties in the scheduling cycle; e is any one of all crew duties; sestart is a start position of the crew duty e; seend is an end position of the crew duty e; testart time of the crew duty e; teend end time of the crew duty e; te is a duration of the crew duty e; de represents a schedule day serial number of the crew duty e; and ke represents the crew preference of the crew duty e.


ET represents a set of all replanning crew duties in the scheduling cycle; eT is any one of all replanning crew duties; seTstart is a start position of the replanning crew duty eT; seTend is an end position of the replanning crew duty eT; teTstart represents a start time of the replanning crew duty eT; teTend represents an end time of the replanning crew duty eT; teT represents a duration of the replanning crew duty eT; deT represents a schedule day serial number of the replanning crew duty eT; and keT represents the crew preference of the replanning crew duty eT.


mn represents crew base, in which n is a positive integer.


(2) The high-speed railway crew connection network is built through steps of performing node establishment and establishing connection arcs.


The node establishment includes the following steps.


A day before a start of a scheduling cycle is denoted as d=0.


The moment 0:00 of d=0 is denoted as time zero, in minutes; where for ∀e∈E, a start time tdestart is expressed as tdestart=testart+1440×de, and an end time tdeend is expressed as tdeend=teend+1440×de, for ∀eT∈ET, a start time tdeTstart is expressed as tdeTstart=teTstart+1440×deT, and end time TdeTend is expressed as tdeTend=teTend+1440×deT. Nodes are established respectively corresponding to an initial state of each crew member, crew duties of each day within the scheduling cycle and replanning crew duties according to schedule day. The initial state (initial position) of each crew member is obtained by using a positioning device (e.g., GPS).


The node establishment further includes the following steps.


Virtual crew base source nodes m1O, m2O, . . . , mnO for all crew bases in a crew area involved in crew scheduling are established respectively, and a set of the virtual crew base source nodes is denoted as VO. There is a unique crew base for ∀r∈R.


Virtual crew base end nodes m1D, m2D, . . . mnD for all crew bases in the crew area involved in the crew scheduling are established respectively, and a set of the virtual crew base end nodes is denoted as VD.


For ∀e∈R, de∈{d|d=1 . . . ND−1} and ∀eT∀ET, deT ∈{d|d=1 . . . ND−1}, an intermediate node ved corresponding to the crew duty and an intermediate node veTd of the replanning crew duty are established. Where the intermediate node ved and the intermediate node v′eTd each has seven attributes, respectively start position, start time, end position, end time, duration, schedule day serial number and crew preference.


A set of intermediate nodes of all crew duties in the scheduling cycle is denoted as VmidE.


A set of intermediate nodes of all replanning crew duties is denoted as VmidT.


A set of all intermediate nodes is denoted as Vmid.


A set of all nodes is denoted as V.


The connection arc is established as follows.


a) For ∀r∈R, if a crew base to which the crew member r belongs is the same as a start position of ∀e∈E and ∀eT∈ET, and the crew member r conforms to a crew preference of ∀e∈E and ∀eT∈ET, for crew member, a crew On-duty arc (mno, ved) is established between a virtual crew base source node mno and the intermediate node ved, or a crew On-duty arc (mno, veTd) is established between the virtual crew base source node mno and the intermediate node veTd. A set of all crew On-duty arcs is denoted as AOn-duty.


b) From the schedule day d=0 to schedule day d=ND−1, for any one-day crew duty and replanning crew duty, if an end position of a previous crew duty is the same as a start position of a next crew duty, a crew connection arc (ve1d, ve2d) is established between an intermediate node ve1d and an intermediate node ve1d, a crew connection arc (veTd, ved) is established between the intermediate node veTd and the intermediate node ved, or a crew connection arc (ved, veTd) is established between the intermediate node ved and the intermediate node veTd. A set of all crew connection arcs is denoted as Aconnection.


c) From the schedule day d=0 to the schedule day d=ND−1, for ∀r∈R, when the end position of an intermediate node, which crew r completed, is different from a start position of the next intermediate node to be completed but the same as a start position of the another intermediate node, a deadheading arc (ve1d, ve2d) is established between the intermediate node veid and the intermediate node ve2d, a deadheading arc (veTd, ved) is established between the intermediate node veTd and the intermediate node ved, or a deadheading arc (ved, veTd) is established between the intermediate node ved and the intermediate node veTd. A set of all deadheading arcs is denoted as Adeadheading.


d) For ∀r∈R if the crew base to which the crew member r belongs is the same as an end position of ∀e∈E and ∀eT∈ET, and the crew member r conforms to the crew preference of ∀e∈E and ∀eT∈ET, a crew Off-duty arc (ved, mnD) is established between the virtual crew base end node mnD and the intermediate node ved, or a crew Off-duty arc (veTd, MnD) is established between the virtual crew base end node mnD and the intermediate node veTd. A set of all crew Off-duty arcs as Aoff-duty.


e) A set of all arcs is denoted as A.


The high-speed railway crew connection network is expressed as N(V,A).


As shown in FIG. 2, a schematic diagram of a crew connection network with the scheduling cycle of 2 days is built.


2. A model for high-speed railway crew replanning is established.


(1) The following parameters and variables are defined.


N represents a set of all crew tasks; and i is any one of all crew tasks.


For all crew tasks, which can be divided into a crew task of a leader and a crew task of a general crew member. The crew task of the general crew member can be divided into a crew task of a cabin crew member and a crew task of safety personnel. When taking on the crew duty, the leader can undertake the duty of the crew task of the general crew member, and the leader and the general crew member can undertake the duty of the crew task of the safety personnel.


NL represents a set of crew tasks of the leader; NG is a set of crew tasks of the general crew member; NC is a set of the crew tasks of the cabin personnel; and NS represents a set of crew tasks of the safety personnel.


RL represents a set of leaders; RG is a set of general crew members; RC represents a set of cabin crew members; and RS represents a set of the safety personnel.


π(r) represents the leader in a crew team corresponding to any general crew member r∈RG, and π(r)∈RL.


σ(i) represents the leader crew task corresponding to any general crew task i∈NG, σ(i)∈NL.


hir represents a penalty cost when the crew member r does not undertake the crew task i with a corresponding leader.


Pr represents a set of feasible crew pairings for the crew member r; and p is any one of the crew pairings.


αpir is a 0-1 variable; where if the crew pairing p∈Pr includes the crew task i∈N, apir is equal to 1; otherwise, αpir, is equal to 0.


cpr represents cost required for the crew pairing p∈pr.


giL represents the number of leaders required to undertake the crew task i∈N; giC represents the number of crew members required to undertake the crew task i∈N; and giS represents the number of safety personnel required to undertake the crew task i∈N.


ƒi represents a penalty cost when the crew task i is assigned to one less crew member, and one less crew member is allowed.


K represents a set of preferences of the crew task to crew member assignment; k is any one of the set of preferences.


epirk represents a known 0-1 variable, which indicates that the crew task i∈NG in the crew pairing p has a preference k∈K for the crew member r; if the preference points to males, when the crew member r is male, epirk is equal to 1; otherwise, epirk is equal to 0.


dik represents a threshold of the preference k of the crew task i; if the preference k points to males, the threshold is equal to the number of male crew members required by the crew task i.


xpr is a 0-1 decision variable; if the crew member r∈R undertakes the crew pairing p∈pr, xpr is equal to 1; otherwise, xpr is equal to 0.


yi is a 0-1 decision variable, where if one less crew member is assigned to perform the crew task i∈NC, yi is equal to 1; otherwise, yi is equal to 0.


zir is a 0-1 decision variable; where if the crew member r∈RG does not undertake the crew task i∈NG with the corresponding leader, zir is equal to 1; otherwise, zir is equal to 0.


(2) An objective function for the model is established.


An optimization objective of the model is to minimize cost of replanned crew scheduling, and the objective function is expressed as:







min





r

R







p


P
r





c
p
r



x
p
r





+




i


N
C





f
i



y
i



+




r


R
G








i


N
G





h
i
r




z
i
r

.








The cost cpr is calculated as follows:







c
p
r

=


α
r

+




i


N
p





β
i



b
pi
r



+




i


N
p





μ
i



a
pi
r



+


η
r




δ
p
r

.







Where αr represents a penalty value for the crew member r when deviating from an original crew pairing; βi represents a cost when the crew members deadhead as passengers to the crew task; bpir is a 0-1 variable; where if the crew member r is added as a passenger to the crew task i in the crew pairing p, bpir is equal to 1; otherwise, by is equal to 0; μi represents a cost of matching preference of the crew task i; ηr represents a penalty coefficient of deviated monthly working hours of the crew member r; and δpr represents deviated monthly working hours of the crew member r when undertaking the crew pairing p.


(3) Constraints for the model are established.


a) For ∀r∈R, the crew member r is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,



r


R
.







b) For all crew tasks of the leader, all crew tasks of cabin crew members and all crew tasks of safety personnel, there is a matching crew member, expressed as follows:











r


R
L







p


P
r





a
pi
r



x
p
r




=

g
i
L


,




i


N
L



;













r


R
C







p


P
r





a
pi
r



x
p
r




+

y
i


=

g
i
C


,




i


N
C



;






and










r


R
S







p


P
r





a
pi
r



x
p
r




=

g
i
S


,



i



N
S

.







c) When arranging a task with crew preference, it is needed to meet the crew preference, expressed as follows:











r


R
G







p


P
r





e
pi

r

k




x
p
r






d
i
k


,



k

K


,

i



N
G

.






d) A leader-crew matching constraint, expressed as follows:












p


P
r





a
pi
r



x
p
r



-




p


P

π

(
r
)






a



(
i
)


π

(
r
)




x
p

π

(
r
)







z
i
r


,



r


R
G



,

i



N
G

.






When the crew member r∈RG does not undertake the crew task i∈NG together with the corresponding leader π(r), zir=1.


e) A decision variable constraint, expressed as follows.

xpr∈{0,1},∀r∈R,p∈Pr;
yi∈{0,1},∀i∈NC; and
zir∈{0,1},∀r∈RGi∈NG.


3. The model is decomposed into a first sub-model for replanning scheduling of a leader and a second sub-model for replanning scheduling of a general crew member.


The first sub-model is configured to complete the crew task of the leader, and an optimization objective of the first sub-model is to minimize a cost of completing the leader crew tasks, expressed as






min





r


R
L







p


P
r





c
p
r




x
p
r

.








Constraints of the first sub-model include the following conditions.


a) Any one of leaders is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,



r



R
L

.







b) A crew task coverage constraint, where for any of the leader crew tasks, there is a matching leader to undertake, expressed as follows:











r


R
L







p


P
r





a
pi
r



x
p
r




=

g
i
L


,



i



N
L

.







c) A decision variable constraint, expressed as follows:

xpr∈{0,1},∀r∈RL,p∈Pr


The second sub-model is configured to complete the crew tasks of general crew members, and an optimization objective of the second sub-model is to minimize a cost of completing the crew tasks of general crew members, expressed as







min





r


R
G







p


P
r






c
ˆ

p
r



x
p
r





+




i


N
C





f
i




y
i

.







In which, since the scheduling of the leader is determined after the first sub-model is solved, a value of zir is determined according to the crew scheduling plan of the general crew members, so as to obtain a cost ĉpr of a general crew member r to undertake the crew pairing p expressed as:








c
ˆ

p
r

=


c
p
r

+




i


N
p





h
i
r




z
i
r

.








Constraints of the second sub-model include the following conditions.


a) For any general crew member r is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,



r



R
G

.







b) A crew task coverage constraint, where for any of the crew tasks of general crew members, there is a matching general crew member to undertake, expressed as follows:












r


R
C







p


P
r





a
pi
r



x
p
r




+

y
i


=

g
i
C


,




i


N
C



;






and










r


R
S







p


P
r





a
pi
r



x
p
r




=

g
i
S


,



i



N
S

.







c) a crew member preference constraint, when arranging a crew task with a crew member preference, it is needed to meet the crew member preference, expressed as follows:











r


R
G







p


P
r





e
pi

r

k




x
p
r






d
i
k


,



k

K


,

i



N
G

.






d) A decision variable constraint, expressed as follows:

xpr∈{0,1},∀r∈RG,p∈Pr; and
yi∈∀{0,1},∀i∈NC.


4. A Lagrangian relaxation algorithm is designed to solve the first sub-model and the second sub-model.


From analysis of the first sub-model and the second sub-model, it can be found that crew task coverage constraints and the preference constraint are complex constraints that cause the problem to become larger and restrict the solution of the model. Therefore, the crew task coverage constraint in the first sub-model is relaxed and added into the objective function as a penalty item, and the crew task coverage constraint in the second sub-model and the crew member preference constraint are relaxed and added into the objective function as penalty items.


(1) The first sub-model with the crew task coverage constraint relaxed is expressed as:









Θ
L

(
λ
)

=





r


R
L







p


P
r





(


c
p
r

-




i


N
L





λ
i
L



a
pi
r




)



x
p
r




+




i


N
L





λ
i
L



g
i
L





;








s
.
t
.





p


P
r




x
p
r



=
1

,




r


R
L



;






and







x
p
r



{

0
,
1

}


,



r


R
L



,

p



P
r

.






Where λiL is a Lagrange multiplier, indicating a cost generated when the leader L undertakes the crew task i (2) The second sub-model with the crew task coverage constraint and the crew member preference constraint relaxed is expressed as:









Θ
G

(

λ
,
γ

)

=





r


R
G







p


P
r





(



c
ˆ

p
r

-




i


N
G





λ
i
G



a
pi
r



-




k

K







i


N
G






γ
i
k



e
pi

r

k






)



x
p
r




+




i


N
C





(


f
i

-

λ
i
C


)



y
i



+




i


N
G





λ
i
G



g
i
G



+




k

K






i


N
G





γ
i
k



d
i
k






;










s
.
t
.





p


P
r




x
p
r



=
1

,




r


R
G



;



x
p
r



{

0
,
1

}



,



r


R
G



,


p


P
r


;









and










y
i



{

0
,
1

}


,




i



N
C

.








Where λiC, λiG and γik are respectively a Lagrange multiplier, indicating the cost generated when general crew members undertake the crew task i.


After the the first sub-model and the second sub-model are relaxed, the model becomes a classic shortest path problem. The solution method of the shortest path problem can be used to find a lower bound of the two problems, and a feasible crew pairing is added to a column pool, and then a commercial solving software is configured to solve the original problem to obtain an upper bound, then an interval between the upper bound and the lower bound is calculated, and whether a condition of ending the Lagrangian relaxation algorithm is met is determined. If yes, the Lagrangian relaxation algorithm is ended; otherwise, the Lagrangian multipliers are updated, and the lower bound and the upper bound are found continuously to meet the condition until the Lagrangian relaxation algorithm is ended. An overall solution flow of the problem is shown in FIG. 3.


(i) The crew task coverage constraint in the first sub-model, the crew task coverage constraint in the second sub-model and the crew member preference constraint are relaxed to form a Lagrangian relaxation problem.


(ii) The number of iterations q is initialized to 1.


The Lagrangian multipliers λiC, λiG and γik are initialized to 0.


An initial iteration step size αq is set as k/(q+1), the maximum number of iterations Qmax and the minimum upper bound-lower bound interval ∈min are set.


(iii) The Lagrangian relaxation problem is solved using a shortest path solution method to obtain a lower bound of the first sub-model, and a lower bound of the second sub-model. The feasible crew pairing is added a the column pool.


(iv) Based on continuous update of the column pool, the original problem is solved with commercial solving software to obtain an upper bound.


(v) An interval between the upper bound and the lower bound of the original problem, and whether the condition of ending the Lagrangian relaxation algorithm is met is determined. If yes, the Lagrangian relaxation algorithm is ended; otherwise, step (vi) is performed.


(vi) The Lagrangian multipliers are updated using a subgradient method; and step (iii)-(v) are repeated.


In order to realize the objection mentioned above, the present disclosure provides a device (as shown in FIG. 4) of crew replanning for high-speed railway typical scenarios, which includes a first module for building a high-speed railway crew connection network, a second module for establishing a model for high-speed railway crew replanning, a third module for decomposing the model into a first sub-model for team leaders and a second sub-model for general crew members, and a fourth module for designing a Lagrangian relaxation algorithm to solve two sub-models. The third module and the fourth module improve the computing efficiency, effectively reduce central processing unit (CPU) usage time, and save a storage space.


Specifically, the first module is configured for building a high-speed railway crew connection network, which includes the following steps.


(1) Connection network parameters are defined.


R represents a set of all crew members; and r is any one of all crew members.


The crew members are divided into a leader and a general crew member, and the general crew member is divided into cabin crew member and safety personnel.


D is a set of all schedule days in the scheduling cycle, D={d|d=1, 2, 3, . . . , ND}, where d is any one of the schedule days, and ND is the total number of days in the scheduling cycle.


E represents a set of all crew duties in the scheduling cycle; e is any one of all crew duties; scstart is a start position of the crew duty e; seend is an end position of the crew duty e; testart is a start time of the crew duty e; teend is an end time of the crew duty e; te is a duration of the crew duty e; de represents a schedule day serial number of the crew duty e; and ke represents the crew preference of the crew duty e.


ET represents a set of all replanning crew duties in the scheduling cycle; eT is any one of all replanning crew duties; seTstart is a start position of the replanning crew duty eT; seTend is an end position of the replanning crew duty eT; teTstart represents a start time of the replanning crew duty eT; teTend represents an end time of the replanning crew duty eT; teT represents a duration of the replanning crew duty eT; de represents a schedule day serial number of the replanning crew duty eT; and keT represents the crew preference of the replanning crew duty eT.


mn represents a crew base, in which n is a positive integer.


(2) The high-speed railway crew connection network includes establishing a node and establishing connection arcs.


The node establishment includes the following steps.


A day before a start of a scheduling cycle is denoted as d=0.


The moment 0:00 of d=0 is denoted as time zero, in minutes, where for ∀e∈E, a start time tdestart is expressed as tdestart=testart+1440×de, and an end time tdeend expressed as tdeend=teend+1440×de; for ∀eT∈ET, a start time tdeTstart is expressed as tdeTstart+1440×deT, and an end time tdeTend is expressed as tdeTend=teTend+1440×deT. Nodes are established respectively corresponding to an initial state of each crew member, crew duties of each day within the scheduling cycle and replanning crew duties according to schedule day.


The node establishment further includes the following steps.


Virtual crew base source nodes m1O, m2D, . . . mnD for all crew bases in a crew area involved in crew scheduling are established respectively, and a set of the virtual crew base source nodes is denoted as VO. There is a unique crew base for ∀r∈R.


Virtual crew base end nodes m1D, m2D, . . . mnD for all crew bases in the crew area involved in the crew scheduling are established respectively, and a set of the virtual crew base end nodes is denoted as VD.


For ∀e∈R, de∈{d|d=1 . . . ND−1} and ∀eT∈ET, deT∈{d|d=1 . . . ND−1}, an intermediate node ved corresponding to the crew duty and an intermediate node veTd of the replanning crew duty are established. Where the intermediate node ved and the intermediate node veTd each has seven attributes, respectively start position, start time, end position, end time, duration, schedule day serial number and crew preference.


A set of intermediate nodes of all crew duties in the scheduling cycle is denoted as VmidE.


A set of intermediate nodes of all replanning crew duties is denoted as VmidT.


A set of all intermediate nodes is denoted as Vmid.


A set of all nodes is denoted as V.


The connection arc is established as follows.


a) For ∀r∈R if a crew base to which the crew member r belongs is the same as a start position of ∀e∈E and ∀eT∈ET, and the crew member r conforms to a crew preference of ∀e∈E and ∀eT∈ET, for crew member, a crew On-duty arc (mno, ved) is established between a virtual crew base source node mno and the intermediate node ved, or a crew On-duty arc (mno,veTd) is established between the virtual crew base source node mno and the intermediate node veTd. A set of all crew On-duty arcs is denoted as AOn-duty.


b) From the schedule day d=0 to schedule day d=ND−1, for any one-day crew duty and replanning crew duty, if an end position of a previous crew duty is the same as a start position of a next crew duty, a crew connection arc (veid, ve2d) is established between an intermediate node veid and an intermediate node ve2d, a crew connection arc (veTd, ved) is established between the intermediate node VeTd and the intermediate node ved, or a crew connection arc (ved, veTd) is established between the intermediate node ved and the intermediate node veTd. A set of all crew connection arcs is denoted as Aconnection.


c) From the schedule day d=0 to the schedule day d=ND−1, for ∀r∈R, when the end position of an intermediate node, of a completed routing section is different from a start position of an intermediate node of a next routing section to be completed but the same as a start position of an intermediate node of another crew duty, a deadheading arc (ve1d, ve2d) is established between the intermediate node ve1d and the intermediate node ve2d a deadheading arc (veTd, ved) is established between the intermediate node veTd and the intermediate node ved, or a deadheading arc (ved, veTd) is established between the intermediate node Ved and the intermediate node veTd. A set of all deadheading arcs is denoted as Adeadheading.


d) For ∀r∈R if the crew base to which the crew member r belongs is the same as an end position of ∀e∈E and ∀eT∈ET, and the crew member r conforms to the crew preference of ∀e∈E and ∀eT∈ET, a crew Off-duty arc (ved, mnD) is established between the virtual crew base end node mnD and the intermediate node ved, or a crew Off-duty arc (veTd, mnD) is established between the virtual crew base end node mnD and the intermediate node veTd. A set of all crew Off-duty arcs as AOff-duty.


e) A set of all arcs is denoted as A.


The high-speed railway crew connection network is expressed as N (V,A).


As shown in FIG. 2, a schematic diagram of a crew connection network with the scheduling cycle of 2 days is built.


2. A model for high-speed railway crew replanning is established.


(1) The following parameters and variables are defined.


N represents a set of all crew tasks; and i is any one of all crew tasks.


For all crew tasks, which can be divided into a crew task of a leader and a crew task of a general crew member. The crew task of the general crew member can be divided into a crew task of a cabin crew member and a crew task of safety personnel. When taking on the crew duty, the leader can undertake the duty of the crew task of the general crew member, and the leader and the general crew member can undertake the duty of the crew task of the safety personnel.


NL represents a set of crew tasks of the leader; NG is a set of crew tasks of the general crew member; NC is a set of the crew tasks of the cabin personnel; and NS represents a set of crew tasks of the safety personnel.


RL represents a set of leaders; RG is a set of general crew members; RC represents a set of cabin crew members; and RS represents a set of the safety personnel.


π(r) represents the leader in a crew team corresponding to any general crew member r∈RG, and π(r)∈RL.


σ(i) represents the leader crew task corresponding to any general crew task i∈NG, σ(i)∈NL.


hir represents a penalty cost when the crew member r does not undertake the crew task i with a corresponding leader.


Pr represents a set of feasible crew pairings for the crew member r; and p is any one of the crew pairings.


αpir is a 0-1 variable; where if the crew pairing p∈Pr includes the crew task i∈N, αpir is equal to 1; otherwise, αpir, is equal to 0.


cpr represents cost required for the crew pairing p∈pr.


giL represents the number of leaders required to undertake the crew task i∈N; gic represents the number of crew members required to undertake the crew task i∈N; and giS represents the number of safety personnel required to undertake the crew task i∈N.


ƒi represents a penalty cost when the crew task i is assigned to one less crew member, and one less crew member is allowed.


K represents a set of preferences of the crew task to crew member assignment; k is any one of the set of preferences.


epirk represents a known 0-1 variable, which indicates that the crew task i∈NG in the crew pairing p has a preference k∈K for the crew member r; if the preference points to males, when the crew member r is male, epirk is equal to 1; otherwise, epirk is equal to 0.


dik represents a threshold of the preference k of the crew task i; if the preference k points to males, the threshold is equal to the number of male crew members required by the crew task i.


xpr is a 0-1 decision variable; if the crew member r∈R undertakes the crew pairing p∈Pr, xpr is equal to 1; otherwise, xpr is equal to 0.


yi is a 0-1 decision variable, where if one less crew member is assigned to perform the crew task i∈NC, yi is equal to 1; otherwise, yi is equal to 0.


zir is a 0-1 decision variable; where if the crew member r∈RG does not undertake the crew task i∈NG with the corresponding leader, z; is equal to 1; otherwise, zir is equal to 0.


(2) An objective function for the model is established.


An optimization objective of the model is to minimize cost of replanned crew scheduling plan, and the objective function is expressed as:







min





r

R






p


P
r





c
p
r



x
p
r





+




i


N
C





f
i



y
i



+




r


R
G







i


N
G





h
i
r




z
i
r

.








The cost cpr is calculated as follows:







c
p
r

=


α
r

+




i


N
p





β
i



b
pi
r



+




i


N
p





μ
i



a
pi
r



+


η
r




δ
p
r

.







Where αr represents a penalty value for the crew member r when deviating from an original crew pairing; βi represents a cost when the crew members deadhead as passengers to the crew task; bpir is a 0-1 variable; where if the crew member r is added as a passenger to the crew task i in the crew pairing p, bpir is equal to 1; otherwise, bpir is equal to 0; μi, represents a cost of matching preference of the crew task i; ηr represents a penalty coefficient of deviated monthly working hours of the crew member r; and δpr represents deviated monthly working hours of the crew member r when undertaking the crew pairing p.


(3) Constraints for the model are established.


a) For ∀r∈R, the crew member r is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,



r


R
.







b) For all crew tasks of the leader, all crew tasks of cabin crew members and all crew tasks of safety personnel, there is a matching crew member, expressed as follows:











r


R
L







p


P
r





a
pi
r



x
p
r




=

g
i
L


,




i


N
L



;













r


R
C







p


P
r





a
pi
r



x
p
r




+

y
i


=

g
i
C


,




i


N
C



;
and












r


R
S







p


P
r





a
pi
r



x
p
r




=

g
i
S


,



i



N
S

.







c) When arranging a task with crew preference, it is needed to meet the crew preference, expressed as follows:











r


R
G







p


P
r





e
pi

r

k




x
p
r






d
i
k


,



k

K


,

i



N
G

.






d) A leader-crew matching constraint, expressed as follows:












p


P
r





a
pi
r



x
p
r



-




p


P

π

(
r
)






a

p


σ

(
i
)



π

(
r
)




x
p

π

(
r
)







z
i
r


,



r


R
G



,

i



N
G

.






When the crew member r∈RG does not undertake the crew task i∈NG together with the corresponding leader π(r), zir=1.


e) A decision variable constraint, expressed as follows.

xpr∈{0,1},∀r∈R,p∈Pr;
yi∈{0,1},∀i∈NC; and
zir∈{0,1},∀r∈RG,i∈NG.


The model is decomposed into a first sub-model for replanning scheduling of a leader and a second sub-model for replanning scheduling of a general crew member.


The first sub-model is configured to complete the crew task of the leader, and an optimization objective of the first sub-model is to minimize a cost of completing the leader crew tasks in the adjusted crew scheduling plan, expressed as






min





r


R
L







p


P
r





c
p
r




x
p
r

.








Constraints of the first sub-model include the following conditions.


a) Any one of leaders is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,



r



R
L

.







b) A crew task coverage constraint, where for any of the leader crew tasks, there is a matching leader to undertake, expressed as follows:











r


R
L







p


P
r





a
pi
r



x
p
r




=

g
i
L


,



i



N
L

.







c) A decision variable constraint, expressed as follows:

xpr∈{0,1},∀r∈RL,p∈Pr


The second sub-model is configured to complete the crew tasks of general crew members, and an optimization objective of the second sub-model is to minimize a cost of completing the crew tasks of general crew members, expressed as







min





r


R
G







p


P
r






c
^

p
r



x
p
r





+




i


N
C





f
i




y
i

.







In which, since the scheduling of the leader is determined after the first sub-model is solved, a value of zir is determined according to the crew scheduling plan of the general crew members, so as to obtain a cost ĉpr of a general crew member r to undertake the crew pairing p expressed as:








c
^

p
r

=


c
p
r

+




i


N
p





h
i
r




z
i
r

.








Constraints of the second sub-model include the following conditions.


a) For any general crew member r is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:











p


P
r




x
p
r


=
1

,



r



R
G

.







b) A crew task coverage constraint, where for any of the crew tasks of general crew members, there is a matching general crew member to undertake, expressed as follows:












r


R
C







p


P
r





a
pi
r



x
p
r




+

y
i


=

g
i
C


,




i


N
C



;
and












r


R
S







p


P
r





a
pi
r



x
p
r




=

g
i
S


,



i



N
S

.







c) a crew member preference constraint, when arranging a crew task with a crew member preference, it is needed to meet the crew member preference, expressed as follows:











r


R
G







p


P
r





e
pi

r

k




x
p
r






d
i
k


,



k

K


,

i



N
G

.






d) A decision variable constraint, expressed as follows:

xpr∈{0,1},∀r∈RG,p∈Pr; and
yi∈{0,1},∀i∈NC.


A Lagrangian relaxation algorithm is designed to solve the first sub-model and the second sub-model.


From analysis of the first sub-model and the second sub-model, it can be found that the crew task coverage constraints and the preference constraint are complex constraints that cause the problem to become larger and restrict the solution of the model. Therefore, the crew task coverage constraint in the first sub-model is relaxed and added into the objective function as a penalty item, and the crew task coverage constraint in the second sub-model and the crew member preference constraint are relaxed and added into the objective function as penalty items.


(1) The first sub-model with the crew task coverage constraint relaxed is expressed as:









Θ
L

(
λ
)

=





r


R
L







p


P
r





(


c
p
r

-




i


N
L





λ
i
L



a
pi
r




)



x
p
r




+




i


N
L





λ
i
L



g
i
L





;








s
.
t
.





p


P
r




x
p
r



=
1

,




r


R
L



;
and









x
p
r



{

0
,
1

}


,



r


R
L



,

p



P
r

.






Where λiL is a Lagrange multiplier, indicating a cost generated when the leader L undertakes the crew task i.


(2) The second sub-model with the crew task coverage constraint and the crew member preference constraint relaxed is expressed as:









Θ
G

(

λ
,
γ

)

=





r


R
G







p


P
r





(



c
^

p
r

-




i


N
G





λ
i
G



a
pi
r



-




k

K






i


N
G





γ
i
k



e
p

r

k






)



x
p
r




+




i


N
C





(


f
i

-

λ
i
C


)



y
i



+




i


N
G





λ
i
G



g
i
G



+




k

K






i


N
G





γ
i
k



d
i
k






;










s
.
t
.





p


P
r




x
p
r



=
1

,





r


R
G



;












x
p
r



{

0
,
1

}


,



r


R
G



,


p


P
r


;
and












y
i



{

0
,
1

}


,




i


N
C



;






where λiG, γik are respectively a Lagrange multiplier, indicating the cost generated when general crew members undertake the crew task i.


After the the first sub-model and the second sub-model are relaxed, the model becomes a classic shortest path problem. The solution method of the shortest path problem can be used to find a lower bound of the two problems, and a feasible crew pairing is added to a column pool, and then a commercial solving software is configured to solve the original problem to obtain an upper bound, then an interval between the upper bound and the lower bound is calculated, and whether a condition of ending the Lagrangian relaxation algorithm is met is determined. If yes, the Lagrangian relaxation algorithm is ended; otherwise, the Lagrangian multipliers are updated, and the lower bound and the upper bound are found continuously to meet the condition until the Lagrangian relaxation algorithm is ended. An overall solution flow of the problem is shown in FIG. 3.


(i) The crew task coverage constraint in the first sub-model, the second crew task coverage constraint in the second sub-model and the crew member preference constraint are relaxed to form a Lagrangian relaxation problem.


(ii) The number of iterations q is initialized to 1.


The Lagrangian multipliers λiC, λiG and γik are initialized to 0.


An initial iteration step size αq is set as k/(q+1), the maximum number of iterations Qmax and the minimum upper bound-lower bound interval ∈min are set.


(iii) The Lagrangian relaxation problem is solved using a shortest path solution method to obtain a lower bound of the first sub-model, and a lower bound of the second sub-model. The feasible crew pairing is added to the column pool.


(iv) Based on continuous update of the column pool, the original problem is solved with commercial solving software to obtain an upper bound.


(v) An interval between the upper bound and the lower bound of the original problem, and whether the condition of ending the Lagrangian relaxation algorithm is met is determined. If yes, the Lagrangian relaxation algorithm is ended; otherwise, step (vi) is performed.


(vi) The Lagrangian multipliers are updated using a subgradient method; and step (iii)-(v) are repeated.


The crew scheduling plan output by the device can be expressed in a graphical form (as shown in FIG. 5), which is more intuitive and facilitates the operation compared to the data form.


In order to realize the objection mentioned above, the present disclosure provides an electronic device, which includes a processor, a memory and a computer program. The computer program is stored on the memory and is configured to be executed by the processor to implement the method for optimizing crew replanning for high-speed railway typical scenarios.


In order to realize the objection mentioned above, the present disclosure also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and the computer program is configured to be executed by a processor to implement the method for optimizing crew replanning for high-speed railway typical scenarios.


Compared to the prior art, the present disclosure has the following beneficial effects.


(1) Compared with the traditional manual crew replanning, the present disclosure constructs an optimization model and solves the problem to greatly improve an efficiency of crew replanning;


(2) the deviation of the crew replanning, the number of times adding the crew member as a passenger, the matching preference of the crew member and deviated monthly working hours of the crew member are comprehensively considered to construct the model, which causes the crew replanning more scientific and reasonable; and


(3) the Lagrangian relaxation algorithm designed by the present disclosure can be used to solve the model of crew replanning, which has an excellent versatility, good solution quality and high solution efficiency.


Those of general skill in the art can realize that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and designed constraints of the technical solution. Those skilled in the art may implement the described functionality using different methods for each particular application, and such implementations should be considered within the scope of the present disclosure.


Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the apparatuses and devices can refer to the corresponding processes in the method embodiments, thus, it will not be repeated here.


In the embodiments, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments are only illustrative, and are not intended to limit the scope of the present disclosure. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods; multiple modules or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling, direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules can be in electrical, mechanical or other forms.


The modules described as a separate component may or may not be physically separated, and a component shown as a module may or may not be a physical module, that is, may be located in one place or distributed to multiple network modules. Some or all of the modules may be selected according to actual requirements to achieve the purpose of the solutions of the embodiments of the present disclosure.


In addition, each functional module in the embodiments of the present disclosure may be integrated into one processing module or exist physically alone, or two or more modules may be integrated into one module.


If the functions are implemented in a form of a software function module and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present disclosure, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product in essence. The computer software product is stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device) to execute all or part of the steps of the method for transmitting/receiving an energy-saving signal according to various embodiments of the present disclosure. The storage medium includes a universal serial bus (USB), a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk or other mediums that can store program codes.


Described above are only preferred embodiments and technical principle of the present disclosure and are not intended to limit the present disclosure. It should be understood that any modifications, replacements and improvements made by those skilled in the art without departing from the spirit and scope of the present disclosure should fall within the scope of the present disclosure defined by the appended claims.


It should be understood that the sequence numbers of the steps in the content of the present disclosure do not absolutely indicate the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic. Therefore, these sequence numbers should not be considered as limitation to the implementation of the embodiment of the disclosure.

Claims
  • 1. A computer-implemented method of crew replanning for multiple high-speed railway typical scenarios, comprising: building a high-speed railway crew connection network;establishing a model for high-speed railway crew replanning;decomposing the model into a first sub-model for team leaders and a second sub-model for general crew members; anddesigning a Lagrangian relaxation algorithm to solve the first sub-model and the second sub-model;automatically generating a replanned crew schedule based on results for the first sub-model for the team leaders and the second sub-model for the general crew members; andautomatically transmitting the replanned crew schedule in real time to the team leaders and the general crew members, such that up-to-date information in the replanned crew schedule is notified to each crew member;wherein the railway crew connection network is built through steps of:performing node establishment; andestablishing a connection arc;wherein the node establishment comprises steps of:denoting a day before a start of a scheduling cycle as d=0;denoting moment 0:00 of d=0 as time zero, in minutes; wherein for ∀e∈E, a start time tdestart is expressed as tdestart=testart+1440×de, and an end time tdeend is expressed as tdeend=teend+1440×de; for ∀eT∈ET, a start time tdeTstart is expressed as tdeTstart=teTstart+1440×deT, and an end time tdeTend is expressed as tdeTend=tdeTend+1440×deT; andestablishing nodes respectively corresponding to an initial state of each crew member, a crew duty of each day within the scheduling cycle and a replanning crew duty according to schedule day;the node establishment further comprises:establishing virtual crew base source nodes m1O, m2O, . . . , mnO for all crew bases in a crew area involved in crew scheduling, respectively, and denoting a set of the virtual crew base source nodes as VO; wherein there is a unique crew base for ∀r∈R;establishing virtual crew base end nodes m1D,m2D, . . . , mnD for all crew bases in the crew area involved in the crew scheduling, respectively, and denoting a set of the virtual crew base end nodes as VD; andfor ∀e∈R, de∈{d|d=1 . . . ND−1} and ∀eT∈ET, deT∈{d|d=1 . . . ND−1}, establishing an intermediate node ved corresponding to the crew duty and an intermediate node VeTd of the replanning crew duty; wherein the intermediate node ved and the intermediate node vdTd each has seven attributes, respectively start position, start time, end position, end time, duration, schedule day serial number and crew preference;locating, by a global positioning system (GPS), a start position and an end position of each crew member during the crew duty to determine the start position and the end position of the intermediate node corresponding to the crew duty;denoting a set of intermediate nodes of all crew duties in the scheduling cycle as VmidE;denoting a set of intermediate nodes of all replanning crew duties as VmidT;denoting a set of all intermediate nodes as Vmid; anddenoting a set of all nodes as V;wherein R represents a set of all crew members; r is any one of all crew members; D is a set of all schedule days in the scheduling cycle, D={d|d=1, 2, 3, . . . , ND}, wherein d is any one of the schedule days, and ND is the total number of days in the scheduling cycle;E represents a set of all crew duties in the scheduling cycle; e is any one of all crew duties; testart is a start time of the crew duty e; teend is an end time of the crew duty e; te is a duration of the crew duty e; and de represents a schedule day serial number of the crew duty e;ET represents a set of all replanning crew duties in the scheduling cycle; eT is any one of all replanning crew duties; teTstart represents a start time of the replanning crew duty eT; teTend represents an end time of the replanning crew duty eT; teT represents a duration of the replanning crew duty eT; and deT represents a schedule day serial number of the replanning crew duty eT; andmn represents crew base, wherein n is a positive integer;wherein the connection arc is established as follows:a) for ∀r∈R, if a crew base to which the crew member r belongs is the same as a start position of ∀e∈E and ∀eT∈ET, and the crew member r conforms to a preference of ∀e∈E and ∀eT∈ET for crew member, establishing a crew On-duty arc (mno, ved) between a virtual crew base source node mno and the intermediate node ved, or establishing a crew On-duty arc (mno, veTd) between the virtual crew base source node mno and the intermediate node veTd; anddenoting a set of all crew On-duty arcs as AOn-duty;b) from the schedule day d=0 to schedule day d=ND−1, for any one-day crew duty and replanning crew duty, if an end position of a previous crew duty is the same as a start position of a next crew duty, establishing a crew connection arc (ve1d,ve2d) between an intermediate node veid and an intermediate node ve2d a crew connection arc (veTd, ved) between the intermediate node veTd and the intermediate node ved, or a crew connection arc (ved, veTd) between the intermediate node ved and the intermediate node veTd; anddenoting a set of all crew connection arcs as Aconnection;c) from the schedule day d=0 to the schedule day d=ND−1, for ∀r∈R, when the end position of an intermediate node, which crew r completed, is different from a start position of the next intermediate node to be completed but the same as a start position of the another intermediate node, establishing a deadheading arc (ve1d, ve2d) between the intermediate node ve1d and the intermediate node ve2d, a deadheading arc (veTd, ved) between the intermediate node veTd and the intermediate node ved, or a deadheading arc (ved, veTd) between the intermediate node ved and the intermediate node Vel; anddenoting a set of all deadheading arcs as Adeadheading;d) for ∀r∈R, if the crew base to which the crew member r belongs is the same as an end position of ∀e∈E and ∀eT∈ET and the crew member r conforms to the preference of ∀e∈E and ∀eT∈ET for crew member, establishing a crew Off-duty arc (ved,mnD) between a virtual crew base end node mnD and the intermediate node ved, or a crew Off-duty arc (veTd,mnD) between the virtual crew base end node mnD and the intermediate node veTd; anddenoting a set of all crew Off-duty arcs as AOff-duty; ande) denoting a set of all arcs as A;wherein the high-speed railway crew connection network is expressed as N(V,A).
  • 2. The method of claim 1, wherein the step of “establishing a model for high-speed railway crew replanning” comprises: establishing an objective function of the model;wherein an optimization objective of the model is to minimize cost of an replanned crew scheduling, and the objective function is expressed as:
  • 3. The method of claim 2, wherein the step of “establishing a model for high-speed railway crew replanning” further comprises: establishing constraints for the model;wherein the constraints include:a) for ∀r∈R, the crew member r is allowed to choose only one crew pairing during the scheduling cycle, expressed as follows:
  • 4. The method of claim 2, wherein the first sub-model is configured to complete leader crew tasks, and an optimization objective of the first sub-model is to minimize a cost of completing the leader crew tasks in the adjusted crew scheduling plan, expressed as
  • 5. The method of claim 4, wherein in the step of designing a Lagrangian relaxation algorithm to solve the first sub-model and the second sub-model, the crew task coverage constraint in the first sub-model is relaxed and added into the objective function as a penalty item, and the crew task coverage constraint in the second sub-model and the crew member preference constraint are relaxed and added into the objective function as penalty items; wherein the first sub-model with the crew task coverage constraint relaxed is expressed as:
  • 6. The method of claim 5, wherein the first sub-model and the second sub-model are solved using the Lagrangian relaxation algorithm through steps of: (i) relaxing the crew task coverage constraint in the first sub-model, the crew task coverage constraint in the second sub-model and the crew member preference constraint to form a Lagrangian relaxation problem;(ii) initializing the number of iterations q to 1;initializing Lagrangian multipliers λiC, λiG, γik to 0; andsetting an initial iteration step size αq as k/(q+1), setting the values for the maximum number of iterations Qmax and a minimum upper bound-lower bound interval εmin;(iii) solving the Lagrangian relaxation problem using a shortest path solution method to obtain a lower bound of the first sub-model and a lower bound of the second sub-model; adding the feasible crew pairing to a column pool;(iv) based on continuous update of the column pool, solving original problem to obtain an upper bound;(v) calculating an interval between the upper bound and the lower bound of the original problem and determining whether the Lagrangian relaxation algorithm ending condition is met;if yes, ending the Lagrangian relaxation algorithm;otherwise, proceeding to step (vi); and(vi) updating the Lagrangian multipliers using a subgradient method; andreturning to step (iii).
Priority Claims (1)
Number Date Country Kind
202110715764.9 Jun 2021 CN national
US Referenced Citations (3)
Number Name Date Kind
20080109124 Daum et al. May 2008 A1
20110112877 Govind et al. May 2011 A1
20180032964 Gkiotsalitis et al. Feb 2018 A1
Foreign Referenced Citations (7)
Number Date Country
102542404 Jul 2012 CN
109508809 Mar 2019 CN
110288168 Sep 2019 CN
110490440 Nov 2019 CN
110751358 Feb 2020 CN
111547113 Aug 2020 CN
112101686 Dec 2020 CN
Non-Patent Literature Citations (10)
Entry
Caprara et al., Algorithms for railway crew management, Mathematical Programming 79 (1997) pp. 125-141. (Year: 1997).
Ceria et al., A Langrangian-based heuristic for large-scale set covering problems, Mathematical Programming 81 (1998) pp. 215-228. (Year: 1998).
Abbink et al,. Solving large scale crew scheduling problems in practice, Public Transp (2011) 3, pp. 149-164. (Year: 2011).
Dauzère-Pérèz et al., A Lagrangian heuristic framework for a real-life integrated planning problem of railway transportation resources, Transportation Reseach Part B 74 (2015) pp. 138-150. (Year: 2015).
Fuentes et al., A new approach to crew scheduling in rapid transit networks, Transportation Research Procedia 10 (2015) pp. 554-563. (Year: 2015).
Zhang et al., Joint optimization of train scheduling and maintenance planning in a railway network: A heuristic algorithm using Lagrangian relaxation, Transportation Research Part B 134 (2020) pp. 64-92. (Year: 2020).
Zhou et al., Integrated optimization approach to metro crew scheduling and rostering, Transportation Research Part C 123 (2021) 102975. Available online Feb. 3, 2021. (Year: 2021).
Ying Wang, Zheming Zhang, Dennis Huisman, Andrea D'ariano, Jinchuan Zhang; A Lagrangian Relaxation Approach Based on a Time-Space-State Network for Railway Crew Scheduling; Econometric Institute Research Papers, 2018, 1-24; School of Traffic and Transportation, Beijing Jiaotong University, Beijing 100044, China.
Yang Guo-Yuan, Shi Tian-Yun, Zhang Qiu-Liang; Model and Algorithm for Railway Passenger Crew Rostering Plan; Journal of Transportation Systems Engineering and Information Technology, vol. 16 No. 4, Aug. 2016; China Academy of Railway Sciences, Beijing 100081, China.
Wang Ying, Liu Jun, Miao Jianrui; A Heuristic Approach for Crew Rostering Problem Based on Equivalent Crew Duties Set; Journal of Transport Information and Safety, vol. 30 No. 167, Feb. 2012; School of Traffic and Transportation, Beijing Jiaotong University, Beijing 100044, China.
Related Publications (1)
Number Date Country
20220327462 A1 Oct 2022 US