Deep reinforcement learning solving method of Markov decision process model based on large and small road intersections and fast and slow vehicle override working conditions

Through the deep reinforcement learning method based on the Markov decision process model of large and small intersections and fast and slow train crossing conditions, the problem that traditional dispatching methods are difficult to cope with complex working conditions has been solved, and efficient and robust train dispatching decisions have been achieved, improving improve the operational efficiency and service quality of the subway system.

CN118735129AInactive Publication Date: 2024-10-01HARBIN INST OF TECH

Patent Information

Application Number
CN202411010743.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional subway train dispatching method is difficult to cope with complex and changeable operating conditions, especially during peak hours and special circumstances. It is difficult to achieve scientific and efficient dispatching decisions. It also lacks automated and intelligent dispatching capabilities and is difficult to dynamically adjust according to actual passenger flow. change.

Method used

The deep reinforcement learning solution method based on the Markov decision process model based on large and small intersections and fast and slow train crossing conditions is used to describe the train operation by establishing state and action variables, defining a reward function to minimize the total cost, and using a deep Q network The algorithm learns optimal scheduling strategies to achieve efficient and robust decision-making.

Benefits of technology

It significantly improves the efficiency and accuracy of train dispatching, can dynamically adapt to changes in different working conditions, improves the robustness of the subway train dispatching system, minimizes operating costs while ensuring passenger service quality, and improves the overall operation of the subway system. efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735129A_ABST
    Figure CN118735129A_ABST
Patent Text Reader

Abstract

The invention provides a deep reinforcement learning solving method of a Markov decision process model based on large and small road intersections and fast and slow vehicle override working conditions. According to the method, a Markov decision process model is established by analyzing various working conditions and operation data in a subway train dispatching process, and a train operation scheme is optimized. And intelligent optimization of train scheduling is realized through analysis of real-time operation data and application of a deep reinforcement learning algorithm, and the operation efficiency and the service quality of a subway system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of subway train dispatching for urban traffic operations, and in particular, relates to the construction and solution of a subway train dispatching model based on complex working conditions, and the application of a deep reinforcement learning algorithm in subway train dispatching, and in particular, relates to a deep reinforcement learning solution method for a Markov decision process model based on large and small intersections and fast and slow train passing conditions. Background Art

[0002] With the acceleration of urbanization and the continuous growth of population, urban traffic pressure is increasing. As an efficient and environmentally friendly urban public transportation tool, the subway plays an irreplaceable role in alleviating urban traffic congestion and improving the quality of residents' travel. However, with the continuous expansion of the subway network and the increase in operational complexity, the traditional subway train dispatching method has been unable to meet the growing operational needs. Especially during peak hours and special operating conditions, how to scientifically and efficiently dispatch subway trains, ensure transportation safety, improve transportation efficiency, and realize the automation and intelligence of dispatching decisions has become a technical problem that needs to be solved urgently.

[0003] In practical applications, domestic train operation plans mainly rely on traditional manual scheduling. This method often makes it difficult to make timely and accurate decisions when facing complex and changeable operating conditions. In addition, traditional scheduling systems are mostly based on fixed train operation diagrams and timetables, lacking flexibility and dynamic adjustment capabilities, and are difficult to cope with emergencies such as sudden changes in passenger flow and equipment failures. Therefore, it is particularly important to develop a subway train scheduling system that can automatically adapt to complex working conditions and achieve dynamic optimization scheduling. In response to the above problems, technical research and engineering applications of train operation plan optimization design have been carried out at home and abroad in recent years. Commonly used solution methods mainly include mathematical programming and heuristic algorithms. Mathematical programming algorithms, such as random binary integer programming, mixed 0-1 programming model, integer coding and 0-1 coding, multi-objective programming, bi-level programming, branch and bound method, three-dimensional spatiotemporal state network, etc., can usually obtain the global optimal solution, but the computational cost is high, especially for medium-sized and above problems. To this end, some studies have adopted computationally simpler heuristic algorithms, such as simulated annealing algorithm, genetic algorithm, taboo search, etc. Although the solution process of these algorithms is relatively complex, they have improved computational efficiency. However, these two methods are mainly applicable to offline service scheduling or real-time control of small-scale scheduling services. For medium-scale and larger scheduling problems, it is still difficult to make real-time dynamic adjustments based on changes in actual passenger flow data. Therefore, in order to meet the needs of real-time response of subway service scheduling, effective data analysis and optimization technologies still need to be studied.

