A peak car fleet crew scheduling method and system

By generating route tables using the ant colony algorithm, the problem of uneven working mileage and resource waste among drivers in urban rail transit operations has been solved, achieving a balanced allocation of working mileage and efficient utilization of resources.

CN116415922BActive Publication Date: 2026-11-24ZHENGZHOU THINK FREELY HI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111629445.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2026-11-24
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The uneven working mileage of drivers and the waste of resources caused by differences in passenger flow in urban rail operations, especially during morning and evening rush hours, cannot be effectively solved by existing scheduling methods.

Method used

The route table is generated using an ant colony algorithm. Ants combine trains based on pheromone concentration to form a balanced number of trips and mileage. The fleet is then allocated according to the route table to ensure balanced mileage for drivers and efficient resource utilization.

Benefits of technology

This achieves a balanced distribution of drivers' working mileage, reduces resource waste, saves on the number of drivers, and lowers operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116415922B_ABST
    Figure CN116415922B_ABST
Patent Text Reader

Abstract

This invention relates to a method and system for scheduling shifts in a peak-hour vehicle fleet, comprising the following steps: 1) Importing train schedule information for the route to be scheduled; 2) Importing route parameters for the route to be scheduled; 3) Generating a route table: initializing an ant colony algorithm; using train schedule information and route parameters as constraints, each ant completes a free combination of all trains based on pheromone concentration, forming several shifts for the route to be scheduled in a day, each shift including several routes, each route including several trains, and each shift having the same number of routes; calculating the total mileage of each route in each shift, calculating the variance of the mileage of each shift, obtaining the sum of the variances of the mileage of each shift in the same train combination, and updating the pheromone based on the sum of the variances; using the ant colony algorithm to find a train combination where the sum of the variances of the mileage of each shift is less than a set value to form a route table; 4) Allocating the fleet to complete the scheduling based on the route table and the number of passengers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method and system for scheduling train crews during peak hours, belonging to the field of urban rail transit crew scheduling. Background Technology

[0002] The urban rail transit scheduling plan is based on the train timetable. With the train timetable already determined, the scheduling plan must ensure that each train in the timetable has a corresponding driver, while controlling the number of drivers to reduce operating costs; it must also ensure that drivers have sufficient rest time to prevent fatigue driving, while ensuring that all drivers have a balanced driving mileage.

[0003] Currently, urban rail transit operations across the country divide the workday into three shifts: morning shift (5:00-8:00), day shift (8:00-16:00), and night shift (16:00-2:00). Figure 1 As shown, the drivers appear as a whole fleet, and after reaching the designated station at the end of their shift, they go home one by one. These three time periods are handled by four fleets in rotation. If the rule is "night shift, day shift, early shift, rest day", then a certain fleet will work the night shift on the first day, the day shift on the second day, the early shift on the third day, rest on the fourth day, and continue working the night shift on the fifth day, in a four-day cycle, and so on, that is, four shifts and three rotations.

[0004] Due to the nature of urban work, passenger flow peaks during morning and evening rush hours. Urban rail transit operators develop train timetables to adapt to this characteristic, which involves adding extra trains during morning and evening rush hours and returning some trains to the depot after the rush hours. However, because trains depart from the depot at different times, if a morning rush hour train departs at 7:00 AM, the morning rush hour trains will gradually finish their shifts by 8:00 AM. This can result in a severe shortage of mileage and a significant waste of resources. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for scheduling passengers in a peak-hour vehicle fleet, in order to solve the problems caused by differences in passenger flow.

