Unmanned ship heading tracking control method based on execution-criticism system reinforcement learning

By applying the reinforcement learning method of the execution review system in the course tracking control of unmanned ships, the cost function and the Hamilton-Jacobi-Bellman equation are constructed, which solves the problem of poor tracking ability of traditional algorithms in the maritime environment and realizes unmanned Efficient course optimization of ships.

CN118466220BActive Publication Date: 2024-10-22DALIAN MARITIME UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410918395.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-22
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Traditional unmanned ship path tracking algorithms cannot effectively take into account various interferences in the maritime environment, resulting in unsatisfactory course tracking results and low transportation efficiency.

Method used

The reinforcement learning method based on the execution review system is used to obtain the optimal virtual control rate and final controller by constructing the first-order and second-order cost functions and the Hamilton-Jacobi-Bellman equation, and design the execution and evaluation network to optimize without Course tracking control of man and ship.

Benefits of technology

It improves the learning ability of the unmanned ship course tracking control system, ensures that the unmanned ship can efficiently achieve course optimization tracking, and solves the problems of poor tracking ability and low transportation efficiency of traditional algorithms in complex maritime environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466220B_ABST
    Figure CN118466220B_ABST
Patent Text Reader

Abstract

The present invention discloses an unmanned ship heading tracking control method based on execution review system reinforcement learning, the method comprises the following steps: obtaining an unmanned ship heading control mathematical model with uncertain interference terms, taking into account that an unmanned ship sailing on the sea may be affected by environmental interference; converting the unmanned ship heading control mathematical model into a second-order state space equation, and using the second-order state space equation as the unmanned ship heading tracking control model; constructing a first-order / second-order cost function and a first-order / second-order Hamilton-Jacobi-Bellman equation for the unmanned ship heading tracking control according to the unmanned ship heading tracking control model, obtaining an estimated value of an optimal first-order virtual control rate and an optimal final controller, and in a ship heading tracking control system, obtaining an execution network and an evaluation network at each order, thereby improving the learning ability of the ship heading tracking control system, ensuring that the unmanned ship can efficiently obtain the desired tracking heading, and realizing the unmanned ship heading optimization tracking control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned ship tracking control, and in particular to an unmanned ship heading tracking control method based on execution review system reinforcement learning. Background Art

[0002] As the world's most important mode of transportation, maritime transport carries the vast majority of global transportation tasks.

[0003] However, due to the influence of factors such as wind, waves, and currents, complex sea conditions pose severe challenges to the navigation of unmanned ships. In order to ensure the safety and efficiency of navigation, unmanned ships need to have good heading tracking capabilities. Therefore, due to the complexity of the marine environment, unmanned ships will be affected by various interferences when performing path tracking tasks, making heading tracking crucial for unmanned ships. It is necessary to further study the heading tracking control problem.

[0004] However, traditional unmanned ship path tracking algorithms often fail to take into account the influence of various interferences during design, resulting in unsatisfactory path tracking effects. In addition, the design process of traditional path tracking algorithms has shortcomings such as complex algorithms, which makes it unable to adapt well to complex marine environments, resulting in poor tracking capabilities of ship heading tracking control systems and low ship transportation efficiency. Summary of the invention

[0005] The present invention provides an unmanned ship heading tracking control method based on execution review system reinforcement learning to overcome the above technical problems.

[0006] In order to achieve the above object, the technical solution of the present invention is:

[0007] A method for unmanned ship heading tracking control based on execution review system reinforcement learning includes the following steps:

[0008] S1: Obtaining a mathematical model for unmanned ship heading control with uncertain interference terms considering that unmanned ships sailing on the sea will be affected by environmental interference;

[0009] The unmanned ship heading control mathematical model is converted into a second-order state space equation, and the second-order state space equation is used as the unmanned ship heading tracking control model;

[0010] S2: According to the unmanned ship heading tracking control model, the first-order cost function of the unmanned ship heading tracking control is constructed to obtain the first-order Hamilton-Jacobi-Bellman equation;

[0011] And the gradient descent method is used to obtain the optimal first-order virtual control rate according to the first-order Hamilton-Jacobi-Bellman equation;

[0012] S3: constructing a first execution evaluation system according to the optimal first-order virtual control rate to obtain an estimated value of the optimal first-order virtual control rate;

[0013] The first execution evaluation system includes a first execution network critic and a first evaluation network actor;

[0014] S4: Obtaining a second-order dynamic error of the unmanned ship heading control according to the estimated value of the optimal first-order virtual control rate;

[0015] and constructing a second-order cost function according to the second-order dynamic error to obtain a second-order Hamilton-Jacobi-Bellman equation;

[0016] And based on the use of gradient descent method, the optimal final controller is obtained according to the second-order Hamilton-Jacobi-Bellman equation;

[0017] S5: constructing a second execution evaluation system according to the optimal final controller to obtain an estimated value of the optimal final controller of the final controller;

[0018] The second execution evaluation system includes a second execution network critic and a second evaluation network actor;

[0019] S6: Implementing the optimized tracking control of the heading of the unmanned ship according to the estimated value of the optimal final controller.

[0020] Furthermore, the S2 specifically includes the following steps:

[0021] S21: According to the unmanned ship heading tracking control model, the first-order cost function of the unmanned ship heading tracking control is obtained, and its expression is:

[0022] z1=x1-y d

[0023] h1(z1(τ),α1(z1))=z1 2 +α1 2

[0024]