[0004] In recent years, with the development of artificial intelligence technologies such as deep reinforcement learning, computer vision, and natural language processing, it has become possible for computers to replace humans in designing solutions. Artificial intelligence technology can fully tap the implicit information in the data, realize the scientific use of data, and adjust the design solution in real time according to the update of data. Embedding artificial intelligence design modules into the design system is the main method to achieve intelligent design system and data collaboration, which is of great significance to the promotion of intelligent design of urban rail transit. Summary of the invention

[0005] The purpose of the present invention is to solve the problems in the prior art and propose a deep reinforcement learning solution method based on a Markov decision process model of large and small intersections and fast and slow vehicle passing conditions.

[0006] The present invention is implemented by the following technical scheme. The present invention proposes a deep reinforcement learning solution method based on a Markov decision process model of large and small intersections and fast and slow vehicle passing conditions. The method comprises the following steps:

[0007] Step 1: Establish a Markov decision process model for comprehensive large and small crossings and fast and slow train passing conditions, where the train arrival time, departure time and number of passengers on the platform are inputs, and the departure type, departure interval, express train stop position, crossing station position and passing station position are outputs. The state variables and action variables jointly describe the operation of the train, and the state transition function describes the process of the train changing from one state to another.

[0008] Step 2: Build the corresponding deep reinforcement learning algorithm for the model and solve it. Store the states, actions, and rewards generated in the Markov decision process model as training data. Learn the optimal Q value of the state-action pair through the deep Q network DQN algorithm to finally generate the optimal scheduling strategy. Define the reward function to minimize the total cost, and in each step of training, update the Q value function according to the reward obtained for the current state and action and the maximum Q value of the next state. Through continuous iterative optimization, the trained strategy can achieve efficient and robust decision-making in a complex subway scheduling environment.

[0009] Furthermore, in step 1, the state variable is defined as s n , represents the state of the nth train, which is determined by the arrival time τ n , departure timeσ n and the number of passengers on the platform l n composition:

[0010] s n =(τ n ,σ n ,l n )

[0011] where τn ={τ n,1 ,τ n,2 ,...,τ n,|S|}, τ n,i represents the time when the nth train arrives at the i-th platform after departure; σ n ={σ n,1 ,σ n,2 ,...,σ n,|S|},σ n,i represents the time when the nth train leaves the i-th platform after it is dispatched; l n = {l n,1 ,l n,2 ,...,l n,|S|}, l n,i It represents the number of passengers at platform i when the nth train leaves the i-th platform.

[0012] Furthermore, in step 1, define the action variable as a n , represents the scheduling plan of the nth train, which is composed of the departure interval h n+1 , Station-to-station running time u n+1 and platform dwell time w n+1 composition:

[0013] a n =(h n+1 ,u n+1 ,w n+1 )

[0014] where h n+1 represents the time interval between the departure of the n+1th train and the nth train at the first station; u n+1 = {u n+1,1 ,u n+1,2 ,...,u n+1,|S|},u n+1,i represents the running time of the n+1th train between platform i and platform i+1; w n+1 ={w n+1,1 ,w n+1,2 ,...,w n+1,|S|},w n+1,i Indicates the stop time of the n+1th train at the i-th platform.

[0015] Furthermore, in step 1, the state transfer function P(s n+1 |s n ,a n ), which describes the transition from the current state s n Transition to next state s n+1 The process is specifically implemented through the following formula:

[0016] σ n+1,0 =σn,0 +h n+1

[0017] That is, the departure time of the n+1th train at the first station is equal to the departure time of the nth train plus the time interval between the two departures;

[0018] τ n+1,i+1 =σ n+1,i +u n+1,i

[0019] That is, the time when the n+1th train arrives at the i+1th platform is equal to the time when the n+1th train leaves the i-th platform plus the time it runs between the i-th platform and the i+1-th platform;

[0020] σ n+1,i+1 =τ n+1,i+1 +w n+1,i+1

[0021] That is, the time when the n+1th train leaves the i+1th platform is equal to the time when the n+1th train arrives at the i+1th platform plus the time it stays at the i+1th platform;