[0006] To achieve the above objectives, the present invention includes: A peak-hour fleet scheduling method according to the present invention includes the following steps: 1) Import the train schedule information for the routes to be scheduled. The train schedule information includes the departure time, arrival time, origin station, arrival station, and distance traveled for all trains. 2) Import the route parameters of the routes to be scheduled. The route parameters are set according to the hardware facilities conditions of the corresponding routes. 3) Generate route table: Initialize the ant colony algorithm and set the number of ants; train schedule information and route parameters are used as constraints. Each ant completes the free combination of all trains based on pheromone concentration to form several trains for the route to be scheduled in a day. Each train includes several routes, and each route includes several trains. The number of routes in each train is the same; calculate the total mileage of each route in each train, calculate the variance of the mileage of each train, obtain the sum of the variances of the mileage of each train in the same train combination, and update the pheromone according to the sum of the variances; use the ant colony algorithm to find a train combination in which the sum of the variances of the mileage of each train is less than a set value to form the route table. 4) Assign fleets according to the route schedule and the number of crew members. The number of fleets is greater than or equal to the number of shifts. Different fleets have the same number of shifts. Assign the corresponding fleet to each shift to complete the scheduling.

[0007] This invention provides a method for scheduling train crews during peak hours. First, the train schedules for the routes to be scheduled are imported. Then, the route parameters for the routes to be scheduled are imported. Finally, an ant colony algorithm is used to generate a route table. When generating the route table using the ant colony algorithm, the algorithm needs to be initialized first, and the number of ants needs to be set. The train schedules and route parameters are used as constraints. Each ant, based on pheromone concentration, freely combines all trains to form several trains for the routes to be scheduled each day. Each train contains several routes, and each route contains several trains.

[0008] Calculate the total mileage traveled on each route within each train service, then calculate the variance of the mileage traveled on each train service. Finally, sum the variances of the mileage traveled on each train service within the same train service combination, which is the sum of the mileage traveled on each train service throughout the day. Update the pheromone based on the sum of variances, and use the ant colony algorithm to find train service combinations where the sum of the variances of the mileage traveled on each train service is less than a set value to form a route table.

[0009] Further, in step 3), several train combinations with a sum of variances of travel distances less than a set value are obtained, and the train combination with the fewest total routes is selected to form a route table; the total number of routes is the sum of the number of routes of each train in the corresponding train combination.

[0010] Selecting train combinations where the sum of the variances of mileage is less than a set value ensures a balanced mileage for all drivers along the route. Based on this, selecting the train combinations with the fewest total trips to form the schedule controls the number of drivers and saves resources while ensuring a balanced mileage for all drivers.

[0011] Further, in step 3), several train combinations with a sum of variances of travel distances less than a set value are obtained, and the train combination with the smallest sum of variances of travel distances is selected to form a route table.

[0012] Choose the combination of train trips with the smallest sum of variances in mileage traveled, because the smallest sum of variances indicates the smallest dispersion, resulting in the most balanced mileage traveled by the drivers.

[0013] Further, in step 4), the scheduling method is to generate a fleet number equal to the number of shifts based on the number of shifts in the route table. Each fleet is divided into machine shifts with the same number of routes in each shift. Each fleet takes turns performing different shifts each day, and each machine shift in the fleet performs one route in the corresponding shift.

[0014] Furthermore, the route parameters include the minimum distance for each shift and the range of times for each shift to end.

[0015] A peak-hour fleet crew scheduling system of the present invention includes a processor, wherein the processor executes instructions to implement the following method steps: 1) Obtain the train schedule information for the routes to be scheduled, including the departure time, arrival time, origin station, arrival station, and distance traveled for all trains; 2) Obtain the route parameters of the routes to be scheduled, wherein the route parameters are set according to the hardware facilities conditions of the corresponding routes; 3) Generate route table: Initialize the ant colony algorithm and set the number of ants; train schedule information and route parameters are used as constraints. Each ant completes the free combination of all trains based on pheromone concentration to form several trains for the route to be scheduled in a day. Each train includes several routes, and each route includes several trains. The number of routes in each train is the same; calculate the total mileage of each route in each train, calculate the variance of the mileage of each train, obtain the sum of the variances of the mileage of each train in the same combination, and update the pheromone according to the sum of the variances; use the ant colony algorithm to find a train combination in which the sum of the variances of the mileage of each train is less than a set value to form the route table. 4) Assign fleets according to the route schedule and the number of crew members. The number of fleets is greater than or equal to the number of shifts. Different fleets have the same number of shifts. Assign the corresponding fleet to each shift to complete the scheduling.