[0025] Where: h1(z1(τ),α1(z1)) represents the integrand of the first-order cost function J1(z1); z1(τ) represents the heading tracking error of the unmanned ship and z1 is the abbreviation of z1(τ); y d represents the heading reference signal of the unmanned ship; α1(z1) represents the first-order virtual control rate and α1 is the abbreviation of α1(z1);

[0026] S22: Minimize the first-order cost function of the unmanned ship heading tracking control. The expression of the first-order cost function minimization is:

[0027]

[0028] Where: Represents the first-order cost function of the unmanned ship heading tracking control that is minimized; represents the optimal first-order virtual control rate and for The abbreviated form of ; τ represents the integral variable with respect to time t;

[0029] S23: According to the first-order cost function of the minimization process, a first-order Hamilton-Jacobi-Bellman equation is obtained, which is expressed as follows:

[0030]

[0031] Where: Express Solve the partial derivative of z1 in the following form:

[0032] S24: Using the gradient descent method, according to the first-order Hamilton-Jacobi-Bellman equation, the optimal first-order virtual control rate is obtained. The optimal first-order virtual control rate The expression is

[0033]

[0034] Furthermore, the S3 specifically includes the following steps:

[0035] S31: The optimal first-order virtual control rate Rewritten in a form including error terms and unknown terms, the expression is

[0036]

[0037] Where: J'1(x1,z1) represents a continuous unknown function, and z1 represents the heading tracking error of the unmanned ship, c1 represents the design constant and c1>3;

[0038] S32: Use a neural network to approximate the unknown function in S31 and rewrite it as

[0039]

[0040] Where: represents the weight of the neural network; represents the basis function of the neural network, and is The abbreviation of represents the neural network error; express The transpose of

[0041] S33: The optimal first-order virtual control rate after approximation processing Neural network weights If is unknown, then according to Solve the partial derivative of z1 to obtain Estimated value of Its expression is

[0042]

[0043] Where: Represents the weight of the first evaluation network and satisfies Represents the error between the estimated weights and the actual weights of the first evaluation network; Represents the basis functions of the neural network;

[0044] S34: According to The estimated value of is combined with the stability analysis strategy to construct the update rate of the first evaluation network actor and the update rate of the first execution network critic to obtain the first evaluation network actor and the first execution network critic;

[0045] The expression of the update rate of the first evaluation network actor is:

[0046]

[0047] Where: represents the design constant and express The update rate;

[0048] The update rate of the first execution network critic is expressed as

[0049]

[0050] Where: represents the design constant and And meet

[0051] S35: From step S32 and step S34, obtain the estimated value of the optimal first-order virtual control rate, which is expressed as

[0052]

[0053] Where: Represents the weight of the first execution network critic and satisfies Represents the error between the estimated weight and the actual weight of the first execution network actor; Represents the estimated value of the optimal first-order virtual control rate.

[0054] Furthermore, the S4 specifically includes the following steps:

[0055] S41: Define the second-order dynamic error equation of the unmanned ship heading control according to the estimated value of the optimal first-order virtual control rate, and its expression is:

[0056]

[0057] Where: is the derivative of the optimal first-order virtual control rate estimate;

[0058] S42: The second-order cost function of the unmanned ship heading tracking control is obtained according to the second-order dynamic error equation, and its expression is:

[0059] h2(z2(τ),α2(z2))=z2 2 +g 2 u 2

[0060]

[0061] Where: h2(z2(τ),α2(z2)) represents the integrand of the second-order cost function J2(z2); z2(τ) represents the second-order tracking error of the unmanned ship heading and z2 is the abbreviation of z2(τ); α2(z2) represents the second-order virtual control rate;

[0062] S43: Minimize the second-order cost function of the unmanned ship heading tracking control. The expression for minimizing the second-order cost function is:

[0063]

[0064] Where: represents the second-order cost function of the unmanned ship heading tracking control to be minimized; u * (z2) represents the optimal final controller and u * for u * (z2) is a short form; u(z2) represents the final controller; φ(Ω) represents the set containing the compact set of the origin;

[0065] S44: According to the second-order cost function of the minimization process, a second-order Hamilton-Jacobi-Bellman equation is obtained, which is expressed as follows:

[0066]

[0067] Where: Express Solve the partial derivative of z2 in the following form:

[0068] S45: Using the gradient descent method, the optimal final controller u is obtained according to the second-order Hamilton-Jacobi-Bellman equation * , the optimal final controller u * The expression is

[0069]

[0070] Furthermore, the S5 specifically includes the following steps:

[0071] S51: The final controller u * Rewritten in a form including error terms and unknown terms, the expression is

[0072]

[0073] Where: f2x2) and J'2(x2,z1,z2) represent continuous unknown functions, and c2 represents the design constant and c2>3;

[0074] S52: Use neural network to optimize the final controller u in S51 * The unknown function is approximated and rewritten as

[0075]

[0076]

[0077]

[0078] Where: represents the weights of the neural network approximating f2x2); represents the neural network basis function that approximates f2x2; ε f2 (x2) represents the neural network error of approximating f2x2); represents the weights of the neural network approximating J'2(x2,z1,z2); represents the neural network basis function that approximates J'2(x2,z1,z2); ε J2 represents the neural network error approximating J'2(x2,z1,z2); ε2 represents the intermediate variable and ε2=2ε f2 +ε J2 ;

[0079] S53: Due to the optimal final controller u after approximation processing * Neural network weights and If is unknown, then according to Solve the partial derivative of z2 to obtain Estimated value of Its expression is

[0080]

[0081] Where: Represents the weight of the second evaluation network and satisfies Represents the error between the estimated weights and the actual weights of the second evaluation network; Represents the basis functions of the neural network;