[0022] The above three formulas realize the train arrival time τ n and departure time σ n Transfer to τ n+1 and σ n+1 process.

[0023] Furthermore, in step 1, the passenger demand matrix is: t ∈R |S|×S| , where the element in the i-th row and j-th column of the matrix It represents the number of passengers waiting for the bus at the i-th platform and arriving at the j-th platform per unit time at time t.

[0024] Furthermore, in step 1, let the remaining number of passengers who want to take the train to the jth platform when the n+1th train leaves the i-th platform be λ n+1,i(j) , then we have the following equation:

[0025]

[0026] Given the passenger capacity of each train Λ, the number of passengers at platform i who can actually take the n+1th train to the jth platform is:

[0027]

[0028] in

[0029] v n+1,irepresents the number of passengers getting off at the ith platform of the n+1th train, ρ n+1,i8-1 It represents the number of passengers on the n+1th train when it runs between platform i-1 and platform i, and:

[0030]

[0031] in That is, the number of passengers on the n+1th train when it runs between platform i and platform i+1 is equal to the number of passengers on the train when it runs between platform i-1 and platform i plus the number of passengers who boarded at the ith platform minus the number of passengers who got off;

[0032] Then the number of passengers stranded on the platform when the n+1th train leaves the i-th platform is:

[0033]

[0034] The above five formulas realize that the number of people stranded on the platform when the train leaves the station changes from l n Transfer to l n+1 process.

[0035] Furthermore, in step 1, a reward function is defined, which includes three parts: the cost of passenger waiting time, the energy cost of train operation, and the benefit of passenger riding time:

[0036] (1) Passenger waiting time cost

[0037] The cumulative number of passengers arriving at the i-th platform at time t is:

[0038]

[0039] The cumulative number of passengers taken away by the nth train when it leaves the i-th platform is:

[0040]

[0041] The cumulative waiting time for the nth train to take passengers away at the ith platform is:

[0042]

[0043] Multiply it by the time cost coefficient to convert it into monetary cost:

[0044]

[0045] (2) Train operation energy consumption cost

[0046] The energy consumption cost of train operation is calculated by traction force calculation software

[0047] (3) Passenger travel time benefits

[0048] The time saved by passengers taking the express train from platform i to platform j is:

[0049]

[0050] in is the running time of the slow train between platform i and platform j, is the running time of the express train between platform i and platform j, P ij is the number of passengers taking the train from platform i to platform j;

[0051] The passenger's time benefit is:

[0052]

[0053] The reward function is a weighted sum of three costs:

[0054]

[0055] Furthermore, the step 2 is specifically as follows:

[0056] Step 2.1: Based on the Markov decision process model, a deep reinforcement learning algorithm is constructed, where the action space is A n , the optimization goal is to find the optimal action for each time step Minimize the cumulative cost:

[0057]

[0058] in is the action value function. According to the Bellman equation and Monte Carlo approximation, the action value function can be recursively expressed as:

[0059]

[0060] Step 2.2: Use the deep reinforcement learning algorithm framework to approximate the action value function using a deep neural network

[0061]

[0062] Where w represents the parameters of the neural network;

[0063] Step 2.3, define the loss function and use gradient descent to update the neural network parameters w:

[0064]

[0065] Step 2.4: During the training process, use the epsilon-greedy strategy to interact with the environment to collect data and store the data in the experience playback array:

[0066]

[0067] Step 2.5: Repeat the data collection and parameter updating process until the algorithm converges and the optimal scheduling strategy is obtained.

[0068] The present invention also proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the deep reinforcement learning solution method of the Markov decision process model based on large and small intersections and fast and slow vehicle passing conditions are implemented.

[0069] The present invention also proposes a computer-readable storage medium for storing computer instructions, which, when executed by a processor, implements the steps of a deep reinforcement learning solution method for a Markov decision process model based on large and small intersections and fast and slow vehicle passing conditions.

[0070] Beneficial effects of the present invention:

[0071] 1. The present invention can establish a Markov decision process model based on operating conditions such as large and small intersections, fast and slow trains passing, and solve it through a deep reinforcement learning algorithm, thereby significantly improving the efficiency and accuracy of train scheduling.

