Dynamic adjustment method of model prediction weighting factors based on multi-dimensional reward Q-learning

The multi-dimensional reward Q-learning method is used to dynamically adjust the weighting factors of the model prediction trajectory tracking controller, which solves the problem of insufficient trajectory tracking stability and accuracy under complex paths with traditional methods, and improves the trajectory tracking accuracy and driving stability of autonomous vehicles. .

CN115167134BActive Publication Date: 2024-10-25YANSHAN UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210846015.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2024-10-25
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

Traditional model predictive control methods are difficult to meet the stability and accuracy requirements of autonomous vehicle trajectory tracking under complex paths, affecting driving safety.

Method used

Using a method based on multi-dimensional reward Q-learning, the optimal adjustment strategy for weighting factors is trained through reinforcement learning, and the weighting factors of the model prediction trajectory tracking controller are dynamically adjusted in real time to optimize the trajectory tracking performance of autonomous vehicles.

Benefits of technology

It improves the trajectory tracking accuracy and driving stability of autonomous vehicles, reduces the error between the actual position of the vehicle and the expected trajectory, and improves the comfort of trajectory tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115167134B_ABST
    Figure CN115167134B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for dynamically adjusting model prediction weighting factors based on multi-dimensional reward Q learning, and belongs to the field of trajectory tracking control of autonomous driving vehicles. The method solves the problem that improper selection of weighting factors when designing a trajectory tracking controller using the model predictive control principle will reduce the stability and accuracy of the trajectory tracking of the autonomous driving vehicle and the driving safety. The present invention trains the optimal adjustment strategy of the weighting factors through the Q learning method in reinforcement learning, and can dynamically adjust the weighting factors of the model prediction trajectory tracking controller in real time, thereby optimizing the trajectory tracking performance of the autonomous driving vehicle in real time, so as to reduce the error between the actual position of the vehicle and the expected trajectory at each sampling moment, and improve the trajectory tracking accuracy, driving stability and comfort of the autonomous driving vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of autonomous driving trajectory tracking control, and in particular to a method for dynamically adjusting model prediction weighting factors based on multi-dimensional reward Q learning. Background Art

[0002] Intelligent and Connected Vehicle (IVC), as a collection of advanced technologies such as sensors and communication technology, perception, decision-making, and control, is considered to be a solution for future cars. It is very effective in reducing the driver's operating load and reducing traffic accidents caused by drivers. Among them, trajectory tracking control is the key algorithm for whether intelligent connected vehicles can achieve autonomous driving. With the continuous improvement of hardware, model predictive control theory is gradually applied to the trajectory tracking of autonomous driving vehicles. In the traditional model predictive control method, the adjustment of weighting factors is based on the debugging and experience of developers. This method is difficult to meet the requirements of trajectory tracking accuracy under complex paths. Summary of the invention

[0003] In view of the above-mentioned prior art, the technical problem to be solved by the present invention is that improper selection of weighting factors when designing a trajectory tracking controller using the model predictive control principle will reduce the stability and accuracy of the trajectory tracking of the autonomous driving vehicle and the driving safety. The purpose of the present invention is to train the optimal adjustment strategy of the weighting factors through the Q learning method in reinforcement learning, and to dynamically adjust the weighting factors of the model predictive trajectory tracking controller in real time, thereby optimizing the trajectory tracking performance of the autonomous driving vehicle in real time, so as to reduce the error between the actual position of the vehicle and the expected trajectory at each sampling moment, and improve the trajectory tracking accuracy, driving stability and comfort of the autonomous driving vehicle.

[0004] To achieve the above object, the present invention proposes a method for dynamically adjusting a model prediction weighting factor based on multi-dimensional reward Q learning, comprising the following steps:

[0005] Obtain the measurement information of the target autonomous driving vehicle in the ground coordinate system and set the size of the prediction time domain Np;

[0006] Step 1: Based on the current measurement information, obtain the output information in the prediction time domain Np;