[0016] This invention provides a peak-hour fleet scheduling system. First, it acquires the train schedule information for the routes to be scheduled, then acquires the route parameters for those routes, and finally uses an ant colony algorithm to generate a route table. When generating the route table using the ant colony algorithm, the algorithm needs to be initialized first, and the number of ants needs to be set. The train schedule information and route parameters are used as constraints. Each ant, based on pheromone concentration, freely combines all trains to form several shifts for the routes to be scheduled in a day. Each shift contains several routes, and each route contains several trains.

[0017] Calculate the total mileage traveled on each route within each train service, then calculate the variance of the mileage traveled on each train service. Finally, sum the variances of the mileage traveled on each train service within the same train service combination, which is the sum of the mileage traveled on each train service throughout the day. Update the pheromone based on the sum of variances, and use the ant colony algorithm to find train service combinations where the sum of the variances of the mileage traveled on each train service is less than a set value to form a route table.

[0018] Further, in step 3), several train combination combinations with a sum of variances of travel distances less than a set value are obtained, and the train combination with the fewest total routes is selected to form a route table; the total number of routes is the sum of the number of routes of each train in the corresponding train combination.

[0019] Selecting train combinations where the sum of the variances of mileage is less than a set value ensures a balanced mileage for all drivers along the route. Based on this, selecting the train combinations with the fewest total trips to form the schedule controls the number of drivers and saves resources while ensuring a balanced mileage for all drivers.

[0020] Further, in step 3), several shift combinations with a sum of variances of mileage traveled less than a set value are obtained, and the shift combination with the smallest sum of variances of mileage traveled is selected to form a route table.

[0021] Choose the combination of train trips with the smallest sum of variances in mileage traveled, because the smallest sum of variances indicates the smallest dispersion, resulting in the most balanced mileage traveled by the drivers.

[0022] Further, in step 4), the scheduling method is to generate a fleet number equal to the number of shifts based on the number of shifts in the route table. Each fleet is divided into machine shifts with the same number of routes in each shift. Each fleet takes turns performing different shifts each day, and each machine shift in the fleet performs one route in the corresponding shift.

[0023] Furthermore, the route parameters include the minimum distance for each shift and the range of times for each shift to end. Attached Figure Description

[0024] Figure 1 It is the scheduling model in the background technology; Figure 2 This is a diagram showing the train schedule; Figure 3 This is a schematic diagram of the ant colony algorithm; Figure 4 This is a flowchart of the peak-hour fleet scheduling method of the present invention; Figure 5 It is a full-day route schedule generated using the peak-hour train pair scheduling method of this invention. Detailed Implementation

[0025] The present invention will now be described in further detail with reference to the accompanying drawings.

[0026] This invention provides a method and system for peak-hour train crew scheduling. In urban rail transit scheduling, based on passenger volume, long routes and short routes are established. A short route refers to a round trip with a specific station as the final destination, while a long route covers the entire journey. During urban rail transit operation, there will be sections with high passenger volume and sections with low passenger volume. To accommodate passenger volume, more trains will be added to the high-volume sections. A short route is defined as the section starting at the first high-volume station in the direction of train travel and ending at the last high-volume station. Conversely, during urban rail transit operation, there will be periods where the entire line experiences high passenger volume; in these cases, the long route is defined as the section with consistently high passenger volume.