[0082] S54: According to the The estimated value of is combined with the stability analysis strategy to construct the update rate of the second evaluation network actor and the update rate of the second execution network critic to obtain the second evaluation network actor and the second execution network critic;

[0083] The expression of the update rate of the second evaluation network actor is

[0084]

[0085] Where: represents the design constant and express The update rate;

[0086] The expression of the update rate of the second execution network critic is:

[0087]

[0088] Where: represents the design constant and and meet

[0089] S55: Obtain the optimal final controller u from step S52 and step S54 * The estimated value of is expressed as

[0090]

[0091] Where: Represents the estimation of the unknown continuous function f2x2) by the neural network without considering the error term; represents the weight of the second execution network and satisfies Represents the error between the estimated weights and the actual weights of the second execution network; Denotes the optimal final controller u* The estimated value of .

[0092] Furthermore, the stability analysis strategy is specifically as follows:

[0093] S01: Define J i (z i ), i = 1, 2 is the general term for the cost function, and when i = 1, J i (z i ) is expressed as a first-order cost function; when i = 2, J i (z i ) is represented as a second-order cost function and That is u * ;

[0094] S02: J i (z i ),i=1,2, and the partial derivatives are substituted into the corresponding HJB equation to obtain:

[0095]

[0096] S03: Define the Bellman error according to step S02:

[0097]

[0098] Assumptions If it holds and has a unique solution, we can get:

[0099]

[0100] S04: In order to obtain the update rate of the execution network and the evaluation network of reinforcement learning, the positive definite equation is defined according to step S03 as follows:

[0101]

[0102] From the positive definite equation, it can be concluded that:

[0103] When P i When (t) = 0,

[0104] and Then we can get:

[0105]

[0106] S05: When When , the update rates of the corresponding execution network and evaluation network are obtained to obtain the execution network weights and evaluation network weights of the corresponding execution network and evaluation network.

[0107] Furthermore, the S1 specifically includes the following steps:

[0108] S11: Obtaining a mathematical model for unmanned ship heading control with uncertain interference terms considering that the unmanned ship sailing on the sea will be affected by environmental interference;

[0109] The mathematical model of the unmanned ship heading control is expressed as follows:

[0110]

[0111] Where: ψ represents the heading angle of the unmanned ship; δ represents the actual rudder angle of the unmanned ship; δ w represents the equivalent rudder angle caused by the environment; K represents the maneuverability index of the unmanned ship rudder gain; T represents the time constant of the ship's maneuverability; α and β both represent the nonlinear coefficients of the ship's bow angular velocity; The first derivative of ψ is the ship's bow angular velocity; The second derivative of ψ is the ship's bow angular acceleration;

[0112] S12: Let x1 = ψ, u=δ,

[0113] And satisfy ||Δ||≤Δ * ;

[0114] The unmanned ship heading control mathematical model is converted into a second-order state space equation and used as the unmanned ship heading tracking control model;

[0115] The expression of the unmanned ship heading tracking control model is:

[0116]

[0117] Where: Δ represents the uncertain environmental interference; Δ * represents the upper bound of the uncertain environmental disturbance Δ; And Ω represents R n is a subset of and is a compact set; R represents the set of all real numbers; R n represents the n-dimensional Euclidean space of all real vectors; u represents the control input; x1 represents the heading of the unmanned ship; x2 represents the bow angular velocity of the unmanned ship.

[0118] Beneficial effect: The present invention provides an actor-critic reinforcement learning method for unmanned ship heading tracking control. According to the unmanned ship heading tracking control model and by constructing continuous first-order / second-order cost functions and first-order / second-order Hamilton-Jacobi-Bellman equations, the estimated values ​​of the optimal first-order virtual control rate and the optimal final controller are obtained. In the ship heading tracking control system, an execution network and an evaluation network are obtained at each order, which improves the learning ability of the ship heading tracking control system and ensures that the unmanned ship can efficiently track the expected heading, so as to realize the unmanned ship heading optimization tracking control. BRIEF DESCRIPTION OF THE DRAWINGS

[0119] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0120] Figure 1 The present invention is a flow chart of an unmanned ship heading tracking control method based on execution review system reinforcement learning.

[0121] Figure 2 This is a simulation diagram of the tracking result of the ship heading angle to the reference heading provided in this embodiment;

[0122] Figure 3 A simulation diagram of the tracking error between the ship heading angle and the reference heading provided in this embodiment;

[0123] Figure 4 A first convergence result simulation diagram of the first execution network neuron weights provided in this embodiment;

[0124] Figure 5 A simulation diagram of the second convergence result of the neuron weights of the first evaluation network provided in this embodiment;

[0125] Figure 6 A simulation diagram of the convergence results of the neuron weights of the neural network approximating the unknown function in the final controller provided in this embodiment;

[0126] Figure 7 A simulation diagram of the first convergence result of the neuron weights of the second execution network provided in this embodiment;

[0127] Figure 8 A second convergence result simulation diagram of the second execution network neuron weights provided in this embodiment;

[0128] Fig. 9This is a simulation diagram of the effect of the unmanned ship heading controller provided in this embodiment. DETAILED DESCRIPTION

[0129] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0130] This embodiment provides a method for unmanned ship heading tracking control based on execution review system reinforcement learning, such as Figure 1 As shown, the following steps are included:

[0131] S1: Obtaining an unmanned ship heading control mathematical model with uncertain interference terms considering that the unmanned ship sailing on the sea will be affected by environmental interference; converting the unmanned ship heading control mathematical model into a second-order state space equation, and using the second-order state space equation as the unmanned ship heading tracking control model;