[0007] The output information is used as a reference input, and an optimal control sequence is obtained by minimizing the following objective function. The first control amount of the obtained optimal control sequence is applied to the target autonomous driving vehicle to make it track according to the current expected trajectory.

[0008] The objective function is as follows:

[0009] J=[P(k)-Y ref (k)] T Q[P(k)-Y ref (k)]+U(k) T RU(k)

[0010] in:

[0011] The reference vehicle lateral displacement vector in the prediction time domain Np is obtained based on the measurement information at sampling time k;

[0012] is the desired vehicle lateral displacement vector corresponding to the reference vehicle lateral displacement;

[0013] is the first weighting factor matrix, is the second weighting factor matrix;

[0014] is the vehicle front wheel steering angle vector of Nc control time domain, whose elements constitute the control sequence;

[0015] If the end point of the target trajectory is not reached, the measurement information of the target autonomous driving vehicle at sampling time k+1 in the ground coordinate system is collected;

[0016] Collect the actual abscissa, actual ordinate, and actual yaw angle of the target autonomous driving vehicle at sampling time k+1 in the ground coordinate system, and obtain the expected abscissa, expected ordinate, and expected yaw angle corresponding to the same sampling time as environmental information and add them to the environmental vector;

[0017] Determine whether the sampling time k+1 is greater than 3. If not, return to the step marked as Step 1; if so, for the sampling time k+1, calculate the reward of the target autonomous driving vehicle under the current control amount based on the environmental variables, and use the preset two-dimensional Q table to adjust the values ​​of the first weighting factor matrix and the second weighting factor matrix in the objective function;

[0018] Return to the step labeled Step1.

[0019] In the above technical scheme, the method of the present invention solves the problem that improper selection of weighting factors when designing a trajectory tracking controller using the model predictive control principle will reduce the stability and accuracy of the trajectory tracking of the autonomous driving vehicle and the driving safety. The method of the present invention uses the measurement information of the autonomous driving vehicle obtained in real time as the state, the values ​​of the first weighting factor matrix and the second weighting factor matrix of the adjusted objective function as the action, and collects environmental information in real time to calculate the reward, and adaptively determines the action of the current state to enter the next state through the preset Q table, thereby optimizing the trajectory tracking performance of the autonomous driving vehicle in real time, so as to reduce the error between the actual position of the vehicle and the expected trajectory at each sampling moment, and improve the trajectory tracking accuracy and driving stability and comfort of the autonomous driving vehicle. Among them, the preset two-dimensional Q table is a table obtained through training, and for each state and action in it, the change of the Q value is within the set threshold range; or the set number of training times is reached. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0021] Figure 1 , a schematic diagram of a coordinate system for establishing a system state equation for vehicle tracking in one embodiment of the present invention;

[0022] Figure 2 , a schematic diagram of a dynamic adjustment process of a model prediction weighting factor for multi-dimensional reward Q learning in one embodiment of the present invention;

[0023] Figure 3 , a schematic diagram of the actual trajectory, predicted trajectory, actual control amount, and predicted control amount changes at sampling time k in one embodiment of the present invention;

[0024] Figure 4 , a schematic diagram of an implementation overview of the method of the present invention. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0026] When the present invention is implemented, a model prediction trajectory tracking controller is first established based on a control model, and the control model uses a vehicle two-degree-of-freedom dynamics model. The process of establishing the model prediction trajectory tracking controller includes the following steps:

[0027] Step 1.1: Figure 1 As shown, in the geodetic coordinate system OXY, the vehicle coordinate system oxy is established with the vehicle center of mass as the origin o, the front of the vehicle as the x-axis, and the side of the vehicle as the y-axis. In the vehicle coordinate system, the system state equation for vehicle tracking is established:

[0028]

[0029] in:

[0030] C=[1 0 0 0]

[0031]

[0032] Where v is the velocity of the vehicle's center of mass; C f is the vehicle front axle lateral stiffness; C r is the vehicle rear wheel cornering stiffness; m is the vehicle mass; v x is the velocity component of the vehicle in the forward direction, that is, the x-axis component in the vehicle coordinate system; a is the distance from the center of the front axle to the center of mass of the vehicle; b is the distance from the center of the rear axle to the center of mass of the vehicle; I Z is the moment of inertia of the vehicle about the top of the vehicle and d is the lateral displacement of the vehicle; is the vehicle yaw angle; β is the vehicle's sideslip angle ω r is the vehicle yaw rate, and C is the control output vector.

[0033] Step 1.2: Discretize the above equation to obtain the model prediction equation:

[0034] s(k+1)=A c s(k)+B c δ f (k)

[0035]

[0036]

[0037] C c =[1 0 0 0]

[0038]

[0039]

[0040] Where:

[0041] s(k) is the state input vector at sampling time k; s(k+1) is the state input vector at sampling time k+1; A c is the system matrix; B c is the control matrix; p(k) is the output information at sampling time k; δ f (k) is the front wheel turning angle at sampling time k; C c is the output control vector; d(k) is the actual lateral displacement at sampling time k, obtained through the sensor; is the actual yaw angle of the vehicle at sampling time k, β(k) is the actual sideslip angle of the vehicle at sampling time k, ω r (k) is the actual yaw rate of the vehicle at sampling time k; T s is the sampling time interval.

[0042] Step 1.3: Using the predictive control equations of the target autonomous driving vehicle in the ground coordinate system, substitute the information at sampling time k to obtain the output information at sampling time k+1, and so on, until k+Np output information is obtained. After arranging the output information, the following matrix equation form can be obtained:

[0043]

[0044] Its components are composed of output information from sampling time k+1 to sampling time k+Np, and in the present invention, the output information is the lateral displacement of the vehicle;

[0045]

[0046] Its components are composed of the state input vector from sampling time k+1 to sampling time k+Np;

[0047]

[0048] Its components are composed of the front wheel turning angles from sampling time k+1 to sampling time k+Nc, where Nc is the control time domain.

[0049] Secondly, an optimization objective function is established, which minimizes the cumulative error between the predicted output and the expected output and minimizes the control amount. This objective function is the model predictive trajectory tracking controller.

[0050] The objective function is as follows:

[0051] J=[P(k)-Y ref (k)] T Q[P(k)-Y ref (k)]+U(k) T RU(k)

[0052] in:

[0053] The reference vehicle lateral displacement vector in the prediction time domain Np is obtained based on the measurement information at sampling time k;

[0054] is the desired vehicle lateral displacement vector corresponding to the reference vehicle lateral displacement;

[0055] is the first weighting factor matrix, is the second weighting factor matrix;

[0056] is the vehicle front wheel steering angle vector of Nc control time domains, and its elements constitute the control sequence.

[0057] Third, establish the action set A.

[0058] A={a1:Qr k =Qr k-1 -0.1, a2: Qr k =Qr k-1 , a3:Qr k =Qr k-1 +0.1}, where 0.1 can also be 0.2, 0.3, 0.4, 0.5, etc.

[0059] QUR k is the weighting factor ratio parameter at sampling time k; Qr k-1 is the weighting factor ratio parameter at sampling time k-1. In one embodiment, the weighting factor ratio parameter is

[0060] When determining the weighting factors, the value of each weighting factor can be obtained by further limiting the sum of the two weighting factors. For example, in one embodiment, the sum of the two weighting factors is limited to 100, that is, q+r=100.

[0061] Train through the following steps to obtain a set of possible actions for each state:

[0062] Obtain the current measurement information of the target autonomous driving vehicle in the ground coordinate system and set the size of the prediction time domain N;

[0063] Step 2: Based on the current measurement information, obtain the output information in the prediction time domain Np;

[0064] The output information is used as a reference input, an optimal control sequence is obtained by minimizing the above objective function, and the first element of the obtained optimal control sequence is applied to the target autonomous driving vehicle;

[0065] According to the actions in the action set, adjust and calculate the weighting factors of the objective function in turn, record the control amount under each action, and obtain the initial state-action control amount table;

[0066] Based on the initial state-action control scale, judgment is made according to the threshold range, and actions that are not within the threshold range are marked as infeasible, thereby improving the safety of the target autonomous driving vehicle:

[0067] U safe,k = {u k |u k ∈U and Δu k ∈ΔU,k∈[t i , t i+2 ]}

[0068] U=[U min , U max ]

[0069] ΔU=[ΔU min , △U max ]

[0070] Among them, U safe,k is the set of reasonable control quantities at sampling time k; u k is the control quantity at sampling time k, which will change with the change of weighting factor; Δu k is the control increment at sampling time k; [t i , t i+2 ] is the observation time after the action is taken in the current state, t i is the first sampling time after taking action; t i+2 is the third sampling time after taking action, U min is the minimum control quantity, U max is the maximum control quantity, △U min is the minimum control increment, △U max is the maximum control increment.

[0071] Fourth, determine the reward calculation function

[0072] The stability reward, accuracy reward, and comfort reward at sampling time k+1 are calculated by the following equations (1), (2), and (3), respectively, so as to obtain the sum of the rewards at sampling time k+1: k+1 By giving rewards in terms of stability, accuracy and comfort, the performance of the target autonomous driving vehicle in these three aspects during trajectory tracking is improved.

[0073] Stability Rewards:

[0074]

[0075] In formula (1): Y k is the actual vehicle lateral displacement at sampling time k; r w is the set reward value; D w is the first constant set; Y′ k represents a stability parameter, and in one embodiment, is calculated by the following formula:

[0076]

[0077] Where: X k is the actual horizontal coordinate of sampling time k; X k-1 is the actual horizontal coordinate at sampling time k-1; X k+1 is the actual horizontal coordinate of the sampling time k+1.

[0078] Accuracy Rewards:

[0079]

[0080] In formula (2): r j Indicates the reward value; D j is the second constant set; Y k-1 is the actual vehicle lateral displacement at sampling time k-1; Y k is the actual vehicle lateral displacement at sampling time k; Y k+1 is the actual vehicle lateral displacement at sampling time k+1; Y ref,k-1 , Y ref,k , Y ref,k+1 Y k-1 , Y k , Y k+1 The corresponding expected vehicle lateral displacement.

[0081] Comfort Bonus:

[0082]

[0083] In formula (3): r s Represents the reward value, D s is the third constant set; is the actual yaw angle at sampling time k-1, is the actual yaw angle at sampling time k, is the actual yaw angle at sampling time k+1; They are The corresponding expected yaw angle.

[0084] R k+1 =R w +R j +R s .

[0085] Fifth, establish a two-dimensional Q table

[0086] Establish a two-dimensional Q table Q(S, A) about state-action pairs, where S is the state set, A is the action set, and the initial value of the elements in the table is 0;

[0087] Set the initial value of the current iteration round to 0 and set the maximum number of iterations Num;

[0088] Set the values ​​of learning rate α and discount factor γ;

[0089] Get the current iteration round;

[0090] Step 3: Starting from the third sampling time, for each sampling time k+1, the current vehicle lateral displacement and the vehicle front wheel angle are taken as the current state S k+1 , adjust the weighted factor value of the objective function as the actionable action a k+1 , the vehicle state S at sampling time k+1 is calculated by equations (1), (2), and (3) respectively k+1 In actionable action k+1 The reward R k+1 ;

[0091] The root formula updates the Q value in the two-dimensional Q table according to the following formula:

[0092] Q new (s k+1 , a k+1 )=Q old (s k+1 , a k+1 )+α(R k+1 +γ·max Q′(s k+2 , a k+2 )-Q old (s k+1 , a k+1 ))

[0093] Where: Q new (s k+1 , a k+1 ) indicates that the target autonomous driving vehicle is in state s in the current iteration round. k+1 Actionable action k+1 Q value under old (s k+1 , a k+1 ) indicates that in the previous iteration, the target autonomous driving vehicle was in state s k+1 Actionable action k+1 The Q value under this condition, if the current iteration round is the first, then Q old (s k+1 , a k+1)=0;max Q′(s k+2 , a k+2 ) indicates that the target autonomous driving vehicle is in state s in the current iteration round. k+2 The corresponding maximum Q value;

[0094] If the target autonomous driving vehicle has not reached the end point, return to the step marked step 3; otherwise, if the current iteration round has not reached the maximum number of iterations Num, the current iteration round is incremented by 1, and the sampling time is reset at the same time, so that the target autonomous driving vehicle starts trajectory tracking training again from the starting point.

[0095] In one embodiment, in combination Figure 2 The present invention describes how to use Q learning to dynamically adjust the values ​​of the first weighting factor matrix and the second weighting factor matrix of the objective function. In this embodiment, the prediction time domain is set to 20, the control time domain is set to 5, and the discrete time interval is set to 0.05. In the calculation, the vehicle mass is 1704.7kg, the vehicle longitudinal speed is 72km / h, the distance from the center of the front axle to the center of mass of the vehicle is 1.035m, the distance from the center of the rear axle to the center of mass of the vehicle is 1.655m, the lateral stiffness of the front axle of the vehicle is -31106.98×2N / rad, the lateral stiffness of the rear axle of the vehicle is -29584.56×2 N / rad, and the moment of inertia of the vehicle around the Z axis is 3048kg·m 2 . s、 β、ω r It is collected by sensors in real time. min The value of U is -0.436 rad; max The value of is 0.436 radians (rad); △U min The value of is -0.0148 radians (rad); △U max The value is 0.0148 radians (rad).

[0096] Q learning is used to dynamically adjust the values ​​of the first weighting factor matrix and the second weighting factor matrix of the objective function. Through the Q learning method in reinforcement learning, the optimal adjustment strategy of the weighting factor is trained, and the weighting factor of the model prediction trajectory tracking controller can be adjusted dynamically in real time, thereby optimizing the trajectory tracking performance of the autonomous driving vehicle in real time, so as to reduce the error between the actual position of the vehicle and the expected trajectory at each sampling moment, and improve the trajectory tracking accuracy, driving stability and comfort of the autonomous driving vehicle. Specifically, the following steps are included:

[0097] Obtain the measurement information of the target autonomous driving vehicle in the ground coordinate system and set the size of the prediction time domain Np;

[0098] Step 1: Based on the current measurement information, obtain the output information in the prediction time domain Np;

[0099] The output information is used as a reference input, and an optimal control sequence is obtained by minimizing the following objective function. The first control amount of the obtained optimal control sequence is applied to the target autonomous driving vehicle to make it track according to the current expected trajectory.

[0100] If the end point of the expected trajectory is not reached, the current measurement information of the target autonomous driving vehicle in the ground coordinate system is collected;

[0101] The actual horizontal coordinate, actual vertical coordinate, and actual yaw angle of the target autonomous driving vehicle at the current sampling time in the ground coordinate system are collected, and the expected horizontal coordinate, expected vertical coordinate, and expected yaw angle corresponding to the same sampling time are added to the environment vector;

[0102] Determine whether the previous sampling time k+1 is greater than or equal to 3. If not, return to the step marked Step 1; if so, for the current sampling time k+1, calculate the sum of the stability reward, accuracy reward, and comfort reward of the target autonomous driving vehicle under the current control amount based on the environmental variables, denoted as R k+1 ;

[0103] Using the preset two-dimensional Q table, the Q value is calculated according to the following formula and the two-dimensional Q table is updated:

[0104] Q new (S k+1' a k+1 )=Q old (s k+1' a k+1 )+α(R k+1 +γ·max Q′(s k+2 , a k+2 )-Q old (s k+1' a k+1 ))

[0105] Where: Q new (s k+1' a k+1 ) indicates that the target autonomous driving vehicle is in state s in the current iteration round. k+1 Actionable action k+1 Q value under old (s k+1 , a k+1 ) indicates that in the previous iteration, the target autonomous driving vehicle was in state s k+1 Actionable action k+1 The Q value under this condition, if the current iteration round is the first, then Q old (s k+1 , a k+1 )=0;max Q′(s k+2, a k+2 ) indicates that the target autonomous driving vehicle is in state s in the current iteration round. k+2 will correspond to the maximum Q value.

[0106] The ε-greedy strategy is adopted to adjust the values ​​of the first weighting factor matrix and the second weighting factor matrix in the objective function to ensure that the trajectory tracking of the target autonomous driving vehicle under different working conditions has good stability, accuracy and comfort:

[0107] Generate a random number rand∈(0,1) and set ε=0.1;

[0108] If rand ≥ ε, the selected action is the action with the largest Q value in the current state; otherwise, it is a random action among the available actions in the current state, and safety is satisfied through the available actions.

[0109] Return to the step marked Step1. Figure 3 , at time k, for the set prediction time domain N p When the objective function is minimized, the error between the predicted output (2) and the desired trajectory (1) is the smallest. As can be seen from the figure, the change trend of the predicted output (2) is gradually decreasing and consistent with the desired trajectory (1); while the change trend of the control quantity gradually tends to 0.

[0110] In summary, the schematic diagram of the method of the present invention is as follows Figure 4 As shown, it includes two parts: one is the model predictive control part and the other is the Q learning part. In the model predictive control part, based on the current vehicle control state, the control equation obtains the predicted trajectory in the prediction time domain; using the predicted trajectory and the expected trajectory, the objective function is optimized and solved to obtain the vehicle front wheel steering angle vector control sequence for controlling the vehicle, and the first value is selected to control the vehicle. The control state of the vehicle at the next moment [d, β, ω r ] is fed back to the control model for new trajectory prediction. In the Q learning part, the reward function is used to calculate the reward through the expected trajectory and the environmental variables formed by the actual position of the vehicle, and then the Q value is calculated and the Q table is updated. The data in the Q table needs to be trained before it can be used. When the data changes in the Q table are within the set threshold range, the Q table can be used as a preset table to dynamically adjust the values ​​of the first weighting factor matrix and the second weighting factor matrix of the objective function. In the application, the greedy strategy is used to select the action of the next moment from the Q table to adjust the weighting factor of the objective function.

[0111] Through the description of the above implementation modes, those skilled in the art can clearly understand that the present disclosure can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits, etc. However, for the present disclosure, software program implementation is a better implementation mode in most cases.

[0112] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above specific embodiments and application fields, and the above specific embodiments are only illustrative and instructive, rather than restrictive. A person of ordinary skill in the art can also make many forms under the guidance of this specification and without departing from the scope of protection of the claims of the present invention, all of which belong to the protection of the present invention.

Claims

1. A method for dynamically adjusting model prediction weighting factors based on multi-dimensional reward Q learning, It is characterized in that The steps include: Obtain the measurement information of the target autonomous driving vehicle in the ground coordinate system and set the size of the prediction time domain Np; Step 1: Based on the current measurement information, obtain the output information in the prediction time domain Np; The output information is used as a reference input, and an optimal control sequence is obtained by minimizing the following objective function. The first control amount of the obtained optimal control sequence is applied to the target autonomous driving vehicle to make it track according to the current expected trajectory. The objective function is as follows: J=[P(k)-Y ref (k)] T Q[P(k)-Y ref (k)]+U(k) T RU(k) in: The reference vehicle lateral displacement vector in the prediction time domain Np is obtained based on the measurement information at sampling time k; is the desired vehicle lateral displacement vector corresponding to the reference vehicle lateral displacement; is the first weighting factor matrix, is the second weighting factor matrix; is the vehicle front wheel steering angle vector of Nc control time domain, whose elements constitute the control sequence; If the end point of the target trajectory is not reached, the measurement information of the target autonomous driving vehicle at sampling time k+1 in the ground coordinate system is collected; Collect the actual abscissa, actual ordinate, and actual yaw angle of the target autonomous driving vehicle at sampling time k+1 in the ground coordinate system, and obtain the expected abscissa, expected ordinate, and expected yaw angle corresponding to the same sampling time as environmental information and add them to the environmental vector; Determine whether the sampling time k+1 is greater than 3. If not, return to the step marked as Step 1; if so, for the sampling time k+1, calculate the reward of the target autonomous driving vehicle under the current control amount based on the environmental variables, and use the preset two-dimensional Q table to adjust the values ​​of the first weighting factor matrix and the second weighting factor matrix in the objective function; Return to the step labeled Step1.

2. The method according to claim 1, It is characterized in that The output information in the prediction time domain Np is obtained based on the model prediction equation: The model prediction equation is as follows: s(k+1)=A c s(k)+B c δ f (k) p(k)=C c s(k) C c =[1 0 0 0] Where: s(k) is the state input vector at sampling time k; s(k+1) is the state input vector at sampling time k+1; A c is the system matrix; B c is the control matrix; δ f (k) is the front wheel turning angle at sampling time k; p(k) is the output information at sampling time k; C c is the output matrix; d(k) is the actual lateral displacement at sampling time k; is the actual yaw angle of the vehicle at sampling time k, β(k) is the actual sideslip angle of the vehicle at sampling time k, ω r (k) is the actual yaw rate of the vehicle at sampling time k; T s is the sampling time interval, v is the vehicle center of mass speed; C f is the vehicle front axle lateral stiffness; C r is the vehicle rear axle lateral stiffness; m is the vehicle mass; v x is the velocity component of the vehicle in the forward direction; a is the distance from the center of the front axle to the center of mass of the vehicle; b is the distance from the center of the rear axle to the center of mass of the vehicle; I Z is the vehicle's moment of inertia about the point directly above the vehicle.

3. The method according to claim 1, It is characterized in that The rewards include stability rewards, accuracy rewards, and comfort rewards; From the third sampling time, for sampling time k+1, the stability reward R at sampling time k+1 is calculated by the following equations (1), (2), and (3): w , accuracy reward R j , Comfort Reward R s , thus obtaining the sum of the rewards at sampling time k+1 R k+1 ; In formula (1): Y k is the actual vehicle lateral displacement at sampling time k; r w is the set reward value; Y′ k represents the stability parameter; D w is the first constant set; In formula (2): r j Indicates the reward value; D j is the second constant set; Y k-1 is the actual vehicle lateral displacement at sampling time k-1; Y k is the actual vehicle lateral displacement at sampling time k; Y k+1 is the actual vehicle lateral displacement at sampling time k+1; Y ref,k-1 , Y ref,k , Y ref,k+1 Y k-1 , Y k , Y k+1 The corresponding expected vehicle lateral displacement; In formula (3): r s Represents the reward value, D s is the third constant set; is the actual yaw angle at sampling time k-1, is the actual yaw angle at sampling time k, is the actual yaw angle at sampling time k+1; They are The corresponding expected yaw angle.

4. The method according to claim 3, It is characterized in that The preset two-dimensional Q table is obtained by the following steps: Establish a two-dimensional Q table Q(S, A) about state-action pairs, where S is the state set, A is the action set, and the initial value of the elements in the table is 0; Set the initial value of the current iteration round to 0 and set the maximum number of iterations Num Set the values ​​of learning rate α and discount factor Y; Get the current iteration round; Step 3: Starting from the third sampling time, for each sampling time k+1, the current vehicle lateral displacement and the vehicle front wheel angle are taken as the current state S k+1 , adjust the weighted factor value of the objective function as the actionable action a k+1 , the vehicle state S at sampling time k+1 is calculated by equations (1), (2), and (3) respectively k+1 In actionable action k+1 The reward R k+1 ; The root formula updates the Q value in the two-dimensional Q table according to the following formula: Q new (s k+1 ,a k+1 )=Q old (s k+1 ,a k+1 )+α(R k+1 +γ·max Q′(s k+2 ,a k+2 )-Q old (s k+1 ,a k+1 )) Where: Q new (s k+1 , a k+1 ) indicates that the target autonomous driving vehicle is in state s in the current iteration round. k+1 Actionable action k+1 Q value under old (s k+1 , a k+1 ) indicates that in the previous iteration, the target autonomous driving vehicle was in state s k+1 Actionable action k+1 The Q value under this condition, if the current iteration round is the first, then Q old (s k+1 , a k+1 )=0;max Q′(s k+2 , a k+2 ) indicates that the target autonomous driving vehicle is in state s in the current iteration round. k+2 The corresponding maximum Q value; If the target autonomous driving vehicle has not reached the destination, return to the step marked step 3; Otherwise, if the current iteration round has not reached the maximum number of iterations Num, the current iteration round will be incremented by 1, and the sampling time will be reset at the same time, so that the target autonomous driving vehicle will re-start trajectory tracking training from the starting point.

5. The method according to claim 3, It is characterized in that The stability parameter is calculated by the following formula: Where: X k is the actual horizontal coordinate of sampling time k; X k-1 is the actual horizontal coordinate at sampling time k-1; X k+1 is the actual horizontal coordinate of the sampling time k+1.

6. The method according to claim 4, It is characterized in that The action set is determined by the following steps: Create action set A: A={a 1 :Qr k =Qr k-1 -0.1,a 2 :Qr k =Qr k-1 ,a 3 :Qr k =Qr k-1 +0.1} Where: Qr k is the weighting factor ratio parameter at sampling time k; Qr k-1 is the weighting factor ratio parameter at sampling time k-1; Obtain the current measurement information of the target autonomous driving vehicle in the ground coordinate system and set the size of the prediction time domain Np; Step 2: Based on the current measurement information, obtain the output information in the prediction time domain Np; The output information is used as a reference input, an optimal control sequence is obtained by minimizing the following objective function, and the first element of the obtained optimal control sequence is applied to the target autonomous driving vehicle; According to the actions in the action set, adjust and calculate the weighting factors of the objective function in turn, record the control amount under each action, and obtain the initial state-action control amount table; Based on the initial state-action control scale, the action is judged according to the threshold range and the action that is not within the threshold range is marked as infeasible: U safe,k = {u k | u k ∈ U and Δu k ∈ ΔU, k ∈ [t i , t i+2} U=[U min ,IN max ] ΔU=[ΔU min ,ΔU max ] Among them, U safe,k is the set of reasonable control quantities at sampling time k; u k is the control quantity at sampling time k; Δu k is the control increment at sampling time k; [t i , t i+2 ] is the observation time after the action is taken in the current state, t i is the first sampling time after taking action; t i+2 is the third sampling time after taking action, U min is the minimum control quantity, U max is the maximum control quantity, ΔU min is the minimum control increment, ΔU max is the maximum control increment.

7. The method according to claim 1, It is characterized in that The value of the weighted factor in the adjustment objective function is achieved by adopting an ε-greedy strategy.

Citation Information

Patent Citations

  • Automobile trajectory tracking control method based on rapid model prediction

    CN111413979A

  • Learning type path tracking prediction control method for automatic driving vehicle

    CN113306573A

  • Predictive control high-speed automatic driving automobile trajectory tracking method

    CN114572251A

  • Variable time domain prediction energy management method and device

    CN114620051A

  • System and method for predicting motion state of surrounding vehicle based on driving intention

    WO2021077725A1