[0027] The route schedule, as shown in Table 1, is used for scheduling urban rail transit crew (drivers). The table displays different shifts for the day (three shifts are shown: morning shift, 1-6 AM; day shift, 7-12 PM; night shift, 1-6 PM). Each shift includes several routes, and each route includes several trains traveling to and from that route (the six digits in the table represent the train numbers). When scheduling, crew members are divided into four shifts (four train teams) based on human resources information, and a four-shift, three-rotation system is implemented for the three shifts of the day. The number of shifts in each train team should equal the number of routes in each shift, and each shift can have one to two drivers.

[0028] Based on urban residents' daily routines, urban rail transit experiences peak hours during morning and evening rush hours. To accommodate this increased passenger volume, a "peak-hour train scheduling strategy" has been implemented. This involves assigning a separate team for each peak hour, adding extra train services beyond the current off-peak schedules. These teams are responsible for both morning and evening peak-hour train departures and depot preparation. Currently, peak-hour train services are scheduled manually. Figure 1 The peak-hour route schedule shown is as follows. It can be seen from this schedule that the scheduling method mimics the off-peak "night, day, and early" shift pattern. The early morning shift overlaps with the morning peak to some extent, with multiple trips scheduled during the early morning to alleviate morning peak congestion. During the day shift, the morning peak ends and passenger flow decreases. The peak-hour fleet's day shift mainly focuses on returning vehicles to the depot and, after 5 PM, near the evening peak, adds extra trips to cope with the evening peak. They then quickly finish their shift as it approaches the end of the day shift, and the peak-hour fleet's night shift takes over to continue adding extra trips for the evening peak.

[0029] Table 1 Peak Route Table Generated Before Using This Invention

[0030]

[0031]

[0032] The system consists of three shifts: morning, day, and night. Each shift has six routes, with one crew operating each route. These six crews form a convoy, while another convoy is resting. Therefore, the operational strategy for peak-hour dispatch and depot preparation tasks is a four-shift, three-rotation system. Figure 1 As shown, Figure 1 The routes highlighted in the image represent the additional fleets added during peak hours, corresponding to the route table generated in Table 1. Taking the first route in the morning shifts as an example (Morning 1), the corresponding... Figure 1 The first box in the diagram indicates the route numbered 1. In the morning shift, the first train (312025) of the first route departs from the Xi'an-Xianyang interchange to Chaoyangmen, which is the first sub-route ① in route 1; the second train (351049) departs from Chaoyangmen to the Xi'an-Xianyang interchange, which is the second sub-route ② in route 1; after the third train (122075) departs from the Xi'an-Xianyang interchange to Chaoyangmen, the driver completes their shift for the day. The next driver in the next shift changes shifts, becoming the driver of the first route (day 7) in the day shift. The driver of the first route in the day shift returns the third train (122075) from the first route in the morning shift, heading towards Chaoyangmen, to the depot, corresponding to the depot return section ③ in route 1. The drivers of the first route in the morning shift and the first route in the day shift hand over their duties at this section.

[0033] The first driver on the day shift returns vehicle 122075 to the depot and enters the rest area. Figure 1 During the day shift, from a break at 10:00 AM to approximately 2:40 PM, car 021098 departs from Chaoyangmen Station for the Xi'an-Xianyang interchange, corresponding to section ④ of route 1. Then, car 302116 departs from the Xi'an-Xianyang interchange and returns to Chaoyangmen. After driving car 302116 back to Chaoyangmen, the driver completes their shift for the day. The next driver from the next shift then transfers to the first route of the night shift (Night 13). The driver of the first route of the day shift and the driver of the first route of the night shift transfer at Chaoyangmen Station, corresponding to the third sub-route ⑤ of route 1.

[0034] In the first shift of the night shift, the driver of car 302116 drives from Chaoyangmen to the Xi'an-Xianyang interchange, then drives car 172199 from the Xi'an-Xianyang interchange back to Chaoyangmen, which corresponds to the fourth small shift in shift 1 (⑥); then drives car 491222 from Chaoyangmen to the Xi'an-Xianyang interchange, which corresponds to the first large shift in shift 1 (⑦); immediately afterward, drives car 532249 from the Xi'an-Xianyang interchange back to Chaoyangmen, which corresponds to the second large shift in shift 1 (⑧); finally, drives car 031272 from Chaoyangmen back to the Xi'an-Xianyang interchange to enter the depot, which corresponds to the return section in shift 1 (⑨).