[0072] 2. The model in the present invention can dynamically adapt to different operating conditions during train operation, effectively cope with complex scenarios in actual operation, and improve the robustness of the subway train dispatching system.

[0073] 3. The present invention optimizes the train dispatching plan through a deep reinforcement learning algorithm, which can minimize operating costs and improve the overall operating efficiency of the subway system while ensuring the quality of passenger service.

[0074] 4. The deep reinforcement learning algorithm used in the present invention has strong generalization and adaptive learning capabilities, and can continuously optimize and improve scheduling strategies to adapt to changes in future subway operation needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0076] Figure 1It is a flow chart of the deep reinforcement learning solution method of the Markov decision process model based on the large and small intersections and the fast and slow vehicle passing conditions of the present invention;

[0077] Figure 2 A network structure diagram of a train operation scheme design model in the present invention;

[0078] Figure 3 A schematic diagram of a corresponding train operation plan generated from a set of actions randomly generated in the present invention to a Markov decision process model based on large and small intersections and fast and slow train passing conditions;

[0079] Figure 4 Schematic diagram of the train operation plan predicted by the intelligent agent trained by the deep reinforcement learning algorithm in the present invention. DETAILED DESCRIPTION

[0080] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0081] The purpose of this invention is to propose a deep reinforcement learning solution method based on a Markov decision process model for large and small intersections and fast and slow train passing conditions. By analyzing various conditions and operating data in the subway train scheduling process, a Markov decision process model is established to optimize the train operation plan. Then, through the analysis of real-time operating data and the application of deep reinforcement learning algorithms, intelligent optimization of train scheduling is achieved to improve the operating efficiency and service quality of the subway system. The specific process is as follows Figure 1 As shown, it can be divided into the following two specific steps:

[0082] Step 1: Establish a Markov decision process model for comprehensive large and small crossings, fast and slow train passing conditions, where the train arrival time, departure time and number of passengers on the platform are inputs, and the departure type, departure interval, express train non-stop position, crossing station position and passing station position are outputs. The state variables and action variables jointly describe the operation of the train, and the state transfer function describes the process of the train from one state to another. Through this model, the complex dynamic characteristics of subway train scheduling can be effectively captured, and an accurate decision-making basis can be provided for subsequent optimization solutions.

[0083] Step 2: Build and solve the corresponding deep reinforcement learning training algorithm for the model, store the states, actions, and rewards generated in the Markov decision process model as training data, learn the optimal Q value of the state-action pair through the DQN algorithm, and finally generate the optimal scheduling strategy. Define the reward function to minimize the total cost, and in each step of training, update the Q value function based on the reward obtained for the current state and action and the maximum Q value of the next state. Through continuous iterative optimization, the trained strategy can achieve efficient and robust decision-making in a complex subway scheduling environment.

[0084] Combination Figure 2 , step one is as follows:

[0085] Step 1.1, define the state variable as s n , represents the state of the nth train, which is determined by the arrival time τ n , departure timeσ n and the number of passengers on the platform l n composition:

[0086] s n =(τ n ,σ n ,l n )

[0087] where τ n ={τ n,1 ,τ n,2 ,...,τ n,|S|}, τ n,i It indicates the time when the nth train arrives at the i-th platform after it is dispatched;

[0088] σ n ={σ n,1 ,σ n,2 ,...,σ n,|S|},σ n,i It indicates the time when the nth train leaves the i-th platform after it is dispatched;

[0089] l n = {l n,1 ,l n,2 ,...,l n,|S|}, l n,i It represents the number of passengers at platform i when the nth train leaves the i-th platform.

[0090] Step 1.2, define the action variable as a n , represents the scheduling plan of the nth train, which is composed of the departure interval h n+1 , Station-to-station running time u n+1 and platform dwell time w n+1 composition:

[0091] an =(h n+1 ,u n+1 ,w n+1 )

[0092] where h n+1 It represents the time interval between the departure of the n+1th train and the nth train at the first station;

[0093] u n+1 = {u n+1,1 ,u n+1,2 ,...,u n+1,|S|},u n+1,i represents the running time of the n+1th train between platform i and platform i+1;

[0094] w n+1 ={w n+1,1 ,w n+1,2 ,...,w n+1,|S|},w n+1,i Indicates the stop time of the n+1th train at the i-th platform.

[0095] Step 1.3, define the state transfer function P(s n+1 |s n ,a n ), which describes the transition from the current state s n Transition to next state s n+1 The process is specifically implemented through the following formula:

[0096] σ n+1,0 =σ n,0 +h n+1

[0097] That is, the departure time of the n+1th train at the first station is equal to the departure time of the nth train plus the time interval between the two departures;

[0098] τ n+1,i+1 =σ n+1,i +u n+1,i

[0099] That is, the time when the n+1th train arrives at the i+1th platform is equal to the time when the n+1th train leaves the i-th platform plus the time it runs between the i-th platform and the i+1-th platform;

[0100] σ n+1,i+1 =τ n+1,i+1 +w n+1,i+1

[0101] That is, the time when the n+1th train leaves the i+1th platform is equal to the time when the n+1th train arrives at the i+1th platform plus the time it stays at the i+1th platform;

[0102] The above three formulas realize the train arrival time τ n and departure time σ n Transfer to τ n+1 and σ n+1 process.

[0103] The passenger demand matrix is: t ∈R |S|×|S| , where the element in the i-th row and j-th column of the matrix It represents the number of passengers waiting for the bus at the i-th platform and arriving at the j-th platform per unit time at time t.

[0104] Suppose that when the n+1th train leaves the ith platform, the remaining number of passengers on that platform who want to take the train to the jth platform is λ n+1,i(j) , then we have the following equation:

[0105]

[0106] Given the passenger capacity of each train Λ, the number of passengers at platform i who can actually take the n+1th train to the jth platform is:

[0107]

[0108] in

[0109] v n+1,i represents the number of passengers getting off at the ith platform of the n+1th train, ρ n+1,i-1 It represents the number of passengers on the n+1th train when it runs between platform i-1 and platform i, and:

[0110]

[0111] in That is, the number of passengers on the n+1th train when it runs between platform i and platform i+1 is equal to the number of passengers on the train when it runs between platform i-1 and platform i plus the number of passengers getting on at the i-th platform minus the number of passengers getting off.

[0112] Then the number of passengers stranded on the platform when the n+1th train leaves the i-th platform is:

[0113]

[0114] The above five formulas realize that the number of people stranded on the platform when the train leaves the station changes from l n Transfer to l n+1 process.

[0115] Step 1.4: Define the reward function, which consists of three parts: the time cost of passengers waiting for the train, the energy cost of train operation, and the time benefit of passengers riding the train:

[0116] (1) Passenger waiting time cost

[0117] The cumulative number of passengers arriving at the i-th platform at time t is:

[0118]

[0119] The cumulative number of passengers taken away by the nth train when it leaves the i-th platform is:

[0120]

[0121] The cumulative waiting time for the nth train to take passengers away at the ith platform is:

[0122]

[0123] Multiply it by the time cost coefficient to convert it into monetary cost:

[0124]

[0125] (2) Train operation energy consumption cost

[0126] The energy consumption cost of train operation is calculated by traction force calculation software

[0127] (3) Passenger travel time benefits

[0128] The time saved by passengers taking the express train from platform i to platform j is:

[0129]

[0130] in is the running time of the slow train between platform i and platform j, is the running time of the express train between platform i and platform j, P ij is the number of passengers taking the train from platform i to platform j.

[0131] The passenger's time benefit is:

[0132]

[0133] The reward function is a weighted sum of three costs.

[0134]

[0135] For the embodiment: a subway train operation line, combined with the actual monitored passenger flow and train operation time data, the Markov decision process comprehensive model of large and small routes and fast and slow trains passing each other can be effectively established through step 1. A set of actions is randomly generated, in which the action of each time step determines the departure type (slow train, fast train passing slow train once, fast train passing slow train twice, small route train), departure interval, express train non-stop station position, passing station position and crossing station position. This set of actions is input into the comprehensive train operation model to generate the corresponding train operation plan, such as Figure 3 As shown, the evaluation score (cumulative reward value) of the corresponding solution is obtained. Thus, an environment for deep reinforcement learning algorithm training is established.

[0136] Step 2 is as follows:

[0137] Step 2.1: Based on the train operation sequence decision model, a deep reinforcement learning algorithm is constructed, where the action space is A n The optimization goal is to find the optimal action at each time step Minimize the cumulative cost:

[0138]

[0139] in is the action value function. According to the Bellman equation and Monte Carlo approximation, the action value function can be recursively expressed as:

[0140]

[0141] Step 2.2: Use the deep reinforcement learning algorithm framework to approximate the action value function using a deep neural network

[0142]

[0143] Where w represents the parameters of the neural network.

[0144] Step 2.3, define the loss function and use gradient descent to update the neural network parameters w:

[0145]

[0146] Step 2.4: During the training process, use the epsilon-greedy strategy to interact with the environment to collect data and store the data in the experience playback array:

[0147]

[0148] Step 2.5: Repeat the data collection and parameter updating process until the algorithm converges and the optimal scheduling strategy is obtained.

[0149] For the embodiment: a subway train operation line, combined with the actual monitored passenger flow and train operation time data, through step 2, a train operation plan design agent that dynamically adjusts the strategy as the passenger flow demand changes can be trained, including departure type, departure interval, express train non-stop position, crossing station position and passing station position, so as to optimize the overall operation efficiency of the train and the travel experience of passengers, such as Figure 4 shown.

[0150] The present invention also proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the deep reinforcement learning solution method of the Markov decision process model based on large and small intersections and fast and slow vehicle passing conditions are implemented.

[0151] The present invention also proposes a computer-readable storage medium for storing computer instructions, which, when executed by a processor, implements the steps of a deep reinforcement learning solution method for a Markov decision process model based on large and small intersections and fast and slow vehicle passing conditions.

[0152] The memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DRRAM). It should be noted that the memory of the method described in the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0153] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).

[0154] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0155] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0156] The above is a detailed introduction to the deep reinforcement learning solution method of the Markov decision process model based on large and small intersections and fast and slow vehicle passing conditions proposed in the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A deep reinforcement learning solution method based on a Markov decision process model for large and small intersections and fast and slow vehicle passing conditions, characterized in that: The method comprises the following steps: Step 1: Establish a Markov decision process model for comprehensive large and small crossings and fast and slow train passing conditions, where the train arrival time, departure time and number of passengers on the platform are inputs, and the departure type, departure interval, express train stop position, crossing station position and passing station position are outputs. The state variables and action variables jointly describe the operation of the train, and the state transition function describes the process of the train changing from one state to another. Step 2: Build and solve the corresponding deep reinforcement learning algorithm of the model, store the states, actions and rewards generated in the Markov decision process model as training data, learn the optimal Q value of the state-action pair through the DQN algorithm, and finally generate the optimal scheduling strategy; define the reward function to minimize the total cost, and in each step of training, update the Q value function according to the reward obtained for the current state and action and the maximum Q value of the next state. Through continuous iterative optimization, the trained strategy can achieve efficient and robust decision-making in a complex subway scheduling environment.

2. The method according to claim 1, characterized in that In step 1, define the state variable as s n , represents the state of the nth train, which is determined by the arrival time τ n , departure timeσ n and the number of passengers on the platform l n composition: s n =(t n ,s n ,l n ) where τ n ={τ n,1 ,τ n,2 ,...,τ n,|S| }, τ n,i represents the time when the nth train arrives at the i-th platform after departure; σ n ={σ n,1 ,σ n,2 ,...,σ n,|S| },σ n,i represents the time when the nth train leaves the i-th platform after it is dispatched; l n = {l n,1 ,l n,2 ,...,l n,|S| }, l n,i It represents the number of passengers at platform i when the nth train leaves the i-th platform.

3. The method according to claim 2, characterized in that In step 1, define the action variable as a n , represents the scheduling plan of the nth train, which is composed of the departure interval h n+1 , Inter-station running time u n+1 and platform dwell time w n+1 composition: a n =(h n+1 ,u n+1 ,w n+1 ) where h n+1 represents the time interval between the departure of the n+1th train and the nth train at the first station; u n+1 = {u n+1,1 ,u n+1,2 ,...,u n+1,S |},u n+1,i represents the running time of the n+1th train between platform i and platform i+1; w n+1 ={w n+1,1 ,w n+1,2 ,...,w n+1,|S| },w n+1,i Indicates the stop time of the n+1th train at the i-th platform.

