Vehicle scheduling optimization method, device and electronic equipment
By using historical site and vehicle operation data to optimize the departure interval of the vehicle scheduling system, the problem of poor flexibility of the existing system is solved, minimizing passenger waiting time and improving the ride experience.
Patent Information
- Application Number
- CN202011592616.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-12-29
AI Technical Summary
The existing vehicle scheduling system relies on the experience of operating personnel, has poor flexibility, and cannot effectively meet passenger needs, resulting in long waiting times for passengers.
By obtaining historical site data and vehicle operation data, deep learning technology and mathematical programming models are used to optimize the departure interval in each time period to minimize the total passenger waiting time and generate an optimized departure timetable.
It minimizes passenger waiting time in each time period, improves passengers' riding experience, and effectively utilizes vehicle resources.
Smart Images

Figure CN113722874B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of intelligent transportation and deep learning technology, and in particular to a vehicle scheduling optimization method, device, electronic device and storage medium. Background Art
[0002] At present, buses, company shuttles, scenic sightseeing buses, park vehicles and other vehicles have brought a lot of convenience to people's lives. For example, people can choose to take buses or company shuttles to go to get off work, take scenic sightseeing buses to play in scenic spots, and take park vehicles to move around in the park. However, the scheduling of these vehicles is mostly set by operators, which relies more on the experience of operators, has poor flexibility, and cannot meet the needs of passengers. Summary of the invention
[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0004] To this end, the first embodiment of the present application proposes a vehicle scheduling optimization method, which can generate an optimized departure interval between two adjacent shifts in each time period based on historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period. Thus, the impact of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the passenger experience.
[0005] The second embodiment of the present application proposes a vehicle scheduling optimization device.
[0006] A third aspect of the present application provides an electronic device.
[0007] The fourth aspect of the present application provides a computer-readable storage medium.
[0008] The first aspect of the present application proposes a vehicle scheduling optimization method, including: obtaining historical site data and vehicle operation data; based on the historical site data and the vehicle operation data, generating an optimized departure interval between every two adjacent shifts in each time period with the optimization goal of minimizing the total passenger waiting time in each time period; generating a departure timetable based on the optimized departure interval between every two adjacent shifts in each time period and the start time of each time period.
[0009] According to the vehicle scheduling optimization method of the embodiment of the present application, it is possible to generate the optimized departure interval between two adjacent shifts in each time period based on historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period. Thus, the influence of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0010] In addition, the vehicle scheduling optimization method according to the above embodiment of the present application may also have the following additional technical features:
[0011] In one embodiment of the present application, the optimized departure interval between each two adjacent shifts in each time period is generated based on the historical station data and the vehicle operation data, with minimizing the total waiting time of passengers in each time period as the optimization goal, including: calculating the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station based on the historical station data and the vehicle operation data; based on the inter-station travel time between each two adjacent stations in each time period, with minimizing the total waiting time of passengers in each time period as the optimization goal, generating the optimized departure interval between each two adjacent shifts in each time period.
[0012] In one embodiment of the present application, the calculating the inter-station travel time between each two adjacent stations in each time period based on the historical station data and the vehicle operation data includes: obtaining the arrival time of each station for each shift of vehicles in each time period based on the historical station data and the vehicle operation data; calculating the inter-station travel time between each two adjacent stations for each shift in each time period based on the arrival time of each station for each shift of vehicles in each time period; calculating the average of the inter-station travel time of all shifts between each two adjacent stations in each time period, and obtaining the inter-station travel time between each two adjacent stations in each time period.
[0013] In one embodiment of the present application, the waiting time of each passenger at each station in each time period is calculated based on the historical station data and the vehicle operation data, including: generating a time distribution of passenger flow at each station in each time period based on the historical station data and the vehicle operation data; calculating the waiting time of each passenger at each station in each time period based on the time distribution of passenger flow at each station in each time period.
[0014] In one embodiment of the present application, the optimized departure interval between each two adjacent shifts in each time period is generated based on the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, with minimizing the total waiting time of passengers in each time period as the optimization goal, including: inputting the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station into a preset departure interval optimization model to obtain the optimized departure interval between each two adjacent shifts in each time period.
[0015] In one embodiment of the present application, the departure interval optimization model includes: the optimization goal is to minimize the total waiting time of passengers in each time period; the first constraint condition is that the time when the first shift of vehicles in each time period arrives at the first station is the start time of the time period; the second constraint condition is that the sum of the time when the current shift of vehicles in each time period arrives at the current station and the departure interval between the current shift and the next shift is equal to the time when the next shift of vehicles arrives at the current station; the third constraint condition is that the sum of the time when the last shift of vehicles in each time period arrives at the last station and the departure interval between the last shift and the next shift is greater than the end time of the time period; the fourth constraint condition is that the sum of the time when the current shift of vehicles in each time period arrives at the previous station and the station-to-station travel time between the previous station and the current station is equal to the time when the current shift of vehicles arrives at the current station; the fifth constraint condition is that the optimized departure intervals of every two adjacent shifts in each time period are within the preset departure interval time range.
[0016] In one embodiment of the present application, it also includes: if the time difference between the departure time of the last shift in a single time period in the departure schedule and the end time of the single time period is less than a preset time difference threshold, then the last shift in the single time period in the departure schedule is cancelled.
[0017] In one embodiment of the present application, it also includes: generating a total number of dispatched vehicles based on the departure schedule with maximizing the vehicle utilization rate in each time period as an optimization goal.
[0018] In one embodiment of the present application, the total number of dispatched vehicles is generated according to the departure schedule with maximizing the vehicle utilization rate in each time period as the optimization goal, including: according to the departure schedule, using a preset dispatch vehicle number optimization model to generate the total number of dispatched vehicles.
[0019] In one embodiment of the present application, the dispatch vehicle number optimization model is:
[0020] Bnum=max(min x ((tx0 -t so )≥∑ i τ i )-s)+1(t x0 -t so -∑ i τ i <T transfer )
[0021] in,
[0022] Bnum is the total number of dispatched vehicles;
[0023] The x and s are shifts;
[0024] The x0 is the time when the vehicle of shift x arrives at the first station in each time period;
[0025] The s0 is the time when the vehicle of shift s arrives at the first station in each time period;
[0026] The τ i is the inter-station travel time between station i and station i+1 in each time period;
[0027] The min x ((t x0 -t so )≥∑ i τ i ) is satisfied within each time period (t x0 -t so )≥∑ i τ i The minimum value of x under the condition;
[0028] The min x ((t x0 -t so )≥∑ i τ i )-s is the number of vehicles running on the line at the same time in each time period;
[0029] The max(min x ((t x0 -t so )≥∑ i τ i )-s) is the maximum number of vehicles running on the line at the same time in different time periods;
[0030] The T transfer The dwell time between the time when the current shift’s vehicles arrive at the last stop and the time when the next shift’s vehicles arrive at the first stop in each time period;
[0031] When t is satisfied x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 1. When t is not met x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 0.
[0032] The second aspect of the present application proposes a vehicle scheduling optimization device, including: an acquisition module, used to acquire historical site data and vehicle operation data; a first generation module, used to generate an optimized departure interval between every two adjacent shifts in each time period based on the historical site data and the vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period; a second generation module, used to generate a departure timetable based on the optimized departure interval between every two adjacent shifts in each time period and the start time of each time period.
[0033] The vehicle scheduling optimization device of the embodiment of the present application can generate the optimized departure interval between two adjacent shifts in each time period based on historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period. Thus, the influence of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0034] In addition, the vehicle scheduling optimization device according to the above embodiment of the present application may also have the following additional technical features:
[0035] In one embodiment of the present application, the first generation module includes: a calculation unit for calculating the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station based on the historical station data and the vehicle operation data; a generation unit for generating the optimized departure interval between each two adjacent shifts in each time period based on the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, with the optimization goal of minimizing the total waiting time of passengers in each time period.
[0036] In one embodiment of the present application, the calculation unit includes: an acquisition subunit, used to obtain the time when the vehicle of each shift in each time period arrives at each station based on the historical station data and the vehicle operation data; a first calculation subunit, used to calculate the inter-station travel time between each two adjacent stations of each shift in each time period according to the time when the vehicle of each shift in each time period arrives at each station; a second calculation subunit, used to calculate the average of the inter-station travel time of all shifts between each two adjacent stations in each time period, and obtain the inter-station travel time between each two adjacent stations in each time period.
[0037] In one embodiment of the present application, the calculation unit includes: a generation subunit, used to generate the time distribution of passenger flow at each station in each time period based on the historical station data and the vehicle operation data; and a third calculation subunit, used to calculate the waiting time of each passenger at each station in each time period based on the time distribution of passenger flow at each station in each time period.
[0038] In one embodiment of the present application, the generating unit is specifically used to input the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station into a preset departure interval optimization model to obtain the optimized departure interval between each two adjacent shifts in each time period.
[0039] In one embodiment of the present application, the departure interval optimization model includes: the optimization goal is to minimize the total waiting time of passengers in each time period; the first constraint condition is that the time when the first shift of vehicles in each time period arrives at the first station is the start time of the time period; the second constraint condition is that the sum of the time when the current shift of vehicles in each time period arrives at the current station and the departure interval between the current shift and the next shift is equal to the time when the next shift of vehicles arrives at the current station; the third constraint condition is that the sum of the time when the last shift of vehicles in each time period arrives at the last station and the departure interval between the last shift and the next shift is greater than the end time of the time period; the fourth constraint condition is that the sum of the time when the current shift of vehicles in each time period arrives at the previous station and the station-to-station travel time between the previous station and the current station is equal to the time when the current shift of vehicles arrives at the current station; the fifth constraint condition is that the optimized departure intervals of every two adjacent shifts in each time period are within the preset departure interval time range.
[0040] In one embodiment of the present application, it also includes: a cancellation module, which is used to cancel the last shift in a single time period in the departure schedule if the time difference between the departure time of the last shift in a single time period in the departure schedule and the end time of the single time period is less than a preset time difference threshold.
[0041] In one embodiment of the present application, it also includes: a third generation module, which is used to generate the total number of dispatched vehicles based on the departure schedule with maximizing the vehicle utilization rate in each time period as the optimization goal.
[0042] In one embodiment of the present application, the third generating module is specifically used to generate the total number of dispatched vehicles according to the departure timetable using a preset dispatched vehicle number optimization model.
[0043] In one embodiment of the present application, the dispatch vehicle number optimization model is:
[0044] Bnum=max(min x ((t x0 -t so )≥∑ i τ i )-s)+1(t x0 -t so -∑ i τ i <T transfer )
[0045] in,
[0046] Bnum is the total number of dispatched vehicles;
[0047] The x and s are shifts;
[0048] The x0 is the time when the vehicle of shift x arrives at the first station in each time period;
[0049] The s0 is the time when the vehicle of shift s arrives at the first station in each time period;
[0050] The τ i is the inter-station travel time between station i and station i+1 in each time period;
[0051] The min x ((t x0 -t so )≥∑ i τ i ) is satisfied within each time period (t x0 -t so )≥∑ i τi The minimum value of x under the condition;
[0052] The min x ((t x0 -t so )≥∑ i τ i )-s is the number of vehicles running on the line at the same time in each time period;
[0053] The max(min x ((t x0 -t so )≥∑ i τ i )-s) is the maximum number of vehicles running on the line at the same time in different time periods;
[0054] The T transfer The dwell time between the time when the current shift’s vehicles arrive at the last stop and the time when the next shift’s vehicles arrive at the first stop in each time period;
[0055] When t is satisfied x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 1. When t is not met x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 0.
[0056] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the vehicle scheduling optimization method as described in the first aspect of the present application is implemented.
[0057] The electronic device of the embodiment of the present application can generate the optimized departure interval between two adjacent shifts in each time period based on the historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period, by executing the computer program stored in the memory through the processor. Thus, the influence of the historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0058] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the vehicle scheduling optimization method as described in the first aspect of the present application is implemented.
[0059] The computer-readable storage medium of the embodiment of the present application, by storing a computer program and being executed by a processor, can generate an optimized departure interval between two adjacent shifts in each time period based on historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period. Thus, the influence of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0060] Additional aspects and advantages of the present application will be given in part in the following description, and in part will become apparent from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0062] Figure 1 A schematic diagram of a process flow of a vehicle scheduling optimization method according to an embodiment of the present application;
[0063] Figure 2 A schematic diagram of a process for generating an optimized departure interval between two adjacent shifts in each time period in a vehicle scheduling optimization method according to an embodiment of the present application;
[0064] Figure 3 A schematic diagram of a flow chart of calculating the inter-station travel time between each two adjacent stations in each time period in a vehicle scheduling optimization method according to an embodiment of the present application;
[0065] Figure 4 A schematic diagram of a flow chart of calculating the waiting time of each passenger at each station in each time period in a vehicle scheduling optimization method according to an embodiment of the present application;
[0066] Figure 5 A schematic diagram of a vehicle scheduling optimization method according to an embodiment of the present application;
[0067] Figure 6 It is a structural schematic diagram of a vehicle scheduling optimization device according to an embodiment of the present application;
[0068] Figure 7is a structural schematic diagram of a vehicle scheduling optimization device according to another embodiment of the present application; and
[0069] Figure 8 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0070] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0071] The following describes the vehicle scheduling optimization method, device, electronic device and storage medium of the embodiments of the present application with reference to the accompanying drawings.
[0072] Figure 1 The figure is a flow chart of a vehicle scheduling optimization method according to an embodiment of the present application.
[0073] like Figure 1 As shown, the vehicle scheduling optimization method of the embodiment of the present application includes:
[0074] S101, obtaining historical site data and vehicle operation data.
[0075] It should be noted that the execution subject of the vehicle scheduling optimization method of the embodiment of the present application may be a vehicle scheduling optimization device, and the vehicle scheduling optimization device of the embodiment of the present application may be configured in any electronic device so that the electronic device can execute the vehicle scheduling optimization method of the embodiment of the present application. Among them, the electronic device may be a personal computer (PC), a cloud device, a mobile device, etc. The mobile device may be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a vehicle-mounted device, and other hardware devices with various operating systems, touch screens, and / or display screens.
[0076] In the embodiments of the present application, historical station data and vehicle operation data can be obtained. Among them, historical station data includes but is not limited to station passenger ticket inspection data, station passenger boarding and alighting card swiping data, station camera, station point data and other data, and vehicle operation data includes but is not limited to vehicle departure time, vehicle arrival time, vehicle running speed, vehicle real-time point, etc., which are not limited here. Among them, the station point may include the latitude and longitude coordinate data of the station, and the real-time point of the vehicle may include the real-time latitude and longitude coordinate data of the vehicle.
[0077] It should be noted that in the embodiments of the present application, the types of sites and vehicles are not limited. For example, sites include but are not limited to scenic sightseeing sites, bus sites, park sites, corporate shuttle bus sites, etc., and correspondingly, vehicles include but are not limited to scenic sightseeing vehicles, buses, park vehicles, corporate shuttle buses, etc.
[0078] S102, based on historical station data and vehicle operation data, with minimizing the total waiting time of passengers in each time period as the optimization goal, generating the optimized departure interval between every two adjacent shifts in each time period.
[0079] In the embodiment of the present application, the influence of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval of each adjacent two shifts in each time period is generated with minimizing the total waiting time of passengers in each time period as the optimization goal. In other words, the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0080] It is understandable that the optimized departure interval between two adjacent shifts in different time periods may be different. For example, the optimized departure interval between two adjacent shifts in the morning peak period (such as 8 am to 10 am) may be 3 minutes, and the optimized departure interval between two adjacent shifts in the daytime off-peak period (10 am to 4 pm) may be 6 minutes.
[0081] Optionally, the time period can be set according to actual conditions. For example, assuming that the vehicle operation time is from 6 am to 8 pm, the vehicle operation time can be divided into three time periods: 6 am to 9 am, 9 am to 5 pm, and 5 pm to 8 pm.
[0082] Optionally, the initial departure interval between two adjacent shifts in each time period may be preset. It is understandable that the initial departure interval between two adjacent shifts in different time periods may be different. For example, the initial departure interval between two adjacent shifts in each time period may be set with reference to Table 1.
[0083] Table 1
[0084] Time period Initial departure interval 8am to 10am (peak hour) (3-5) minutes 10am to 4pm (daytime off-peak hours) (5-10) minutes 4pm to 6pm (Evening Peak) (3-5) minutes
[0085] Furthermore, based on historical station data and vehicle operation data, the optimized departure interval between two adjacent trains in each time period can be generated with the optimization goal of minimizing the total waiting time of passengers in each time period, and the optimized departure interval can be used as the target departure interval of the vehicle. For example, for the initial departure interval in Table 1, the optimized departure interval between two adjacent trains in each time period can be set with reference to Table 2.
[0086] Table 2
[0087] Time period Optimized departure interval 8am to 10am (peak hour) 3 minutes 10am to 4pm (daytime off-peak hours) 6 minutes 4pm to 6pm (Evening Peak) 4 minutes
[0088] S103, generating a departure schedule according to the optimized departure interval between two adjacent shifts in each time period and the start time of each time period.
[0089] It is understandable that when the optimized departure interval between two adjacent shifts in each time period and the start time of each time period are known, a departure schedule can be generated.
[0090] For example, continuing with Table 2, the optimized departure interval between each two adjacent shifts in the time period from 8 a.m. to 10 a.m. is 3 minutes, and the corresponding start time is 8 a.m., then the departure times in the time period from 8 a.m. to 10 a.m. may include 08:00, 08:03, 08:06, 08:09, etc., and a departure timetable may be generated based on the above departure times.
[0091] In summary, according to the vehicle scheduling optimization method of the embodiment of the present application, it is possible to generate the optimized departure interval between each two adjacent shifts in each time period based on historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between each two adjacent shifts in each time period and the start time of each time period. Thus, the impact of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0092] Based on any of the above embodiments, if the time difference between the departure time of the last bus in a single time period in the departure schedule and the end time of the single time period is less than a preset time difference threshold, the last bus in the single time period in the departure schedule is cancelled.
[0093] It is understandable that the departure time of the first bus in a single time period is the start time of the single time period, and correspondingly, the departure time of the first bus in the next time period is the start time of the next time period, which is also the end time of the current time period. If the time difference between the departure time of the last bus in a single time period and the end time of the single time period in the departure schedule is less than the preset time difference threshold, it indicates that the time difference between the departure time of the last bus in a single time period and the departure time of the first bus in the next time period is small, and the last bus in a single time period in the departure schedule can be cancelled to save vehicle resources.
[0094] Optionally, the time difference threshold can be set according to actual conditions, for example, the minimum departure interval allowed between two adjacent shifts can be set as the time difference threshold, for example, it can be set to 3 minutes.
[0095] Based on any of the above embodiments, Figure 2 As shown, in step S102, based on historical station data and vehicle operation data, minimizing the total waiting time of passengers in each time period is taken as the optimization goal, and generating the optimized departure interval between each two adjacent shifts in each time period may include:
[0096] S201, calculating the inter-station travel time between every two adjacent stations in each time period and the waiting time of each passenger at each station based on historical station data and vehicle operation data.
[0097] Optionally, the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station may be calculated according to historical station data and vehicle operation data and a preset calculation strategy.
[0098] S202, based on the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, with minimizing the total waiting time of passengers in each time period as the optimization goal, generate the optimized departure interval between each two adjacent shifts in each time period.
[0099] In the embodiments of the present application, the impact of the travel time between stations and the waiting time of each passenger at each station on the departure interval can be taken into consideration, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the passenger experience.
[0100] Therefore, this method can calculate the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station based on historical station data and vehicle operation data, and then generate the optimized departure interval between each two adjacent shifts in each time period based on the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, with the optimization goal of minimizing the total waiting time of passengers in each time period.
[0101] Based on any of the above embodiments, Figure 3 As shown, in step S201, calculating the inter-station travel time between each two adjacent stations in each time period according to the historical station data and the vehicle operation data may include:
[0102] S301, based on historical station data and vehicle operation data, obtain the arrival time of each vehicle of each shift in each time period at each station.
[0103] Optionally, the arrival time of each vehicle of each shift in each time period at each station can be obtained based on the station location data and historical vehicle real-time location data. For example, the arrival time of each vehicle of each shift in the time period from 8 a.m. to 10 a.m. in the three historical days can be obtained based on the station location data and historical vehicle real-time location data. The average arrival time of each vehicle of each shift in the time period from 8 a.m. to 10 a.m. in the three historical days can be calculated to obtain the arrival time of each vehicle of each shift in each time period at each station.
[0104] For example, if the time when the second shift of vehicles arrives at the third station during the time period from 8 a.m. to 10 a.m. in the past three days is 08:20, 08:18, and 08:25 respectively, then the average of 08:20, 08:18, and 08:25 can be calculated as 08:21, and the time when the second shift of vehicles arrives at the third station during the time period from 8 a.m. to 10 a.m. can be obtained as 08:21.
[0105] S302, calculating the inter-station travel time between every two adjacent stations of each shift in each time period according to the time when the vehicles of each shift in each time period arrive at each station.
[0106] Optionally, the absolute difference between the time when each shift of vehicles arrives at two adjacent stations in each time period may be used as the inter-station travel time between the two adjacent stations for each shift in each time period.
[0107] For example, if the time when the second shift of vehicles arrives at the 1st, 2nd, and 3rd stations during the period from 8 am to 10 am is 08:10, 08:13, and 08:20 respectively, the absolute difference between the time when it arrives at the 1st station and the time when it arrives at the 2nd station can be calculated as 3 minutes, and the inter-station travel time between the 1st and 2nd stations during the period from 8 am to 10 am is 3 minutes. It can also be calculated that the absolute difference between the time when it arrives at the 2nd station and the time when it arrives at the 3rd station is 7 minutes, and the inter-station travel time between the 2nd and 3rd stations during the period from 8 am to 10 am is 7 minutes.
[0108] It is understandable that due to the influence of factors such as the location of the stations and the distance between stations, the inter-station travel time of the same shift in the same time period may be different between two adjacent stations.
[0109] S303, calculating the average of the inter-station travel time of all shifts between every two adjacent stations in each time period, and obtaining the inter-station travel time between every two adjacent stations in each time period.
[0110] In an embodiment of the present application, the average of the inter-station travel time of all shifts between each two adjacent stations in each time period can be used as the inter-station travel time between each two adjacent stations in each time period. The inter-station travel time of all shifts between each two adjacent stations in each time period can be taken into account, so that the inter-station travel time between each two adjacent stations in each time period is more accurate.
[0111] For example, assuming that there are 8 shifts in the time period from 8 a.m. to 10 a.m., and the inter-station travel time between the 2nd and 3rd stations of the vehicles of the 1st to 8th shifts is 3, 5, 4, 7, 2, 3, 4, and 4 minutes respectively, then the average inter-station travel time between the 2nd and 3rd stations of the vehicles of the 1st to 8th shifts can be calculated to be 4 minutes, and the inter-station travel time between the 2nd and 3rd stations in the time period from 8 a.m. to 10 a.m. is 4 minutes.
[0112] Therefore, the method can obtain the arrival time of each vehicle of each shift at each station in each time period based on the historical station data and vehicle operation data, and then calculate the inter-station travel time between each two adjacent stations of each shift in each time period based on the arrival time of each vehicle of each shift in each time period, and finally calculate the average inter-station travel time of all shifts between each two adjacent stations in each time period to obtain the inter-station travel time between each two adjacent stations in each time period.
[0113] Based on any of the above embodiments, Figure 4 As shown, in step S201, the waiting time of each passenger at each station in each time period is calculated according to the historical station data and the vehicle operation data, which may include:
[0114] S401, generating a time distribution of passenger flow at each station in each time period based on historical station data and vehicle operation data.
[0115] Optionally, the time distribution of passenger flow at each station in each time period can be generated based on at least one of the station passenger ticket checking data, station passenger boarding and alighting card swiping data, station cameras, scenic spot entrance ticket checking data, park clocking data, company clocking data, etc.
[0116] It should be noted that in the embodiments of the present application, the form of the time distribution of the flow of people is not limited. For example, the time distribution of the flow of people can be a relationship diagram between the flow of people and time.
[0117] S402, calculating the waiting time of each passenger at each station in each time period according to the time distribution of passenger flow at each station in each time period.
[0118] In an embodiment of the present application, the waiting time of each passenger at each station in each time period can be calculated based on the time distribution of the flow of people at each station in each time period. The impact of the time distribution of the flow of people at the station on the waiting time of the passengers at the station can be taken into account, so that the waiting time of the passengers at the station is more accurate.
[0119] Optionally, according to the time distribution of the flow of people at each station in each time period, the waiting time of each passenger at each station in each time period is calculated, which can be achieved by the following formula:
[0120]
[0121] Among them, w pm is the waiting time of the pth passenger at the mth station in each time period, p m (t) is the flow time distribution of the mth station in each time period, t sm is the time when the s-th shift vehicle arrives at the m-th station in each time period, C is the maximum capacity of the vehicle, and p s-1 is the time when the last passenger of the s-1th bus gets on the bus in each time period, T c For each time period, the time when the number of passengers waiting at the mth station is equal to the maximum capacity of the vehicle, that is, p m (T c )-p m (p s-1 )=C.
[0122] Therefore, the method can generate the time distribution of passenger flow at each station in each time period based on historical station data and vehicle operation data, and calculate the waiting time of each passenger at each station in each time period based on the time distribution of passenger flow at each station in each time period.
[0123] Based on any of the above embodiments, in step S202, based on the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, the optimized departure interval between each two adjacent shifts in each time period is generated with the optimization goal of minimizing the total waiting time of passengers in each time period. This may include inputting the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station into a preset departure interval optimization model to obtain the optimized departure interval between each two adjacent shifts in each time period.
[0124] Optionally, the departure interval optimization model can be set according to actual conditions, for example, it can be a deep learning model, which can include a mathematical programming solver and / or a heuristic search algorithm.
[0125] Optionally, the departure interval optimization model includes an optimization objective and five constraints.
[0126] The optimization goal is to minimize the total waiting time of passengers in each time period. For example, the optimization goal can be To represent, where w pm is the waiting time of passenger p at the mth station.
[0127] The first constraint condition is that the time when the first shift of vehicles arrives at the first station in each time period is the start time of the time period. For example, the first constraint condition can be expressed as t 00 =startT, where t 00 The time when the first vehicle of each time period arrives at the first station, and startT is the starting time of each time period.
[0128] The second constraint is that the sum of the time for the current shift's vehicle to arrive at the current station and the departure interval between the current shift and the next shift in each time period is equal to the time for the next shift's vehicle to arrive at the current station. For example, the second constraint can be expressed as t (s+1)m =t sm +x s To express, where t (s+1)m is the time when the s+1th shift of vehicles arrives at the mth station in each time period, t sm is the time when the sth shift of vehicles arrives at the mth station in each time period, x s The optimized departure interval between every two adjacent shifts in each time period is the departure interval between the sth shift and the s+1th shift.
[0129] The third constraint is that the sum of the time when the last shift of vehicles arrives at the last station in each time period and the departure interval between the last shift and the next shift is greater than the end time of the time period. For example, the third constraint can be expressed as t ff +x f >finalT, where t ff is the time when the last vehicle of each shift arrives at the last station in each time period, x f The interval between the last train and the next train in each time period, and finalT is the end time of each time period.
[0130] The fourth constraint is that the sum of the time for the current shift's vehicle to arrive at the previous station and the inter-station travel time between the previous station and the current station in each time period is equal to the time for the current shift's vehicle to arrive at the current station. For example, the fourth constraint can be expressed as t sm =t s(m-1) +τ m-1 To express, where t smis the time when the sth shift of vehicles arrives at the mth station in each time period, t s(m-1) is the time when the sth shift of vehicles arrives at the (m-1)th station in each time period, τ m-1 is the inter-station travel time between the (m-1)th station and the mth station in each time period.
[0131] The fifth constraint condition is that the optimized departure interval between two adjacent shifts in each time period is within the preset departure interval time range. For example, the fifth constraint condition can be x s ∈[low, high], where x s The optimized departure interval between every two adjacent shifts in each time period, [low, high] is the preset departure interval time range, low is the preset minimum departure interval, and high is the preset maximum departure interval.
[0132] Therefore, this method can input the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station into the preset departure interval optimization model to obtain the optimized departure interval between each two adjacent shifts in each time period.
[0133] On the basis of any of the above embodiments, after the departure schedule is generated in step S103, the total number of dispatched vehicles can be generated according to the departure schedule with maximizing the vehicle utilization rate in each time period as the optimization goal.
[0134] In the embodiment of the present application, the influence of the departure schedule on the total number of dispatched vehicles can be taken into account, and the total number of dispatched vehicles can be generated with maximizing the vehicle utilization rate in each time period as the optimization goal. In other words, the total number of dispatched vehicles can maximize the vehicle utilization rate in each time period, which helps to improve the vehicle utilization rate and effectively utilize vehicle resources.
[0135] Optionally, based on the departure schedule, the total number of dispatched vehicles is generated with the optimization goal of maximizing the vehicle utilization rate in each time period, which may include generating the total number of dispatched vehicles based on the departure schedule using a preset dispatched vehicle number optimization model.
[0136] Optionally, the dispatch vehicle number optimization model can be set according to actual conditions.
[0137] Optionally, the optimization model for dispatching the number of vehicles is:
[0138] Bnum=max(min x ((t x0 -t so )≥∑ i τ i )-s)+1(t x0 -tso -∑ i τ i <T transfer )
[0139] Among them, Bnum is the total number of dispatched vehicles, x and s are the shifts, t x0 is the time when the vehicle of shift x arrives at the first station in each time period, t s0 is the time when the vehicle of shift s arrives at the first station in each time period, τ i The inter-station travel time between station i and station i+1 in each time period.
[0140] min x ((t x0 -t so )≥∑ i τ i ) is satisfied within each time period (t x0 -t so )≥∑ i τ i The minimum value of x under the condition, min x ((t x0 -t so )≥∑ i τ i )-s is the number of vehicles running on the line at the same time in each time period, max(min x ((t x0 -t so )≥∑ i τ i )-s) is the maximum number of vehicles running on the line at the same time in different time periods, T transfer is the stay time between the time when the current shift’s vehicle arrives at the last stop and the time when the next shift’s vehicle arrives at the first stop in each time period. x0 -t so -∑ i τ i <T transfer When the condition is met, 1(.) takes the value of 1. When t is not met x0 -t so -∑ i τ i <T transfer When the condition is 1(.), the value is 0.
[0141] It is understandable that if t x0 -t so -∑ i τ i <T transfer When the condition is met, a vehicle needs to be added, 1(.) takes the value of 1, and when t is not met x0-t so -∑ i τ i <T transfer When the condition is met, there is no need to add a vehicle, and 1(.) takes the value 0.
[0142] Therefore, the method can generate the total number of dispatched vehicles according to the departure schedule by using a preset dispatched vehicle number optimization model.
[0143] like Figure 5 As shown, the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station can be calculated based on the historical station data and vehicle operation data, and then the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station are input into the preset departure interval optimization model to obtain the optimized departure interval of each two adjacent shifts in each time period, and then the departure schedule is generated based on the optimized departure interval of each two adjacent shifts in each time period and the start time of each time period. Then, according to the departure schedule, the preset dispatch vehicle number optimization model can be used to generate the total dispatch vehicle number. The optimized scheduling plan is generated based on the departure schedule and the total dispatch vehicle number.
[0144] With the above Figures 1 to 5 Corresponding to the vehicle scheduling optimization method provided in the embodiment, the present disclosure also provides a vehicle scheduling optimization device. Figures 1 to 5 The vehicle scheduling optimization method provided in the embodiment corresponds to the embodiment, so the implementation method of the vehicle scheduling optimization method is also applicable to the vehicle scheduling optimization device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0145] Figure 6 It is a structural schematic diagram of a vehicle scheduling optimization device according to an embodiment of the present application.
[0146] like Figure 6 As shown, the vehicle scheduling optimization device 100 of the embodiment of the present application may include: an acquisition module 110 , a first generation module 120 , and a second generation module 130 .
[0147] The acquisition module 110 is used to acquire historical site data and vehicle operation data;
[0148] The first generating module 120 is used to generate the optimized departure interval between two adjacent shifts in each time period based on the historical station data and the vehicle operation data, with minimizing the total waiting time of passengers in each time period as the optimization goal;
[0149] The second generating module 130 is used to generate a departure schedule according to the optimized departure interval between every two adjacent shifts in each time period and the start time of each time period.
[0150] In one embodiment of the present application, Figure 7 As shown, the first generating module 120 includes: a calculating unit 1201, used to calculate the station-to-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station according to the historical station data and the vehicle operation data; a generating unit 1202, used to generate the optimized departure interval between each two adjacent shifts in each time period according to the station-to-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, with minimizing the total waiting time of passengers in each time period as the optimization goal.
[0151] In one embodiment of the present application, the calculation unit 1201 includes: an acquisition subunit, used to obtain the time when the vehicle of each shift in each time period arrives at each station according to the historical station data and the vehicle operation data; a first calculation subunit, used to calculate the inter-station travel time between each two adjacent stations of each shift in each time period according to the time when the vehicle of each shift in each time period arrives at each station; a second calculation subunit, used to calculate the average of the inter-station travel time of all shifts between each two adjacent stations in each time period, and obtain the inter-station travel time between each two adjacent stations in each time period.
[0152] In one embodiment of the present application, the calculation unit 1201 includes: a generation subunit, used to generate the time distribution of passenger flow at each station in each time period based on the historical station data and the vehicle operation data; and a third calculation subunit, used to calculate the waiting time of each passenger at each station in each time period based on the time distribution of passenger flow at each station in each time period.
[0153] In one embodiment of the present application, the generating unit 1202 is specifically used to input the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station into a preset departure interval optimization model to obtain the optimized departure interval between each two adjacent shifts in each time period.
[0154] In one embodiment of the present application, the departure interval optimization model includes: the optimization goal is to minimize the total waiting time of passengers in each time period; the first constraint condition is that the time when the first shift of vehicles in each time period arrives at the first station is the start time of the time period; the second constraint condition is that the sum of the time when the current shift of vehicles in each time period arrives at the current station and the departure interval between the current shift and the next shift is equal to the time when the next shift of vehicles arrives at the current station; the third constraint condition is that the sum of the time when the last shift of vehicles in each time period arrives at the last station and the departure interval between the last shift and the next shift is greater than the end time of the time period; the fourth constraint condition is that the sum of the time when the current shift of vehicles in each time period arrives at the previous station and the station-to-station travel time between the previous station and the current station is equal to the time when the current shift of vehicles arrives at the current station; the fifth constraint condition is that the optimized departure intervals of every two adjacent shifts in each time period are within the preset departure interval time range.
[0155] In one embodiment of the present application, Figure 7 As shown, the vehicle scheduling optimization device 100 also includes: a cancellation module 140, which is used to cancel the last shift in a single time period in the departure schedule if the time difference between the departure time of the last shift in a single time period in the departure schedule and the end time of the single time period is less than a preset time difference threshold.
[0156] In one embodiment of the present application, Figure 7 As shown, the vehicle scheduling optimization device 100 also includes: a third generation module 150, which is used to generate the total number of dispatched vehicles according to the departure schedule with maximizing the vehicle utilization rate in each time period as the optimization goal.
[0157] In one embodiment of the present application, the third generating module 150 is specifically used to generate the total number of dispatched vehicles according to the departure timetable using a preset dispatched vehicle number optimization model.
[0158] In one embodiment of the present application, the dispatch vehicle number optimization model is:
[0159] Bnum=max(min x ((t x0 -t so )≥∑ i τ i )-s)+1(t x0 -t so -∑ i τ i <T transfer )
[0160] in,
[0161] Bnum is the total number of dispatched vehicles;
[0162] The x and s are shifts;
[0163] The x0 is the time when the vehicle of shift x arrives at the first station in each time period;
[0164] The s0 is the time when the vehicle of shift s arrives at the first station in each time period;
[0165] The τ i is the inter-station travel time between station i and station i+1 in each time period;
[0166] The min x ((t x0 -t so )≥∑ i τ i ) is satisfied within each time period (t x0 -t so )≥∑ i τ i The minimum value of x under the condition;
[0167] The min x ((t x0 -t so )≥∑ i τ i )-s is the number of vehicles running on the line at the same time in each time period;
[0168] The max(min x ((t x0 -t so )≥∑ i τ i )-s) is the maximum number of vehicles running on the line at the same time in different time periods;
[0169] The T transfer The dwell time between the time when the current shift’s vehicles arrive at the last stop and the time when the next shift’s vehicles arrive at the first stop in each time period;
[0170] When t is satisfied x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 1. When t is not met x0 -t so -∑ i τ i <Ttransfer When the condition is met, the value of 1(.) is 0.
[0171] The vehicle scheduling optimization device of the embodiment of the present application can generate the optimized departure interval between two adjacent shifts in each time period based on historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period. Thus, the influence of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0172] In order to implement the above embodiment, Figure 8 As shown, the present application also proposes an electronic device 200, including: a memory 210, a processor 220, and a computer program stored in the memory 210 and executable on the processor 220. When the processor 220 executes the program, the vehicle scheduling optimization method proposed in the aforementioned embodiment of the present application is implemented.
[0173] The electronic device of the embodiment of the present application can generate the optimized departure interval between two adjacent shifts in each time period based on the historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period, by executing the computer program stored in the memory through the processor. Thus, the influence of the historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0174] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the vehicle scheduling optimization method proposed in the above embodiments of the present application is implemented.
[0175] The computer-readable storage medium of the embodiment of the present application, by storing a computer program and being executed by a processor, can generate an optimized departure interval between two adjacent shifts in each time period based on historical station data and vehicle operation data, with the optimization goal of minimizing the total waiting time of passengers in each time period, and generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period. Thus, the influence of historical station data and vehicle operation data on the departure interval can be taken into account, and the optimized departure interval can minimize the total waiting time of passengers in each time period, which helps to reduce the waiting time of passengers and improve the riding experience of passengers.
[0176] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0177] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0178] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0179] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0180] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0181] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0182] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0183] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A vehicle scheduling optimization method, characterized in that: include: Obtain historical site data and vehicle operation data; Based on the historical station data and the vehicle operation data, the optimized departure interval between two adjacent shifts in each time period is generated with minimization of the total waiting time of passengers in each time period as the optimization goal; Generate a departure schedule based on the optimized departure interval between two adjacent shifts in each time period and the start time of each time period; According to the departure schedule, a preset dispatch vehicle number optimization model is used to maximize the vehicle utilization rate in each time period as an optimization goal to generate the total dispatch vehicle number; The optimization model for the number of dispatched vehicles is: Bnum=max(min x ((t x0 -t so )≥Σ i t i )-s)+1(t x0 -t so -S i t i <T transfer ) Wherein, Bnum is the total number of dispatched vehicles; The x and s are shifts; The x0 is the time when the vehicle of shift x arrives at the first station in each time period; The s0 is the time when the vehicle of shift s arrives at the first station in each time period; The τ i is the inter-station travel time between station i and station i+1 in each time period; The min x ((t x0 -t so )≥∑ i τ i ) is satisfied within each time period (t x0 -t so )≥∑ i τ i The minimum value of x under the condition; The min x ((t x0 -t so )≥∑ i τ i )-s is the number of vehicles running on the line at the same time in each time period; The max(min x ((t x0 -t so )≥∑ i τ i )-s) is the maximum number of vehicles running on the line at the same time in different time periods; The T transfer The dwell time between the time when the current shift’s vehicles arrive at the last stop and the time when the next shift’s vehicles arrive at the first stop in each time period; When t is satisfied x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 1. When t is not met x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 0.
2. The vehicle scheduling optimization method according to claim 1, characterized in that: The method of generating the optimized departure interval between two adjacent shifts in each time period based on the historical station data and vehicle operation data with the optimization goal of minimizing the total waiting time of passengers in each time period includes: Calculate the inter-station travel time between each two adjacent stations and the waiting time of each passenger at each station in each time period according to the historical station data and the vehicle operation data; According to the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, the optimized departure interval between each two adjacent shifts in each time period is generated with the minimization of the total waiting time of passengers in each time period as the optimization goal.
3. The vehicle scheduling optimization method according to claim 2, characterized in that: The calculating the inter-station travel time between each two adjacent stations in each time period according to the historical station data and the vehicle operation data includes: According to the historical site data and the vehicle operation data, the time when each vehicle of each shift arrives at each site in each time period is obtained; According to the time when each vehicle of each shift arrives at each station in each time period, the inter-station travel time between each two adjacent stations of each shift in each time period is calculated; The average of the inter-station travel time of all shifts between every two adjacent stations in each time period is calculated to obtain the inter-station travel time between every two adjacent stations in each time period.
4. The vehicle scheduling optimization method according to claim 2, characterized in that: Calculating the waiting time of each passenger at each station in each time period according to the historical station data and the vehicle operation data, including: Generate a time distribution of passenger flow at each station in each time period according to the historical station data and the vehicle operation data; According to the time distribution of passenger flow at each station in each time period, the waiting time of each passenger at each station in each time period is calculated.
5. The vehicle scheduling optimization method according to claim 2, characterized in that: The optimized departure interval between two adjacent shifts in each time period is generated based on the inter-station travel time between two adjacent stations in each time period and the waiting time of each passenger at each station, with minimizing the total waiting time of passengers in each time period as the optimization goal, including: The inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station are input into a preset departure interval optimization model to obtain the optimized departure interval between each two adjacent shifts in each time period.
6. The vehicle scheduling optimization method according to claim 5, characterized in that: The departure interval optimization model includes: The optimization goal is to minimize the total waiting time of passengers in each time period; The first constraint condition is that the time when the first shift of vehicles in each time period arrives at the first station is the start time of the time period; The second constraint is that the sum of the time when the current shift's vehicle arrives at the current station and the departure interval between the current shift and the next shift in each time period is equal to the time when the next shift's vehicle arrives at the current station; The third constraint is that the sum of the time when the last shift of vehicles arrives at the last station in each time period and the departure interval between the last shift and the next shift is greater than the end time of the time period; The fourth constraint condition is that the sum of the time when the current shift's vehicle arrives at the previous station and the inter-station travel time between the previous station and the current station in each time period is equal to the time when the current shift's vehicle arrives at the current station; The fifth constraint condition is that the optimized departure interval between every two adjacent shifts in each time period is within a preset departure interval time range.
7. The vehicle scheduling optimization method according to claim 1, characterized in that: Also includes: If the time difference between the departure time of the last bus in a single time period in the departure timetable and the end time of the single time period is less than a preset time difference threshold, the last bus in the single time period in the departure timetable is cancelled.
8. A vehicle scheduling optimization device, characterized in that: include: Acquisition module, used to acquire historical site data and vehicle operation data; A first generating module is used to generate an optimized departure interval between two adjacent shifts in each time period based on the historical station data and the vehicle operation data, with minimizing the total waiting time of passengers in each time period as the optimization goal; The second generating module is used to generate a departure schedule according to the optimized departure interval between two adjacent shifts in each time period and the start time of each time period; A third generation module is used to generate the total number of dispatched vehicles according to the departure schedule, using a preset dispatched vehicle number optimization model to maximize the vehicle utilization rate in each time period as an optimization goal; The optimization model for the number of dispatched vehicles is: Bnum=max(min x ((t x0 -t so )≥∑ i τ i )-s)+1(t x0 -t so -∑ i τ i <T transfer ) Wherein, Bnum is the total number of dispatched vehicles; The x and s are shifts; The x0 is the time when the vehicle of shift x arrives at the first station in each time period; The s0 is the time when the vehicle of shift s arrives at the first station in each time period; The τ i is the inter-station travel time between station i and station i+1 in each time period; The min x ((t x0 -t so )≥∑ i τ i ) is satisfied within each time period (t x0 -t so )≥∑ i τ i The minimum value of x under the condition; The min x ((t x0 -t so )≥∑ i τ i )-s is the number of vehicles running on the line at the same time in each time period; The max(min x ((t x0 -t so )≥∑ i τ i )-s) is the maximum number of vehicles running on the line at the same time in different time periods; The T transfer The dwell time between the time when the current shift’s vehicles arrive at the last stop and the time when the next shift’s vehicles arrive at the first stop in each time period; When t is satisfied x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 1. When t is not met x0 -t so -∑ i τ i <T transfer When the condition is met, the value of 1(.) is 0.
9. The vehicle scheduling optimization device according to claim 8, characterized in that: The first generating module comprises: A calculation unit, used for calculating the inter-station travel time between each two adjacent stations and the waiting time of each passenger at each station in each time period according to the historical station data and the vehicle operation data; A generating unit is used to generate the optimized departure interval between each two adjacent shifts in each time period according to the inter-station travel time between each two adjacent stations in each time period and the waiting time of each passenger at each station, with the optimization goal of minimizing the total waiting time of passengers in each time period.
10. The vehicle scheduling optimization device according to claim 8, characterized in that: Also includes: The cancellation module is used to cancel the last bus in a single time period in the departure schedule if the time difference between the departure time of the last bus in a single time period in the departure schedule and the end time of the single time period is less than a preset time difference threshold.
11. The vehicle scheduling optimization device according to claim 8, characterized in that: Also includes: The third generation module is used to generate the total number of dispatched vehicles according to the departure timetable with maximizing the vehicle utilization rate in each time period as the optimization goal.
12. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the vehicle scheduling optimization method according to any one of claims 1 to 7 is implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle scheduling optimization method as described in any one of claims 1 to 7 is implemented.