[0035] In route schedules generated using existing technology, drivers in day shift train crews need approximately five hours of rest after each train return trip, during which time they have no work assignments and it's not their off-duty period, resulting in significant resource waste. Furthermore, the mileage traveled by drivers across the entire line is uneven.

[0036] Method Implementation Examples: This invention provides a method for scheduling crew members in a peak-hour vehicle fleet, the specific steps of which are as follows: 1) Import the train schedule information for the routes to be scheduled.

[0037] The train timetable is analyzed, and the train numbers in the train timetable standard are stored in the database in a free state. The train timetable is a collection of all train number lists, such as... Figure 2 As shown, the train schedule list specifies the workload of the crew department for one day, including information such as departure time, arrival time, departure station, arrival station, train type, distance traveled, and running time for each train.

[0038] 2) Set the route parameters for the routes to be scheduled.

[0039] While importing the train timetable into the database, a list of route parameters was set. Due to the diversity of trains and the different hardware facilities on each line, many necessary parameters were set to restrict each line. The specific list of route parameters is shown in Table 2.

[0040] Table 2. Route Parameter List

[0041] 3) Generate a route table.

[0042] After loading the train timetable and route parameter list into the database, the route table is generated using the ant colony algorithm. The ant colony algorithm is as follows: Figure 3As shown, ants secrete a pheromone during foraging. By assessing the pheromone concentration along the same path, the ant colony can always find the optimal route from the nest to the food source. This invention utilizes this biomimicry, continuously marking the results (pheromone secretion) through countless free combinations of ant foraging routes to find the combination with the most balanced mileage and the fewest intersections (comparing and finding the best path). The specific combination process is as follows... Figure 4 As shown, in each combination process, the total number of trains remains unchanged, while the combination relationship between different trains changes. In the algorithm, each ant starts from any train and combines the trains according to the pheromone concentration. After completing the combination of all trains, the train combination is obtained, which is the route table.

[0043] Then, calculate the total mileage for each route in each shift in the route schedule. The total mileage is the sum of the mileages of each individual train (for example, in the route with route number 1 in Table 1, the total mileage is the sum of the mileages of trains 312025, 351049, and 122075). The total mileages of each route in each shift in the route schedule form a sequence. Calculate the variance of this sequence, which is the variance of the mileage for the corresponding shift. This variance reflects the differences in the total mileage of each route within the corresponding shift. Since each route in the same shift is executed by different shifts from the same fleet, the difference in the total mileage of each route within the same shift should be as small as possible; that is, the variance of the mileage for the shift should be as small as possible. Otherwise, the working hours of different shifts within the same fleet in the same shift will vary significantly. In the same route schedule, different teams operate each shift on a daily basis, and the working hours of each shift are also different (the morning shift is shorter, and the day and night shifts are longer). Therefore, the total mileage traveled between different shifts should vary (but the total mileage traveled between shifts within the same shift should not differ significantly). Therefore, the sum of the variances of the mileage traveled by each shift in the same route schedule should be as small as possible.

[0044] Therefore, in the ant colony algorithm, the sum of the variances of the travel distances for each train trip is calculated based on the train trip combinations (routes) obtained by each ant, and the pheromone for each train trip combination is updated based on this sum of variances. The algorithm terminates when a set condition is met, specifically, the sum of the variances of the travel distances for each train trip is less than a set value. After the algorithm ends, if multiple train trip combinations (routes) are obtained, the one with the fewest train trips, the one with the smallest sum of variances, or a combination of both can be selected.