4. The method according to claim 3, characterized in that In step 1, define the state transfer function P(s n+1 |s n ,a n ), which describes the transition from the current state s n Transition to next state s n+1 The process is specifically implemented through the following formula: s n+1,0 =s n,0 +h n+1 That is, the departure time of the n+1th train at the first station is equal to the departure time of the nth train plus the time interval between the two departures; t n+1,i+1 =s n+1,i +u n+1,i That is, the time when the n+1th train arrives at the i+1th platform is equal to the time when the n+1th train leaves the i-th platform plus the time it runs between the i-th platform and the i+1-th platform; s n+1,i+1 =t n+1,i+1 +w n+1,u+1 That is, the time when the n+1th train leaves the i+1th platform is equal to the time when the n+1th train arrives at the i+1th platform plus the time it stays at the i+1th platform; The above three formulas realize the train arrival time τ n and departure time σ n Transfer to τ n+1 and σ n+1 process.

5. The method according to claim 4, characterized in that In step 1, the passenger demand matrix is: t ∈R |S|×|S| , where the element in the i-th row and j-th column of the matrix It represents the number of passengers waiting for the bus at the i-th platform and arriving at the j-th platform per unit time at time t.

6. The method according to claim 5, characterized in that In step 1, let the remaining number of passengers who want to take the train to the jth platform when the n+1th train leaves the i-th platform be λ n+1,i(j) , then we have the following equation: Given the passenger capacity of each train Λ, the number of passengers at platform i who can actually take the n+1th train to the jth platform is: in v n+1,i represents the number of passengers getting off at the ith platform of the n+1th train, ρ n+1,i-1 It represents the number of passengers on the n+1th train when it runs between platform i-1 and platform i, and: in That is, the number of passengers on the n+1th train when it runs between platform i and platform i+1 is equal to the number of passengers on the train when it runs between platform i-1 and platform i plus the number of passengers who boarded at the ith platform minus the number of passengers who got off; Then the number of passengers stranded on the platform when the n+1th train leaves the i-th platform is: The above five formulas realize that the number of people stranded on the platform when the train leaves the station changes from l n Transfer to l n+1 process.

7. The method according to claim 6, characterized in that In step 1, a reward function is defined, which consists of three parts: the cost of passengers’ waiting time, the cost of train operation energy consumption, and the benefit of passengers’ riding time: (1) Passenger waiting time cost The cumulative number of passengers arriving at the i-th platform at time t is: The cumulative number of passengers taken away by the nth train when it leaves the i-th platform is: The cumulative waiting time for the nth train to take passengers away at the ith platform is: Multiply it by the time cost coefficient to convert it into monetary cost: (2) Train operation energy consumption cost The energy consumption cost of train operation is calculated by traction force calculation software (3) Passenger travel time benefits The time saved by passengers taking the express train from platform i to platform j is: in is the running time of the slow train between platform i and platform j, is the running time of the express train between platform i and platform j, P ij is the number of passengers taking the train from platform i to platform j; The passenger's time benefit is: The reward function is a weighted sum of three costs:

8. The method according to claim 7, characterized in that The step 2 is specifically as follows: Step 2.1: Based on the Markov decision process model, a deep reinforcement learning algorithm is constructed, where the action space is A n , the optimization goal is to find the optimal action for each time step Minimize the cumulative cost: in is the action value function. According to the Bellman equation and Monte Carlo approximation, the action value function can be recursively expressed as: Step 2.2: Use the deep reinforcement learning algorithm framework to approximate the action value function using a deep neural network Where w represents the parameters of the neural network; Step 2.3, define the loss function and use gradient descent to update the neural network parameters w: Step 2.4: During the training process, use the epsilon-greedy strategy to interact with the environment to collect data and store the data in the experience playback array: Step 2.5: Repeat the data collection and parameter updating process until the algorithm converges and the optimal scheduling strategy is obtained.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium for storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Train dynamic adjustment method and system in an emergency

    CN109740839A

  • Self-adaptive rail transit scheduling method, system and terminal based on reinforcement learning

    CN114117883A

  • Train timetable determination method and device, equipment and medium

    CN115782988A

Cited By

  • Urban rail suburban line fast and slow vehicle stop scheme customization method and system based on reinforcement learning

    CN119444535A