<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">gumrf</journal-id><journal-title-group><journal-title xml:lang="ru">Вестник Государственного университета морского и речного флота имени адмирала С. О. Макарова</journal-title><trans-title-group xml:lang="en"><trans-title>Vestnik Gosudarstvennogo universiteta morskogo i rechnogo flota imeni admirala S. O. Makarova</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">2309-5180</issn><issn pub-type="epub">2500-0551</issn><publisher><publisher-name>ФГБОУ ВО «Государственный университет морского и речного флота имени адмирала С.О. Макарова»</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.21821/2309-5180-2023-15-5-876-884</article-id><article-id custom-type="elpub" pub-id-type="custom">gumrf-371</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>АВТОМАТИЗАЦИЯ И УПРАВЛЕНИЕ ТЕХНОЛОГИЧЕСКИМИ ПРОЦЕССАМИ И ПРОИЗВОДСТВАМИ</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>AUTOMATION AND CONTROL OF TECHNOLOGICAL PROCESSES AND PRODUCTIONS</subject></subj-group></article-categories><title-group><article-title>Расчет маневра расхождения двух безэкипажных судов путем минимизации функции стоимости в компьютерной среде MATLAB</article-title><trans-title-group xml:lang="en"><trans-title>Calculating a collision avoidance maneuver for two unmanned ships by minimizing a cost function in MATLAB</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Триполец</surname><given-names>О. Ю.</given-names></name><name name-style="western" xml:lang="en"><surname>Tripolets</surname><given-names>O. Y.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Триполец Олег Юрьевич - аспирант</p><p>198035, Санкт-Петербург, ул. Двинская, 5/7</p></bio><bio xml:lang="en"><p>Tripolets, Oleg Y. - Postgraduate</p><p>5/7 Dvinskaya Str., St. Petersburg, 198035</p></bio><email xlink:type="simple">tripolets.97@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>ФГБОУ ВО «ГУМРФ имени адмирала С. О. Макарова»</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Admiral Makarov State University of Maritime and Inland Shipping</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2023</year></pub-date><pub-date pub-type="epub"><day>10</day><month>11</month><year>2023</year></pub-date><volume>15</volume><issue>5</issue><fpage>876</fpage><lpage>884</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Триполец О.Ю., 2023</copyright-statement><copyright-year>2023</copyright-year><copyright-holder xml:lang="ru">Триполец О.Ю.</copyright-holder><copyright-holder xml:lang="en">Tripolets O.Y.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://journal.gumrf.ru/jour/article/view/371">https://journal.gumrf.ru/jour/article/view/371</self-uri><abstract><p>В данной работе представлен подход к решению проблемы расхождения двух безэкипажных судов в определенной акватории на основе минимизации функции стоимости, а также описан скрипт, написанный в компьютерной среде MATLAB, позволяющий вычислить оптимальный маневр для предотвращения столкновения. Функция стоимости в данной работе определена как квадрат разности между безопасной дистанцией и дистанцией опасного сближения, и в целях нахождения оптимального маневра должна быть минимизирована, для чего в данном коде используется fmincon (функция оптимизации MATLAB). Расчет маневров расхождения производится с учетом СУДС сразу для двух судов, является оптимальным и позволяет судам разойтись на заданной безопасной дистанции. Скрипт, получая на вход матрицу, содержащую данные о парах сближающихся судов (их координатами по осям X и Y, скоростями и курсами), путем минимизации функции стоимости (Cost Function), вычисляет оптимальное изменение скоростей и / или курсов для двух судов, позволяющее им разойтись на безопасной дистанции. Для проверки работоспособности скрипта была проведена успешная симуляция в компьютерной среде MATLAB. Приведены несколько примеров его работы: ситуации, где дистанция кратчайшего сближения была больше безопасной; ситуации, где дистанция кратчайшего сближения была меньше безопасной, но время до столкновения — больше безопасного; и ситуации опасного сближения. Результаты расчетов показаны на графиках в MATLAB. Код описываемого в данной работе скрипта может быть усовершенствован для совместной работы с другими алгоритмами, а также может быть использован для создания обучающих выборок для обучения нейронных сетей прогнозированию безопасных маневров для предотвращения столкновений безэкипажных судов в море. В данной работе не учитывается влияние ветра и течения, а также отсутствует учет МППСС‑72, и суда могут маневрировать как влево, так и вправо, а также снижать скорость вне зависимости от вида ситуации сближения.</p></abstract><trans-abstract xml:lang="en"><p>An approach to the problem of collision avoidance of two unmanned vessels in certain area based on cost function minimization is presented in the paper. A script written in the MATLAB computational environment that calculates the optimal maneuver to prevent a collision is described. The cost function in this study is defined as the square of the difference between the safe distance and the Closest Point of Approach, and in order to find the optimal maneuver, it needs to be minimized, for which the fmincon (a MATLAB optimization function) is used in this code. The calculation of collision avoidance maneuvers is made “ from the perspective” of the VTS: it’s optimized for two vessels and allows the vessels to pass each other at a specified distance. The script, taking as input a matrix with data on pairs of approaching vessels (their x and y coordinates, speeds, and courses), by minimizing the cost function, calculates the optimal change in speeds and/or courses for two vessels, allowing them to pass each other at a safe distance. To verify the functionality of the script, a successful simulation is carried out in MATLAB. Several examples of its operation are given. These are situations where the closest point of approach (CPA) is grea-ter than safe one; situations where the CPA is less than safe distance, but the time to CPA is greater than safe time; and situations of dangerous convergence. The calculation results are illustrated with MATLAB graphs. The code of the script described in this paper can be further refined to work in conjunction with other algorithms, and it can also be used to create training datasets for training neural networks to predict safe maneuvers to prevent collisions of unmanned vessels at sea. In this study, the influence of wind and current is not considered, and the COLREGs‑72 is not also taken in consideration. Vessels can maneuver both to port and starboard, as well as reduce speed regardless of the type of approach situation.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>дистанция кратчайшего сближения</kwd><kwd>минимизация функции стоимости</kwd><kwd>моделирование движения судов</kwd><kwd>предотвращение столкновений</kwd><kwd>безэкипажное судно</kwd><kwd>MATLAB</kwd><kwd>нейронные сети</kwd></kwd-group><kwd-group xml:lang="en"><kwd>CPA</kwd><kwd>cost function minimization</kwd><kwd>vessels motion modelling</kwd><kwd>collision avoidance</kwd><kwd>unmanned surface vessel</kwd><kwd>MATLAB</kwd><kwd>neural networks</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Chauvin C. Human and organisational factors in maritime accidents: Analysis of collisions at sea using the HFACS / C. Chauvin, S. Lardjane, G. Morel, J. P. Clostermann, B. Langard //Accident Analysis &amp; Prevention. — 2013. — Vol. 59. — Pp. 26–37. DOI: 10.1016/j.aap.2013.05.006.</mixed-citation><mixed-citation xml:lang="en">Chauvin, Christine, Salim Lardjane, Gaël Morel, Jean-Pierre Clostermann, and Benoît Langard. “Human and organisational factors in maritime accidents: Analysis of collisions at sea using the HFACS.” Accident Analysis &amp; Prevention 59 (2013): 26–37. DOI: 10.1016/j.aap.2013.05.006.</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Zhang X. Collision-avoidance navigation systems for Maritime Autonomous Surface Ships: A state of the art survey / X. Zhang, C. Wang, L. Jiang, L. An, R. Yang // Ocean Engineering. — 2021. — Vol. 235. — Pp. 109380. DOI: 10.1016/j.oceaneng.2021.109380.</mixed-citation><mixed-citation xml:lang="en">Zhang, Xinyu, Chengbo Wang, Lingling Jiang, Lanxuan An, and Rui Yang. “Collision-avoidance navigation systems for Maritime Autonomous Surface Ships: A state of the art survey.” Ocean Engineering 235 (2021): 109380. DOI: 10.1016/j.oceaneng.2021.109380.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Huang Y. Ship collision avoidance methods: State-of-the-art / Y. Huang, L. Chen, P. Chen, R. R. Negenborn, P. H. A. J. M. Van Gelder // Safety science. — 2020. — Vol. 121. — Pp. 451–473. DOI: 10.1016/j.ssci.2019.09.018.</mixed-citation><mixed-citation xml:lang="en">Huang, Yamin, Linying Chen, Pengfei Chen, Rudy R. Negenborn, and P.H.A.J.M. van Gelder. “Ship collision avoidance methods: State-of-the-art.” Safety science 121 (2020): 451–473. DOI: 10.1016/j.ssci.2019.09.018.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Bertaska I. R. Experimental evaluation of automatically-generated behaviors for USV operations / I. R. Bertaska, B. Shah, K. von Ellenrieder, P. Švec, W. Klinger, A. J. Sinisterra, M. Dhanak, S. K. Gupta // Ocean Engineering. — 2015. — Vol. 106. — Pp. 496–514. DOI: 10.1016/j.oceaneng.2015.07.002.</mixed-citation><mixed-citation xml:lang="en">Bertaska, Ivan R., Brual Shah, Karl von Ellenrieder, Petr Švec, Wilhelm Klinger, Armando J. Sinisterra, Manhar Dhanak, and Satyandra K. Gupta. “Experimental evaluation of automatically-generated behaviors for USV operations.” Ocean Engineering 106 (2015): 496–514. DOI: 10.1016/j.oceaneng.2015.07.002.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Wright R. G. Intelligent autonomous ship navigation using multi-sensor modalities / R. G. Wright // Trans-Nav: International Journal on Marine Navigation and Safety of Sea Transportation. — 2019. — Vol. 13. — No. 3. — Pp. 503–510. DOI: 10.12716/1001.13.03.03.</mixed-citation><mixed-citation xml:lang="en">Wright, R. Glenn. “Intelligent autonomous ship navigation using multi-sensor modalities.” Trans- Nav: International Journal on Marine Navigation and Safety of Sea Transportation 13.3 (2019): 503–510. DOI: 10.12716/1001.13.03.03.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Li Y. Deep learning structure for collision avoidance planning of unmanned surface vessel / Y. Li, J. Zheng // Proceedings of the Institution of Mechanical Engineers, Part M: Journal of Engineering for the Maritime Environment. — 2021. — Vol. 235. — Is. 2. — Pp. 511–520. DOI: 10.1177/1475090220970102.</mixed-citation><mixed-citation xml:lang="en">Li, Yun, and Jian Zheng. “Deep learning structure for collision avoidance planning of unmanned surface vessel.” Proceedings of the Institution of Mechanical Engineers, Part M: Journal of Engineering for the Maritime Environment 235.2 (2021): 511–520. DOI: 10.1177/1475090220970102.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Praczyk T. Neural anti-collision system for Autonomous Surface Vehicle / T. Praczyk // Neurocomputing. — 2015. — Vol. 149. — Pp. 559–572. DOI: 10.1016/j.neucom.2014.08.018.</mixed-citation><mixed-citation xml:lang="en">Praczyk, Tomasz. “Neural anti-collision system for Autonomous Surface Vehicle.” Neurocomputing 149 (2015): 559–572. DOI: 10.1016/j.neucom.2014.08.018.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Wang C. Research on intelligent collision avoidance decision-making of unmanned ship in unknown environments / C. Wang, X. Zhang, L. Cong, J. Li, J. Zhang // Evolving Systems. — 2019. — Vol. 10. — Is. 4. — Pp. 649–658. DOI: 10.1007/s12530–018–9253–9.</mixed-citation><mixed-citation xml:lang="en">Wang, Chengbo, Xinyu Zhang, Longze Cong, Junjie Li, and Jiawei Zhang. “Research on intelligent collision avoidance decision-making of unmanned ship in unknown environments.” Evolving Systems 10.4 (2019): 649–658. DOI: 10.1007/s12530-018-9253-9.</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Букатый В. М. Точностные характеристики метода непосредственного определения дистанции кратчайшего сближения судов по информации от АИС / В. М. Букатый, С. Ю. Морозова // Эксплуатация морского транспорта. — 2012. — № 2 (68). — С. 9–15.</mixed-citation><mixed-citation xml:lang="en">Bukaty, V. M., and S. Y. Morozova. “Direct determination of the close-quarter distance on the basis of importation received from automatic identification systems.” Ekspluatatsiya morskogo transporta 2(68) (2012): 9–15. 10. Cockcroft, A. N., and J.N.F. Lameijer. A Guide to the Collision Avoidance Rules. 7th edition. Butterworth-Heinemann, 2012.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Коккрофт А. Н. Толкование МППСС-72 / А. Н. Коккрофт, Д. Н. Ламейер; Пер. с англ. Н. Я. Брызгина и Н. Т. Шайхутдинова; под. ред. Н. Я. Брызгина. — М.: Транспорт, 1981. — 280 с.</mixed-citation><mixed-citation xml:lang="en">Tripolets, O. Yu. “Modelirovanie manevra raskhozhdeniya dvukh sudov v komp’yuternoi srede MATLAB.” Matematicheskie modeli tekhniki, tekhnologii i ekonomiki: materialy Vserossiiskoi studencheskoi nauchno-prakticheskoi konferentsii. SPb.: SPbGLTU, 2023. 16–21.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Триполец О. Ю. Моделирование маневра расхождения двух судов в компьютерной среде MATLAB / О. Ю. Триполец // Математические модели техники, технологий и экономики: материалы Всероссийской студенческой научно-практической конференции, г. Санкт-Петербург, 08 июня 2023 г. — СПб.: СПбГЛТУ, 2023. — С. 16–21.</mixed-citation><mixed-citation xml:lang="en">Tripolets, Oleg Y. “Training a neural network to calculate the closest point of approach.” Vestnik Gosudarstvennogo universiteta morskogo i rechnogo flota imeni admirala S. O. Makarova 14.5 (2022): 713–721. DOI: 10.21821/2309-5180-2022-14-5-713-721.</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Триполец О. Ю. Обучение нейронной сети вычислению дистанции кратчайшего сближения между судами / О. Ю. Триполец // Вестник Государственного университета морского и речного флота имени адмирала С. О. Макарова. — 2022. — Т. 14. — № 5. — С. 713–721. DOI: 10.21821/2309-5180-2022-14-5-713-721.</mixed-citation><mixed-citation xml:lang="en">Триполец О. Ю. Обучение нейронной сети вычислению дистанции кратчайшего сближения между судами / О. Ю. Триполец // Вестник Государственного университета морского и речного флота имени адмирала С. О. Макарова. — 2022. — Т. 14. — № 5. — С. 713–721. DOI: 10.21821/2309-5180-2022-14-5-713-721.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