[0045] Specifically, the ant colony algorithm is first initialized and the number of ants is set. The time information of the trains and the route parameters are used as constraints. Each ant completes the free combination of all trains according to the pheromone concentration to form several trains for the day of the route to be scheduled. Each train includes several routes, each route contains several trains, and the number of routes for each train is the same.

[0046] Calculate the total mileage traveled for each route within each shift, then calculate the variance of the mileage traveled for each shift, and finally obtain the sum of the variances of the mileage traveled for each shift within the same combination, i.e., the sum of the variances of the mileage traveled for each shift throughout the day. Update the pheromone based on the sum of variances, and use an ant colony algorithm to find a shift combination where the sum of the variances of the mileage traveled for each shift is less than a set value to form the route table (first calculate the sum of the variances of the mileage traveled between each shift within the day, then determine the shift combination where the sum of the variances is less than a set value from all possible shift combinations to form the daily route table).

[0047] Variance represents the degree of dispersion of data. Calculating the variance of the distance traveled for each shift is equivalent to calculating the dispersion of the distance traveled for each shift. Then, calculating the sum of the variances of the distance traveled for each shift within the same shift combination represents the dispersion of the distance traveled for each shift. The ant colony algorithm finds the shift combination with the smallest sum of variances of distance traveled for each shift within a day to form a route table, which is equivalent to finding the shift combination with the smallest dispersion of distance traveled for each shift within a day. However, during the calculation process of the ant colony algorithm, when the algorithm converges to a certain extent, the change in the sum of variances becomes very small. To avoid the algorithm running indefinitely, the route table is formed by outputting shift combinations with a sum of variances less than a set value. A small sum of variances indicates low dispersion, which means the distance traveled across shifts is most balanced, thus ensuring a balanced distance traveled by drivers within each shift.

[0048] To avoid wasting resources and reduce the number of drivers, the route table is generated by selecting the combination with the fewest trips from the most balanced mileage combinations. Fewer trips mean fewer drivers needed for each trip, thus reducing operating costs.

[0049] 4) Assign convoys according to the route schedule and the number of crew members.

[0050] Fleets are allocated according to the route schedule and the number of crew members. The number of fleets is greater than or equal to the number of routes. Different fleets have the same number of shifts. The corresponding fleet is assigned to each shift to complete the scheduling.

[0051] After using the ant colony algorithm of this invention, the route table for the peak segment is shown in Table 3.

[0052] Table 3 Peak Traffic Routes Generated Using This Invention

[0053]

[0054] This invention utilizes the method to break down the 18 routes in Table 1 into 12 routes in Table 3. The "early," "day," and "night" routes in Table 1 are further divided into "mid-peak" and "evening peak" routes in Table 3. Specifically, the day shifts in Table 1 are split into two parts, allocated to early and night shifts respectively. One part is allocated to routes with lower mileage among the early shifts, forming the "mid-peak" route in Table 3, thus addressing the issue of insufficient mileage for early shifts. The other part is allocated to night shifts with insufficient mileage, forming the "night peak" route in Table 3, thus addressing the issue of insufficient mileage for night shifts.

[0055] Taking the first route in the mid-peak shift as an example, the task of returning car 122075 to the depot for the driver of the first route in the day shift in Table 1 is assigned to the first route of the mid-peak shift. That is, the driver of the first route of the mid-peak shift drives car 312025 from the Xi'an-Xianyang transfer rail to Chaoyangmen, then drives car 351049 from Chaoyangmen to the Xi'an-Xianyang transfer rail, and finally drives car 122075 from the Xi'an-Xianyang transfer rail to Chaoyangmen. Compared with the peak shift schedule generated by the prior art, in the peak shift schedule generated by this invention, the driver of the first route of the mid-peak shift needs to drive car 122075 from Chaoyangmen to the Xi'an-Xianyang transfer rail to enter the depot in order to complete the day's shift task.

