Virtual marshaling train prediction control method and related device based on DMPC
By introducing the DMPC algorithm and improving the performance index function into the virtual marshalling train, taking into account inter-train status information, the problem of unstable formations is solved, the smooth control of the virtual marshalling train is achieved, the system stability and efficiency are improved, and the waste of resources is reduced. and safety hazards.
Patent Information
- Application Number
- CN202410903033.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-08
AI Technical Summary
In the actual operating environment, virtual marshalling trains lack a control strategy that considers the train status information of topological connection units, resulting in unstable formations. Existing centralized control has resource waste and safety hazards, and the DMPC algorithm is insufficiently applied in distributed control research.
A DMPC-based virtual marshalling train predictive control method is used to construct a multi-constraint optimization problem by improving the performance index function and adding adjacent train state variables to generate the optimal predictive control sequence and state sequence of the leader and follower trains to achieve bidirectional topological connection. Network communication architecture ensures the stability and real-time performance of the train system.
It achieves smooth speed tracking control of virtual marshalling trains, reduces communication costs and energy consumption, improves the stability and control efficiency of the train system, reduces the probability of packet loss and error, and ensures safe operation.
Smart Images

Figure CN118444577B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual marshaling train prediction control, and in particular to a virtual marshaling train prediction control method based on DMPC and related devices. Background Art
[0002] In order to improve the efficiency and capacity of high-speed railway transportation, virtual marshaling trains based on car-to-car communication have become the development direction and research hotspot of future train operation control systems. Different from the traditional physical coupling method, each unit train of virtual marshaling needs to be connected through car-to-car (T2T) and car-to-ground (T2G) communication, that is, it does not need to be connected through physical couplers. Virtual marshaling trains can not only improve the efficiency of train operation, but also greatly reduce transportation costs through flexible dynamic marshaling and unmarshaling. However, due to the complex and changeable actual operating environment of trains, it is difficult to formulate appropriate control strategies, maintain smooth and accurate speed tracking of each train, and ensure the stability of train formations.
[0003] For virtual train formation, most of its control strategies adopt centralized control. However, in the actual train control system, the use of centralized control will not only bring a huge burden to the controller, resulting in a greatly increased probability of packet loss and error, but also cause waste of resources and safety hazards. The use of distributed control methods can better solve this problem, not only greatly reducing communication costs, but also reducing train energy consumption. In the existing distributed control research, the Distributed Model Predictive Control algorithm (DMPC) is a control algorithm that combines distributed strategies and MPC. It not only has the ability of MPC to display processing constraints, but also has the advantages of distributed control strategies, such as strong fault tolerance and high flexibility. It has been applied in the control research of drones and vehicle formations.
[0004] However, in the control of virtual marshaling train formation, the application of DMPC algorithm is very rare, and the performance index function in the traditional DMPC algorithm does not consider the state information of the topologically connected unit trains, resulting in the instability of the formation of virtual marshaling train formation. Therefore, there is an urgent need for a predictive control method that can be applied to the distributed cooperative operation of virtual marshaling trains. Summary of the invention
[0005] The purpose of the present invention is to provide a DMPC-based virtual train prediction control method and related devices, which can be applied to the distributed cooperative operation of virtual trains and generate accurate and stable control strategies.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] On the one hand, the present invention provides a virtual train formation prediction control method based on DMPC, wherein the virtual formation includes a leader train and a plurality of follower trains; the virtual train formation prediction control method based on DMPC includes the following steps:
[0008] According to the reference speed curve and the actual state variables of the leader train at the current moment, the multi-constraint optimization problem is solved with the goal of minimizing the improved performance index function, and the optimal prediction control sequence of the leader train and the optimal prediction state sequence of the leader train are obtained; the improved performance index function is a performance index function that adds the state variables of adjacent trains; the constraints of the multi-constraint optimization problem include control input constraints, speed constraints and displacement constraints; the optimal prediction control sequence includes the optimal control input quantities corresponding to several moments between the current moment and the end moment; the optimal prediction state sequence includes the state variables corresponding to each optimal control input quantity in the optimal prediction control sequence.
[0009] The optimal prediction control sequence and the optimal prediction state sequence of the leader train are sent to the follower train that follows the leader train, and the first optimal control input in the optimal prediction control sequence of the leader train is selected as the actual control input of the leader train to obtain the actual state variable of the leader train at the next moment.
[0010] For any follower train, according to the actual state variables of the previous train of the follower train at the current moment and the actual state variables of the follower train at the current moment, the multi-constraint optimization problem is solved to obtain the optimal prediction control sequence of the follower train and the optimal prediction state sequence of the follower train; the previous train of the follower train is the leader train or another follower train.
[0011] The optimal prediction control sequence and the optimal prediction state sequence of the follower train are sent to the adjacent train of the follower train, and the first optimal control input in the optimal prediction control sequence of the follower train is selected as the actual control input of the follower train to obtain the actual state variable of the follower train at the next moment.
[0012] If the end moment has not been reached, the next moment is taken as the current moment, and the process jumps to step: according to the reference speed curve and the actual state variables of the leader train at the current moment, the multi-constraint optimization problem is solved with the goal of minimizing the improved performance index function to obtain the optimal predicted control sequence of the leader train and the optimal predicted state sequence of the leader train; until the current moment is the end moment.
[0013] On the other hand, the present invention provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a virtual train formation prediction control method based on DMPC as described above.
[0014] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a DMPC-based virtual train formation prediction control method as described above.
[0015] On the other hand, the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the DMPC-based virtual train formation prediction control method described above.
[0016] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0017] The present invention provides a virtual marshaling train prediction control method and related devices based on DMPC. The method includes the following steps: according to a reference speed curve and the actual state variables of a leader train at the current moment, with the goal of minimizing an improved performance index function, solving a multi-constraint optimization problem to obtain an optimal prediction control sequence and an optimal prediction state sequence of the leader train; the improved performance index function is a performance index function that adds the state variables of adjacent trains; sending it to a follower train that follows closely, and selecting the first optimal control input as the actual control input to obtain the actual state variables of the leader train at the next moment; for any follower train, according to the actual state variables of the previous train of the follower train at the current moment and the actual state variables of the follower train at the current moment, solving a multi-constraint optimization problem to obtain the optimal prediction control sequence and the optimal prediction state sequence of the follower train; sending it to an adjacent train, and selecting the first optimal control input as the actual control input to obtain the actual state variables of the follower train at the next moment; repeating the above steps until the current moment reaches the end moment. Aiming at the speed tracking control problem of virtual marshaling trains under multiple constraints, the present invention constructs a network communication architecture with bidirectional topological connection, and designs an improved DMPC control algorithm by introducing adjacent train status information into the performance index function. Under the control of the control method provided by the present invention, the virtual marshaling train system can ensure better stability, superiority and real-time control requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A flowchart of a DMPC-based virtual marshaling train prediction control method provided in Example 1 of the present invention;
[0020] Figure 2 A topological structure diagram of a virtual marshaling train in a DMPC-based virtual marshaling train prediction control method provided in Example 1 of the present invention;
[0021] Figure 3 A DMPC structure block diagram of a DMPC-based virtual marshaling train prediction control method provided in Example 1 of the present invention;
[0022] Figure 4 A schematic diagram of MPC in a DMPC-based virtual marshaling train prediction control method provided in Example 1 of the present invention;
[0023] Figure 5 A schematic diagram of a reference speed curve in a DMPC-based virtual marshaling train prediction control method provided in Example 1 of the present invention;
[0024] Figure 6 A speed error curve diagram of Train 0 and Train 1 in an experiment of a virtual marshaling train prediction control method based on DMPC provided in Example 1 of the present invention;
[0025] Figure 7 A speed error curve diagram of train 1 and train 2 in an experiment of a virtual marshaling train prediction control method based on DMPC provided in Example 1 of the present invention;
[0026] Figure 8 A running distance error curve diagram of Train 0 and Train 1 in an experiment of a virtual marshaling train prediction control method based on DMPC provided in Example 1 of the present invention;
[0027] Fig. 9 A running distance error curve diagram of train 1 and train 2 in an experiment of a virtual marshaling train prediction control method based on DMPC provided in Example 1 of the present invention;
[0028] Fig.10 The acceleration curve diagram of the follower train 1 in the experiment of a virtual marshaling train prediction control method based on DMPC provided in Example 1 of the present invention;
[0029] Fig.11 The acceleration curve diagram of the follower train 2 in the experiment of a virtual marshaling train prediction control method based on DMPC provided in Example 1 of the present invention;
[0030] Fig.12 This is a diagram of the internal structure of a computer device provided in Example 4 of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.
[0032] The purpose of the present invention is to provide a DMPC-based virtual marshaling train prediction control method and related devices, aiming to solve the problem that the performance index function in the traditional DMPC algorithm does not take into account the state information of the topologically connected unit trains, resulting in unstable formation of the virtual marshaling train formation, and to generate accurate and stable control strategies for virtual marshaling trains.
[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] Example 1
[0035] like Figure 1 As shown in the flowchart, a virtual train prediction control method based on DMPC in this embodiment, the virtual train includes a leader train and a plurality of follower trains; the virtual train prediction control method based on DMPC includes the following steps:
[0036] A1. Based on the reference speed curve and the actual state variables of the leader train at the current moment, the multi-constraint optimization problem is solved with the goal of minimizing the improved performance index function to obtain the optimal prediction control sequence of the leader train and the optimal prediction state sequence of the leader train. The improved performance index function is a performance index function that adds the state variables of adjacent trains; the constraints of the multi-constraint optimization problem include control input constraints, speed constraints, and displacement constraints; the optimal prediction control sequence includes the optimal control inputs corresponding to several moments between the current moment and the end moment; the optimal prediction state sequence includes the state variables corresponding to each optimal control input in the optimal prediction control sequence.
[0037] A2. Send the optimal prediction control sequence and the optimal prediction state sequence of the leader train to the follower train that follows the leader train, and select the first optimal control input in the optimal prediction control sequence of the leader train as the actual control input of the leader train to obtain the actual state variable of the leader train at the next moment.
[0038] A3. For any follower train, according to the actual state variables of the previous train of the follower train at the current moment and the actual state variables of the follower train at the current moment, solve the multi-constraint optimization problem to obtain the optimal prediction control sequence of the follower train and the optimal prediction state sequence of the follower train. The previous train of the follower train is the leader train or another follower train.
[0039] A4. Send the optimal prediction control sequence and the optimal prediction state sequence of the follower train to the adjacent train of the follower train, and select the first optimal control input in the optimal prediction control sequence of the follower train as the actual control input of the follower train to obtain the actual state variable of the follower train at the next moment.
[0040] A5. Determine whether the end time has been reached; if not, execute step A6; if the end time has been reached, end the virtual train formation prediction control.
[0041] A6. Set the next moment as the current moment and jump to step A1.
[0042] Specifically in this embodiment, the dynamic model of a single train in the virtual marshaling is expressed by the following formula:
[0043] .
[0044] in, For trains exist The actual displacement at the moment; For trains exist The actual speed at the moment; For trains Quality, For trains exist The control input at the moment, For trains exist The basic resistance encountered at all times, For trains exist The additional resistance encountered at the time, the point on the parameter is the derivative symbol; the train exist The basic resistance encountered at all times .
[0045] The dynamic model of a single train in a virtual train formation can be transformed into:
[0046] .
[0047] in, , and Both are basic operating resistance coefficients.
[0048] Specifically, the state variables of the leader train can be expressed as follows:
[0049] .
[0050] in, for The state variables of the leader train at the moment, is the expected distance between the two vehicles, for The reference speed curve at the moment, Train for leaders The actual speed at the moment, The next train for the leader train is The actual speed at the moment, Train for leaders The actual displacement at time, The next train for the leader train is The actual displacement at time, For trains Length.
[0051] The follower train at the end of the virtual train formation The state variables can be expressed as follows:
[0052] .
[0053] in, for Time Follower Train The state variables, Train for followers The previous train was The actual speed at the moment, Train for followers exist The actual speed at the moment, Train for followers The previous train was The actual displacement at time, Train for followers exist The actual displacement at that moment.
[0054] The state variables of the follower trains other than the follower train at the end of the virtual formation can be expressed by the following formula:
[0055] .
[0056] in, for The first element in for Train Schedule On the same train The speed deviation between for Train Schedule The next train The speed deviation between for Train Schedule To the previous train The distance deviation between the actual distance and the expected distance; for Train Schedule To the next train The distance between the actual distance and the expected distance.
[0057] Specifically in this embodiment, the state space model of virtual grouping can be expressed by the following formula:
[0058] .
[0059] in, , and are all coefficient matrices; each coefficient matrix is expressed by the following formula:
[0060] .
[0061] in, .
[0062] The discretized form of the state space model of virtual grouping is expressed as follows:
[0063] .
[0064] in, , and are coefficient matrices; , , , is the sampling period, is the identity matrix.
[0065] Specifically, the control input constraint can be expressed as follows:
[0066] .
[0067] in, and They are the maximum braking deceleration and the maximum traction acceleration respectively.
[0068] The speed constraint can be expressed as follows:
[0069] .
[0070] in, The maximum speed limit of the train.
[0071] The displacement constraint can be expressed as follows:
[0072] .
[0073] in, is the minimum spacing between trains.
[0074] Specifically in this embodiment, the method further includes the step of converting the control input constraint, the speed constraint and the displacement constraint into a constraint set form.
[0075] The so-called constraint set is shown in the following formula:
[0076] .
[0077] .
[0078] .
[0079] in, is the velocity constraint set, is the displacement constraint set, To control the input constraint set, is a set of natural numbers, is the number of trains in the virtual formation, is the constraint set function.
[0080] .
[0081] in, are the parameter matrices of the constraint set functions, , , , .
[0082] Specifically, the multi-constraint optimization problem can be expressed as follows:
[0083] .
[0084] in, For Train Schedule Predicted The state variables in the time domain, For Train Schedule Predicted Control input in the time domain To improve the performance indicator function, To predict the size of the time domain, For the end moment, , , , , are the Euclidean norms of the state deviation of the train itself, the state deviation of the adjacent train before, the state deviation of the adjacent train after, the control input deviation, and the terminal state deviation, respectively. , , , For Train Schedule The state variables, For Train Schedule The control input quantity, For trains The estimated state variables of is the state constraint set, including the displacement constraint set and velocity constraint set , is the terminal state constraint set.
[0085] The above describes the steps of the virtual marshaling train prediction control method based on DMPC provided by this embodiment from the perspective of specific application. The following describes the virtual marshaling train prediction control method based on DMPC provided by this embodiment from the perspective of theoretical derivation:
[0086] In order to realize the speed tracking control of virtual train formation, the establishment of an accurate train dynamics model is the first prerequisite. The dynamics model of a single train is shown in formula (1):
[0087] (1).
[0088] In formula (1), is the number of each train in the virtual train set, where Train for leaders, As its follower train; For trains exist The actual displacement at the moment; For trains exist The actual speed at the moment; For trains To facilitate the subsequent control design, it is assumed that the mass of each train is the same, that is, ; For trains exist Control input quantity at each moment (including traction and braking force); is the basic resistance of the train, where , , is the basic operating resistance coefficient, which can be obtained based on previous experience; is the additional resistance, including slope resistance and curve resistance, both of which are related to the location of the train. The train dynamics equation is further obtained as shown in formula (2):
[0089] (2).
[0090] Different from the traditional physical coupling method, each unit train of virtual marshaling needs to be connected through two methods: train-to-train (T2T) and train-to-ground (T2G) communication, that is, there is no need to connect through physical couplers. Figure 2 The figure shows the train communication topology structure adopted in this embodiment. Through this communication mode, each train can receive operation information from the preceding train and the following train, such as position, speed and control quantity. On the basis of realizing speed tracking control, it is ensured that there is a safe operation interval between the unit train and the preceding train and the following train to avoid collision. This communication mode provides convenience for the design of distributed control systems.
[0091] The control goal of traditional trains connected by physical couplers is to track the required speed curve. For vehicles without independent traction and braking devices, the coupler applies additional force to keep them at an approximately constant distance from the front train. Due to the existence of the coupler, it is possible to avoid the distance between trains being less than the limit of the coupler length, and the force of the coupler allows the rear train to track the running speed of the front train. In the operation control of virtual marshaling trains, trains should be combined and run like traditional physically coupled trains, which means that the control strategies of leaders and followers in virtual marshaling trains are different.
[0092] For Leaders Train and follower train For example, there is no preceding train in front or no following train in the back, just like the first and last carriages in a physically coupled train, the control target of the first train is to track the required reference speed and ensure a safe distance from the following train, and the control target of the last train is to track the speed of the preceding train and ensure a safe distance from the preceding train. The state variables are set as shown in formula (3) and formula (4):
[0093] (3).
[0094] (4).
[0095] in, is the expected distance between the two vehicles; For trains The length of the train is assumed to be the same for each train. , for Tracking reference speed at the moment.
[0096] For Followers Train , its control principle is similar to that of the physical coupling train. In the traditional coupler coupling train, each carriage is kept at a certain distance of the coupler length. In order to simulate the running state of the physical coupling train, the control target of the follower train is that when the speed of each unit train is consistent, a certain expected safety distance must be maintained before and after the train. Therefore, the state variable of the follower train is set as shown in formula (5):
[0097] (5).
[0098] in, for Train Schedule With the front train The speed deviation between for Train Schedule With the train behind The speed deviation between for Train Schedule To the previous train The distance deviation between the actual distance and the expected distance; for Train Schedule To the next train The actual distance is the distance between the expected distance. Derivative (5) is obtained, and then (2) is substituted into (5) to obtain the train The state equation is:
[0099] (6).
[0100] in, , , , .
[0101] Since the two unit trains are running at a close distance, assuming that the slope resistance they encounter is the same, then are all 0. When the train is in a balanced state When , the speed of all trains in the formation remains the same, that is, , for the convenience of subsequent control system design, this embodiment linearizes equation (6) at the equilibrium point as shown in equation (7):
[0102] (7).
[0103] in, The state space model of the virtual train can be obtained as shown in formula (8):
[0104] (8).
[0105] Among them, the matrix coefficients are:
[0106] .
[0107] In the actual operation of the train, the train status information is usually transmitted through discrete sampling. In this embodiment, the continuous space state equation of formula (8) is converted into a discrete form as shown in formula (9) by the Euler method:
[0108] (9).
[0109] In formula (9), each matrix coefficient satisfies , , .
[0110] In order to ensure the actual safe operation of the train, state constraints and control constraints are introduced. Due to the influence of train performance and other factors, the train control input constraints are shown in formula (10):
[0111] (10).
[0112] in, are the maximum braking deceleration and the maximum traction acceleration respectively. Considering the track conditions and the influence of bad weather, the train speed constraint is shown in formula (11):
[0113] (11).
[0114] in, The maximum speed limit of the train.
[0115] During the operation of virtual marshaling trains, in order to eliminate the possibility of train rear-end collision, a certain safety distance must be maintained between trains. The displacement constraint between adjacent trains can be calculated based on the relative braking curve of the trains as shown in formula (12):
[0116] (12).
[0117] From formula (11), we can know Therefore, the above formula (12) can be linearized into the form shown in formula (13):
[0118] (13).
[0119] For the convenience of subsequent description, the above security constraints are expressed as constraint sets as shown in equations (14), (15) and (16):
[0120] (14).
[0121] (15).
[0122] (16).
[0123] in,
[0124] .
[0125] In the formula, , , The displacement constraint set, speed constraint set and control input constraint set during the actual operation of the train respectively; , , , for The matrix parameters in .
[0126] During the operation of virtual marshaling trains, ensuring a certain safety distance between each unit train is the first issue that the control system must consider. When the trains run at a certain safety distance, the speeds of each train must also tend to be consistent, so as to ensure a stable formation operation state; secondly, under the premise of meeting the safety distance, the control force should also be as small as possible to meet the requirements of passenger comfort. To this end, by designing a performance index function that meets the above requirements, the optimal control input value is obtained, and the specific expression is shown in formula (17):
[0127] (17).
[0128] In the formula, is the performance indicator function; are the weighted coefficients of state and control force respectively, among which, , by design The size of reflects the importance of speed, spacing and control amount; for The actual control amount at the moment; for The optimal control quantity calculated at all times.
[0129] Next, this embodiment uses the DMPC method to track and control the virtual marshaling train. Figure 3 As shown in the figure, the virtual train under the DMPC strategy contains multiple controllers, that is, each unit train is equipped with an MPC controller to control the operation of the unit train one by one. This DMPC control method can greatly reduce the computational burden of the controller, making the operation more efficient and accurate.
[0130] MPC is a closed-loop rolling optimization control algorithm based on a predictive model, such as Figure 4 As shown, in the prediction time domain According to the initial state of the system , prediction model and constraints, by solving the performance index function in the time domain, the optimal control sequence and prediction state are obtained, the first item of the optimal sequence is assigned to the controlled object, an iteration is completed, and in the next prediction time domain, the above operations are repeated until all trajectory predictions are completed.
[0131] According to the virtual train state space discretization model (9) obtained by formula (8), it is converted into the MPC prediction model:
[0132] (18).
[0133] in, for The state quantity at the moment; is the control sequence to be solved; is the corresponding predicted state sequence; the other parameter matrices are
[0134] .
[0135] .
[0136] In order to facilitate the design of the optimal control problem of virtual train formation, the following assumptions are given:
[0137] Assumption 1: For the system model (9), given a positive definite symmetric matrix , there is a constant , a positive definite symmetric matrix and a local state feedback control law , so that for any terminal state quantity , where the terminal state matrix The following conditions are met:
[0138] .
[0139] .
[0140] .
[0141] Taking the consistency between the virtual train and the adjacent trains as the control target and considering the state information of the adjacent system, according to assumption 1, the performance index function is designed as shown in formula (19):
[0142] (19).
[0143] The performance index function consists of two parts: the operating cost function (where the subscript is norm) and the terminal cost function (where the subscript is ), , for Train Schedule Predicted The state value and control quantity in the time domain, and, , , ; , , , , are the Euclidean norms of their own state deviation, adjacent state deviation, control quantity and terminal state deviation, respectively. and are the adjacent state deviations, is the weight matrix of the state deviation from the previous train, is the weight matrix of the state deviation between the train and the next train. , , , , is the weight matrix of the corresponding indicator. is the state constraint set, including and ; is the terminal state constraint set, that is, the terminal invariant set. To ensure the stability of the algorithm, the terminal prediction state must be in the terminal invariant set.
[0144] train Estimated state The structure is shown in formula (20):
[0145] (20).
[0146] To facilitate the solver, equation (19) is described as a quadratic programming function format. First, equation (19) is organized into the form shown in equation (21):
[0147] (twenty one).
[0148] In formula (21), there is a definition shown in formula (22):
[0149] (twenty two).
[0150] in, is a combined diagonal matrix. Substituting equation (18) into equation (21) and further eliminating irrelevant constant terms, it can be simplified to the form shown in equation (23):
[0151] (twenty three).
[0152] in, , All are known quantities.
[0153] According to the constraints in formula (19), the optimal control sequence is calculated , select the first control quantity Input to the controlled object to obtain the state of the train at the next moment , and feed it back to the controller for optimal control calculation at the next moment, and transmit the information to the front and rear vehicles through vehicle-to-vehicle communication. The specific algorithm is as follows:
[0154] Step B1, initialization: Let ; , initialize the controller parameters and the operating status of each unit train, and set the reference speed curve of the leader train.
[0155] Step B2: Input the reference speed curve into the leader train controller and solve the constrained optimization problem (19).
[0156] Step B3: Obtain , Save and pass to the following train.
[0157] Step B4: Get the optimal control sequence The first control quantity As the actual control input of the leader train, the output value of the running state at the next moment is obtained.
[0158] Step B5: Solve the follower train constraint optimization problem (19).
[0159] Step B6: Obtain , Save and pass to the preceding and following trains.
[0160] Step B7: Get the optimal control sequence The first control quantity As a train The actual control input is used to obtain the operating status output value at the next moment.
[0161] Step B8: If , return to step B5 to solve the constrained optimization problem of the following train; if ,make , return to step B2. Until completion The solution, is the total sampling time.
[0162] In order to verify the effectiveness of the proposed method, a simulation experiment was conducted using a semi-physical simulation platform for high-speed EMU tracking operation equipped in the laboratory, with a virtual train consisting of three CRH380 unit trains as the control object. This embodiment assumes that the mass of the three unit trains is 480t, and the specific parameter characteristic values of the trains are shown in Table 1.
[0163] Table 1 System parameters
[0164]
[0165] In this embodiment, the desired distance between trains is set 100m; minimum safe distance is 50m. Figure 5The figure shows the reference speed curve that the leader train needs to track during operation, which includes three operating conditions: train acceleration, coasting, and braking. In different sections, the speed limit values are different. The system sampling time interval is 1s, and the number of samples collected is 2500.
[0166] In order to verify the effectiveness of the method of this embodiment, the DMPC method is used to control the formation of three unit trains under different initial conditions to verify the effectiveness of the algorithm. The specific experimental parameter settings are shown in Table 2.
[0167] Table 2 Experimental parameters
[0168]
[0169] from Figure 6 , Figure 7 , Figure 8 and Fig. 9 It can be seen that for the four groups of experiments, the distance tracking error and speed tracking error between each train can gradually converge to 0 after 300s and remain in a stable state, which is very efficient and effective. For Experiment 1, the initial speed of Train 1 is 5km / h faster than that of Train 0, while the initial speed of Train 2 is 10km / h slower than that of Train 1. Since the initial spacing errors between the three unit trains are all greater than 0, Train 2 has a process of greatly increasing its speed, which causes the speed error to drop rapidly. Later, due to the effect of inertia, it needs to slow down to balance the formation, while the spacing error shows a downward trend. For Experiment 2, the initial speed of Train 1 is 5km / h slower than that of Train 0, while the initial speed of Train 2 is 10km / h faster than that of Train 1. The initial spacing errors between the three unit trains are also greater than 0. Therefore, Train 1 needs to increase its speed as quickly as possible to achieve formation stability relative to Train 2, but Train 2 also needs to increase its speed after slightly slowing down to shorten the spacing error. For Experiment 3, the initial speed of Train 1 is 10km / h faster than that of Train 0, while the initial speed of Train 2 is 5km / h slower than that of Train 1. The spacing error between Train 0 and Train 1 is less than 0, and the spacing error between Train 1 and Train 2 is greater than 0, and , so Train 1 needs to slow down as quickly as possible relative to Train 2 to achieve formation stability. Similar to Experiment 2, Train 2 also needs to slow down after slightly increasing its speed to shorten the spacing error. For Experiment 4, the initial speed of Train 1 is 10 km / h slower than that of Train 0, while the initial speed of Train 2 is 5 km / h faster than that of Train 1. The spacing error between Train 0 and Train 1 is less than 0, and the spacing error between Train 1 and Train 2 is greater than 0, and Therefore, neither Train 1 nor Train 2 needs to react too much.
[0170] In such Fig.10and Fig.11 In the acceleration curves of each group of experimental trains 1 and 2 shown, it can be seen that as described in this embodiment, in experiment 1, train 2 uses the maximum acceleration to increase the train running speed; in experiment 2, train 1 uses the maximum acceleration to increase the train running speed, and train 2 starts to speed up with the maximum acceleration after slowing down at the beginning; in experiment 3, train 1 uses the minimum acceleration to slow down the train running speed, and train 2 starts to slow down with the minimum acceleration after increasing the speed at the beginning; in experiment 4, the control acceleration is relatively gentle. And the control acceleration is guaranteed to be between [-1,1], which meets the passenger's comfort requirements. In addition, around 1200s, the acceleration fluctuates significantly. This is because the speed of the leader train 0 reference tracking curve set in this embodiment changes, which causes the control acceleration of the follower train to change accordingly to ensure the stable formation operation of the virtual marshaling train. It can be seen that under the control of the acceleration, the speed error and spacing error of each unit train remain stable. Facts have proved that under the control of the DMPC algorithm in this embodiment, the train can run smoothly and efficiently, verifying the effectiveness of the improved algorithm.
[0171] Example 2
[0172] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a DMPC-based virtual train prediction control method in Example 1.
[0173] Example 3
[0174] A computer program product includes a computer program, which, when executed by a processor, implements the steps of a DMPC-based virtual train formation prediction control method in Example 1.
[0175] Example 4
[0176] A computer device, which may be a database, may have an internal structure as shown in Fig.12As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a virtual train prediction control method based on DMPC in Example 1 is implemented.
[0177] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0178] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0179] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0180] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A virtual train prediction control method based on DMPC, It is characterized in that The virtual marshaling includes a leader train and a plurality of follower trains; the virtual marshaling train prediction control method based on DMPC includes: According to the reference speed curve and the actual state variables of the leader train at the current moment, the multi-constraint optimization problem is solved with the goal of minimizing the improved performance index function to obtain the optimal prediction control sequence of the leader train and the optimal prediction state sequence of the leader train; the improved performance index function is a performance index function that adds the state variables of adjacent trains; the constraints of the multi-constraint optimization problem include control input constraints, speed constraints and displacement constraints; the optimal prediction control sequence includes the optimal control input quantities corresponding to several moments between the current moment and the end moment; the optimal prediction state sequence includes the state variables corresponding to each optimal control input quantity in the optimal prediction control sequence; Sending the optimal prediction control sequence and the optimal prediction state sequence of the leader train to a follower train that follows the leader train, and selecting the first optimal control input in the optimal prediction control sequence of the leader train as the actual control input of the leader train to obtain the actual state variable of the leader train at the next moment; For any follower train, according to the actual state variables of the previous train of the follower train at the current moment and the actual state variables of the follower train at the current moment, solve the multi-constraint optimization problem to obtain the optimal prediction control sequence of the follower train and the optimal prediction state sequence of the follower train; the previous train of the follower train is the leader train or another follower train; Sending the optimal prediction control sequence and the optimal prediction state sequence of the follower train to the adjacent train of the follower train, and selecting the first optimal control input in the optimal prediction control sequence of the follower train as the actual control input of the follower train, to obtain the actual state variable of the follower train at the next moment; If the terminal moment has not been reached, the next moment is taken as the current moment, and the process jumps to the step: according to the reference speed curve and the actual state variables of the leader train at the current moment, the multi-constraint optimization problem is solved with the goal of minimizing the improved performance index function to obtain the optimal prediction control sequence of the leader train and the optimal prediction state sequence of the leader train; until the current moment is the terminal moment; The multi-constraint optimization problem can be expressed as follows: ; in, For Train Schedule Predicted The state variables in the time domain, For Train Schedule Predicted The control input in the time domain, To improve the performance indicator function, To predict the size of the time domain, For the end moment, , , , , are the Euclidean norms of the state deviation of the train itself, the state deviation of the adjacent train before, the state deviation of the adjacent train after, the control input deviation, and the terminal state deviation, respectively. , , , For Train Schedule The state variables, For Train Schedule The control input quantity, For trains The estimated state variables of is the state constraint set, including the displacement constraint set and velocity constraint set , is the terminal state constraint set.
2. According to claim 1, a DMPC-based virtual train prediction control method, It is characterized in that The dynamic model of a single train in a virtual train formation is expressed as follows: ; in, For trains exist The actual displacement at the moment; For trains exist The actual speed at the moment; For trains Quality, For trains exist The control input at the moment, For trains exist The basic resistance encountered at all times, For trains exist The additional resistance encountered at the time, the point on the parameter is the derivative symbol; the train exist The basic resistance encountered at all times ; The dynamic model of a single train in a virtual train formation can be transformed into: ; in, , and Both are basic operating resistance coefficients.
3. A virtual train formation prediction control method based on DMPC according to claim 2, It is characterized in that The state variables of the leader train can be expressed by the following formula: ; in, for The state variables of the leader train at the moment, is the expected distance between the two vehicles, for The reference speed curve at the moment, Train for leaders The actual speed at the moment, for The speed error between the actual speed of the time leader train and the reference speed curve, The next train for the leader train is The actual speed at the moment, for The speed error between the leader train and the next train of the leader train at a given moment, Train for leaders The actual displacement at time, The next train for the leader train is The actual displacement at time, for The displacement error between the leader train and the next train of the leader train at a given moment, For trains Length; The follower train at the end of the virtual train formation The state variables can be expressed as follows: ; in, for Time Follower Train The state variables, Train for followers The previous train was The actual speed at the moment, Train for followers exist The actual speed at the moment, for Time Follower Train Train with followers The speed error of the previous train, Train for followers The previous train was The actual displacement at time, for Time Follower Train Train with followers The displacement error of the previous train, Train for followers exist The actual displacement at the moment; The state variables of the follower trains other than the follower train at the end of the virtual formation can be expressed by the following formula: ; in, for The first element in for Train Schedule On the same train The speed deviation between for Train Schedule The next train The speed deviation between for Train Schedule To the previous train The distance deviation between the actual distance and the expected distance; for Train Schedule To the next train The distance between the actual distance and the expected distance.
4. A virtual train formation prediction control method based on DMPC according to claim 3, It is characterized in that The state space model of the virtual grouping can be expressed by the following formula: ; in, , and are all coefficient matrices; each coefficient matrix is expressed by the following formula: ; in, ; The discretized form of the state space model of the virtual grouping is expressed by the following formula: ; in, , and are coefficient matrices; , , , is the sampling period, is the identity matrix.
5. A virtual train formation prediction control method based on DMPC according to claim 4, It is characterized in that The control input constraint can be expressed by the following formula: ; in, and They are the maximum braking deceleration and the maximum traction acceleration respectively; The speed constraint can be expressed by the following formula: ; in, is the maximum speed limit of the train; The displacement constraint can be expressed by the following formula: ; in, is the minimum spacing between trains.
6. A DMPC-based virtual train prediction control method according to claim 5, It is characterized in that Also includes: The control input constraints, velocity constraints and displacement constraints are converted into constraint set form; the constraint set form is shown in the following formula: ; ; ; in, is the velocity constraint set, is the displacement constraint set, To control the input constraint set, is a set of natural numbers, is the number of trains in the virtual formation, is the constraint set function; ; in, are the parameter matrices of the constraint set functions, , , , .
7. A computer device, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a DMPC-based virtual train prediction control method according to any one of claims 1 to 6.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of a DMPC-based virtual train formation prediction control method described in any one of claims 1 to 6 are implemented.
9. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of a DMPC-based virtual train formation prediction control method described in any one of claims 1 to 6 are implemented.