[0132] The specific steps include:

[0133] S11: Obtaining a mathematical model for unmanned ship heading control with uncertain interference terms considering that the unmanned ship sailing on the sea will be affected by various environmental interferences;

[0134] The mathematical model of the unmanned ship heading control is expressed as follows:

[0135]

[0136] Where: ψ represents the heading angle of the unmanned ship; δ represents the actual rudder angle of the unmanned ship; δ w represents the equivalent rudder angle caused by the environment; K represents the maneuverability index of the unmanned ship rudder gain; T represents the time constant of the ship's maneuverability; α and β both represent the nonlinear coefficients of the ship's bow angular velocity; The first derivative of ψ is the ship's bow angular velocity; The second derivative of ψ is the ship's bow angular acceleration;

[0137] S12: Let x1 = ψ, u=δ, and satisfies ||Δ||≤Δ * ;

[0138] The unmanned ship heading control mathematical model is converted into a second-order state space equation and used as the unmanned ship heading tracking control model;

[0139] The expression of the unmanned ship heading tracking control model is:

[0140]

[0141] Where: Δ represents the uncertain environmental interference; Δ * represents the upper bound of the uncertain environmental disturbance Δ; And Ω represents R n is a subset of and is a compact set; R represents the set of all real numbers; R n represents the n-dimensional Euclidean space of all real vectors; u represents the control input; x1 represents the heading of the unmanned ship; x2 represents the bow angular velocity of the unmanned ship;

[0142] S2: According to the unmanned ship heading tracking control model, the first-order cost function of the unmanned ship heading tracking control is constructed to obtain the first-order Hamilton-Jacobi-Bellman equation; and the gradient descent method is used to obtain the optimal first-order virtual control rate according to the first-order Hamilton-Jacobi-Bellman equation;

[0143] The specific steps include:

[0144] S21: According to the unmanned ship heading tracking control model, the first-order cost function of the unmanned ship heading tracking control is obtained, and its expression is:

[0145] z1=x1-y d

[0146] h1(z1(τ),α1(z1))=z1 2 +α1 2

[0147]

[0148] Where: h1(z1(τ),α1(z1)) represents the integrand of the first-order cost function J1(z1); z1(Γ) represents the heading tracking error of the unmanned ship and z1 is the abbreviation of z1(τ); y d represents the heading reference signal of the unmanned ship; α1(z1) represents the first-order virtual control rate and α1 is the abbreviation of α1(z1);

[0149] S22: Minimize the first-order cost function of the unmanned ship heading tracking control. The expression of the first-order cost function minimization is:

[0150]

[0151] Where: Represents the first-order cost function of the unmanned ship heading tracking control that is minimized; represents the optimal first-order virtual control rate and for The abbreviated form of ; Γ represents the integral variable with respect to time t;

[0152] S23: According to the first-order cost function of the minimization process, a first-order Hamilton-Jacobi-Bellman equation is obtained, which is expressed as follows:

[0153]

[0154] Where: Express Solve the partial derivative of z1 in the following form:

[0155] S24: Using the gradient descent method, according to the first-order Hamilton-Jacobi-Bellman equation, the optimal first-order virtual control rate is obtained. The optimal first-order virtual control rate The expression is

[0156]

[0157] S3: constructing a first execution evaluation system according to the optimal first-order virtual control rate to obtain an estimated value of the optimal first-order virtual control rate;

[0158] The first execution evaluation system includes a first execution network critic and a first evaluation network actor;

[0159] The specific steps include:

[0160] S31: Optimal first-order virtual control rate for virtual controller middle Part, the optimal first-order virtual control rate Rewritten in a form including error terms and unknown terms, the expression is

[0161]

[0162] Where: J'1(x1,z1) represents a continuous unknown function, and z1 represents the heading tracking error of the unmanned ship, c1 represents the design constant and c1>3;

[0163] S32: Use a neural network to approximate the unknown function in S31 and rewrite it as

[0164]

[0165] Where: represents the weight of the neural network; represents the basis function of the neural network, and is The abbreviation of represents the neural network error; express The transpose of

[0166] S33: The optimal first-order virtual control rate after approximation processing Neural network weights If is unknown, then according to Solve the partial derivative of z1 to obtain Estimated value of Its expression is

[0167]

[0168] Where: Represents the weight of the first evaluation network and satisfies Represents the error between the estimated weights and the actual weights of the first evaluation network; Represents the basis functions of the neural network;

[0169] S34: According to The estimated value of and according to Lemma 3 (combined with the stability analysis strategy), construct the update rate of the first evaluation network actor and the update rate of the first execution network critic to obtain the first evaluation network actor and the first execution network critic;

[0170] The expression of the update rate of the first evaluation network actor is:

[0171]

[0172] Where: represents the design constant and express The update rate;

[0173] The update rate expression of the first execution network critic is:

[0174]

[0175] Where: represents the design constant and and meet

[0176] S35: From step S32 and step S34, obtain the estimated value of the optimal first-order virtual control rate, which is expressed as

[0177]

[0178] Where: Represents the weight of the first execution network critic and satisfies Represents the error between the estimated weight and the actual weight of the first execution network actor; represents the estimated value of the optimal first-order virtual control rate;

[0179] S4: obtaining a second-order dynamic error of the unmanned ship heading control according to the estimated value of the optimal first-order virtual control rate; and constructing a second-order cost function according to the second-order dynamic error to obtain a second-order Hamilton-Jacobi-Bellman equation;