[0056] During the evening rush hour, the first route of the evening peak will take car 021098 from the Xi'an-Xianyang interchange to Chaoyangmen, then car 302116 from the Xi'an-Xianyang interchange to Chaoyangmen, then car 172199 from Chaoyangmen to the Xi'an-Xianyang interchange, then car 491222 from the Xi'an-Xianyang interchange to Chaoyangmen, then car 532249 from Chaoyangmen to the Xi'an-Xianyang interchange, and finally car 0312272 from the Xi'an-Xianyang interchange to Chaoyangmen. Finally, car 0312272 will return to the depot from Chaoyangmen to the Xi'an-Xianyang interchange.

[0057] Table 1, which does not use the peak-hour route table generated by this method, has three shifts: "Early," "Day," and "Night." Each shift has six routes, with one route corresponding to one flight, resulting in six flight shifts for a total of six routes. In addition to the three shifts, there is one shift with rotating rest days, operating on a three-shift, four-rotation basis, for a total of four shifts. Each shift corresponds to six flight shifts, resulting in a total of 4 × 6 = 24 flight shifts. Table 3 has two shifts: "Mid-Peak" and "Night Peak," each with six routes, one route corresponding to one flight, resulting in six flight shifts for a total of six routes. This invention uses a two-shift, two-rotation system, resulting in a total of 2 × 6 = 12 flight shifts. Therefore, using this invention saves 24 - 12 = 12 flight shifts and also solves the problem of uneven mileage between early and night shifts.

[0058] Because urban rail transit operations are streamlined, it requires that urban rail transit attendants appear in entire shifts. If there are 50 shifts in one shift, then there are also 50 shifts in other shifts.

[0059] The route table generated in this invention is a route table for peak periods, such as... Figure 5 As shown, the train schedule throughout the day is arranged according to four shifts and three rotations. During the morning and evening peak hours, additional trains are added according to the peak-hour schedule generated by this invention. Weekends do not have peak-off characteristics, and trains can rest on weekends, so the original four shifts and three rotations are implemented. Therefore, the peak-hour schedule of this invention uses two shifts and two rotations. Even if three shifts and two rotations are used during peak hours, it still saves 6 shifts compared to not using the peak-hour schedule of this invention.

[0060] System Implementation Example: The present invention also provides a peak-hour fleet crew scheduling system. The system includes a processor that executes corresponding instructions to implement the peak-hour fleet crew scheduling method. The peak-hour fleet crew scheduling method has been clearly described in the method embodiments and will not be repeated here.

Claims

1. A method for scheduling crew members in a peak-hour vehicle fleet, characterized in that, Generating a route schedule for peak periods, and adding trains during the morning and evening peak hours according to the route schedule, includes the following steps: 1) Import the train schedule information for the routes to be scheduled. The train schedule information includes the departure time, arrival time, origin station, arrival station, and distance traveled for all trains. 2) Import the route parameters of the routes to be scheduled. The route parameters are necessary parameters set according to the diversity of trains and the hardware conditions of the corresponding routes to restrict each route. The route parameters include the minimum mileage for each train. 3) Generate the intersection table: Initialize the ant colony algorithm and set the number of ants; Using train schedule information and route parameters as constraints, each ant freely combines all trains based on pheromone concentration to form several shifts for the route to be scheduled in a day. Each shift includes several routes, and each route includes several trains. The number of routes is the same for each shift. The total mileage of each route in each shift is calculated, and the total mileage is the sum of the mileage of each train in the corresponding route. The total mileage of each route in each shift forms a sequence, and the variance of this sequence is calculated as the variance of the mileage of the corresponding shift. The sum of the variances of the mileage of each shift in the same train combination is obtained, and the pheromone is updated based on the sum of the variances. The ant colony algorithm is used to find multiple train combinations where the sum of the variances of the mileage of each shift is less than a set value to ensure that the mileage of drivers in each shift is balanced. The train combination with the fewest shifts is then selected to form the route table. 4) Assign fleets according to the route schedule and the number of crew members. The number of shifts in each fleet is equal to the number of routes in each shift. Assign a corresponding fleet to each shift, and each shift in the fleet executes one route in the corresponding shift to complete the scheduling.

2. The peak-hour fleet scheduling method according to claim 1, characterized in that, In step 3), several train combinations with a sum of variances of travel distances less than a set value are obtained, and the train combination with the fewest total routes is selected to form the route table; the total number of routes is the sum of the number of routes of each train in the corresponding train combination.

3. The peak-hour fleet scheduling method according to claim 1, characterized in that, In step 3), several train combinations with a sum of variances of travel distances less than a set value are obtained, and the train combination with the smallest sum of variances of travel distances is selected to form the route table.

4. The peak-hour fleet scheduling method according to claim 1, 2, or 3, characterized in that, In step 4), the scheduling method is to generate a number of fleets equal to the number of shifts in the route table, and each fleet is divided into shifts with the same number of routes in each shift. Each fleet takes turns performing different shifts every day, and the route table adopts a two-shift, two-operation system.

5. The peak-hour fleet scheduling method according to claim 4, characterized in that, The route parameters include the end time range for each shift and the connection time between two shifts.

6. A peak-hour fleet crew scheduling system, characterized in that, Includes a processor that executes instructions to implement the following method steps: 1) Generate a route schedule for peak periods, add trains according to the route schedule during the morning and evening peak hours, and obtain the train schedule information for the routes to be scheduled. The train schedule information includes the departure time, arrival time, origin station, arrival station and travel distance of all trains. 2) Obtain the route parameters of the routes to be scheduled. The route parameters are necessary parameters set according to the diversity of trains and the hardware facilities of the corresponding routes to restrict each route. The route parameters include the minimum mileage for each train. 3) Generate the intersection table: Initialize the ant colony algorithm and set the number of ants; Using train schedule information and route parameters as constraints, each ant freely combines all trains based on pheromone concentration to form several shifts for the route to be scheduled in a day. Each shift includes several routes, and each route includes several trains. The number of routes is the same for each shift. The total mileage of each route in each shift is calculated, and the total mileage is the sum of the mileage of each train in the corresponding route. The total mileage of each route in each shift forms a sequence, and the variance of this sequence is calculated as the variance of the mileage of the corresponding shift. The sum of the variances of the mileage of each shift in the same train combination is obtained, and the pheromone is updated based on the sum of the variances. The ant colony algorithm is used to find multiple train combinations where the sum of the variances of the mileage of each shift is less than a set value to ensure that the mileage of drivers in each shift is balanced. The train combination with the fewest shifts is then selected to form the route table. 4) Assign fleets according to the route schedule and the number of crew members. The number of shifts in each fleet is equal to the number of routes in each shift. Assign a corresponding fleet to each shift, and each shift in the fleet executes one route in the corresponding shift to complete the scheduling.

7. The peak-hour fleet scheduling system according to claim 6, characterized in that, In step 3), several train combinations with a sum of variances of travel distances less than a set value are obtained, and the train combination with the fewest total routes is selected to form the route table; the total number of routes is the sum of the number of routes of each train in the corresponding train combination.

8. The peak-hour fleet scheduling system according to claim 6, characterized in that, In step 3), several train combinations with a sum of variances of travel distances less than a set value are obtained, and the train combination with the smallest sum of variances of travel distances is selected to form the route table.

9. The peak-hour fleet crew scheduling system according to claim 6, 7, or 8, characterized in that, In step 4), the scheduling method is to generate a number of fleets equal to the number of shifts in the route table, and each fleet is divided into shifts with the same number of routes in each shift. Each fleet takes turns performing different shifts every day, and the route table adopts a two-shift, two-operation system.

10. The peak-hour fleet scheduling system according to claim 9, characterized in that, The route parameters include the end time range for each shift and the connection time between two shifts.