CN111709571A - A method, device, equipment and storable medium for determining a ship collision avoidance route - Google Patents
A method, device, equipment and storable medium for determining a ship collision avoidance route Download PDFInfo
- Publication number
- CN111709571A CN111709571A CN202010528259.9A CN202010528259A CN111709571A CN 111709571 A CN111709571 A CN 111709571A CN 202010528259 A CN202010528259 A CN 202010528259A CN 111709571 A CN111709571 A CN 111709571A
- Authority
- CN
- China
- Prior art keywords
- ship
- collision avoidance
- parameter array
- array set
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 162
- 230000002068 genetic effect Effects 0.000 claims abstract description 24
- 230000006870 function Effects 0.000 claims description 19
- 238000000354 decomposition reaction Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 10
- 238000003491 array Methods 0.000 claims description 8
- 238000003860 storage Methods 0.000 claims description 8
- 230000008859 change Effects 0.000 claims description 5
- 238000004088 simulation Methods 0.000 abstract description 21
- 238000004458 analytical method Methods 0.000 abstract description 12
- 238000004364 calculation method Methods 0.000 abstract description 7
- 230000006399 behavior Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 16
- 241001206881 Myrmeleon inconspicuus Species 0.000 description 15
- 230000008569 process Effects 0.000 description 14
- 230000006872 improvement Effects 0.000 description 13
- 230000035772 mutation Effects 0.000 description 11
- 230000003068 static effect Effects 0.000 description 8
- 230000008901 benefit Effects 0.000 description 6
- 230000001788 irregular Effects 0.000 description 6
- 238000005457 optimization Methods 0.000 description 5
- 238000012360 testing method Methods 0.000 description 5
- QZXCCPZJCKEPSA-UHFFFAOYSA-N chlorfenac Chemical compound OC(=O)CC1=C(Cl)C=CC(Cl)=C1Cl QZXCCPZJCKEPSA-UHFFFAOYSA-N 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- LFULEKSKNZEWOE-UHFFFAOYSA-N propanil Chemical compound CCC(=O)NC1=CC=C(Cl)C(Cl)=C1 LFULEKSKNZEWOE-UHFFFAOYSA-N 0.000 description 3
- 241000257303 Hymenoptera Species 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005520 cutting process Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000005295 random walk Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 241000258923 Neuroptera Species 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000000349 chromosome Anatomy 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- RVRCFVVLDHTFFA-UHFFFAOYSA-N heptasodium;tungsten;nonatriacontahydrate Chemical compound O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.[Na+].[Na+].[Na+].[Na+].[Na+].[Na+].[Na+].[W].[W].[W].[W].[W].[W].[W].[W].[W].[W].[W] RVRCFVVLDHTFFA-UHFFFAOYSA-N 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 108090000623 proteins and genes Proteins 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/11—Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/12—Computing arrangements based on biological models using genetic models
- G06N3/126—Evolutionary algorithms, e.g. genetic algorithms or genetic programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/26—Government or public services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/06—Multi-objective optimisation, e.g. Pareto optimisation using simulated annealing [SA], ant colony algorithms or genetic algorithms [GA]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Tourism & Hospitality (AREA)
- General Engineering & Computer Science (AREA)
- Biophysics (AREA)
- Strategic Management (AREA)
- Life Sciences & Earth Sciences (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Business, Economics & Management (AREA)
- Evolutionary Biology (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Development Economics (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- General Health & Medical Sciences (AREA)
- Entrepreneurship & Innovation (AREA)
- Educational Administration (AREA)
- Molecular Biology (AREA)
- Game Theory and Decision Science (AREA)
- Computational Linguistics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Geometry (AREA)
- Computing Systems (AREA)
Abstract
本发明适用于船舶航行技术领域,提供了一种船舶避碰路线确定方法、装置、设备及可存储介质,包括:当第一船舶与第二船舶之间的碰撞危险度大于预设阈值时,获取第一船舶的避碰参数数组集合;根据避碰参数数组集合以及预设的双标准多目标避碰算法,确定最优避碰参数数组集合;根据所述最优避碰参数数组集合,确定第一船舶的避碰路线。本发明采用结合帕累托进化和非帕累托进化的双标准多目标遗传算法求解船舶避碰路线,通过改进非帕累托进化种群的更新方式,加快种群的收敛速度以及增加种群的多样性,使得在加快算法计算效率的同时,保证前沿解集的均匀性;同时,通过仿真结果的分析,证明了本发明能够在各会遇场景下求解出既安全又经济的路径。
The invention is applicable to the technical field of ship navigation, and provides a method, device, equipment and storable medium for determining a collision avoidance route for ships, including: when the collision risk between the first ship and the second ship is greater than a preset threshold, Obtain the collision avoidance parameter array set of the first ship; determine the optimal collision avoidance parameter array set according to the collision avoidance parameter array set and the preset dual-standard multi-objective collision avoidance algorithm; determine the optimal collision avoidance parameter array set according to the optimal collision avoidance parameter array set The collision avoidance route of the first ship. The invention adopts the double standard multi-objective genetic algorithm combining Pareto evolution and non-Pareto evolution to solve the collision avoidance route of ships, and by improving the updating method of non-Pareto evolution population, the convergence speed of the population is accelerated and the diversity of the population is increased. , so that the uniformity of the frontier solution set is ensured while speeding up the calculation efficiency of the algorithm; at the same time, through the analysis of the simulation results, it is proved that the present invention can solve a safe and economical path in each meeting scenario.
Description
技术领域technical field
本发明属于船舶航行技术领域,尤其涉及一种船舶避碰路线确定方法、装置、设备及可存储介质。The invention belongs to the technical field of ship navigation, and in particular relates to a method, device, equipment and storage medium for determining a ship collision avoidance route.
背景技术Background technique
从船舶海上运输开始,船舶避碰一直是船上人员所关注的主要问题之一。在上世纪,各国以及国际海事组织联合制定了《国际海上避碰规则》(COLREGS)。COLREGS规则规定了各类会遇情况下的船舶避碰责任,在不同能见度下船舶的驾驶和航行规则,以及船上灯光标志代表信息等。但是船舶避碰是一个复杂的过程,仅仅通过COLREGS规则是无法识别碰撞危险,同时也无法得到一个安全的避碰路线。Ship collision avoidance has always been one of the main concerns of ship personnel since the beginning of marine transportation. In the last century, countries and the International Maritime Organization jointly formulated the International Regulations for Preventing Collisions at Sea (COLREGS). The COLREGS rules stipulate the responsibilities of ships to avoid collisions in various encounter situations, the driving and navigation rules of ships under different visibility, and the information on board lights and signs. However, ship collision avoidance is a complicated process, and it is impossible to identify the danger of collision only through COLREGS rules, and at the same time, it is impossible to obtain a safe collision avoidance route.
当前已有大量用于船舶避碰路线规划的算法被提出,Szlapczynski等人在2012年利用进化计算方法寻找避碰的最优路径。其中进化计算是一种优化工具,是一组随机优化算法,基于查尔斯·达尔文的生物进化理论,也就是说其基本原则是适者生存。Kang等人为减少人为因素的影响,采用粒子群算法(PSO)规划船舶路径。Xu等人采用危险免疫算法来加快寻找最优路径的速度。Lyu等人利用人工势场法的良好实时性能,解决了多艘船舶会遇情况下的避碰路线规划。上面大多数的避碰研究都假设本船实施避碰策略,而其他目标船舶保持其航向不变。针对这个问题,Kim等人将分布式算法应用于避碰研究,并对传统方法进行了改进,该算法利用船舶之间通讯来获取其他船舶的航行意图,通过比较来确定各船舶当前时段的航行路线。但以上船舶避碰路线规划方法均没有充分考虑船舶本身的行为具有不可预测的特性,仍存在避碰路线规划用时长以及针对各船舶彼此间的避让行为协调性差的问题。At present, a large number of algorithms for ship collision avoidance route planning have been proposed. Among them, evolutionary computing is an optimization tool, which is a set of stochastic optimization algorithms, based on Charles Darwin's theory of biological evolution, which means that its basic principle is survival of the fittest. In order to reduce the influence of human factors, Kang et al. used particle swarm algorithm (PSO) to plan the ship path. Xu et al. employed a hazard-immune algorithm to speed up finding the optimal path. Lyu et al. used the good real-time performance of the artificial potential field method to solve the collision avoidance route planning in the case of encountering multiple ships. Most of the collision avoidance studies above assume that the own ship implements a collision avoidance strategy while other target ships keep their course unchanged. In response to this problem, Kim et al. applied the distributed algorithm to collision avoidance research and improved the traditional method. The algorithm uses the communication between ships to obtain the sailing intention of other ships, and determines the navigation of each ship in the current period by comparison. route. However, none of the above methods of ship collision avoidance route planning fully consider the unpredictable behavior of the ship itself, and there are still problems such as the long time for collision avoidance route planning and the poor coordination between the avoidance behaviors of various ships.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种船舶避碰路线确定方法,旨在解决现有船舶避碰路线规划方法均没有充分考虑船舶本身的行为具有不可预测的特性,仍存在避碰路线规划用时长以及针对各船舶彼此间的避让行为协调性差的问题。The purpose of the embodiments of the present invention is to provide a method for determining a collision avoidance route for ships, which aims to solve the problem that the existing methods for planning collision avoidance routes for ships do not fully consider the unpredictable characteristics of the behavior of the ship itself, and there is still a long time for collision avoidance route planning. And the problem of poor coordination of avoidance behavior among ships.
本发明实施例是这样实现的,一种船舶避碰路线确定方法,包括:The embodiment of the present invention is implemented in this way, a method for determining a ship collision avoidance route, comprising:
当第一船舶与第二船舶之间的碰撞危险度大于预设阈值时,获取所述第一船舶的避碰参数数组集合;When the collision risk between the first ship and the second ship is greater than a preset threshold, acquiring the collision avoidance parameter array set of the first ship;
根据所述避碰参数数组集合以及预设的双标准多目标避碰算法,确定最优避碰参数数组集合;所述预设的双标准多目标避碰算法是基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法得到;Determine the optimal collision avoidance parameter array set according to the collision avoidance parameter array set and the preset dual-standard multi-objective collision avoidance algorithm; the preset dual-standard multi-objective collision avoidance algorithm is based on a dual-standard framework combined with fast non-dominant The sorting genetic algorithm and the decomposition-based multi-objective evolutionary algorithm are obtained;
根据所述最优避碰参数数组集合,确定所述第一船舶的避碰路线。The collision avoidance route of the first ship is determined according to the optimal collision avoidance parameter array set.
本发明实施例的另一目的在于一种船舶避碰路线确定装置,包括:Another object of the embodiments of the present invention is a device for determining a ship collision avoidance route, comprising:
避碰参数数组集合获取单元,用于当第一船舶与第二船舶之间的碰撞危险度大于预设阈值时,获取所述第一船舶的避碰参数数组集合;a collision avoidance parameter array set acquisition unit, configured to acquire the collision avoidance parameter array set of the first ship when the collision risk between the first ship and the second ship is greater than a preset threshold;
最优避碰参数数组集合确定单元,用于根据所述避碰参数数组集合以及预设的双标准多目标避碰算法,确定最优避碰参数数组集合;所述预设的双标准多目标避碰算法是基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法得到;以及an optimal collision avoidance parameter array set determination unit, configured to determine an optimal collision avoidance parameter array set according to the collision avoidance parameter array set and a preset dual-standard multi-objective collision avoidance algorithm; the preset dual-standard multi-objective collision avoidance algorithm The collision avoidance algorithm is based on a dual-criteria framework combined with a fast non-dominated sorting genetic algorithm and a decomposition-based multi-objective evolutionary algorithm; and
避碰路线确定单元,用于根据所述最优避碰参数数组集合,确定所述第一船舶的避碰路线。A collision avoidance route determination unit, configured to determine the collision avoidance route of the first ship according to the optimal collision avoidance parameter array set.
本发明实施例的另一目的在于一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行所述船舶避碰路线确定方法的步骤。Another object of the embodiments of the present invention is a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor causes the processor to execute the ship The steps of the collision avoidance route determination method.
本发明实施例的另一目的在于一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行所述船舶避碰路线确定方法的步骤。Another object of the embodiments of the present invention is a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor causes the processor to execute the ship avoidance method. Touch the steps of the route determination method.
本发明实施例提供的船舶避碰路线确定方法,以避碰参数数组集合量化避碰路线,通过基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法得到的双标准多目标避碰算法,确定最优避碰参数数组集合,以根据所述最优避碰参数数组集合,确定避碰路线;本发明考虑到多目标会遇环境的复杂可能会使最终的帕累托前沿呈现不规则形状,采用结合帕累托进化和非帕累托进化的双标准多目标遗传算法求解船舶避碰路线,通过改进非帕累托进化种群的更新方式,加快种群的收敛速度以及增加种群的多样性,使得在加快算法计算效率的同时,又可以保证前沿解集的均匀性;同时,通过仿真结果的分析,证明了本发明能够在各会遇场景下求解出既安全又经济的路径。In the method for determining a ship collision avoidance route provided by the embodiment of the present invention, the collision avoidance route is quantified by a set of collision avoidance parameter arrays. The collision avoidance algorithm determines the optimal collision avoidance parameter array set, so as to determine the collision avoidance route according to the optimal collision avoidance parameter array set; the present invention takes into account the complexity of the multi-target encounter environment and may cause the final Pareto frontier It presents an irregular shape, and uses a double-standard multi-objective genetic algorithm combining Pareto evolution and non-Pareto evolution to solve the collision avoidance route of ships. By improving the update method of non-Pareto evolution population, the convergence speed of the population is accelerated and the population is increased. The diversity of the algorithm can speed up the calculation efficiency of the algorithm while ensuring the uniformity of the frontier solution set; at the same time, through the analysis of the simulation results, it is proved that the present invention can solve the safe and economical path in each meeting scenario .
附图说明Description of drawings
图1为本发明实施例提供的一种船舶避碰路线确定方法的实现流程图;Fig. 1 is the realization flow chart of a kind of ship collision avoidance route determination method provided by the embodiment of the present invention;
图2为本发明实施例提供的碰撞危险度确定方法的实现流程图;Fig. 2 is the realization flow chart of the collision risk determination method provided by the embodiment of the present invention;
图3为本发明实施例提供的四分数船舶领域示意图;3 is a schematic diagram of a four-point ship field provided by an embodiment of the present invention;
图4为本发明实施例提供的结合船舶领域的速度障碍法示意图;4 is a schematic diagram of a speed obstacle method combined with the field of ships provided by an embodiment of the present invention;
图5为本发明实施例提供的拥挤度示意图;5 is a schematic diagram of a congestion degree provided by an embodiment of the present invention;
图6为本发明实施例提供的切比雪夫分解示意图;6 is a schematic diagram of Chebyshev decomposition provided by an embodiment of the present invention;
图7为本发明实施例提供的双标准(BCE)示意图;FIG. 7 is a schematic diagram of a dual standard (BCE) provided by an embodiment of the present invention;
图8为本发明实施例提供的确定最优避碰参数数组集合的步骤流程图;8 is a flowchart of steps for determining an optimal collision avoidance parameter array set provided by an embodiment of the present invention;
图9为本发明实施例提供的避碰路线示意图;9 is a schematic diagram of a collision avoidance route provided by an embodiment of the present invention;
图10为本发明实施例提供的蚁狮算法原理示意图;10 is a schematic diagram of the principle of the ant-lion algorithm provided by an embodiment of the present invention;
图11为本发明实施例提供的ZDT1和ZDT2运行结果图;Fig. 11 is a ZDT1 and ZDT2 operation result diagram provided by an embodiment of the present invention;
图12为本发明实施例提供的另一种船舶避碰路线确定方法的实现流程图;FIG. 12 is a flow chart of implementation of another method for determining a ship collision avoidance route provided by an embodiment of the present invention;
图13为本发明实施例提供的分步协同避碰策略示意图;13 is a schematic diagram of a step-by-step collaborative collision avoidance strategy provided by an embodiment of the present invention;
图14为本发明实施例提供的又一种船舶避碰路线确定方法的实现流程图;FIG. 14 is a flowchart for realizing another method for determining a ship collision avoidance route provided by an embodiment of the present invention;
图15为本发明实施例提供的避碰规划仿真设计平台GUI界面;15 is a GUI interface of a collision avoidance planning simulation design platform provided by an embodiment of the present invention;
图16为本发明实施例提供的两船交叉会遇局面下避碰路线示意图;16 is a schematic diagram of a collision avoidance route in a situation where two ships cross and meet according to an embodiment of the present invention;
图17为本发明实施例提供的两船对遇会遇局面下避碰路线示意图;17 is a schematic diagram of a collision avoidance route in a situation where two ships meet and meet according to an embodiment of the present invention;
图18为本发明实施例提供的两船追越会遇局面下避碰路线示意图;18 is a schematic diagram of a collision avoidance route in a situation where two ships are chasing and overtaking according to an embodiment of the present invention;
图19为本发明实施例提供的多船避碰场景1(左)和避碰路线图(右);19 is a multi-ship collision avoidance scenario 1 (left) and a collision avoidance route map (right) provided by an embodiment of the present invention;
图20为本发明实施例提供的船舶各时刻避碰状况1图;FIG. 20 is a diagram of the
图21为本发明实施例提供的多船避碰场景2(左)和避碰路线图(右);21 is a multi-ship collision avoidance scenario 2 (left) and a collision avoidance route map (right) provided by an embodiment of the present invention;
图22为本发明实施例提供的一种船舶各时刻避碰状况图;22 is a diagram of a collision avoidance situation of a ship at each moment provided by an embodiment of the present invention;
图23为本发明实施例提供的静态障碍物下多船避碰场景(左)和避碰路线图(右);23 is a multi-ship collision avoidance scenario (left) and a collision avoidance route map (right) under static obstacles provided by an embodiment of the present invention;
图24为本发明实施例提供的另一种船舶各时刻避碰状况图;FIG. 24 is another view of the collision avoidance situation of ships at each moment provided by an embodiment of the present invention;
图25为本发明实施例提供的船舶避碰路线确定装置的结构框图。FIG. 25 is a structural block diagram of a device for determining a ship collision avoidance route provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本发明实施例提供的船舶避碰路线确定方法,以避碰参数数组集合量化避碰路线,通过基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法得到的双标准多目标避碰算法,确定最优避碰参数数组集合,以根据所述最优避碰参数数组集合,确定避碰路线;本发明考虑到多目标会遇环境的复杂可能会使最终的帕累托前沿呈现不规则形状,采用结合帕累托进化和非帕累托进化的双标准多目标遗传算法求解船舶避碰路线,通过改进非帕累托进化种群的更新方式,加快种群的收敛速度以及增加种群的多样性,使得在加快算法计算效率的同时,又可以保证前沿解集的均匀性;同时,通过仿真结果的分析,证明了本发明能够在各会遇场景下求解出既安全又经济的路径。In the method for determining a ship collision avoidance route provided by the embodiment of the present invention, the collision avoidance route is quantified by a set of collision avoidance parameter arrays. The collision avoidance algorithm determines the optimal collision avoidance parameter array set, so as to determine the collision avoidance route according to the optimal collision avoidance parameter array set; the present invention takes into account the complexity of the multi-target encounter environment and may cause the final Pareto frontier It presents an irregular shape, and uses a double-standard multi-objective genetic algorithm combining Pareto evolution and non-Pareto evolution to solve the collision avoidance route of ships. By improving the update method of non-Pareto evolution population, the convergence speed of the population is accelerated and the population is increased. The diversity of the algorithm can speed up the calculation efficiency of the algorithm while ensuring the uniformity of the frontier solution set; at the same time, through the analysis of the simulation results, it is proved that the present invention can solve the safe and economical path in each meeting scenario .
图1为本发明实施例提供的一种船舶避碰路线确定方法的实现流程图,详述如下。FIG. 1 is an implementation flowchart of a method for determining a ship collision avoidance route provided by an embodiment of the present invention, which is described in detail as follows.
步骤S101,当第一船舶与第二船舶之间的碰撞危险度大于预设阈值时,获取所述第一船舶的避碰参数数组集合。Step S101, when the collision risk between the first ship and the second ship is greater than a preset threshold, acquire a collision avoidance parameter array set of the first ship.
在本发明实施例中,所述避碰参数数组集合是由多个避碰参数对应的数值范围生成的,所述避碰参数数组集合包括多个避碰参数数组,所述避碰参数数组包括各避碰参数从所述避碰参数对应的数值范围内随机确定的数值;所述避碰参数包括直航时间、在避让点的避让幅度、避让时间以及复航幅度。In this embodiment of the present invention, the collision avoidance parameter array set is generated from a range of values corresponding to a plurality of collision avoidance parameters, the collision avoidance parameter array set includes a plurality of collision avoidance parameter arrays, and the collision avoidance parameter array includes Each collision avoidance parameter is a value randomly determined from the value range corresponding to the collision avoidance parameter; the collision avoidance parameter includes the straight flight time, the avoidance range at the avoidance point, the avoidance time and the return range.
在本发明实施例中,第一船舶与第二船舶之间的碰撞危险度可以是由第一船舶(本船)与第二船舶(目标船舶)之间的最小会遇距离DCPA和到达最近会与距离的时间TCPA进行表示,当目标船舶将通过本船的船头时,DCPA为正值;否则,它是一个负值。当TCPA为正时,本船与目标船之间仍存在碰撞风险;当TCPA为负时,本船通过目标船,本船与目标船之间不存在碰撞风险。In this embodiment of the present invention, the collision risk between the first ship and the second ship may be determined by the minimum meeting distance DCPA between the first ship (own ship) and the second ship (target ship) and the closest meeting distance The time TCPA of the distance is expressed, when the target ship will pass the own ship's bow, the DCPA is a positive value; otherwise, it is a negative value. When the TCPA is positive, there is still a risk of collision between the own ship and the target ship; when the TCPA is negative, the own ship passes the target ship, and there is no collision risk between the own ship and the target ship.
在本发明一个优选实施例中,第一船舶与第二船舶之间的碰撞危险度还可以是由船舶领域、第一船舶与第二船舶的相关运动参数基于危险度模型计算得到,如图2所示,所述步骤S101之前,包括:In a preferred embodiment of the present invention, the collision risk between the first ship and the second ship may also be calculated from the ship domain, the related motion parameters of the first ship and the second ship based on the risk model, as shown in FIG. 2 As shown, before the step S101, it includes:
步骤S201,获取第一船舶的障碍区相关参数。In step S201, parameters related to the obstacle area of the first ship are acquired.
在本发明实施例中,障碍区相关参数的获取是为了确定船舶领域,其包括船舶的位置,船舶的速度,船舶的长度,船舶的航向,船舶操纵能力的进值距和旋回初径值。In the embodiment of the present invention, the parameters related to the obstacle area are obtained to determine the ship domain, which includes the position of the ship, the speed of the ship, the length of the ship, the heading of the ship, the advance distance of the ship's maneuverability, and the initial radius of the turn.
步骤S202,根据所述第一船舶的障碍区相关参数,确定所述第一船舶的速度障碍区。Step S202: Determine the speed obstacle area of the first vessel according to the parameters related to the obstacle area of the first vessel.
在本发明实施例中,速度障碍区即为船舶领域,该船舶领域是四元数船舶领域,如图3所示,设船舶的位置在(x,y),船舶的速度为v,船舶的长度为L,这船舶领域的方程可以表示为:In the embodiment of the present invention, the speed obstacle area is the field of ships, and the field of ships is the field of quaternion ships. As shown in FIG. 3 , the position of the ship is (x, y), the speed of the ship is v, and the speed of the ship is v. With length L, this equation of the ship field can be expressed as:
其中的Rfore,Raft,Rstarb和Rport代表船舶领域的半径长度。θ是船舶的航向。where R fore , R aft , R starb and R port represent the radius length of the ship field. θ is the heading of the ship.
其中AD和DT是代表船舶操纵能力的进距和旋回初径。正常情况下,船舶会标明自身的进距和旋回初径的值,但是对于会遇的目标船舶,本船可能很难获取它的回旋试验的相关参数。因此根据其他船舶的参数,采用经验公式计算船舶的进距值和旋回初径值:Among them, A D and D T are the advance distance and initial turning radius, which represent the ship's manoeuvrability. Under normal circumstances, the ship will indicate the value of its own advance distance and the initial radius of the turn, but for the target ship it encounters, it may be difficult for the ship to obtain the relevant parameters of its turn test. Therefore, according to the parameters of other ships, the empirical formula is used to calculate the value of the ship's advance distance and the initial radius of the turn:
步骤S203,获取所述第一船舶的速度矢量与第二船舶的速度矢量。Step S203, acquiring the speed vector of the first ship and the speed vector of the second ship.
步骤S204,根据所述第一船舶的速度矢量、所述第二船舶的速度矢量以及所述第一船舶的速度障碍区,确定所述第一船舶与所述第二船舶之间的碰撞危险度。Step S204, according to the speed vector of the first ship, the speed vector of the second ship and the speed obstacle area of the first ship, determine the collision risk between the first ship and the second ship .
在本发明实施例中,通过结合速度障碍法和四分数船舶领域,使速度障碍法本身既符合了COLREGS规则,也能根据不同船舶改变形状,如图4所示。通过判断本船的速度矢量是否处于速度障碍区内来获取本船的航行危险,而本船的速度矢量处于速度障碍区内,意味着本船以该速度航行,必会在未来某一时刻侵入到目标船的领域中,而侵入的程度与本船速度处于速度障碍区内的目标船舶缩小的船舶领域内的程度相关。因此,船舶间的危险度可以计算为:In the embodiment of the present invention, by combining the speed obstacle method and the four-point ship field, the speed obstacle method itself not only complies with the COLREGS rules, but also can change the shape according to different ships, as shown in FIG. 4 . The navigation danger of the own ship is obtained by judging whether the speed vector of the own ship is in the speed obstacle area, and the speed vector of the own ship is in the speed obstacle area, which means that the own ship sailing at this speed will intrude into the target ship at some point in the future. The degree of intrusion is related to the degree of the ship's speed within the narrowed ship area of the target ship within the speed barrier. Therefore, the risk degree between ships can be calculated as:
其中,L0,L1和L2是本船速度矢量到切割线与过目标船舶中心点的中心线交点以及切割线与速度障碍区边界的交点之间的距离。(x0,y0)是本船的位置,(vx,vy)是本船速度矢量。x0·vy-y0·vx是为了判断本船的速度矢量处于中心线的上方还是下方。由于中心线代表了目标船在几何空间内的航线,这意味着离中心线越近,危险越大,而离中心线越远,危险越小。通过公式(5)计算的危险度,其值在中心线处为1,在边界处为0.5,越远离边界越小,最后趋于0。Among them, L 0 , L 1 and L 2 are the distances from the own ship's speed vector to the intersection of the cutting line and the center line passing through the center of the target ship and the intersection of the cutting line and the boundary of the speed barrier. (x 0 , y 0 ) is the own ship's position, and (v x , v y ) is the own ship's velocity vector. x 0 ·v y -y 0 ·v x is to judge whether the speed vector of own ship is above or below the center line. Since the centerline represents the target ship's course in geometric space, it means that the closer to the centerline, the greater the danger, and the farther away from the centerline, the lesser the danger. The risk calculated by formula (5) has a value of 1 at the center line and 0.5 at the boundary.
步骤S102,根据所述避碰参数数组集合以及预设的双标准多目标避碰算法,确定最优避碰参数数组集合。Step S102: Determine an optimal collision avoidance parameter array set according to the collision avoidance parameter array set and a preset dual-standard multi-objective collision avoidance algorithm.
在本发明实施例中,所述预设的双标准多目标避碰算法是基于双标准框架将快速非支配排序遗传算法(NSGA-II)和基于分解的多目标进化算法(MOEA/D)进行结合得到。其中,NSGA-II算法的一个改进点是采用了快速非支配排序的方法对解集进行了分级,加快了算法运行的速度。该算法设置了两个作为非支配排序的参数,即支配计数np用来计算支配解p的解的个数,以及支配集合Sp用来储存解p所支配的解。而判断一个解支配另一个解的标准是如果一个解的所有目标值都比另一个解的目标值更好,则该解支配另一个解,而其他情况则认为两个解彼此处于非支配状态或被支配状态。通过这个标准进行判断解p所支配的解,并将这些解存入Sp集合中,同时这些解对应的支配计数n值加一。由此更新所有解的支配集合和支配计数值,而其中支配计数值为零的解被认为是第一非支配前沿解,将所有的第一非支配前沿解存入集合F1。同时将所有在F1集合中的解对应的支配集合中的解的支配计数减一,之后再判断支配计数为零的解,作为第二非支配前沿解,并存入集合F2。不断循环上述内容,就完成了快速非支配排序的过程。而通过非支配排序所得到的前沿解集,就是所谓的帕累托前沿解集,其中的第一帕累托前沿解集被认为是当前迭代下的最优解集。NSGA-II算法的另一改进点是采用了拥挤度来保证种群成员之间的多样性。为了评估拥挤度,这里定义了一个拥挤距离的参数Idistance。Idistance代表的是一个解的周围的解密度情况。Idistance的值是通过解i的周围的解所构成的矩形长度计算的,如图5所示,计算公式如下:In the embodiment of the present invention, the preset dual-standard multi-objective collision avoidance algorithm is based on a dual-standard framework to perform a fast non-dominated sorting genetic algorithm (NSGA-II) and a decomposition-based multi-objective evolutionary algorithm (MOEA/D). get combined. Among them, an improvement point of the NSGA-II algorithm is that it adopts the method of fast non-dominated sorting to classify the solution set, which speeds up the running speed of the algorithm. The algorithm sets two parameters as non-dominated sorting, namely, the domination count n p is used to calculate the number of solutions that dominate the solution p , and the domination set Sp is used to store the solutions dominated by the solution p. And the criterion for judging that one solution dominates the other is that if all the objective values of one solution are better than the objective value of the other solution, then the solution dominates the other solution, and in other cases, the two solutions are considered to be non-dominant of each other or dominated state. According to this criterion, the solutions dominated by the solution p are judged, and these solutions are stored in the S p set, and the domination count n corresponding to these solutions is increased by one. The dominating set and dominating count value of all solutions are thereby updated, and the solution in which the dominating count value is zero is regarded as the first non-dominant frontier solution, and all the first non-dominant frontier solutions are stored in the set F 1 . At the same time, the domination counts of the solutions in the dominating set corresponding to the solutions in the F 1 set are reduced by one, and then the solution with the domination count of zero is determined as the second non-dominated frontier solution and stored in the set F 2 . Repeating the above content continuously, the process of fast non-dominated sorting is completed. The frontier solution set obtained by non-dominated sorting is the so-called Pareto frontier solution set, and the first Pareto frontier solution set is considered to be the optimal solution set under the current iteration. Another improvement point of the NSGA-II algorithm is the use of crowding degree to ensure the diversity among population members. In order to evaluate the crowding degree, a crowding distance parameter I distance is defined here. I distance represents the solution density around a solution. The value of I distance is calculated by the length of the rectangle formed by the solutions around the solution i, as shown in Figure 5. The calculation formula is as follows:
其中I[i]distance是第i个解的拥挤距离,是第i+1个解的第m个目标值。此外设在边界处的解的拥挤距离是无穷大的。为了克服不同目标函数之间的量级不同,这里对拥挤距离进行了归一化。在种群的迭代过程中,利用拥挤距离以及排序级别对解进行淘汰更新。也就是说,对于不同非支配解集中的解,更优的解是非支配级别低的解,而对于同一非支配级别的解,更优的解是拥挤度大的解。因此,NSGA-II算法能够得到分布均匀且全面的帕累托最优前沿解集。而MOEA/D不需要对种群进行分级,它的总体种群是由从算法开始到现在每个子问题找到的所有最优解组成。该算法有多种将多目标问题分解为多个标量问题的方法,例如,加权求和法,切比雪夫法和边界交叉法。在本发明实施例中主要使用的是切比雪夫法,在图6中展示了该方法的分解原理。切比雪夫分解公式如下:where I[i] distance is the crowding distance of the i-th solution, is the mth target value of the i+1th solution. Furthermore, the crowding distance of the solution at the boundary is infinite. To overcome the magnitude difference between different objective functions, the crowding distance is normalized here. In the iterative process of the population, the solution is eliminated and updated by using the crowding distance and the ranking level. That is to say, for solutions in different non-dominated solution sets, the better solution is the solution with low non-dominated level, and for the solutions of the same non-dominated level, the better solution is the solution with high crowding degree. Therefore, the NSGA-II algorithm can obtain a uniform and comprehensive Pareto optimal frontier solution set. While MOEA/D does not need to rank the population, its overall population is composed of all the optimal solutions found for each sub-problem from the beginning of the algorithm to the present. The algorithm has various methods for decomposing a multi-objective problem into multiple scalar problems, for example, the weighted sum method, the Chebyshev method, and the boundary crossing method. In the embodiment of the present invention, the Chebyshev method is mainly used, and the decomposition principle of the method is shown in FIG. 6 . The Chebyshev decomposition formula is as follows:
其中gtc(x|λ,z*)中的x是待优化的变量,λ=(λ1,...,λm)是权重向量,是一个参考点,fi(x)是目标函数值,因此对于 总存在一个权重向量λ使得上式的解是一个帕累托最优解x*,并且该解也是原问题的最优最优解,因此通过改变权重向量λ获取所需的最优解集。这样通过比较新产生的解和原解的gtc值,对种群进行更新,完成种群向最优帕累托前沿的移动。总的来说,MOEA/D算法中每个子问题仅利用其相邻子问题的信息进行优化,使得MOEA/D每代的计算复杂度低于NSGA-II,也就意味着MOEA/D算法的计算时间比NSGA-II算法更短。where x in g tc (x|λ, z * ) is the variable to be optimized, λ=(λ 1 , . . . , λ m ) is the weight vector, is a reference point, f i (x) is the objective function value, so for There is always a weight vector λ such that the solution of the above formula is a Pareto optimal solution x * , and this solution is also the optimal optimal solution of the original problem, so the required optimal solution set is obtained by changing the weight vector λ. In this way, by comparing the g tc value of the newly generated solution and the original solution, the population is updated to complete the movement of the population to the optimal Pareto frontier. In general, each sub-problem in the MOEA/D algorithm only uses the information of its adjacent sub-problems for optimization, so that the computational complexity of each generation of MOEA/D is lower than that of NSGA-II, which means that the MOEA/D algorithm has a lower computational complexity than NSGA-II. The computation time is shorter than the NSGA-II algorithm.
在本发明实施例中,考虑到多船避碰的复杂环境可能会使最终的帕累托前沿呈现不规则形状,因此这里通过双标准算法将NSGA-II算法和MOEA/D算法进行结合,使得在加快算法计算效率的同时,又可以保证前沿解集的均匀性,算法具体流程如图7所示。In the embodiment of the present invention, considering that the complex environment of multi-ship collision avoidance may cause the final Pareto front to present an irregular shape, the NSGA-II algorithm and the MOEA/D algorithm are combined here through a double-standard algorithm, so that the While speeding up the computational efficiency of the algorithm, it can also ensure the uniformity of the frontier solution set. The specific flow of the algorithm is shown in Figure 7.
在本发明实施例中,如图8所示,所述步骤102,包括:In this embodiment of the present invention, as shown in FIG. 8 , the step 102 includes:
步骤S801,将所述第一船舶的避碰参数数组集合确定为父代避碰参数数组集合。Step S801, determining the collision avoidance parameter array set of the first ship as the parent collision avoidance parameter array set.
步骤S802,根据所述父代避碰参数数组集合以及快速非支配排序遗传算法,生成子代非支配避碰参数数组集合。Step S802, according to the parent generation collision avoidance parameter array set and the fast non-dominated sorting genetic algorithm, generate a child non-dominated collision avoidance parameter array set.
步骤S803,根据所述父代避碰参数数组集合以及基于分解的多目标进化算法,生成子代优选避碰参数数组集合。Step S803, according to the parent generation collision avoidance parameter array set and the decomposition-based multi-objective evolutionary algorithm, generate a child generation preferred collision avoidance parameter array set.
步骤S804,根据非帕雷托选择,利用所述子代非支配避碰参数数组集合弥补所述子代优选避碰参数数组集合的未探知优解,生成新一代避碰参数数组集合;Step S804, according to the non-Pareto selection, use the offspring non-dominated collision avoidance parameter array set to make up for the undiscovered optimal solution of the offspring preferred collision avoidance parameter array set, and generate a new generation of collision avoidance parameter array set;
步骤S805,判断所述新一代避碰参数数组集合是否满足预设终止条件;若是,则进入步骤S806;若否,则返回至步骤S 802中。Step S805, it is judged whether the new generation of collision avoidance parameter array set satisfies the preset termination condition; if yes, then go to step S806; if not, go back to step S802.
步骤S806,将所述新一代避碰参数数组集合确定为最优避碰参数数组集合。Step S806, determining the new generation of collision avoidance parameter array set as the optimal collision avoidance parameter array set.
在本发明实施例中,在图7中的NPC进化部分采用的是MOEA/D算法,而PC进化部分则借鉴了NSGA-II算法,可以看到,这两部分基本上是并行进行的。从种群的初始化开始,初始种群同时进入到NPC进化和PC进化中,利用两部分的优势互补对种群进行更新迭代。其中PC选择部分实现的是在PC进化产生的种群和NPC进化产生的新个体的混合集合中选择帕累托非支配个体。而NPC选择部分实现的是将PC进化得到的种群与NPC种群进行比较,来弥补NPC种群中未搜索区域的个体以及寻找表现更好的个体。在本文中PC种群中的有前途个体采用拥挤度准则来取代NPC种群中的个体,以保持整个NPC种群的数目不变。PC进化中的种群保持实现的是保证PC种群数目不变。通过非支配级别和拥挤度,可以将一些表现差的解剔除,同时也能保证整个种群的多样性。个体探索部分是整个算法中NPC进化和PC进化彼此信息交换的关键部分。因为基于NPC进化的算法比PC进化具有更高的选择压力,有时可能会集中于帕累托前沿的部分区域,导致整个算法不断对某一特定区域的重复搜索。而个体探索部分则是试图探索PC种群中有前途个体,这些个体可能在NPC进化中被淘汰了,或者没有被探索过。因此在这些个体的周围一定距离r内没有NPC个体,或者存在一个NPC个体。距离r的公式如下:In the embodiment of the present invention, the MOEA/D algorithm is used in the NPC evolution part in FIG. 7 , and the NSGA-II algorithm is used for reference in the PC evolution part. It can be seen that the two parts are basically performed in parallel. Starting from the initialization of the population, the initial population enters into NPC evolution and PC evolution at the same time, and uses the complementary advantages of the two parts to update and iterate the population. The PC selection part realizes the selection of Pareto non-dominated individuals in the mixed set of the population generated by PC evolution and the new individuals generated by NPC evolution. The part of NPC selection is to compare the population evolved by PC with the NPC population to compensate for individuals in the unsearched area of the NPC population and to find individuals with better performance. In this paper, the promising individuals in the PC population adopt the crowding degree criterion to replace the individuals in the NPC population, so as to keep the number of the entire NPC population unchanged. The purpose of population maintenance in PC evolution is to ensure that the number of PC populations remains unchanged. Through the non-dominant level and crowding degree, some poorly performing solutions can be eliminated, while also ensuring the diversity of the entire population. The individual exploration part is the key part of the information exchange between NPC evolution and PC evolution in the whole algorithm. Because the algorithm based on NPC evolution has higher selection pressure than PC evolution, it may sometimes concentrate on part of the Pareto frontier area, resulting in the entire algorithm constantly searching for a specific area repeatedly. The individual exploration part is to try to explore promising individuals in the PC population, these individuals may have been eliminated in the NPC evolution, or have not been explored. Therefore, there is no NPC individual within a certain distance r around these individuals, or there is an NPC individual. The formula for distance r is as follows:
r=(N′/N)·r0 (8)r=(N′/N)·r 0 (8)
其中N是PC种群保持前的种群数目,N是种群的初始大小,r0是小生境半径。由于PC选择的是非帕累托个体,在算法初期N的值会小于N的值,在算法后期N会大于N的值,但不会超过两倍。这代表在算法初期r值比较小,因此会对PC种群进行更多的探索,而在算法后期,由于NPC种群已经比较完备,对PC种群的依赖较小,r值会比较大,减少PC种群探索。本发明r0值设为从距离个体第三最近个体到该个体的长度。where N is the number of populations before the PC population is maintained, N is the initial size of the population, and r0 is the niche radius. Since the PC selects non-Pareto individuals, the value of N will be less than the value of N in the early stage of the algorithm, and the value of N will be greater than the value of N in the later stage of the algorithm, but will not exceed twice. This means that in the initial stage of the algorithm, the r value is relatively small, so the PC population will be explored more, and in the later stage of the algorithm, since the NPC population is relatively complete and the dependence on the PC population is small, the r value will be relatively large, reducing the PC population. explore. The value of r 0 in the present invention is set as the length from the third closest individual to the individual.
在本发明实施例中,考虑到大多数的避碰行为都仅仅是进行一次避让操作,因此在本发明中利用四个参数来代表整个避碰路线,如图9所示。这四个参数分别代表了避碰的时机以及复航的时机,描述了完整的避碰过程。其中,To代表直航时间,即从起始点到避让点的时间;Ca代表在避让点的避让幅度;Ta代表避让时间,即从避让点到复航点的时间;Cr代表复航幅度。考虑到船舶速度、避碰路线的长度以及船舶本身的操纵能力,本发明将这四个参数的范围设为[0,60]。由于本发明采用的是遗传算法,需要对参数进行编码。一般情况下存在两种编码类型,一种是二进制编码,另一种是实数编码。参考参数的范围,如果采用二进制编码,一个染色体可能需要24位,这使得算法的运行压力很大。而采用实数编码,仅仅需要4个参数,同时不用进行解码操作。并且在对比避碰路线的优劣过程中,降低了计算的复杂程度。总上所述,本发明采用的编码方式是实数编码。In the embodiment of the present invention, considering that most collision avoidance behaviors are only one avoidance operation, four parameters are used to represent the entire collision avoidance route in the present invention, as shown in FIG. 9 . These four parameters represent the timing of collision avoidance and the timing of resumption respectively, and describe the complete collision avoidance process. Among them, T o represents the direct flight time, that is, the time from the starting point to the avoidance point ; Ca represents the avoidance range at the avoidance point; Ta represents the avoidance time, that is, the time from the avoidance point to the return point; C r represents the return point. range. Considering the speed of the ship, the length of the collision avoidance route and the maneuverability of the ship itself, the present invention sets the range of these four parameters as [0, 60]. Since the present invention adopts the genetic algorithm, the parameters need to be encoded. In general, there are two encoding types, one is binary encoding and the other is real encoding. With reference to the range of parameters, if binary encoding is used, a chromosome may require 24 bits, which makes the algorithm run under a lot of pressure. However, when using real number coding, only 4 parameters are required, and no decoding operation is required at the same time. And in the process of comparing the pros and cons of collision avoidance routes, the computational complexity is reduced. To sum up, the coding mode adopted in the present invention is real number coding.
在本发明实施例中,由于采用的算法是双标准多目标遗传算法,因此首先需要确定一些基本参数,这些参数如下:In the embodiment of the present invention, since the algorithm used is a double-standard multi-objective genetic algorithm, some basic parameters need to be determined first, and these parameters are as follows:
(1)种群的大小N:用于规定每代种群的个体数目,作为PC进化部分种群保持的标准。种群数目越大,得到所需解的可能性越大,但同时算法的运行时间会越长。在本文中,N值设为50。(1) The size of the population N: used to specify the number of individuals in each generation of the population, as the standard for the preservation of the PC evolution part of the population. The larger the population size, the more likely the desired solution will be obtained, but at the same time the algorithm will take longer to run. In this paper, the value of N is set to 50.
(2)变异概率PM和交叉概率PC:用于判断种群中新个体产生的条件。变异概率PM的大小决定了算法的局部搜索能力,而交叉概率PC的大小决定了算法的全局搜索能力。本文设PM为0.2,PC为0.7。(2) Mutation probability P M and crossover probability P C : conditions for judging the generation of new individuals in the population. The size of the mutation probability PM determines the local search ability of the algorithm, and the size of the crossover probability PC determines the global search ability of the algorithm . In this paper, PM is set to 0.2 and PC to be 0.7.
(3)最大迭代次数T:用于确定算法停止的判断条件。最大迭代次数太小,可能会造成最终得到解集不是最优的,而过大又会影响算法的运行效率。本文经过试验调整,最终设置T为60代。(3) The maximum number of iterations T: used to determine the judgment condition for stopping the algorithm. If the maximum number of iterations is too small, the final solution set may not be optimal, and if it is too large, it will affect the running efficiency of the algorithm. This article has been adjusted through experiments, and the final T is set to 60 generations.
(4)选择解集的上下界Cu和Cd:用于选择最终解的选择区域。通过算法优化得到的是帕累托最优解集,因此通过在解集上面确定最终解的选择区域,利用随机方法选择出最优解。本发明以危险目标作为选择解集的标准。(4) The upper and lower bounds C u and C d of the selection solution set: the selection area for selecting the final solution. The Pareto optimal solution set is obtained through algorithm optimization, so by determining the selection area of the final solution on the solution set, the optimal solution is selected by random method. The present invention takes the dangerous target as the criterion for selecting the solution set.
在将上述参数初始化后,需要对种群进行初始化。由于本发明采用的是避碰路线的参数作为算法的遗传因子,因此很难利用经验来生成初始种群,所以这里采用在各参数允许范围内随机产生种群的方法。在种群初始化后,需要利用算法对种群不断的更新迭代。首先是变异操作,它是一种增强算法局部搜索能力的操作。但是变异操作一般不应执行过多,因为这将导致遗传算法的效率和准确性降低。本发明采用的变异操作是非一致性变异操作,该变异方式与迭代次数相关,在迭代初期变异范围较大,而随着算法的迭代,变异的范围逐渐减小,使得整个种群趋于收敛。设置当前迭代次数为t,父代个体为Ak,新个体为Ak1,参数的范围为[down,up],则变异公式为:After initializing the above parameters, the population needs to be initialized. Since the present invention uses the parameters of the collision avoidance route as the genetic factor of the algorithm, it is difficult to use experience to generate the initial population, so the method of randomly generating the population within the allowable range of each parameter is adopted here. After the population is initialized, it is necessary to use the algorithm to continuously update the population. The first is the mutation operation, which is an operation that enhances the local search ability of the algorithm. However, mutation operations should generally not be performed too much, as this will lead to a decrease in the efficiency and accuracy of the genetic algorithm. The mutation operation adopted in the present invention is a non-consistent mutation operation, and the mutation method is related to the number of iterations, and the mutation range is large in the early stage of the iteration, and with the iteration of the algorithm, the mutation range gradually decreases, so that the entire population tends to converge. Set the current iteration number as t, the parent individual as A k , the new individual as A k1 , and the parameter range as [down, up], the mutation formula is:
其次是交叉操作,该操作又称为基因重组,它增强了算法的全局搜索能力,防止算法陷入局部最优。本文交叉操作采用的是模拟二进制操作,具体公式如下:The second is the crossover operation, which is also called gene recombination, which enhances the global search ability of the algorithm and prevents the algorithm from falling into a local optimum. The crossover operation in this paper adopts the analog binary operation, and the specific formula is as follows:
其中Ak2和Ak3是交叉操作新产生的个体,Am和An是交叉操作的父代个体。而bq是设置的参数,公式如下:Among them, A k2 and A k3 are the newly generated individuals of the crossover operation, and Am and An are the parent individuals of the crossover operation. And b q is the set parameter, the formula is as follows:
虽然通过上述操作可以对种群进行更新迭代,但是对于多目标算法而言其收敛速度一直是一个问题。因此本发明借鉴蚁狮算法的种群更新原理,将之引入到NPC进化的新个体产生部分,来加快算法的收敛速度。蚁狮算法是参考自然界中蚁狮捕食蚂蚁的现象而开发的算法,如图10所示。蚁狮算法存在两个种群,一个是蚁狮种群,用于保留当前迭代中的实际个体,一个是蚂蚁种群,用于更新蚁狮个体。蚂蚁种群是基于蚁狮种群生成的,每一个蚁狮周围都存在一个“陷阱”,在“陷阱”区域内通过随机游走的方法生成蚂蚁个体,之后比较新生成的蚂蚁个体与蚁狮个体的适应度,如果蚂蚁个体的适应度更高,则蚁狮移动到蚂蚁个体的位置,以此不断更新蚁狮,最终得到最优解。Although the population can be updated and iterated through the above operations, its convergence speed has always been a problem for multi-objective algorithms. Therefore, the present invention draws on the population update principle of the ant-lion algorithm and introduces it into the new individual generation part of the NPC evolution to speed up the convergence speed of the algorithm. The ant lion algorithm is an algorithm developed with reference to the phenomenon of ant lions preying on ants in nature, as shown in Figure 10. There are two populations in the antlion algorithm, one is the antlion population, which is used to retain the actual individuals in the current iteration, and the other is the ant population, which is used to update the antlion individuals. The ant population is generated based on the antlion population. There is a "trap" around each antlion. Ant individuals are generated by random walk in the "trap" area, and then the newly generated ant individuals are compared with the antlion individuals. Fitness, if the fitness of the individual ant is higher, the ant lion moves to the position of the individual ant, so as to continuously update the ant lion, and finally obtain the optimal solution.
本发明就是借鉴蚂蚁种群的生成方法,将其补充到双标准多目标遗传算法的更新种群方法中。由于蚁狮周围的“陷阱”范围是随着迭代次数不断进行缩小的,这加快了算法的收敛速度。蚂蚁的随机游走公式如下:The invention draws on the generation method of the ant population and supplements it into the updating population method of the double-standard multi-objective genetic algorithm. Since the "trap" range around the antlion is continuously reduced with the number of iterations, this speeds up the convergence speed of the algorithm. The random walk formula of ants is as follows:
Anti(t)=[0,cumsum(2r(t1)-1),...,cumsum(2r(tn)-1)] (12)Ant i (t)=[0, cumsum(2r(t 1 )-1), ..., cumsum(2r(t n )-1)] (12)
蚂蚁个体的生成公式如下:The generation formula of ant individuals is as follows:
其中是随机选择的蚁狮个体所产生的蚂蚁个体位置,是当前最优蚁狮个体所产生的蚂蚁个体位置,这种操作将全局信息考虑到了个体生成中。in is the position of the individual ant generated by the randomly selected individual antlion, is the position of the ant individual generated by the current optimal ant-lion individual. This operation takes the global information into account in the individual generation.
在本发明实施例中,由于本发明所采用的是多目标算法,不能评价出一个当前最优的个体,因此结合本文的实际条件,将PC进化的非支配解集作为当前最优蚁狮种群,通过将非支配解集传递给NPC进化的产生新个体部分,以产生更贴近帕累托最优前沿的解,如图7中的虚线传递了非支配解集的信息。为了验证这种方法的实际效果,这里通过多目标测试函数比较了加了蚂蚁生成方法的MOEA/D算法和原MOEA/D算法的收敛速度,如图11所示。在图11中,ZDT1和ZDT2都是多目标测试函数,具体公式见表1所示。此外,MOEA/D-M是指进行了改进的算法,从图中可以看到,在同样200代时,经过改进的MOEA/D算法比原算法更贴近期望的帕累托最优前沿。因此加入蚂蚁生成规则的MOEA/D具有更优的收敛效果,能够加强双标准多目标遗传算法的收敛速度,这也是本文设置的迭代次数比较小的原因。In the embodiment of the present invention, since the multi-objective algorithm adopted in the present invention cannot evaluate a currently optimal individual, the non-dominated solution set of PC evolution is taken as the current optimal antlion population based on the actual conditions of this paper. , by passing the non-dominated solution set to the new individual part of NPC evolution to generate a solution that is closer to the Pareto optimal frontier. The dotted line in Figure 7 conveys the information of the non-dominated solution set. In order to verify the actual effect of this method, the convergence speed of the MOEA/D algorithm with the ant generation method and the original MOEA/D algorithm is compared through the multi-objective test function, as shown in Figure 11. In Figure 11, both ZDT1 and ZDT2 are multi-objective test functions, and the specific formulas are shown in Table 1. In addition, MOEA/D-M refers to an improved algorithm. It can be seen from the figure that in the same 200 generations, the improved MOEA/D algorithm is closer to the expected Pareto optimal frontier than the original algorithm. Therefore, MOEA/D with ant generation rules has better convergence effect and can enhance the convergence speed of bi-standard multi-objective genetic algorithm, which is also the reason why the number of iterations set in this paper is relatively small.
表1多目标测试函数Table 1 Multi-objective test functions
在本发明一个优选的实施例中,所述基于分解的多目标进化算法包括路径目标函数以及危险度目标函数。In a preferred embodiment of the present invention, the decomposition-based multi-objective evolutionary algorithm includes a path objective function and a risk objective function.
在本发明实施例中,目标函数是指船舶在海上避碰过程中选择路线的要求。在本文中,船舶避碰的目标主要包括避碰路线的安全性以及经济性。一般来讲,避碰路线的安全性越高,路线的经济性就越差。经济性一般用避碰路线的长度来表示,这里避碰路线是指从起始点到返航点之间的距离,如图9所示,具体公式如下所示:In the embodiment of the present invention, the objective function refers to a requirement for a ship to select a route in the process of avoiding collision at sea. In this paper, the objectives of ship collision avoidance mainly include the safety and economy of the collision avoidance route. Generally speaking, the safer the collision avoidance route, the less economical the route. The economy is generally expressed by the length of the collision avoidance route. Here, the collision avoidance route refers to the distance from the starting point to the return point, as shown in Figure 9. The specific formula is as follows:
其中(x,y)是船舶的位置,k是船舶在每个时刻位置的序号。船舶航行的危险度越小,避碰路线的长度就越长,因此为了构成帕累托条件,这里将船舶航行的安全性用避碰航行的危险度代表。避碰路线的危险度通过公式(5)计算得到,危险度目标的公式如下:where (x, y) is the position of the ship, and k is the serial number of the ship's position at each moment. The smaller the risk of the ship's navigation, the longer the length of the collision avoidance route. Therefore, in order to form the Pareto condition, the safety of the ship's navigation is represented by the risk of collision avoidance. The risk of the collision avoidance route is calculated by formula (5). The formula of the risk target is as follows:
Frisk=max{Riska,Riskr,Risko} (15)F risk = max{Risk a , Risk r , Risk o } (15)
为了能够更好的表示避碰路线的危险性,本文考虑了船舶在避让点、复航点和返航点处的危险度,取其中最大的值作为本文危险度目标函数。这样船舶避碰航行的危险度越大,船舶航行的路线长度就会越短,两个目标函数之间彼此相驳,构成了帕累托前沿形成的条件。本文选择最终解的标准是依据Frisk目标进行选择的,选择范围设置为[0.2,0.5)。In order to better represent the risk of the collision avoidance route, this paper considers the risk degree of the ship at the avoidance point, the return point and the return point, and takes the maximum value as the risk degree objective function of this paper. In this way, the greater the risk of the ship's collision avoidance navigation, the shorter the route length of the ship's navigation, and the two objective functions are mutually opposed, which constitutes the conditions for the formation of the Pareto front. The criterion for selecting the final solution in this paper is based on the F risk objective, and the selection range is set to [0.2, 0.5).
步骤S103,根据所述最优避碰参数数组集合,确定所述第一船舶的避碰路线。Step S103: Determine the collision avoidance route of the first ship according to the optimal collision avoidance parameter array set.
本发明实施例提供的船舶避碰路线确定方法,以避碰参数数组集合量化避碰路线,通过基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法得到的双标准多目标避碰算法,确定最优避碰参数数组集合,以根据所述最优避碰参数数组集合,确定避碰路线;本发明考虑到多目标会遇环境的复杂可能会使最终的帕累托前沿呈现不规则形状,采用结合帕累托进化和非帕累托进化的双标准多目标遗传算法求解船舶避碰路线,通过改进非帕累托进化种群的更新方式,加快种群的收敛速度以及增加种群的多样性,使得在加快算法计算效率的同时,又可以保证前沿解集的均匀性;同时,通过仿真结果的分析,证明了本发明能够在各会遇场景下求解出既安全又经济的路径。In the method for determining a ship collision avoidance route provided by the embodiment of the present invention, the collision avoidance route is quantified by a set of collision avoidance parameter arrays. The collision avoidance algorithm determines the optimal collision avoidance parameter array set, so as to determine the collision avoidance route according to the optimal collision avoidance parameter array set; the present invention takes into account the complexity of the multi-target encounter environment and may cause the final Pareto frontier It presents an irregular shape, and uses a double-standard multi-objective genetic algorithm combining Pareto evolution and non-Pareto evolution to solve the collision avoidance route of ships. By improving the update method of non-Pareto evolution population, the convergence speed of the population is accelerated and the population is increased. The diversity of the algorithm can speed up the calculation efficiency of the algorithm while ensuring the uniformity of the frontier solution set; at the same time, through the analysis of the simulation results, it is proved that the present invention can solve the safe and economical path in each meeting scenario .
图12为本发明实施例提供的另一种船舶避碰路线确定方法的实现流程图,为了便于说明,仅示出与本发明实施例相关的部分,其与上述实施例类似,不同之处在于,在本发明实施例中,所述步骤101,包括:FIG. 12 is an implementation flowchart of another method for determining a ship collision avoidance route provided by an embodiment of the present invention. For convenience of description, only the part related to the embodiment of the present invention is shown, which is similar to the above-mentioned embodiment, and the difference is that , in this embodiment of the present invention, the step 101 includes:
步骤1201,当第一船舶、第二船舶以及第三船舶相互之间的碰撞危险度均大于预设阈值时,分别获取所述第一船舶、第二船舶以及第三船舶的避碰参数数组集合。Step 1201, when the collision risk between the first ship, the second ship and the third ship is all greater than a preset threshold, obtain the collision avoidance parameter array set of the first ship, the second ship and the third ship respectively .
在本发明实施例中,第一船舶、第二船舶以及第三船舶相互之间的碰撞危险度可参考上述第一船舶与第二船舶之间的碰撞危险度确定方法进行计算,具体危险度阈值可根据实际情况进行设定,在此不做具体赘述以及限定。In the embodiment of the present invention, the collision risk between the first ship, the second ship and the third ship may be calculated with reference to the above-mentioned method for determining the collision risk between the first ship and the second ship, and the specific risk threshold is It can be set according to the actual situation, and details and limitations are not described here.
所述步骤102,包括:The step 102 includes:
步骤1202,根据所述第一船舶、第二船舶以及第三船舶的避碰参数数组集合以及预设的双标准多目标避碰算法,分别确定所述第一船舶、第二船舶以及第三船舶的最优避碰参数数组集合。Step 1202, according to the collision avoidance parameter array set of the first ship, the second ship and the third ship and the preset dual-standard multi-target collision avoidance algorithm, respectively determine the first ship, the second ship and the third ship The optimal collision avoidance parameter array collection of .
在本发明实施例中,所述第一船舶、第二船舶以及第三船舶的最优避碰参数数组集合确定方法可参考上述第一船舶的最优避碰参数数组集合确定方法,在此不做具体赘述。In the embodiment of the present invention, for the method for determining the optimal collision avoidance parameter array set of the first ship, the second ship and the third ship, reference may be made to the above-mentioned method for determining the optimal collision avoidance parameter array set for the first ship. Be specific.
所述步骤103,包括:The step 103 includes:
步骤1203,根据所述第一船舶、第二船舶以及第三船舶的最优避碰参数数组集合,分别确定所述第一船舶、第二船舶以及第三船舶的避碰路线。Step 1203: Determine the collision avoidance routes of the first ship, the second ship and the third ship respectively according to the optimal collision avoidance parameter array sets of the first ship, the second ship and the third ship.
步骤1204,根据所述第一船舶、第二船舶以及第三船舶的避碰路线以及分步协同避碰策略,确定唯一避让船舶,以使所述避让船舶按照对应避碰路线进行航行。Step 1204: Determine a unique avoidance vessel according to the collision avoidance routes of the first vessel, the second vessel and the third vessel and the step-by-step collaborative collision avoidance strategy, so that the avoidance vessel navigates according to the corresponding collision avoidance route.
在本发明实施例中,虽然根据预设的双标准多目标避碰算法已经可以进行规划船舶的避碰路线,但是这样的规划并未考虑到其他船舶可能的避碰行为。因此本发明借鉴分布式局部搜索算法的思想,提出了一种分步协同避碰策略,如图13所示。在图13中可以看到,分步协同策略大致上可以分为四步。第一步是通过船上的通讯设备进行信息传递。这些信息包括船舶的航速,航向以及避碰意向。第二步是根据获取的其他船舶的信息,每艘船舶进行避碰规划。在进行算法规划过程中,每艘船舶利用碰撞危险度模型将其他船舶对该船的影响考虑进去。在这步完成后,每艘船就都有了自己的避碰意图。在第三步中,本文根据避碰路线的安全度和平滑度,提出了一个改进度指标ImpRS,利用这个指标比较各船的避碰路线,可分析出哪艘船进行避让有更大的益处。改进度指标ImpRS公式如下:In the embodiment of the present invention, although the collision avoidance route of the ship can be planned according to the preset dual-standard multi-objective collision avoidance algorithm, the possible collision avoidance behavior of other ships is not considered in such planning. Therefore, the present invention draws on the idea of a distributed local search algorithm, and proposes a step-by-step collaborative collision avoidance strategy, as shown in FIG. 13 . As can be seen in Figure 13, the step-by-step collaborative strategy can be roughly divided into four steps. The first step is the transfer of information through the communication equipment on board. This information includes the ship's speed, heading and collision avoidance intentions. The second step is to conduct collision avoidance planning for each ship based on the information obtained from other ships. In the algorithmic planning process, each ship uses a collision risk model to take into account the impact of other ships on the ship. After this step is completed, each ship has its own collision avoidance intention. In the third step, according to the safety and smoothness of the collision avoidance route, this paper proposes an improvement index ImpRS. Using this index to compare the collision avoidance routes of each ship, it can be analyzed which ship has greater benefits in avoiding collisions. . The formula of the improvement index ImpRS is as follows:
其中和分别是船舶原始航行路线以及船舶避让路线与第i艘目标船之间的碰撞危险,该碰撞危险是指在避让点、复航点和返航点三处中的最大危险度,n是目标船舶的数目。如果船舶接近碰撞点,船舶需要尽快进行避让。基于这个情况,本文引入时间因素T,船舶越接近避让点,T的值就越大,从而增大ImpRS的值,提高船舶进行避让的可能性,公式如下:in and are the collision risk between the original navigation route of the ship and the avoidance route of the ship and the i-th target ship. The collision risk refers to the maximum risk at the avoidance point, the return point and the return point, and n is the target ship's number. If the ship is approaching the collision point, the ship needs to evade as soon as possible. Based on this situation, the time factor T is introduced in this paper. The closer the ship is to the avoidance point, the larger the value of T will be, thereby increasing the value of ImpRS and improving the possibility of the ship to avoid. The formula is as follows:
T=exp(-α(tf-Kt)) (17)T=exp(-α(t f -Kt)) (17)
其中tf是船舶依据原始航线航行发生碰撞的时间,本文设其为所有发生碰撞的时间中的最小值,t是时间步长,K是第K代循环。α是常数,通过调整α的值,确保Time不会过早的影响ImpRS的值。本文依据碰撞场景和船舶本身的操纵性能,将α设为0.3,也就是说,对于航速为15kn的船舶,当tf小于10分钟,T才会对ImpRS有显著的影响。因此公式(16)中考虑了船舶避让的危险减少量,需要避让的紧迫度以及避让路线的平滑度三个因素,每艘船舶通过计算ImpRS的值,比较彼此避让后的优势,选择ImpRS值最大的船舶作为为第四步中的避让船。除了避让船,其他船舶在本次时间步长中将保持原航行意图进行航行。如果其他船舶间仍有碰撞危险,则进入下次循环中。在下次循环中,避让船不进行避让路线的规划,仅需提供避让意图作为其他船舶避让规划的参考,以此不断循环直至所有船舶都能安全航行。本发明设置一次循环的时间步长t为3分钟。where t f is the time when the ship collides according to the original route, which is set as the minimum value among all the collision times in this paper, t is the time step, and K is the K-th generation cycle. α is a constant. By adjusting the value of α, it is ensured that Time does not affect the value of ImpRS prematurely. In this paper, according to the collision scenario and the maneuverability of the ship itself, α is set to 0.3, that is, for a ship with a speed of 15kn, when t f is less than 10 minutes, T has a significant impact on ImpRS. Therefore, three factors are considered in formula (16): the danger reduction of the ship's avoidance, the urgency of the need to avoid and the smoothness of the avoidance route. Each ship calculates the value of ImpRS, compares the advantages of each other after avoiding, and selects the largest ImpRS value. The ship is used as the avoidance ship in the fourth step. Except for the avoidance ship, other ships will maintain the original sailing intention to sail in this time step. If there is still a risk of collision between other ships, proceed to the next cycle. In the next cycle, the avoidance ship does not plan the avoidance route, and only needs to provide the avoidance intention as a reference for the avoidance planning of other ships, so as to continue the cycle until all ships can sail safely. The present invention sets the time step t of one cycle to be 3 minutes.
在本发明实施例中,如图14所示,所述步骤S1204,包括:In this embodiment of the present invention, as shown in FIG. 14 , the step S1204 includes:
步骤S1401,根据所述第一船舶、第二船舶以及第三船舶的避碰路线以及预设的改进度指标函数,确定所述第一船舶、第二船舶以及第三船舶的改进度指标值。Step S1401: Determine the improvement index values of the first, second and third ships according to the collision avoidance routes of the first, second and third ships and a preset improvement index function.
步骤S1402,根据所述第一船舶、第二船舶以及第三船舶的改进度指标值,将改进度指标值最大的船舶确定为唯一避让船舶。Step S1402, according to the improvement degree index values of the first ship, the second ship and the third ship, determine the ship with the largest improvement degree index value as the only avoidance ship.
本发明实施例提供的船舶避碰路线确定方法,通过双标准框架将NSGA-II和MOEA/D两种算法结合,互补了两类算法的优势,以求算法更适合复杂场景下的船舶避碰路线规划;进而对避碰路线进行量化,同时研究了双标准多目标遗传算法的基本参数和基本操作,并且在充分考虑避碰过程的安全性和经济性下,设定了算法的目标函数;最后提出了分步协同避碰的策略,同时在考虑避碰的优势以及避碰的紧迫性下,提出了改进度指标,使得整个避碰规划过程,既考虑了COLREGS规则,同时也兼顾了其他船舶可能的避碰行为。The method for determining a ship collision avoidance route provided by the embodiment of the present invention combines two algorithms, NSGA-II and MOEA/D, through a dual-standard framework, and complements the advantages of the two types of algorithms, so that the algorithm is more suitable for ship collision avoidance in complex scenarios. Route planning; then quantify the collision avoidance route, and study the basic parameters and basic operations of the dual-standard multi-objective genetic algorithm, and set the algorithm's objective function under the full consideration of the safety and economy of the collision avoidance process; Finally, a step-by-step collaborative collision avoidance strategy is proposed. At the same time, considering the advantages of collision avoidance and the urgency of collision avoidance, an improvement index is proposed, so that the entire collision avoidance planning process not only considers COLREGS rules, but also takes into account other Possible collision avoidance behavior of the vessel.
仿真及结果分析:Simulation and result analysis:
为了验证避碰算法的有效性,本发明利用MATLAB软件进行编码实现,在图15中就是基于船舶智能避碰算法的实验仿真GUI界面。搭建仿真平台是为了对算法实验验证结果有更好的可视化效果,下面将对GUI界面进行简单的介绍,从图15中可以看到,整个GUI界面大致可以分为六个部分。In order to verify the effectiveness of the collision avoidance algorithm, the present invention uses MATLAB software for coding and implementation, and Fig. 15 is the experimental simulation GUI interface based on the ship's intelligent collision avoidance algorithm. The purpose of building the simulation platform is to have a better visualization effect of the algorithm experiment verification results. The GUI interface will be briefly introduced below. As can be seen from Figure 15, the entire GUI interface can be roughly divided into six parts.
第一部分是图形显示部分,此处主要显示船舶航行的环境、船舶避碰路线以及算法迭代过程中解集的分布情况;第二部分是图形显示部分上面的数据显示区域,此处是在算法运行时显示各船舶的航行数据,如航速、船舶长度、航向以及随迭代时间而变的船舶位置,除此之外还有算法进行的状态,如当前循环代数、算法的迭代次数、各船的避碰参数以及各船避碰轨迹的改进度的值等;第三部分是Map information部分,此处是设置船舶航行区域的经纬度范围,然后利用m_map函数将地图在第一部分进行展示;第四部分是Algorithm部分,这部分设置了避碰算法的参数,包括种群大小,最大迭代次数、交叉和变异概率以及最终解的选择范围;第五部分是Import data部分,此处导入所有船舶的基本参数,作为算法开始的初始参数;第六部分是是Mode selection部分,进行选择两船和多船避碰模式,此两种模型唯一的区别就是两船情况下不需要分步协同策略进行避碰规划。除了这六部分外,还有一些按钮用于结果展示,如船舶避碰规划后的路线、船舶彼此间距离以及动态避碰航行展示。The first part is the graphic display part, which mainly displays the ship's navigation environment, the ship's collision avoidance route and the distribution of the solution set in the algorithm iteration process; the second part is the data display area above the graphic display part, where the algorithm is running The navigation data of each ship, such as speed, ship length, heading, and the position of the ship that changes with the iteration time, are displayed at the same time, in addition to the status of the algorithm, such as the current loop algebra, the number of iterations of the algorithm, the avoidance of each ship The collision parameters and the value of the improvement degree of each ship's collision avoidance trajectory, etc.; the third part is the Map information part, where the latitude and longitude range of the ship's navigation area is set, and then the m_map function is used to display the map in the first part; the fourth part is The Algorithm part, this part sets the parameters of the collision avoidance algorithm, including the population size, the maximum number of iterations, the crossover and mutation probability, and the selection range of the final solution; the fifth part is the Import data part, where the basic parameters of all ships are imported as The initial parameters at the beginning of the algorithm; the sixth part is the Mode selection part, which selects two-ship and multi-ship collision avoidance modes. The only difference between the two models is that there is no need for a step-by-step collaborative strategy for collision avoidance planning in the case of two ships. In addition to these six parts, there are also some buttons for displaying the results, such as the route after the ship collision avoidance planning, the distance between the ships and the dynamic collision avoidance navigation display.
两船避碰仿真及结果分析:Collision avoidance simulation and result analysis of two ships:
两船避碰的复杂性弱于多船避碰,其本身可依据COLREGS规则进行避碰行为的选择。因此两船避碰规划不需要考虑其他船舶的避碰行为,船舶间的避碰仅需遵守COLREGS规则进行规划。而一旦其他船舶未按照避碰行为进行规避,则此时本船进行紧急避让行为。此处主要针对船舶会遇的三种局面进行仿真分析,具体内容如下:The complexity of two-ship collision avoidance is weaker than that of multi-ship collision avoidance, and the choice of collision avoidance behavior itself can be performed according to the COLREGS rules. Therefore, the collision avoidance planning of two ships does not need to consider the collision avoidance behavior of other ships, and the collision avoidance between ships only needs to be planned in accordance with the COLREGS rules. However, once other ships fail to avoid collisions, the ship will perform emergency avoidance behaviors. Here, the simulation analysis is mainly carried out for the three situations encountered by ships, the specific contents are as follows:
(1)交叉会遇局面。设置本船的航向为0°,航速为15kn,船舶长度为250m,目标船舶的航向为300°,航速为7.5kn,船舶长度为250m。本船经过避碰算法规划后的避碰路线如图16所示,其中圆圈所围区域是四分数船舶领域,实线为本船的避碰路线,虚线是目标船航行路线和本船的原本航行路线,点线是本船经过算法规划后的所有帕累托前沿解集所代表的避碰路线。可以看到本船遵守COLREGS规则进行避让目标船舶,两艘船舶的船舶领域都没有被侵入,本船安全通过目标船舶周围。在表2中展示了两船的船舶领域参数,可以看到本船的航速大于目标船,因此它的船舶领域大于目标船的船舶领域。同时最终解是从帕累托解集中按需求范围进行随机选择。(1) Cross encounter situation. Set the own ship's heading as 0°, speed as 15kn, ship length as 250m, target ship's heading as 300°, speed as 7.5kn, and ship length as 250m. The collision avoidance route of the ship after the collision avoidance algorithm planning is shown in Figure 16. The area surrounded by the circle is the four-point ship area, the solid line is the collision avoidance route of the ship, and the dotted line is the navigation route of the target ship and the original navigation route of the ship. The dotted line is the collision avoidance route represented by all the Pareto frontier solutions of the ship after the algorithm planning. It can be seen that the ship complies with the COLREGS rules to avoid the target ship. The ship area of the two ships has not been invaded, and the ship passes around the target ship safely. The ship field parameters of the two ships are shown in Table 2. It can be seen that the speed of the own ship is greater than that of the target ship, so its ship field is larger than that of the target ship. At the same time, the final solution is randomly selected from the Pareto solution set according to the demand range.
表2交叉局面船舶避碰参数表Table 2 Ship collision avoidance parameter table in cross situation
(2)对遇会遇局面。设置本船的航向为0°,航速为15kn,船舶长度为250m,目标船舶的航向为172°,航速为15kn,船舶长度为250m。此时,本船应该向右舷转向完成避碰,算法规划后的具体避碰路线如图17所示。在图中可以看到两艘船舶的船舶领域都没有被对方侵入,本船安全驶过目标船。并且本船避碰行为符合COLREGS规则的规定。此处并未将目标船的行为考虑到本船的避碰过程中,因为无论目标船的行为如何,本船都需进行避让操作,所以此处以目标船舶不改变航向作为本船的避碰规划参考。在表3中展示了船舶避碰的参数,可以看到,两船的船舶领域大小一致。(2) Encounter encounter situation. Set the own ship's heading as 0°, speed as 15kn, ship length as 250m, target ship's heading as 172°, speed as 15kn, and ship length as 250m. At this time, the ship should turn to starboard to avoid collision. The specific collision avoidance route planned by the algorithm is shown in Figure 17. In the picture, it can be seen that the ship areas of the two ships were not invaded by the other, and the ship passed the target ship safely. And the ship's collision avoidance behavior complies with the COLREGS rules. Here, the behavior of the target ship is not considered in the collision avoidance process of the own ship, because regardless of the behavior of the target ship, the own ship needs to perform the avoidance operation, so here the target ship does not change its course as the reference for the collision avoidance planning of the own ship. The parameters of ship collision avoidance are shown in Table 3. It can be seen that the size of the ship field of the two ships is the same.
表3对遇局面船舶避碰参数表Table 3 Ship collision avoidance parameter table in confrontation situation
(3)追越会遇局面。设置本船的航向为330°,航速为15kn,船舶长度为250m,目标船舶的航向为0°,航速为7.5kn,船舶长度为250m。此时,两船的状态属于本船追越目标船,两船呈小角度追越状态,依据COLREGS规则,本船需要向右舷转向,算法规划后的具体避碰路线如图18所示。从图中可以看到,两船之间没有碰撞发生,同时两船的船舶领域也没有被侵入。此外本船的避碰行为也是遵守避碰规则的。开始时,本船位于目标船的右后方,由于本船的航速大于目标船,最终本船从目标船的正前方驶过,航行的路线符合安全性和经济性的要求。在表4可以看到,因本船的航速更快,导致船舶领域的范围更广。(3) Chasing more will meet the situation. Set the own ship's heading as 330°, speed as 15kn, ship length as 250m, target ship's heading as 0°, speed as 7.5kn, and ship length as 250m. At this time, the state of the two ships is that the ship is overtaking the target ship, and the two ships are chasing at a small angle. According to the COLREGS rule, the ship needs to turn to starboard. The specific collision avoidance route planned by the algorithm is shown in Figure 18. As can be seen from the picture, there is no collision between the two ships, and the ship area of the two ships has not been invaded. In addition, the collision avoidance behavior of the ship is also in compliance with the collision avoidance rules. At the beginning, the ship is located at the right rear of the target ship. Since the speed of the ship is higher than that of the target ship, finally the ship passes directly in front of the target ship, and the sailing route meets the requirements of safety and economy. As can be seen in Table 4, the scope of the ship field is wider due to the faster speed of the ship.
表4对遇局面船舶避碰参数表Table 4 Ship collision avoidance parameter table in encounter situations
多船避碰仿真及结果分析:Multi-ship collision avoidance simulation and result analysis:
本发明设计了三种不同的仿真实验:多船会遇避碰仿真和存在静态障碍多船避碰仿真,分别针对不同场景下验证避碰算法求解路线问题的有效性和可靠性,并对仿真结果进行分析说明。The present invention designs three different simulation experiments: multi-ship encounter collision avoidance simulation and multi-ship collision avoidance simulation with static obstacles, respectively verifying the validity and reliability of the collision avoidance algorithm for solving route problems in different scenarios, and evaluating the simulation results. The results are analyzed and explained.
本发明设计两个避碰场景:存在交叉以及对遇会遇局面的场景和存在交叉以及追越会遇局面的场景,通过这两个场景验证多船避碰过程中遵守COLREGS规则的情况以及船舶避碰航行的安全性。The present invention designs two collision avoidance scenarios: a scenario where there is an intersection and a confrontation encounter, and a scenario where there is an intersection and a chasing encounter. Through these two scenarios, it is verified that the multi-ship collision avoidance process complies with the COLREGS rules and the ships Safety of collision avoidance navigation.
(1)交叉和对遇会遇局面场景仿真及分析(1) Scenario simulation and analysis of crossover and encounter encounter situations
该场景的具体情况如图19所示,各船舶的基本参数如表5所示。从图19的右图中可以看到,S1船是向右舷转向避碰的,依据表5中的危险度信息,可以判断出S1是依据S3船做出的避碰行为,符合COLREGS规则。同理,其他船舶的行为也符合COLREGS规则的规定。The specific situation of this scenario is shown in Figure 19, and the basic parameters of each ship are shown in Table 5. It can be seen from the right picture of Fig. 19 that ship S 1 turned to starboard to avoid collision. According to the risk information in Table 5, it can be judged that ship S 1 is based on the collision avoidance behavior of ship S 3 , which is in line with COLREGS rule. Similarly, the behavior of other ships also complies with the provisions of the COLREGS Code.
表5各船舶的基本参数信息Table 5 Basic parameter information of each ship
在图20中列出了各船在各时刻的航行状态,可以看到每艘船舶周围都存在着各自的船舶领域。在各时刻,每艘船舶都未侵入其他船舶的船舶领域中,各船舶都是安全避让航行。在表6中展示了各代循环中船舶改进度函数的比较结果,可以看到在首次循环中,S1船的改进函数最大,它的避让数据在这一行后面展示,之后在第二次循环中是S3船,最后是S2船,由于其它三艘船的避让行动导致S4船在第四次循环中不存在碰撞危险,因此S4船是直航航行的,至此所有船舶都是安全航行,整个算法运行停止。Figure 20 lists the sailing states of each ship at each moment, and it can be seen that each ship has its own ship domain around it. At each moment, each ship has not intruded into the ship field of other ships, and each ship is safe to avoid sailing. Table 6 shows the comparison results of the ship improvement function in each generation cycle. It can be seen that in the first cycle, the improvement function of the S 1 ship is the largest, and its avoidance data is displayed after this row, and then in the second cycle. In the middle is the S 3 ship, and the last is the S 2 ship. Due to the evasive actions of the other three ships, the S 4 ship does not have the danger of collision in the fourth cycle, so the S 4 ship sails straight, so far all ships are Safe sailing, the entire algorithm operation stops.
表6每次循环中ImpRS值Table 6 ImpRS values in each cycle
(2)交叉和追越会遇局面场景仿真及分析(2) Scenario simulation and analysis of crossing and overtaking encounter situations
该场景的具体情况如图21所示,S1和S3两船呈追越状态,其他船舶之间是交叉会遇状态。从图21的右图中可以看到,S1和两船进行了避让操作,S3和S4则保持原航向继续航行。并且所有船舶的避让行为符合COLREGS规则的规定。在表7中展示了各船舶的基本参数,可以看到,不同船速的船舶的船舶领域大小不同。此外,对于S3船危险最大的是S1船,由于S1船的避让操作,使得S3船不存在碰撞危险,因此S3船舶直航航行,同理S4船也是如此。The specific situation of this scenario is shown in Figure 21. The two ships S 1 and S 3 are in a state of overtaking, and the other ships are in a state of crossing and meeting. It can be seen from the right picture of Figure 21 that S 1 and the two ships performed evasive maneuvers, while S 3 and S 4 kept the original course and continued to sail. And the avoidance behavior of all ships complies with the provisions of COLREGS rules. The basic parameters of each ship are shown in Table 7. It can be seen that the size of the ship field of ships with different ship speeds is different. In addition, the most dangerous for the S3 ship is the S1 ship. Due to the avoidance operation of the S1 ship, the S3 ship does not have the risk of collision, so the S3 ship sails directly, and the same is true for the S4 ship .
表7各船舶的基本参数信息Table 7 Basic parameter information of each ship
在表8中列出了各循环阶段的船舶的ImpRS值,可以看到,在第一次循环阶段,由于S1船和S4船之间的碰撞危险,S4船进行了避碰路线规划,同时依据COLREGS规则的规定,判断S3船属于直航船,无需进行避碰规划,因此设置S3船的ImpRS为0。在第二次循环阶段,由于上次循环中S1船被选为避让船舶,因此本次循环中,只有S2船进行避碰规划,规划结果如表8所示。在图22中展示了所有船舶的各时刻的航行状况。可以看到在900s时,S4船和S3船彼此从对方的船舶领域边缘处通过,符合船舶领域不受侵入的标准。在1400s时,S1船超过S3船,完成了追越避碰过程,整个过程中,所有船舶都是安全航行。The ImpRS values of ships in each cycle stage are listed in Table 8. It can be seen that in the first cycle stage, due to the collision risk between ship S 1 and ship S 4 , ship S 4 carried out collision avoidance route planning , and at the same time, according to the COLREGS rules, it is judged that the S 3 ship is a direct ship, and no collision avoidance planning is required, so the ImpRS of the S 3 ship is set to 0. In the second cycle stage, since ship S 1 was selected as the avoidance ship in the previous cycle, only ship S 2 performs collision avoidance planning in this cycle, and the planning results are shown in Table 8. Fig. 22 shows the sailing conditions of all ships at various times. It can be seen that at 900s, the S 4 ships and the S 3 ships passed each other at the edge of each other's ship field, which met the standard of no intrusion in the ship field. At 1400s, the S 1 ship surpassed the S 3 ship and completed the process of overtaking and avoiding collision. During the whole process, all ships sailed safely.
表8每次循环中ImpRS值Table 8 ImpRS values in each cycle
存在静态障碍物下的多船会遇局面仿真及分析:Simulation and analysis of multi-ship encounter situations with static obstacles:
该场景具体情况如图23所示,三艘船舶彼此之间存在碰撞风险,并且船舶周围存在着岛屿这类静态障碍物。可以看到,三艘船在未改变航向时,不会与周围静态障碍发生碰撞,但由于船舶需要避让其他船舶,因此此处需要考虑静态障碍物对避碰路线规划的影响。在图23的右图中展示了船舶的避让路径,可以看到,船舶在遵守COLREGS规则条件下,进行避让航行,其中S1船保持直航,S2和S3船进行避让操作。在表9中列出了各船的基本参数,可以看到,各船之间都存在碰撞危险。The specific situation of this scene is shown in Figure 23. There is a risk of collision between the three ships, and there are static obstacles such as islands around the ships. It can be seen that when the three ships do not change their course, they will not collide with the surrounding static obstacles, but since the ships need to avoid other ships, the impact of static obstacles on the collision avoidance route planning needs to be considered here. In the right picture of Figure 23, the avoidance path of the ship is shown. It can be seen that under the condition of complying with COLREGS rules, the ship conducts the avoidance sailing, among which the S1 ship keeps sailing straight, and the S2 and S3 ships conduct the avoidance operation. The basic parameters of each ship are listed in Table 9. It can be seen that there is a collision risk between each ship.
表9各船舶的基本参数信息Table 9 Basic parameter information of each ship
在表10中列出了各船的ImpRS值。从表中可以看到,各船在第一次循环过程中都进行了避碰规划,其中以S3船的ImpRS值最大,作为本次循环的避让船。在第二次循环中,由于船的避让,此时依据COLREGS规则S1船无需进行避让操作,所以此次循环中S2船作为本次循环的避让船。从图24中可以看到各时刻船舶的航行状态,每艘船舶都避让开了与自己有冲突的船舶,各船舶都安全航行。The ImpRS values for each vessel are listed in Table 10. It can be seen from the table that each ship has carried out collision avoidance planning during the first cycle, among which the S3 ship has the largest ImpRS value and is used as the avoidance ship in this cycle. In the second cycle, due to the avoidance of the ship, the ship S 1 does not need to perform the avoidance operation at this time according to the COLREGS rule, so the ship S 2 is used as the avoidance ship of this cycle in this cycle. From Fig. 24, we can see the navigation status of the ships at each moment. Each ship avoids the ships in conflict with itself, and each ship sails safely.
表10每次循环中ImpRS值Table 10 ImpRS values in each cycle
综上,本发明从两船会遇和多船会遇两方面对所提出的双标准多目标避碰算法进行仿真验证,证明了算法的可靠性和有效性。首先,介绍了避碰算法的MATLAB仿真平台,利用MATLAB软件良好的图形化功能展示算法的效果;然后,针对两船会遇局面进行仿真测试,通过考虑船舶会遇的三种局面,分析算法所规划的避碰路线是否遵守COLREGS规则,从最终结果中可以看到,本算法能够得到符合安全性和经济性的优化目标的避碰路线;最后,针对多船会遇局面,设计了3种碰撞场景,分别验证了多船之间的避碰规划和存在静态障碍的避碰规划两个方面的算法的有效性和可靠性,从最终结果中可以看到,本发明提出的算法都能得到良好的结果,说明本发明所提出的算法是合理有效的。In conclusion, the present invention verifies the proposed dual-standard multi-target collision avoidance algorithm from two aspects of two-ship encounter and multi-vessel encounter, which proves the reliability and effectiveness of the algorithm. Firstly, the MATLAB simulation platform of collision avoidance algorithm is introduced, and the good graphical function of MATLAB software is used to display the effect of the algorithm; then, the simulation test is carried out for the encounter situation between two ships. Whether the planned collision avoidance route complies with the COLREGS rules, it can be seen from the final results that this algorithm can obtain a collision avoidance route that meets the optimization objectives of safety and economy; finally, for the multi-ship encounter situation, three types of collisions are designed scenarios, respectively verify the validity and reliability of the algorithms in the collision avoidance planning between multiple ships and the collision avoidance planning with static obstacles. It can be seen from the final results that the algorithm proposed by the present invention can achieve good results. The results show that the algorithm proposed by the present invention is reasonable and effective.
图25为本发明实施例提供的一种船舶避碰路线确定装置的结构示意图,为了便于说明,仅示出与本发明实施例相关的部分。FIG. 25 is a schematic structural diagram of a device for determining a ship collision avoidance route provided by an embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
在本发明实施例中,所述船舶避碰路线确定装置,包括:In an embodiment of the present invention, the device for determining a collision avoidance route for a ship includes:
避碰参数数组集合获取单元2501,用于当第一船舶与第二船舶之间的碰撞危险度大于预设阈值时,获取所述第一船舶的避碰参数数组集合。The collision avoidance parameter array set
在本发明实施例中,所述避碰参数数组集合是由多个避碰参数对应的数值范围生成的,所述避碰参数数组集合包括多个避碰参数数组,所述避碰参数数组包括各避碰参数从所述避碰参数对应的数值范围内随机确定的数值;所述避碰参数包括直航时间、在避让点的避让幅度、避让时间以及复航幅度。In this embodiment of the present invention, the collision avoidance parameter array set is generated from a range of values corresponding to a plurality of collision avoidance parameters, the collision avoidance parameter array set includes a plurality of collision avoidance parameter arrays, and the collision avoidance parameter array includes Each collision avoidance parameter is a value randomly determined from the value range corresponding to the collision avoidance parameter; the collision avoidance parameter includes the straight flight time, the avoidance range at the avoidance point, the avoidance time and the return range.
在本发明实施例中,第一船舶与第二船舶之间的碰撞危险度可以是由第一船舶(本船)与第二船舶(目标船舶)之间的最小会遇距离DCPA和到达最近会与距离的时间TCPA进行表示;可以是由船舶领域、第一船舶与第二船舶的相关运动参数基于危险度模型计算得到,具体见上述阐述,在此不再赘述。In this embodiment of the present invention, the collision risk between the first ship and the second ship may be determined by the minimum meeting distance DCPA between the first ship (own ship) and the second ship (target ship) and the closest meeting distance The distance time TCPA is represented; it can be calculated from the ship domain, the relative motion parameters of the first ship and the second ship based on the risk model. For details, see the above description, which will not be repeated here.
最优避碰参数数组集合确定单元2502,用于根据所述避碰参数数组集合以及预设的双标准多目标避碰算法,确定最优避碰参数数组集合。The optimal collision avoidance parameter array set
在本发明实施例中,所述预设的双标准多目标避碰算法是基于双标准框架结合快速非支配排序遗传算法(NSGA-II)和基于分解的多目标进化算法(MOEA/D)而得到的。In the embodiment of the present invention, the preset dual-standard multi-objective collision avoidance algorithm is based on a dual-standard framework combined with a fast non-dominated sorting genetic algorithm (NSGA-II) and a decomposition-based multi-objective evolutionary algorithm (MOEA/D). owned.
在本发明实施例中,考虑到多船避碰的复杂环境可能会使最终的帕累托前沿呈现不规则形状,因此这里通过双标准算法将NSGA-II算法和MOEA/D算法进行结合,使得在加快算法计算效率的同时,又可以保证前沿解集的均匀性,算法具体流程如图7所示,具体见上述阐述,在此不再赘述。In the embodiment of the present invention, considering that the complex environment of multi-ship collision avoidance may cause the final Pareto front to present an irregular shape, the NSGA-II algorithm and the MOEA/D algorithm are combined here through a double-standard algorithm, so that the While speeding up the calculation efficiency of the algorithm, it can also ensure the uniformity of the frontier solution set.
避碰路线确定单元2503,用于根据所述最优避碰参数数组集合,确定所述第一船舶的避碰路线。The collision avoidance
本发明实施例提供的船舶避碰路线确定装置,以避碰参数数组集合量化避碰路线,通过基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法得到的双标准多目标避碰算法,确定最优避碰参数数组集合,以根据所述最优避碰参数数组集合,确定避碰路线;本发明考虑到多目标会遇环境的复杂可能会使最终的帕累托前沿呈现不规则形状,采用结合帕累托进化和非帕累托进化的双标准多目标遗传算法求解船舶避碰路线,通过改进非帕累托进化种群的更新方式,加快种群的收敛速度以及增加种群的多样性,使得在加快算法计算效率的同时,又可以保证前沿解集的均匀性;同时,通过仿真结果的分析,证明了本发明能够在各会遇场景下求解出既安全又经济的路径。The device for determining a ship collision avoidance route provided by the embodiment of the present invention quantifies the collision avoidance route with a set of collision avoidance parameter arrays, and obtains a dual-standard multi-objective based on a dual-standard framework combined with a fast non-dominated sorting genetic algorithm and a decomposition-based multi-objective evolutionary algorithm. The collision avoidance algorithm determines the optimal collision avoidance parameter array set, so as to determine the collision avoidance route according to the optimal collision avoidance parameter array set; the present invention takes into account the complexity of the multi-target encounter environment and may cause the final Pareto frontier It presents an irregular shape, and uses a double-standard multi-objective genetic algorithm combining Pareto evolution and non-Pareto evolution to solve the collision avoidance route of ships. By improving the update method of non-Pareto evolution population, the convergence speed of the population is accelerated and the population is increased. The diversity of the algorithm can speed up the calculation efficiency of the algorithm while ensuring the uniformity of the frontier solution set; at the same time, through the analysis of the simulation results, it is proved that the present invention can solve the safe and economical path in each meeting scenario .
在一个实施例中,提出了一种计算机设备,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the computer The program implements the following steps:
当第一船舶与第二船舶之间的碰撞危险度大于预设阈值时,获取所述第一船舶的避碰参数数组集合;When the collision risk between the first ship and the second ship is greater than a preset threshold, acquiring the collision avoidance parameter array set of the first ship;
根据所述避碰参数数组集合以及预设的双标准多目标避碰算法,确定最优避碰参数数组集合;所述预设的双标准多目标避碰算法是基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法而得到的;Determine the optimal collision avoidance parameter array set according to the collision avoidance parameter array set and the preset dual-standard multi-objective collision avoidance algorithm; the preset dual-standard multi-objective collision avoidance algorithm is based on a dual-standard framework combined with fast non-dominant It is obtained by sorting genetic algorithm and multi-objective evolutionary algorithm based on decomposition;
根据所述最优避碰参数数组集合,确定所述第一船舶的避碰路线。The collision avoidance route of the first ship is determined according to the optimal collision avoidance parameter array set.
在一个实施例中,提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时,使得处理器执行以下步骤:In one embodiment, a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the processor performs the following steps:
当第一船舶与第二船舶之间的碰撞危险度大于预设阈值时,获取所述第一船舶的避碰参数数组集合;When the collision risk between the first ship and the second ship is greater than a preset threshold, acquiring the collision avoidance parameter array set of the first ship;
根据所述避碰参数数组集合以及预设的双标准多目标避碰算法,确定最优避碰参数数组集合;所述预设的双标准多目标避碰算法是基于双标准框架结合快速非支配排序遗传算法和基于分解的多目标进化算法而得到的;Determine the optimal collision avoidance parameter array set according to the collision avoidance parameter array set and the preset dual-standard multi-objective collision avoidance algorithm; the preset dual-standard multi-objective collision avoidance algorithm is based on a dual-standard framework combined with fast non-dominant It is obtained by sorting genetic algorithm and multi-objective evolutionary algorithm based on decomposition;
根据所述最优避碰参数数组集合,确定所述第一船舶的避碰路线。The collision avoidance route of the first ship is determined according to the optimal collision avoidance parameter array set.
应该理解的是,虽然本发明各实施例的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,各实施例中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of the embodiments of the present invention are sequentially displayed in accordance with the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in each embodiment may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. The order of execution is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010528259.9A CN111709571B (en) | 2020-06-09 | 2020-06-09 | Ship collision avoidance route determining method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010528259.9A CN111709571B (en) | 2020-06-09 | 2020-06-09 | Ship collision avoidance route determining method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111709571A true CN111709571A (en) | 2020-09-25 |
CN111709571B CN111709571B (en) | 2022-05-13 |
Family
ID=72540109
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010528259.9A Active CN111709571B (en) | 2020-06-09 | 2020-06-09 | Ship collision avoidance route determining method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111709571B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112560286A (en) * | 2020-12-25 | 2021-03-26 | 武汉理工大学 | Ship collision risk determination method based on digital ship field model |
CN112819255A (en) * | 2021-03-08 | 2021-05-18 | 吉林大学 | Particle swarm-genetic algorithm-based multi-criterion ship route determining method and device, computer equipment and storage medium |
CN113012474A (en) * | 2021-02-07 | 2021-06-22 | 中电科(宁波)海洋电子研究院有限公司 | Wave glider collision avoidance method for fishing boat operation area |
CN113191571A (en) * | 2021-05-26 | 2021-07-30 | 上海海事大学 | Course optimization method based on multi-objective adaptive weight evolution algorithm |
CN113421171A (en) * | 2021-03-12 | 2021-09-21 | 国网山东省电力公司临沂供电公司 | MOEA/D evolution multi-objective optimization-based path navigation system and method |
CN114358393A (en) * | 2021-12-15 | 2022-04-15 | 中船航海科技有限责任公司 | Ship collision avoidance method based on distributed cooperation strategy |
CN114610027A (en) * | 2022-03-07 | 2022-06-10 | 吉林大学 | Ship navigation path planning method |
CN115019561A (en) * | 2022-08-09 | 2022-09-06 | 武汉理工大学 | External collision risk early warning system for ship towing system under mutual visibility |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002222500A (en) * | 2001-01-25 | 2002-08-09 | Univ Nihon | Ship Collision Avoidance System Using Genetic Algorithm |
US20110078100A1 (en) * | 2009-09-29 | 2011-03-31 | Livermore Software Technology Corporation | Methods and systems for multi-objective evolutionary algorithm based engineering desgin optimization |
CN104794526A (en) * | 2015-05-13 | 2015-07-22 | 哈尔滨工程大学 | Automatic ship anti-collision method optimized by wolf colony search algorithm |
CN111063218A (en) * | 2019-06-24 | 2020-04-24 | 武汉理工大学 | A decision-making method for ship collision avoidance |
CN111061165A (en) * | 2019-12-16 | 2020-04-24 | 青岛科技大学 | A Verification Method of Ship Relative Collision Risk Model |
-
2020
- 2020-06-09 CN CN202010528259.9A patent/CN111709571B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002222500A (en) * | 2001-01-25 | 2002-08-09 | Univ Nihon | Ship Collision Avoidance System Using Genetic Algorithm |
US20110078100A1 (en) * | 2009-09-29 | 2011-03-31 | Livermore Software Technology Corporation | Methods and systems for multi-objective evolutionary algorithm based engineering desgin optimization |
CN104794526A (en) * | 2015-05-13 | 2015-07-22 | 哈尔滨工程大学 | Automatic ship anti-collision method optimized by wolf colony search algorithm |
CN111063218A (en) * | 2019-06-24 | 2020-04-24 | 武汉理工大学 | A decision-making method for ship collision avoidance |
CN111061165A (en) * | 2019-12-16 | 2020-04-24 | 青岛科技大学 | A Verification Method of Ship Relative Collision Risk Model |
Non-Patent Citations (6)
Title |
---|
HUI LI 等: "Multiobjective Optimization Problems With Complicated Pareto Sets, MOEA/D and NSGA-II", 《IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION》 * |
JINXIN LI 等: "Distributed Multi-Objective Algorithm for Preventing Multi-Ship Collisions at Sea", 《THE JOURNAL OF NAVIGATION》 * |
JINXIN LI 等: "Ship"s Trajectory Planning Based on Improved Multiobjective Algorithm for Collision Avoidance", 《JOURNAL OR ADVANCED TRANSPORTATION》 * |
MIQING LI 等: "Pareto or Non-Pareto: Bi-Criterion Evolution in Multiobjective Optimization", 《IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION》 * |
李春泽: "基于多目标遗传算法的船舶自动避碰决策研究", 《万方数据》 * |
邹晓华等: "遗传算法在船舶转向避碰幅度决策中的应用研究", 《舰船电子对抗》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112560286A (en) * | 2020-12-25 | 2021-03-26 | 武汉理工大学 | Ship collision risk determination method based on digital ship field model |
CN112560286B (en) * | 2020-12-25 | 2022-07-19 | 武汉理工大学 | A Ship Collision Risk Determination Method Based on Digital Ship Domain Model |
CN113012474A (en) * | 2021-02-07 | 2021-06-22 | 中电科(宁波)海洋电子研究院有限公司 | Wave glider collision avoidance method for fishing boat operation area |
CN112819255A (en) * | 2021-03-08 | 2021-05-18 | 吉林大学 | Particle swarm-genetic algorithm-based multi-criterion ship route determining method and device, computer equipment and storage medium |
CN113421171A (en) * | 2021-03-12 | 2021-09-21 | 国网山东省电力公司临沂供电公司 | MOEA/D evolution multi-objective optimization-based path navigation system and method |
CN113191571A (en) * | 2021-05-26 | 2021-07-30 | 上海海事大学 | Course optimization method based on multi-objective adaptive weight evolution algorithm |
CN113191571B (en) * | 2021-05-26 | 2024-04-05 | 上海海事大学 | Route optimization method based on multi-target adaptive weight evolution algorithm |
CN114358393A (en) * | 2021-12-15 | 2022-04-15 | 中船航海科技有限责任公司 | Ship collision avoidance method based on distributed cooperation strategy |
CN114610027A (en) * | 2022-03-07 | 2022-06-10 | 吉林大学 | Ship navigation path planning method |
CN115019561A (en) * | 2022-08-09 | 2022-09-06 | 武汉理工大学 | External collision risk early warning system for ship towing system under mutual visibility |
CN115019561B (en) * | 2022-08-09 | 2022-12-23 | 武汉理工大学 | External collision risk early warning system of ship towing system under mutual-seeing condition |
Also Published As
Publication number | Publication date |
---|---|
CN111709571B (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111709571B (en) | Ship collision avoidance route determining method, device, equipment and storage medium | |
LU102400B1 (en) | Path planning method and system for unmanned surface vehicle based on improved genetic algorithm | |
Li et al. | A path planning strategy unified with a COLREGS collision avoidance function based on deep reinforcement learning and artificial potential field | |
Cui et al. | Multi-strategy adaptable ant colony optimization algorithm and its application in robot path planning | |
CN109933067B (en) | Unmanned ship collision avoidance method based on genetic algorithm and particle swarm algorithm | |
Liu et al. | An improved heuristic mechanism ant colony optimization algorithm for solving path planning | |
CN109506655B (en) | Improved Ant Colony Path Planning Algorithm Based on Non-uniform Modeling | |
Yan et al. | A novel reinforcement learning based tuna swarm optimization algorithm for autonomous underwater vehicle path planning | |
CN112580261A (en) | Multi-ship collision avoidance decision method and device | |
CN111063218A (en) | A decision-making method for ship collision avoidance | |
Xu et al. | Heuristic and random search algorithm in optimization of route planning for robot’s geomagnetic navigation | |
Porres et al. | Scenario-based testing of a ship collision avoidance system | |
CN113032896B (en) | Anti-collision auxiliary decision-making method based on preference of ship driver | |
CN113538973B (en) | Automatic ship collision avoidance method based on improved particle swarm optimization | |
CN114625150A (en) | Rapid ant colony unmanned ship dynamic obstacle avoidance method based on danger index and distance function | |
Du et al. | An optimized path planning method for coastal ships based on improved DDPG and DP | |
CN117688366A (en) | Ship track prediction method and system | |
Szlapczynski et al. | Customized crossover in evolutionary sets of safe ship trajectories | |
CN116700239A (en) | Multi-unmanned-ship target sea area guard patrol path planning method based on distributed parallel genetic algorithm | |
Zheng et al. | Research on autonomous collision avoidance of merchant ship based on inverse reinforcement learning | |
Tsou | Integration of a geographic information system and evolutionary computation for automatic routing in coastal navigation | |
Zhao et al. | Multi-modal trajectory forecasting with Multi-scale Interactions and Multi-pseudo-target Supervision | |
Ma et al. | Improved genetic algorithm based on K-Means to solve path planning problem | |
Song et al. | Intention-aware decision making in urban lane change scenario for autonomous driving | |
Lin et al. | Path planning of unmanned surface vehicle based on improved q-learning algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |