A ship collision avoidance decision-making aid method
By improving the artificial potential field method and event triggering mechanism combined with nonlinear model predictive control, the problem of local optimality and neglect of maneuverability in traditional methods in ship collision avoidance is solved, and more reasonable and efficient ship collision avoidance decisions are achieved, which is applicable in complex encounter scenarios.
Patent Information
- Application Number
- CN202311499236.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-11-10
AI Technical Summary
The traditional artificial potential field method is prone to falling into local optimality during ship collision avoidance, ignoring international maritime collision avoidance rules and ship maneuverability, and the nonlinear model predictive control method has insufficient accuracy and long calculation time in describing the dynamic characteristics of large rudder angles.
The improved artificial potential field method is combined with the event triggering mechanism and nonlinear model predictive control, and the DCPA and TCPA between ships are calculated through the mathematical model of dynamic collision avoidance elements, a repulsive potential field is constructed, and nonlinear optimization is performed taking into account system constraints to select the best Excellent steering plan.
It realizes the description of ship maneuvering motion characteristics under the requirements of international maritime collision avoidance rules, saves computing resources, and provides a more reasonable and effective collision avoidance decision-making solution, which is suitable for complex ship encounter scenarios.
Smart Images

Figure CN117369279B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of transportation technology, and in particular to a ship collision avoidance auxiliary decision-making method based on an improved artificial potential field method and event-triggered model predictive control. Background Art
[0002] Artificial Potential Field (APF) is a path planning algorithm with simple structure and fast calculation speed, which is widely used in the field of ship collision avoidance. However, the traditional APF has the disadvantages of being easy to fall into local optimum and ignoring the constraints of the International Regulations for Preventing Collisions at Sea (COLREGs) on ship collision avoidance actions, and is not suitable for more complex ship encounter scenarios. It is worth noting that scholars at home and abroad have conducted fruitful research on the improvement of APF over the years, but most of the research work tends to use the real-time distance between targets to construct artificial potential fields, lacking the prediction of the minimum passing distance between targets. And the influence of ship maneuverability is ignored in collision avoidance.
[0003] However, when ships are avoiding collisions, the maneuverability of the ship is an important factor affecting the effectiveness of the collision avoidance action and cannot be easily ignored. In recent years, a study has proposed a ship motion planning method by combining nonlinear model predictive control (NMPC) and artificial potential field method. It not only overcomes the shortcomings of traditional APF that is easy to fall into local optimality, but also the planned path conforms to the characteristics of ship maneuvering motion. However, this method uses a relatively simple responsive ship maneuvering motion mathematical model, which is more suitable for describing the ship dynamic characteristics at small rudder angles, but is slightly insufficient in accuracy when describing the ship dynamic characteristics at large rudder angles. In addition, the calculation time required for this method is also relatively long. Summary of the invention
[0004] According to the technical problems raised above, the present invention uses a dynamic collision avoidance factor mathematical model to calculate the collision avoidance factors of the own ship and the target ship, and proposes an improved artificial potential field method based on this as the main index. An event trigger mechanism is introduced, and the improved artificial potential field method is combined with nonlinear model predictive control to propose a ship collision avoidance auxiliary decision method.
[0005] The technical means adopted by the present invention are as follows:
[0006] A ship collision avoidance auxiliary decision method based on an improved artificial potential field method and event-triggered model predictive control, when the trigger condition is met, a nonlinear model predictive control process is executed, otherwise, the control input is maintained, wherein the nonlinear model predictive control process includes:
[0007] S1. Predict the ship's state in the future based on the ship's current state, and calculate the gravitational potential field at each moment based on the target point information;
[0008] S2. Use the dynamic mathematical model of collision avoidance elements to calculate the DCPA and TCPA between the two ships at each moment;
[0009] S3, calculate the corresponding repulsive potential field by IAPF;
[0010] S4. The sum of the potential fields at all times is used as the objective function of NMPC. The optimal input sequence is solved to optimize the objective function value under the consideration of system constraints. The first input quantity of the optimal input sequence is applied to the mathematical model of ship maneuvering motion to calculate the ship state at the next moment, and determine whether the ship has reached the target point.
[0011] S5. Repeat steps S1 to S4 to obtain the steering plan of the ship during the entire collision avoidance process.
[0012] Furthermore, in step S1, the gravitational potential field U att (p) is represented by the following function:
[0013]
[0014] In the formula, k att represents the gravitational potential field coefficient, p os and p g Respectively represent the position of the ship and the position of the target point, ρ(p os ,p g ) indicates the distance between own ship and target point.
[0015] Furthermore, the step S2 specifically includes:
[0016] S21. Define the fixed coordinate system o0-x0y0z0 in space. The x0o0y0 plane is the water surface. x0 and y0 point to the east and north of the earth respectively. In the x0o0y0 plane, the coordinate point O(X o ,Y o ) and T(X t ,Y t ) are the real-time midship positions of own ship and other ships, ψ o 、r o ,δ o 、u o 、v mo and U o They are the real-time heading, turning angular velocity, rudder angle, forward speed, mid-ship lateral speed and total speed of the ship, ψ t 、r t , δ t 、u t 、vmt and U t They are the real-time motion parameters of other ships;
[0017] S22, assuming the initial position of the ship is O0 (X o0 ,Y o0 ), the initial heading is ψ o0 , the initial encounter distance between the two ships is R0, and the initial relative azimuth of the other ship relative to the own ship is α r0 , then the initial position of the other ship is T0(X t0 ,Y t0 )for:
[0018]
[0019] S23. When avoiding a collision, at time t after taking the turning action, calculate the positions of own ship and other ships:
[0020]
[0021]
[0022] S24. Based on the perspective of the own ship, along the x0 and y0 axes, calculate the distance of the other ship compared to the own ship:
[0023] ΔX(t)=X t (t)-X o (t), ΔY(t)=Y t (t)-Y o (t)
[0024] S25. Calculate the relative speed of the other ship to your ship:
[0025]
[0026] S26. Calculate the distance between the two ships:
[0027]
[0028] At the same time, the relative speed, direction and heading of the other ship relative to our ship are:
[0029]
[0030]
[0031]
[0032] in,
[0033] S27. Based on the above steps, the minimum encounter distance DCPA and the shortest encounter time TCPA between the two ships at each moment are calculated:
[0034]
[0035] Furthermore, the step S3 specifically includes:
[0036] S31. When the closest encounter point is on the port side of the ship, the DCPA between the two ships is negative, and when it is on the starboard side, the DCPA between the two ships is positive. Then the repulsive potential field U under the two encounter scenarios of head-on encounter and cross encounter is rep (p) is expressed as:
[0037]
[0038] Among them, k rep represents the gravitational potential field coefficient, ρ dcpa and ρ tcpa Indicates a positive value set in advance;
[0039] S32, when the closest encounter point is on the port side of the ship, the DCPA between the two ships is negative, and when it is on the starboard side, the DCPA between the two ships is positive. Then the repulsive potential field U in the overtaking scenario is rep (p) is expressed as:
[0040]
[0041] S33, Assume that the ship is subject to N t The total potential field U of the ship at the time i is affected by the repulsive potential field of the target ship and is only affected by the gravitational potential field of one target point. f,i for:
[0042]
[0043] Among them, U g,i represents the gravitational potential field generated by the target point at time i, U t,i,n Represents the repulsive potential field generated by the nth target ship at time i.
[0044] Furthermore, the step S4 specifically includes:
[0045] S41. Construct a mathematical model of ship maneuvering motion with separated degrees of freedom;
[0046] S42. Design the objective function of nonlinear model predictive control.
[0047] Furthermore, the step S41 specifically includes:
[0048] S411. The change of the position (x, y) of the ship in the fixed spatial coordinate system is expressed as:
[0049]
[0050] Among them, ψ, u, and r represent the ship's bow direction, forward speed, and bow angular velocity, respectively;
[0051] S412. Calculate the transverse velocity v of the ship's center of gravity, the drift angle β at midship and the total velocity U of the ship using the following formula:
[0052]
[0053] Among them, v m represents the transverse velocity among ships, x G Indicates the position of the ship's center of gravity;
[0054] S413. Construct a standardized 3-DOF MMG model as follows:
[0055]
[0056] Where, m represents the mass of the ship, m x and m y represents the longitudinal additional mass and the transverse additional mass of the ship respectively, X, Y and N represent the longitudinal force, transverse force and turning moment in the ship respectively, and the subscripts H, R and P represent the hydrodynamic forces acting on the hull, propeller and rudder respectively; X H , Y H and N H They represent the hull hydrodynamic force, X P represents the propeller thrust, X R , Y R and N R They represent the rudder force during steering respectively, as follows:
[0057]
[0058]
[0059]
[0060] Where ρ represents the water density, L pp represents the length between the two columns of the ship, d represents the draft of the ship, and v′ m and r′ represent dimensionless values, t p Indicates thrust derating factor, n p Indicates propeller speed, D p represents the propeller diameter, k t0 , k t1 and k t2 represents the propeller open water test coefficient, J P represents the speed coefficient, w p0It represents the wake coefficient at the propeller when the ship is sailing straight, β p represents the inflow angle at the propeller during the control movement, x′ p represents the dimensionless value of propeller position, t R represents the drag reduction factor caused by the rudder angle, a H and x H represents the coefficient expressing the mutual interference between the hull and the rudder, δ represents the rudder angle, and F N The normal force of the rudder is F N It is expressed as follows:
[0061]
[0062] Among them, A R represents the rudder side area, Λ represents the rudder aspect ratio, u R and v R denote the effective longitudinal velocity and lateral velocity flowing into the rudder, respectively;
[0063] S414. In order to accurately describe the maneuvering process of the ship, the characteristics of the steering gear are taken into account:
[0064]
[0065] Furthermore, the step S42 specifically includes:
[0066] S421, combining the formula in step S411, the formula in step S413 and the formula in step S414 into a new set of ordinary differential equations, and transforming the set of equations into the following form:
[0067]
[0068] S422, assuming that at t i The values of the variables at time t are known. i+1 =t i +τ time, the fourth-order Runge-Kutta formula for calculating each variable is:
[0069]
[0070] Where τ represents the discrete time step; K ji The value of is calculated by the following formula:
[0071]
[0072] S423. According to the formulas in S414 and S422, the general form of the discrete-time nonlinear system is expressed as:
[0073] ξ(i+1)=f(ξ(i))+g1δ E (i)
[0074] Where ξ(i)=[u(i),v m (i),r(i),δ(i),ψ(i),x(i),y(i)] T represents the state vector of the ship at time i; g1=1 / T E represents the control gain, which is a constant;
[0075] S424, define prediction step size N p , control step length N c , and satisfies N c ≤N p , according to the current ship status, predict the future N p Ship status of step length:
[0076]
[0077] Among them, ξ(i+n|i) represents the state vector at time i+n predicted based on the state vector at time i; when n≥N c , δ E (i+n)=δ E (i+Nc-1), thus, the control sequence is [δ E (i),δ E (i+1),…,δ E (i+n-1),…,δ E (i+Nc-1)] T ;In the application of model predictive control, only the first control action in the control sequence is ultimately applied to the controlled object;
[0078] S425. Only the constraints of the control input are considered, that is, the constraints of the rudder angle and the rudder speed are as follows:
[0079]
[0080] S426. Combined with IAPF, the objective function in nonlinear model predictive control is defined as:
[0081]
[0082] Among them, U f,i+n It is the total potential field calculated based on the predicted position of the ship at time i+n.
[0083] Furthermore, the trigger condition is defined as:
[0084]
[0085] Among them, α g(i) represents the relative position from the target point to the OS, σ≥0 represents the threshold parameter, and the trigger condition is integrated into the NMPC process. When the trigger condition is met, the NMPC process is executed; otherwise, the control action is maintained.
[0086] Compared with the prior art, the present invention has the following advantages:
[0087] 1. The ship collision avoidance auxiliary decision-making method provided by the present invention first selects the MMG model to describe the maneuvering motion characteristics of the ship during collision avoidance; in order to make the ship's collision avoidance action meet the requirements of the International Maritime Collision Avoidance Regulations, a dynamic collision avoidance element mathematical model is used to calculate the collision avoidance elements of the ship and the target ship, and this is used as the main indicator to construct a repulsive potential field. Then, the nonlinear model predictive control is used to deal with the constrained nonlinear optimization problem, and the predicted ship state is used as the objective function. The improved APF is used to calculate the total potential field value, thereby optimizing the objective function value to select the optimal avoidance action at the current moment. In addition, the event trigger condition is set and integrated into the NMPC process to save computing resources. Finally, on the basis of the above, a ship collision avoidance auxiliary decision-making method in a multi-ship encounter situation is established.
[0088] 2. The ship collision avoidance auxiliary decision-making method provided by the present invention fully considers the influence of the ship's maneuverability during collision avoidance, and can provide effective and feasible collision avoidance action suggestions and plans for ship drivers and onshore ship traffic management system attendants in the current and future periods, as well as for future intelligent ships to achieve autonomous collision avoidance.
[0089] Based on the above reasons, the present invention can be widely promoted in the fields of transportation and the like. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are 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.
[0091] Figure 1 The figure is a flow chart of the method of the present invention.
[0092] Figure 2 The x0o0y0 plane provided by the embodiment of the present invention.
[0093] Figure 3 The motion trajectories of the host ship and the target ship provided in the embodiment of the present invention.
[0094] Figure 3 Middle: (a) is the result based on IAPF; (b) is the result based on ENNPC and APF;
[0095] Figure 4 The distance between the own ship and the target ship and the bow direction of the own ship provided in the embodiment of the present invention.
[0096] Figure 4 Middle: (a) is the result based on IAPF; (b) is the result based on ENNPC and APF;
[0097] Figure 5 The embodiment of the present invention provides the minimum encounter distance and the shortest encounter time between the host ship and the target ship.
[0098] Figure 5 Middle: (a) is the result based on IAPF; (b) is the result based on ENNPC and APF;
[0099] Figure 6 The rudder angle and speed of the ship provided by the embodiment of the present invention.
[0100] Figure 7 The state of the event trigger provided by the embodiment of the present invention. DETAILED DESCRIPTION
[0101] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0102] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0103] like Figure 1 As shown, the present invention provides a ship collision avoidance auxiliary decision method based on an improved artificial potential field method and event-triggered model predictive control. When the trigger condition is met, a nonlinear model predictive control process is executed, otherwise, the control input is maintained, wherein the nonlinear model predictive control process includes:
[0104] S1. Predict the ship's state in the future based on the ship's current state, and calculate the gravitational potential field at each moment based on the target point information;
[0105] S2. Use the dynamic mathematical model of collision avoidance elements to calculate the DCPA and TCPA between the two ships at each moment;
[0106] S3, calculate the corresponding repulsive potential field by IAPF;
[0107] S4. The sum of the potential fields at all times is used as the objective function of NMPC. The optimal input sequence is solved to optimize the objective function value under the consideration of system constraints. The first input quantity of the optimal input sequence is applied to the mathematical model of ship maneuvering motion to calculate the ship state at the next moment, and determine whether the ship has reached the target point.
[0108] S5. Repeat steps S1 to S4 to obtain the steering plan of the ship during the entire collision avoidance process.
[0109] In specific implementation, as a preferred embodiment of the present invention, in step S1, the gravitational potential field U att (p) is represented by the following function:
[0110]
[0111] In the formula, k att represents the gravitational potential field coefficient, p os and p g Respectively represent the position of the ship and the position of the target point, ρ(p os ,p g ) indicates the distance between own ship and target point.
[0112] In the specific implementation, as a preferred embodiment of the present invention, due to the adoption of a 3-DOF separated ship maneuvering motion mathematical model, in order to accurately describe the close-range ship collision avoidance process, the present invention proposes a ship dynamic collision avoidance element mathematical model with high accuracy and good applicability. That is, the step S2 specifically includes:
[0113] S21. Define in the fixed coordinate system o0-x0y0z0 in space, the x0o0y0 plane is the water surface, and x0 and y0 point to the east and north of the earth respectively, such as Figure 2 In the x0o0y0 plane, the coordinate point O(X o ,Y o ) and T(X t ,Y t ) are the real-time midship positions of own ship and other ships, ψ o 、r o , δ o 、uo 、v mo and U o They are the real-time heading, turning angular velocity, rudder angle, forward speed, mid-ship lateral speed and total speed of the ship, ψ t 、r t , δ t 、u t 、v mt and U t They are the real-time motion parameters of other ships;
[0114] S22, assuming the initial position of the ship is O0 (X o0 ,Y o0 ), the initial heading is ψ o0 , the initial encounter distance between the two ships is R0, and the initial relative azimuth of the other ship relative to the own ship is α r0 , then the initial position of the other ship is T0(X t0 ,Y t0 )for:
[0115]
[0116] S23. When avoiding a collision, at time t after taking the turning action, calculate the positions of own ship and other ships:
[0117]
[0118]
[0119] S24. Based on the perspective of the own ship, along the x0 and y0 axes, calculate the distance of the other ship compared to the own ship:
[0120] ΔX(t)=X t (t)-X o (t), ΔY(t)=Y t (t)-Y o (t)
[0121] S25. Calculate the relative speed of the other ship to your ship:
[0122]
[0123] S26. Calculate the distance between the two ships:
[0124]
[0125] At the same time, the relative speed, direction and heading of the other ship relative to our ship are:
[0126]
[0127]
[0128]
[0129] in,
[0130] S27. Based on the above steps, the minimum encounter distance DCPA (Distance at closest point of approach) and the shortest encounter time TCPA (Time to closest point of approach) between the two ships at each moment are calculated:
[0131]
[0132] In specific implementation, as a preferred embodiment of the present invention, in step S3, the DCPA and TCPA between ships are used to improve the repulsive potential field in the APF. Before constructing the gravitational field based on these two indicators, according to the action requirements of the two ships in the encounter and cross encounter scenarios in Articles 14 and 15 of the International Regulations for Preventing Collisions at Sea, assuming that this ship is a give-way ship, it can be found that when conditions permit, this ship must take the action of turning right to allow the other ship to pass from the port side of the ship. In this way, the following settings are made for these two encounter scenarios:
[0133] S31. When the closest encounter point is on the port side of the ship, the DCPA between the two ships is negative, and when it is on the starboard side, the DCPA between the two ships is positive. Then the repulsive potential field U under the two encounter scenarios of head-on encounter and cross encounter is rep (p) is expressed as:
[0134]
[0135] Among them, k rep represents the gravitational potential field coefficient, ρ dcpa and ρ tcpa Indicates a positive value set in advance;
[0136] S32. According to Article 13 of the International Regulations for Preventing Collisions at Sea, there is no clear stipulation on how the give-way ship should turn in the overtaking scenario. In other words, when the ship is acting as the give-way ship, it can turn right or left according to the conditions at the time. The above-mentioned setting of the positive and negative DPCA is followed here. Then, when the closest encounter point is on the port side of the ship, the DCPA between the two ships is negative, and when it is on the starboard side, the DCPA between the two ships is positive. Then the repulsive potential field U in the overtaking scenario is rep (p) is expressed as:
[0137]
[0138] S33, Assume that the ship is subject to N t The total potential field U of the ship at the time i is affected by the repulsive potential field of the target ship and is only affected by the gravitational potential field of one target point. f,i for:
[0139]
[0140] Among them, U g,i represents the gravitational potential field generated by the target point at time i, U t,i,n Represents the repulsive potential field generated by the nth target ship at time i.
[0141] In specific implementation, as a preferred embodiment of the present invention, step S4 specifically includes:
[0142] S41, constructing a freedom separation type ship maneuvering motion mathematical model; the step S41 specifically includes:
[0143] S411. The change of the position (x, y) of the ship in the fixed spatial coordinate system is expressed as:
[0144]
[0145] Among them, ψ, u, and r represent the ship's bow direction, forward speed, and bow angular velocity, respectively;
[0146] S412. Calculate the transverse velocity v of the ship's center of gravity, the drift angle β at midship and the total velocity U of the ship using the following formula:
[0147] v=v m +x G r
[0148] β=arctan(-v m / u)
[0149]
[0150] Among them, v m represents the transverse velocity among ships, x G Indicates the position of the ship's center of gravity;
[0151] S413. Construct a standardized 3-DOF MMG model as follows:
[0152]
[0153] Where, m represents the mass of the ship, m x and m yrepresents the longitudinal additional mass and the transverse additional mass of the ship respectively, X, Y and N represent the longitudinal force, transverse force and turning moment in the ship respectively, and the subscripts H, R and P represent the hydrodynamic forces acting on the hull, propeller and rudder respectively; X H , Y H and N H They represent the hull hydrodynamic force, X P represents the propeller thrust, X R , Y R and N R They represent the rudder force during steering respectively, as follows:
[0154]
[0155]
[0156]
[0157] Where ρ represents the water density, L pp represents the length between the two columns of the ship, d represents the draft of the ship, and v′ m and r′ represent dimensionless values, t p Indicates thrust derating factor, n p Indicates propeller speed, D p represents the propeller diameter, k t0 , k t1 and k t2 represents the propeller open water test coefficient, J P represents the speed coefficient, w p0 It represents the wake coefficient at the propeller when the ship is sailing straight, β p represents the inflow angle at the propeller during the control movement, x′ p represents the dimensionless value of propeller position, t R represents the drag reduction factor caused by the rudder angle, a H and x H represents the coefficient expressing the mutual interference between the hull and the rudder, δ represents the rudder angle, and F N The normal force of the rudder is F N It is expressed as follows:
[0158]
[0159] Among them, A R represents the rudder side area, Λ represents the rudder aspect ratio, u R and v R denote the effective longitudinal velocity and lateral velocity flowing into the rudder, respectively;
[0160] S414. Considering that the maneuvering movement of conventional ships is achieved through the action of the rudder, in order to more accurately describe the maneuvering movement process of the ship, taking into account the characteristics of the steering gear:
[0161]
[0162] S42, design the objective function of nonlinear model predictive control. According to the formula in step S413, it can be seen that the ship maneuvering motion equation is a first-order ordinary differential equation system. Common numerical methods for solving such equation systems include Euler method, linear multi-step method, Runge-Kutta method, etc. Among them, the Runge-Kutta method is more commonly used in actual calculations because it can meet different accuracy requirements in calculations by increasing the order of the algorithm. This embodiment uses the fourth-order Runge-Kutta method to solve the maneuvering motion equation and discretize the mathematical model of ship maneuvering motion. Therefore, the step S42 specifically includes:
[0163] S421, combining the formula in step S411, the formula in step S413 and the formula in step S414 into a new set of ordinary differential equations, and transforming the set of equations into the following form:
[0164]
[0165] S422, assuming that at t i The values of the variables at time t are known. i+1 =t i +τ time, the fourth-order Runge-Kutta formula for calculating each variable is:
[0166]
[0167] Where τ represents the discrete time step; K ji The value of is calculated by the following formula:
[0168]
[0169] S423. According to the formulas in S414 and S422, the general form of the discrete-time nonlinear system is expressed as:
[0170] ξ(i+1)=f(ξ(i))+g1δ E (i)
[0171] Where ξ(i)=[u(i),v m (i),r(i),δ(i),ψ(i),x(i),y(i)] T represents the state vector of the ship at time i; g1=1 / T E represents the control gain, which is a constant;
[0172] S424, define prediction step size Np , control step length N c , and satisfies N c ≤N p , according to the current ship status, predict the future N p Ship status of step length:
[0173]
[0174] Among them, ξ(i+n|i) represents the state vector at time i+n predicted based on the state vector at time i; when n≥N c , δ E (i+n)=δ E (i+Nc-1), thus, the control sequence is [δ E (i),δ E (i+1),…,δ E (i+n-1),…,δ E (i+Nc-1)] T ;In the application of model predictive control, only the first control action in the control sequence is ultimately applied to the controlled object;
[0175] S425. In order to consider the influence of ship maneuverability during collision avoidance, this paper combines NMPC with the Improved Artificial Potential Field (IAPF) method to transform the ship motion planning problem into a constrained optimization problem. Here, only the constraints of control input are considered, that is, the constraints of rudder angle and rudder speed are as follows:
[0176]
[0177] S426. Combined with IAPF, the objective function in nonlinear model predictive control is defined as:
[0178]
[0179] Among them, U f,i+n It is the total potential field calculated based on the predicted position of the ship at time i+n.
[0180] In specific implementation, as a preferred embodiment of the present invention, the traditional NMPC algorithm solves the optimization problem at each sampling moment and applies the first item of the optimal control sequence to the object; at the next sampling, the whole process is repeated. The advantages of NMPC in handling constraints have attracted people's attention. However, it also requires a lot of computing resources and is mainly used for slower process control. This embodiment uses an event trigger mechanism to reduce the number of optimizations, thereby saving computing resources. Since IAPF is incorporated into the NMPC process, the trigger condition is defined as:
[0181]
[0182] Among them, α g (i) represents the relative position from the target point to the OS, σ≥0 represents the threshold parameter, and the trigger condition is integrated into the NMPC process. When the trigger condition is met, the NMPC process is executed; otherwise, the control action is maintained.
[0183] Example
[0184] In order to verify the effectiveness and superiority of the ship collision avoidance decision-making auxiliary model proposed in the present invention, this embodiment simulates the multi-ship encounter situation. All ships in the simulation use KVLCC2 ship model parameters. At the same time, some parameters in the simulation ρ dcpa =2n mile, ρ dcpa =1200s, k att =5, k rep =50,τ=5s,N p =10, N c =8, σ = 0.3°. In addition, considering the maneuverability of the ship and the mutual influence between the encountering ships, this paper adopts the ship cooperation field to provide a more reasonable safety standard. This is a circular ship field with a radius of 4.5 times the maximum length of all encountering ships, and all ships in the encounter use the same ship field. The calculation shows that the radius of the ship field in the simulation is 0.78nmile, so the safety distance is set to d safe =1.6n mile.
[0185] In the simulation, the effectiveness of the IAPF method and the superiority of the proposed collision avoidance decision-making assistance scheme are verified. Some initial states of the own ship (OS) and the target ship (TS) are shown in Table 1, and other initial states such as the lateral velocity, rudder angle and bow angular velocity at the midship are set to 0.
[0186] Table 1 Initial states of own ship and target ship in simulation
[0187]
[0188] The simulation results are as follows Figure 3-7 shown. Figure 3 (a), 4(a), and 5(a) are the results of using IAPF alone. Figure 3 (b), 4(b), and 5(b) are the results of using ENNPC and IAPF simultaneously. Figure 3 The intersection ship trajectory in the x0o0y0 plane in the spatial coordinate system, the position and ship domain of the closest distance between OS and TS, and the time when OS and TS reach the closest distance are shown. It can be seen that Figure 3 (b) The trajectory of OS Figure 3 (a) is smoother and does not show any intersection of the ship domains. Figure 4 The distance from TS to OS and the change of the bow direction of OS are given. Figure 5 From the changes of DCPA and TCPA in (a), we can see that Figure 4 (a) The bow of the ship oscillates. The main reason is that in the repulsive force potential field, under the combined effect of gravity and repulsion, the OS will move away from the repulsive force potential field, but when the repulsion force disappears, the ship will re-enter the repulsive force potential field due to the gravitational effect of the target point. If the above process is repeated in a short time, the heading oscillation phenomenon will occur. In the present invention, IAPF is introduced into the design process of NMPC. By predicting the future changes in the state of the ship and selecting the path with the fastest decrease in the potential field value, the OS will not repeatedly enter and exit the repulsive potential field in a short time, so the bow oscillation will not occur. Figure 4 , 5 The distance, DCPA and TCPA curves in the figure show that the collision avoidance decision method based on the improved APF method is reasonable and effective. Figure 4 (b) and 5(b) Figure 4 (a),5(a) has a smoother curve. Figure 6 is the rudder angle, forward speed, lateral speed and composite speed curve of OS. Figure 6 It is not difficult to see that the rudder angle does not violate the constraint, which means that the actual rudder angle of the operating system is reasonable and can be achieved in practical applications. When the ship is not affected by the repulsive field and sails towards the target point, executing the NMPC program will waste computing resources. Therefore, in order to reduce the number of optimizations, an event trigger mechanism is introduced in the NMPC design process. Figure 7 The state of the event trigger is recorded. When the event trigger condition is met, the NMPC process is executed and the event trigger state is recorded as 1; otherwise, the control action is maintained and the state of the event trigger is recorded as 0. In addition, from the comparison of the total path length and the simulation time in Table 2, it can be seen that the simulation time of the ENNPC process is less than that of the NMPC process, and the total path length obtained is very similar. Although the simulation time of the IAPF is the shortest, the total path length obtained is the largest.
[0189] Table 2 Simulation time and total length of generated paths for three schemes
[0190]
[0191] 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 ship collision avoidance auxiliary decision-making method based on improved artificial potential field method and event-triggered model predictive control, characterized in that: When the trigger condition is met, the nonlinear model predictive control process is executed, otherwise, the control input is maintained, wherein the nonlinear model predictive control process includes: S1. Predict the ship's state in the future based on the ship's current state, and calculate the gravitational potential field at each moment based on the target point information; S2. Use the dynamic mathematical model of collision avoidance elements to calculate the minimum encounter distance DCPA and the shortest encounter time TCPA between the two ships at each moment; S3, calculate the corresponding repulsive potential field by using the improved artificial potential field method IAPF; The step S3 specifically includes: S31. When the closest encounter point is on the port side of the ship, the minimum encounter distance DCPA between the two ships is a negative value, and when it is on the starboard side, the minimum encounter distance DCPA between the two ships is a positive value. Then the repulsive potential field U under the two encounter scenarios of head-on encounter and cross encounter is rep (p) is expressed as: Among them, k rep represents the gravitational potential field coefficient, ρ dcpa and ρ tcpa Indicates a positive value set in advance; S32. When the closest encounter point is on the port side of the own ship, the minimum encounter distance DCPA between the two ships is a negative value, and when it is on the starboard side, the minimum encounter distance DCPA between the two ships is a positive value. Then the repulsive potential field U in the overtaking scenario is rep (p) is expressed as: S33, Assume that the ship is subject to N t The total potential field U of the ship at the time i is affected by the repulsive potential field of the target ship and is only affected by the gravitational potential field of one target point. f,i for: Among them, U g,i represents the gravitational potential field generated by the target point at time i, U t,i,n represents the repulsive potential field generated by the nth target ship at time i; S4. The sum of the potential fields at all times is used as the objective function of the nonlinear model predictive control NMPC. The optimal input sequence is solved to optimize the objective function value under the consideration of system constraints. The first input quantity of the optimal input sequence is applied to the mathematical model of the ship maneuvering motion to calculate the ship state at the next moment, and determine whether the ship has reached the target point. S5. Repeat steps S1 to S4 to obtain the steering plan of the ship during the entire collision avoidance process.
2. The ship collision avoidance auxiliary decision-making method based on improved artificial potential field method and event-triggered model predictive control according to claim 1 is characterized in that: In step S1, the gravitational potential field U att (p) is represented by the following function: In the formula, k att represents the gravitational potential field coefficient, p os and p g Respectively represent the position of the ship and the position of the target point, ρ(p os ,p g ) indicates the distance between own ship and target point.
3. The ship collision avoidance auxiliary decision-making method based on improved artificial potential field method and event-triggered model predictive control according to claim 1 is characterized in that: The step S2 specifically includes: S21. Define the fixed coordinate system o0-x0y0z0 in space. The x0o0y0 plane is the water surface. x0 and y0 point to the east and north of the earth respectively. In the x0o0y0 plane, the coordinate point O(X o ,Y o ) and T(X t ,Y t ) are the real-time midship positions of own ship and other ships, ψ o 、r o , δ o 、u o 、v mo and U o They are the real-time heading, turning angular velocity, rudder angle, forward speed, mid-ship lateral speed and total speed of the ship, ψ t 、r t , δ t 、u t 、v mt and U t They are the real-time motion parameters of other ships; S22, assuming the initial position of the ship is O0 (X o0 ,Y o0 ), the initial heading is ψ o0 , the initial encounter distance between the two ships is R0, and the initial relative azimuth of the other ship relative to the own ship is α r0 , then the initial position of the other ship is T0(X t0 ,Y t0 )for: S23. When avoiding a collision, at time t after taking the turning action, calculate the positions of own ship and other ships: S24. Based on the perspective of the own ship, along the x0 and y0 axes, calculate the distance of the other ship compared to the own ship: ΔX(t)=X t (t)-X o (t),ΔY(t)=Y t (t)-Y o (t) S25. Calculate the relative speed of the other ship to your ship: S26. Calculate the distance between the two ships: At the same time, the relative speed, direction and heading of the other ship relative to our ship are: in, S27. Based on the above steps, the minimum encounter distance DCPA and the shortest encounter time TCPA between the two ships at each moment are calculated:
4. The ship collision avoidance auxiliary decision-making method based on improved artificial potential field method and event-triggered model predictive control according to claim 1, characterized in that: The step S4 specifically includes: S41. Construct a mathematical model of ship maneuvering motion with separated degrees of freedom; S42. Design the objective function of nonlinear model predictive control.
5. The ship collision avoidance auxiliary decision-making method based on improved artificial potential field method and event-triggered model predictive control according to claim 4 is characterized in that: The step S41 specifically includes: S411. The change of the position (x, y) of the ship in the fixed spatial coordinate system is expressed as: Among them, ψ, u, and r represent the ship's bow direction, forward speed, and bow angular velocity, respectively; S412. Calculate the transverse velocity v of the ship's center of gravity, the drift angle β at midship and the total velocity U of the ship using the following formula: v=v m +x G r β=arctan(-v m / u) Among them, v m represents the transverse velocity among ships, x G Indicates the position of the ship's center of gravity; S413. Construct a standardized 3-DOF MMG model as follows: Where, m represents the mass of the ship, m x and m y represents the longitudinal additional mass and the transverse additional mass of the ship respectively, X, Y and N represent the longitudinal force, transverse force and turning moment in the ship respectively, and the subscripts H, R and P represent the hydrodynamic forces acting on the hull, propeller and rudder respectively; X H , Y H and N H They represent the hull hydrodynamic force, X P represents the propeller thrust, X R , Y R and N R They represent the rudder force during steering respectively, as follows: Where ρ represents the water density, L pp represents the length between the two columns of the ship, d represents the draft of the ship, and v′ m and r′ represent dimensionless values, t p Indicates thrust derating factor, n p Indicates propeller speed, D p represents the propeller diameter, k t0 , k t1 and k t2 represents the propeller open water test coefficient, J P represents the speed coefficient, w p0 It represents the wake coefficient at the propeller when the ship is sailing straight, β p represents the inflow angle at the propeller during the control movement, x′ p represents the dimensionless value of propeller position, t R represents the drag reduction factor caused by the rudder angle, a H and x H represents the coefficient expressing the mutual interference between the hull and the rudder, δ represents the rudder angle, and F N The normal force of the rudder is F N It is expressed as follows: Among them, A R represents the rudder side area, Λ represents the rudder aspect ratio, u R and v R denote the effective longitudinal velocity and lateral velocity flowing into the rudder, respectively; S414. In order to accurately describe the maneuvering process of the ship, the characteristics of the steering gear are taken into account:
6. The ship collision avoidance auxiliary decision-making method based on improved artificial potential field method and event-triggered model predictive control according to claim 4 is characterized in that: The step S42 specifically includes: S421, combining the formula in step S411, the formula in step S413 and the formula in step S414 into a new set of ordinary differential equations, and transforming the set of equations into the following form: S422, assuming that at t i The values of the variables at time t are known. i+1 =t i +τ time, the fourth-order Runge-Kutta formula for calculating each variable is: Where τ represents the discrete time step; K ji The value of is calculated by the following formula: S423. According to the formulas in S414 and S422, the general form of the discrete-time nonlinear system is expressed as: ξ(i+1)=f(ξ(i))+g1δ E (i) Where ξ(i)=[u(i),v m (i),r(i),δ(i),ψ(i),x(i),y(i)] T represents the state vector of the ship at time i; g1=1 / T E represents the control gain, which is a constant; S424, define prediction step size N p , control step length N c , and satisfies N c ≤N p , according to the current ship status, predict the future N p Ship status of step length: Among them, ξ(i+n|i) represents the state vector at time i+n predicted based on the state vector at time i; when n≥N c , δ E (i+n)=δ E (i+Nc-1), thus, the control sequence is [δ E (i),δ E (i+1),…,δ E (i+n-1),…,δ E (i+Nc-1)] T ;In the application of model predictive control, only the first control action in the control sequence is ultimately applied to the controlled object; S425. Only the constraints of the control input are considered, that is, the constraints of the rudder angle and the rudder speed are as follows: S426. Combined with the improved artificial potential field method IAPF, the objective function in nonlinear model predictive control is defined as: Among them, U f,i+n It is the total potential field calculated based on the predicted position of the ship at time i+n.
7. The ship collision avoidance auxiliary decision-making method based on improved artificial potential field method and event-triggered model predictive control according to claim 1, characterized in that: The trigger condition is defined as: Among them, α g (i) represents the relative position from the target point to the OS, σ≥0 represents the threshold parameter, and the trigger condition is integrated into the nonlinear model predictive control NMPC process. When the trigger condition is met, the nonlinear model predictive control NMPC process is executed; otherwise, the control action is maintained.