[0180] Based on the use of gradient descent method, the optimal final controller is obtained according to the second-order Hamilton-Jacobi-Bellman equation;

[0181] The specific steps include:

[0182] S41: Define the second-order dynamic error equation of the unmanned ship heading control according to the estimated value of the optimal first-order virtual control rate, and its expression is:

[0183]

[0184]

[0185] Where: is the derivative of the optimal first-order virtual control rate estimate;

[0186] S42: The second-order cost function of the unmanned ship heading tracking control is obtained according to the second-order dynamic error equation, and its expression is:

[0187] h2(z2(τ),α2(z2))=z2 2 +g 2 u 2

[0188]

[0189] Where: h2(z2(τ),α2(z2)) represents the integrand of the second-order cost function J2(z2); z2(τ) represents the second-order tracking error of the unmanned ship heading and z2 is the abbreviation of z2(τ); α2(z2) represents the second-order virtual control rate;

[0190] S43: Minimize the second-order cost function of the unmanned ship heading tracking control. The expression for minimizing the second-order cost function is:

[0191]

[0192] Where: represents the second-order cost function of the unmanned ship heading tracking control to be minimized; u * (z2) represents the optimal final controller and u * for u * (z2) is a short form; u(z2) represents the final controller; φ(Ω represents the set containing the compact set of the origin;

[0193] S44: According to the second-order cost function of the minimization process, a second-order Hamilton-Jacobi-Bellman equation is obtained, which is expressed as follows:

[0194]

[0195] Where: Express Solve the partial derivative of z2 in the following form:

[0196] S45: Using the gradient descent method, the optimal final controller u is obtained according to the second-order Hamilton-Jacobi-Bellman equation * , the optimal final controller u * The expression is

[0197]

[0198] S5: constructing a second execution evaluation system according to the optimal final controller to obtain an estimated value of the optimal final controller of the final controller;

[0199] The second execution evaluation system includes a second execution network critic and a second evaluation network actor;

[0200] By targeting the optimal final controller u * middle Part, the actor and critic network are designed again to realize the execution evaluation system, and finally the reinforcement learning unmanned ship heading tracking optimization control of the execution evaluation system is realized;

[0201] The specific steps include:

[0202] S51: The final controller u * Rewritten in a form including error terms and unknown terms, the expression is

[0203]

[0204] Where: f2(x2) and J'2(x2,z1,z2) represent continuous unknown functions, and c2 represents the design constant and c2>3;

[0205] S52: Use neural network to optimize the final controller u in S51* The unknown function is approximated and rewritten as

[0206]

[0207]

[0208]

[0209] Where: represents the weights of the neural network approximating f2x2); represents the neural network basis function that approximates f2x2; ε f2 (x2) represents the neural network error of approximating f2x2); represents the weights of the neural network approximating J'2(x2,z1,z2); represents the neural network basis function that approximates J'2(x2,z1,z2); ε J2 represents the neural network error approximating J'2(x2,z1,z2); ε2 represents the intermediate variable and ε2=2ε f2 +ε J2 ;

[0210] S53: Due to the optimal final controller u after approximation processing * Neural network weights and If is unknown, then according to Solve the partial derivative of z2 to obtain Estimated value of Its expression is

[0211]

[0212] Where: Represents the weight of the second evaluation network and satisfies Represents the error between the estimated weights and the actual weights of the second evaluation network; Represents the basis functions of the neural network;

[0213] S54: According to the The estimated value of and according to Lemma 3 (stability analysis strategy), construct the update rate of the second evaluation network actor and the update rate of the second execution network critic to obtain the second evaluation network actor and the second execution network critic;

[0214] The expression of the update rate of the second evaluation network actor is

[0215]

[0216] Where: represents the design constant and express The update rate;

[0217] The expression of the update rate of the second execution network critic is:

[0218]

[0219] Where: represents the design constant and and meet

[0220] In a specific embodiment, the stability analysis strategy is specifically:

[0221] S01: Define J i (z i ), i = 1, 2 is the general term for the cost function, and when i = 1, J i (z i ) is expressed as a first-order cost function; when i = 2, J i (z i ) is represented as a second-order cost function and That is u * ;

[0222] S02: J i (z i ),i=1,2, and the partial derivatives are substituted into the corresponding HJB equation to obtain:

[0223]

[0224] S03: Define the Bellman error according to step S02:

[0225]

[0226] Assumptions If it holds and has a unique solution, we can get:

[0227]

[0228] S04: In order to obtain the update rate of the execution network and the evaluation network of reinforcement learning, the positive definite equation is defined according to step S03 as follows:

[0229]

[0230] From the positive definite equation, it can be concluded that:

[0231] When P i When (t) = 0,

[0232] and Then we can get:

[0233]

[0234] Where: K c ,K a represents the design parameters;

[0235] S05: Order When , the update rates of the corresponding execution network and evaluation network are obtained to obtain the execution network weights and evaluation network weights of the corresponding execution network and evaluation network.

[0236] S55: Obtain the optimal final controller u from step S52 and step S54 * The estimated value of is expressed as

[0237]

[0238] Where: Represents the estimation of the unknown continuous function f2(x2) by the neural network without considering the error term; represents the weight of the second execution network and satisfies Represents the error between the estimated weights and the actual weights of the second execution network; Denotes the optimal final controller u * The estimated value of .

[0239] S6: Implementing the optimized tracking control of the heading of the unmanned ship according to the estimated value of the optimal final controller.

[0240] In this embodiment, according to the unmanned ship heading tracking control model and by constructing continuous first-order / second-order cost functions and first-order / second-order Hamilton-Jacobi-Bellman equations, the estimated values ​​of the optimal first-order virtual control rate and the optimal final controller are obtained, and in the ship heading tracking control system, each order will obtain an execution network and an evaluation network, which improves the learning ability of the ship heading tracking control system and solves the problem that the traditional unmanned ship path tracking algorithm often cannot take into account the influence of various interferences during design, resulting in the disadvantage of unsatisfactory path tracking effect, and the design process of the traditional path tracking algorithm has the disadvantages of complex algorithms, which leads to the inability to adapt well to the complex marine environment, and then causes the problem of poor tracking ability of the ship heading tracking control system and low transportation efficiency of the ship, ensuring that the unmanned ship can efficiently track the expected heading to achieve unmanned ship heading optimization tracking control.

[0241] This example also includes step S6: using Lyapunov theory to prove the stability of the actor-critic reinforcement learning method of the designed unmanned ship heading tracking control system, and all signals in the closed-loop system are ultimately uniformly bounded.

[0242] Specifically, in order to prove stability more smoothly, the following assumptions are made here:

[0243] Assumption 1: The system disturbance Δ is the wave disturbance and is bounded.

[0244] Assumption 2: For and There must be a positive constant K ji , so that:

[0245]

[0246]

[0247] Theorem 1: For the actor-critic reinforcement learning method of the unmanned ship heading tracking control system, based on Lyapunov theory, under the action of the optimal first-order virtual controller, optimal final controller, adaptive update rate, execution network and evaluation network designed in this embodiment, by selecting appropriate parameters, it can be ensured that all signals of the closed-loop system are ultimately uniformly bounded, and the tracking error converges in an optimal way.

[0248] Lemma 1: (Young's inequality), for any x,y∈R n , the following inequality holds:

[0249]

[0250] Where a>0, b>1, q>1 and (b-1)(q-1)=1.

[0251] Lemma 2: (Complete Square Formula), for any a, b, the following equation holds:

[0252]

[0253] Lemma 3: Taking the first step of obtaining the optimal first-order virtual controller as an example, the derivation process of the corresponding execution network and evaluation network is given below. Substituting the partial derivative of the first-order cost function into the HJB equation, the following form can be obtained:

[0254]

[0255] The Bellman error is defined as follows:

[0256]

[0257] if If it holds and has a unique solution, then the following formula holds:

[0258]

[0259] In order to obtain the update rate of the execution network and the evaluation network of reinforcement learning, the following positive equation is given as follows:

[0260]

[0261] It can be clearly concluded from the given positive definite equation that when P1t)=0,

[0262] Also because Then the following formula holds,

[0263]

[0264] The corresponding execution network weights and evaluation network weights of the execution network and evaluation network are designed under the condition that the above formula is less than or equal to 0;

[0265] Proof of Theorem 1:

[0266] S61: First, select the evaluation function weight for the unmanned ship heading tracking error z1 Execution function weight The Lyapunov function of is as follows:

[0267]

[0268] in,

[0269] S62: Deriving the Lyapunov function V1, and according to steps S34 and S36, we can get the following

[0270]

[0271] According to step S35, a simple mathematical transformation can be performed to obtain the following form:

[0272]

[0273] S63: According to Lemma 1, we can get the following form

[0274]

[0275] Substituting the above inequality into S62, we can get the following form

[0276]

[0277] In order to ensure stability, a positive definite constant c1≥1 is defined.

[0278] S64: According to Lemma 2, we can get the following form

[0279]

[0280] Substituting the above two equations obtained from Lemma 2 into S63, we can get the following form

[0281]

[0282] in,

[0283] S65: According to Assumption 2, the Lyapunov function can be transformed as follows

[0284]

[0285] in is the maximum value of A1;

[0286] S66: Let a1=min{2(c1-1), λ min (K j1 ),λ min (K j1 )}, the Lyapunov function can be converted into the following form

[0287]

[0288] S67: Select the evaluation function weights for the unmanned ship heading tracking errors z1 and z2 again Execution function weight The Lyapunov function of is as follows:

[0289]

[0290] In the formula, Γ-1 is a positive constant.

[0291] S68: Deriving the Lyapunov function V1, and according to steps S52, S55 and S57, we can get the following

[0292]

[0293] In the formula, σ is a positive constant.

[0294] According to step S53, a simple mathematical transformation can be performed to obtain the following form:

[0295]

[0296] S69: According to Lemma 1, we can get the following form

[0297]

[0298] S610: According to Lemma 2, we can get the following form

[0299]

[0300] in, is the upper bound of A2, In order to ensure the stability of the system, let c2≥2,

[0301] S611: According to hypothesis 2, we can get the following form

[0302]

[0303] Finally, by selecting appropriate parameters, the unmanned ship heading tracking control system can be asymptotically stabilized.

[0304] Compared with existing technologies, such as Figures 2 to 9 The simulation results of this embodiment show that the present invention has the following advantages:

[0305] 1. The unmanned ship heading tracking control method based on execution review system reinforcement learning provided by the present invention can obtain the optimal virtual control rate and the optimal controller by defining the first-order error and the continuous cost function and the Hamilton-Jacobi-Bellman equation, thereby improving the optimization degree of ship heading tracking.

[0306] 2. The unmanned ship heading tracking control method based on execution review system reinforcement learning provided by the present invention has a good control effect through the optimal controller designed by the execution and evaluation network obtained at each order.

[0307] 3. The present invention carried out simulation experiments based on the Matlab platform and designed an adaptive optimization controller to achieve tracking of the unmanned ship's heading. The system controller is more in line with navigation practice, which further verifies the effectiveness and rationality of the unmanned ship heading tracking control method based on execution review system reinforcement learning provided by the present invention.

[0308] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for unmanned ship heading tracking control based on execution review system reinforcement learning, characterized in that: The following steps are involved: S1: Obtaining a mathematical model for unmanned ship heading control with uncertain interference terms considering that unmanned ships sailing on the sea will be affected by environmental interference; The unmanned ship heading control mathematical model is converted into a second-order state space equation, and the second-order state space equation is used as the unmanned ship heading tracking control model; S2: According to the unmanned ship heading tracking control model, the first-order cost function of the unmanned ship heading tracking control is constructed to obtain the first-order Hamilton-Jacobi-Bellman equation; And the gradient descent method is used to obtain the optimal first-order virtual control rate according to the first-order Hamilton-Jacobi-Bellman equation; S3: constructing a first execution evaluation system according to the optimal first-order virtual control rate to obtain an estimated value of the optimal first-order virtual control rate; The first execution evaluation system includes a first execution network critic and a first evaluation network actor; S4: Obtaining a second-order dynamic error of the unmanned ship heading control according to the estimated value of the optimal first-order virtual control rate; and constructing a second-order cost function according to the second-order dynamic error to obtain a second-order Hamilton-Jacobi-Bellman equation; And based on the use of gradient descent method, the optimal final controller is obtained according to the second-order Hamilton-Jacobi-Bellman equation; S5: constructing a second execution evaluation system according to the optimal final controller to obtain an estimated value of the optimal final controller of the final controller; The second execution evaluation system includes a second execution network critic and a second evaluation network actor; S6: Implementing the optimized tracking control of the heading of the unmanned ship according to the estimated value of the optimal final controller.

2. According to claim 1, a method for unmanned ship heading tracking control based on execution review system reinforcement learning is characterized in that: The S2 specifically includes the following steps: S21: According to the unmanned ship heading tracking control model, the first-order cost function of the unmanned ship heading tracking control is obtained, and its expression is: z1=x1-y d h1(z1(τ), α1(z1))=z1 2 +a1 2 Where: h1(z1(τ), α1(z1)) represents the integrand of the first-order cost function J1(z1); z1(τ) represents the heading tracking error of the unmanned ship and z1 is the abbreviation of z1(τ); y d represents the heading reference signal of the unmanned ship; α1(z1) represents the first-order virtual control rate and α1 is the abbreviation of α1(z1); x1 represents the heading of the unmanned ship; S22: Minimize the first-order cost function of the unmanned ship heading tracking control. The expression of the first-order cost function minimization is: Where: Represents the first-order cost function of the unmanned ship heading tracking control that is minimized; represents the optimal first-order virtual control rate and for The abbreviated form of ; τ represents the integral variable with respect to time t; S23: According to the first-order cost function of the minimization process, a first-order Hamilton-Jacobi-Bellman equation is obtained, which is expressed as follows: Where: Express Solve the partial derivative of z1 in the following form: S24: Using the gradient descent method, according to the first-order Hamilton-Jacobi-Bellman equation, the optimal first-order virtual control rate is obtained. The optimal first-order virtual control rate The expression is 3. According to claim 2, a method for unmanned ship heading tracking control based on execution review system reinforcement learning is characterized in that: The S3 specifically includes the following steps: S31: The optimal first-order virtual control rate Rewritten in a form including error terms and unknown terms, the expression is Where: J'1(x1, z1) represents a continuous unknown function, and z1 represents the heading tracking error of the unmanned ship, c1 represents the design constant and c1>3; S32: Use a neural network to approximate the unknown function in S31 and rewrite it as Where: represents the weight of the neural network; represents the basis function of the neural network, and is The abbreviation of represents the neural network error; express The transpose of S33: The optimal first-order virtual control rate after approximation processing Neural network weights If is unknown, then according to Solve the partial derivative of z1 to obtain Estimated value of Its expression is Where: Represents the weight of the first evaluation network and satisfies Represents the error between the estimated weights and the actual weights of the first evaluation network; Represents the basis functions of the neural network; S34: According to The estimated value of is combined with the stability analysis strategy to construct the update rate of the first evaluation network actor and the update rate of the first execution network critic to obtain the first evaluation network actor and the first execution network critic; The expression of the update rate of the first evaluation network actor is Where: represents the design constant and express The update rate; The update rate of the first execution network critic is expressed as Where: represents the design constant and And meet S35: From step S32 and step S34, obtain the estimated value of the optimal first-order virtual control rate, which is expressed as Where: Represents the weight of the first execution network critic and satisfies Represents the error between the estimated weight and the actual weight of the first execution network actor; Represents the estimated value of the optimal first-order virtual control rate.

4. The unmanned ship heading tracking control method based on execution review system reinforcement learning according to claim 3 is characterized in that: The S4 specifically comprises the following steps: S41: Define the second-order dynamic error equation of the unmanned ship heading control according to the estimated value of the optimal first-order virtual control rate, and its expression is: Where: is the derivative of the optimal first-order virtual control rate estimate; x2 represents the bow angular velocity of the unmanned ship; S42: Obtain the second-order cost function of the unmanned ship heading tracking control according to the second-order dynamic error equation, which is expressed as h2(z2(τ), α2(z2))=z2 2 +g 2 u 2 Where: h2(z2(τ), α2(z2)) represents the integrand of the second-order cost function J2(z2); z2(τ) represents the second-order tracking error of the unmanned ship heading and z2 is the abbreviation of z2(τ); α2(z2) represents the second-order virtual control rate; S43: Minimize the second-order cost function of the unmanned ship heading tracking control. The expression for minimizing the second-order cost function is: Where: represents the second-order cost function of the unmanned ship heading tracking control to be minimized; u * (z2) represents the optimal final controller and u * for u * (z2) is a short form; u(z2) represents the final controller; φ(Ω) represents the set containing the compact set of the origin; S44: According to the second-order cost function of the minimization process, a second-order Hamilton-Jacobi-Bellman equation is obtained, which is expressed as follows: Where: Express Solve the partial derivative of z2 in the following form: S45: Using the gradient descent method, the optimal final controller u* is obtained according to the second-order Hamilton-Jacobi-Bellman equation. The expression of the optimal final controller u* is:

5. The unmanned ship heading tracking control method based on execution review system reinforcement learning according to claim 4 is characterized in that: The S5 specifically includes the following steps: S51: Rewrite the final controller u* into a form including error terms and unknown terms, and its expression is Where: f2(x2) and J'2(x2, z1, z2) represent continuous unknown functions, and c2 represents the design constant and c2>3; S52: Use neural network to optimize the final controller u in S51 * The unknown function is approximated and rewritten as Where: represents the weights of the neural network that approximates f2(x2); represents the neural network basis function that approximates f2(x2); ε f2 (x2) represents the neural network error of approximating f2(x2); represents the weights of the neural network approximating J'2(x2, z1, z2); represents the neural network basis function that approximates J′2(x2, z1, z2); ε J2 represents the neural network error approximating J′2(x2, z1, z2); ε2 represents the intermediate variable and ε2=2ε f2 +ε J2 ; S53: Due to the optimal final controller u after approximation processing * Neural network weights and If is unknown, then according to Solve the partial derivative of z2 to obtain Estimated value of Its expression is Where: Represents the weight of the second evaluation network and satisfies Represents the error between the estimated weights and the actual weights of the second evaluation network; Represents the basis functions of the neural network; S54: According to The estimated value of is combined with the stability analysis strategy to construct the update rate of the second evaluation network actor and the update rate of the second execution network critic to obtain the second evaluation network actor and the second execution network critic; The expression of the update rate of the second evaluation network actor is Where: represents the design constant and express The update rate; The expression of the update rate of the second execution network critic is: Where: represents the design constant and and meet S55: Obtain the estimated value of the optimal final controller u* from step S52 and step S54, which is expressed as Where: Represents the estimation of the unknown continuous function f2(x2) by the neural network without considering the error term; represents the weight of the second execution network and satisfies Represents the error between the estimated weights and the actual weights of the second execution network; Denotes the optimal final controller u * The estimated value of .

6. The unmanned ship heading tracking control method based on execution review system reinforcement learning according to claim 5 is characterized in that: The stability analysis strategy is specifically: S01: Define J i (z i ), i = 1, 2 is the general name of the cost function, and when i = 1, J i (z i ) is expressed as a first-order cost function; when i = 2, J i (z i ) is represented as a second-order cost function and That is u * ; S02: J i (z i ), the partial derivatives of i=1,2 are substituted into the corresponding HJB equation, and we can get: S03: Define the Bellman error according to step S02: Assumptions If it holds and has a unique solution, we can get: S04: In order to obtain the update rate of the execution network and the evaluation network of reinforcement learning, the positive definite equation is defined according to step S03 as follows: From the positive definite equation, it can be concluded that: When P i When (t) = 0, and Then we can get: Where: K c , K a represents the design parameters; S05: Order The update rates of the corresponding execution network and evaluation network are obtained to obtain the execution network weights and evaluation network weights of the corresponding execution network and evaluation network.

7. The unmanned ship heading tracking control method based on execution review system reinforcement learning according to claim 1 is characterized in that: The S1 specifically includes the following steps: S11: Obtaining a mathematical model for unmanned ship heading control with uncertain interference terms considering that the unmanned ship sailing on the sea will be affected by environmental interference; The mathematical model of the unmanned ship heading control is expressed as follows: Where: ψ represents the heading angle of the unmanned ship; δ represents the actual rudder angle of the unmanned ship; δ w represents the equivalent rudder angle caused by the environment; K represents the maneuverability index of the unmanned ship rudder gain; T represents the time constant of the ship's maneuverability; α and β both represent the nonlinear coefficients of the ship's bow angular velocity; The first derivative of ψ is the ship's bow angular velocity; The second derivative of ψ is the ship's bow angular acceleration; S12: Order u=δ, and satisfies ||Δ||≤Δ * ; The unmanned ship heading control mathematical model is converted into a second-order state space equation and used as the unmanned ship heading tracking control model; The expression of the unmanned ship heading tracking control model is: Where: Δ represents the uncertain environmental interference; Δ* represents the upper bound of the uncertain environmental interference Δ; And Ω represents R n is a subset of and is a compact set; R represents the set of all real numbers; R n represents the n-dimensional Euclidean space of all real vectors; u represents the control input; x1 represents the heading of the unmanned ship; x2 represents the bow angular velocity of the unmanned ship.

Citation Information

Patent Citations

  • Unmanned ship trajectory tracking optimal control method based on backstepping method and adaptive dynamic programming under dead zone limitation

    CN112650233A

  • Optimized tracking control method for single-input single-output nonlinear unknown power system

    CN115857320A

  • Unknown nonlinear system optimal tracking control method and device and storage medium

    CN117572776A