单个无人机三维路径规划问题及其建模_IT猿手的博客-CSDN博客
参考文献:
[1]胡观凯,钟建华,李永正,黎万洪.基于IPSO-GA算法的无人机三维路径规划[J].现代电子技术,2023,46(07):115-120
高尔夫优化算法(Golf Optimization Algorithm,GOA)由Montazeri Z等人于2023年提出,该算法模拟高尔夫运动过程中的球员击打高尔夫所采取的战术策略,能够有效平衡全局搜索和局部搜索的能力。
多目标优化算法:基于非支配排序的高尔夫优化算法(NSGOA)MATLAB-CSDN博客
参考文献:
[1] Montazeri Z, Niknam T, Aghaei J, Malik OP, Dehghani M, Dhiman G. Golf Optimization Algorithm: A New Game-Based Metaheuristic Algorithm and Its Application to Energy Commitment Problem Considering Resilience. Biomimetics. 2023; 8(5):386. Biomimetics | Free Full-Text | Golf Optimization Algorithm: A New Game-Based Metaheuristic Algorithm and Its Application to Energy Commitment Problem Considering Resilience
(1)部分代码
close all clear clc addpath('./Algorithm/')%添加算法路径 warning off; %% 三维路径规划模型定义 global startPos goalPos N N=2;%待优化点的个数(可以修改) startPos = [10, 10, 80]; %起点(可以修改) goalPos = [80, 90, 150]; %终点(可以修改) SearchAgents_no=30; % 种群大小(可以修改) Function_name='F1'; %F1:随机产生地图 F2:导入固定地图 Max_iteration=50; %最大迭代次数(可以修改) % Load details of the selected benchmark function [lb,ub,dim,fobj]=Get_Functions_details(Function_name); [Best_score,Best_pos,curve]=GOA(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);%算法优化求解 AlgorithmName='GOA';%算法名字 figure semilogy(curve,'Color','r','linewidth',3) xlabel('迭代次数'); ylabel('飞行路径长度'); legend(AlgorithmName) display(['算法得到的最优适应度: ', num2str(Best_score)]); Position=[Best_pos(1:dim/3); Best_pos(1+dim/3:2*(dim/3)); Best_pos(1+(2*dim/3):end)]'; %优化点的XYZ坐标(每一行是一个点) plotFigure(Best_pos,AlgorithmName)%画最优路径
(2)部分结果
无人机飞行路径坐标:
1.0000000e+01 1.0000000e+01 8.0000000e+01 1.0637597e+01 1.0948916e+01 8.0637496e+01 1.1250104e+01 1.1826722e+01 8.1229036e+01 1.1838745e+01 1.2636252e+01 8.1776657e+01 1.2404748e+01 1.3380341e+01 8.2282399e+01 1.2949338e+01 1.4061821e+01 8.2748300e+01 1.3473740e+01 1.4683529e+01 8.3176400e+01 1.3979180e+01 1.5248297e+01 8.3568738e+01 1.4466884e+01 1.5758961e+01 8.3927352e+01 1.4938079e+01 1.6218354e+01 8.4254280e+01 1.5393989e+01 1.6629310e+01 8.4551563e+01 1.5835840e+01 1.6994664e+01 8.4821239e+01 1.6264859e+01 1.7317250e+01 8.5065346e+01 1.6682271e+01 1.7599902e+01 8.5285924e+01 1.7089302e+01 1.7845455e+01 8.5485011e+01 1.7487177e+01 1.8056741e+01 8.5664646e+01 1.7877123e+01 1.8236597e+01 8.5826869e+01 1.8260364e+01 1.8387856e+01 8.5973718e+01 1.8638128e+01 1.8513351e+01 8.6107231e+01 1.9011640e+01 1.8615918e+01 8.6229448e+01 1.9382125e+01 1.8698391e+01 8.6342408e+01 1.9750810e+01 1.8763603e+01 8.6448149e+01 2.0118919e+01 1.8814389e+01 8.6548710e+01 2.0487680e+01 1.8853583e+01 8.6646131e+01 2.0858317e+01 1.8884020e+01 8.6742449e+01 2.1232057e+01 1.8908533e+01 8.6839705e+01 2.1610125e+01 1.8929957e+01 8.6939936e+01 2.1993747e+01 1.8951126e+01 8.7045182e+01 2.2384149e+01 1.8974874e+01 8.7157481e+01 2.2782557e+01 1.9004035e+01 8.7278872e+01 2.3190196e+01 1.9041444e+01 8.7411395e+01 2.3608292e+01 1.9089935e+01 8.7557088e+01 2.4038071e+01 1.9152341e+01 8.7717990e+01 2.4480759e+01 1.9231498e+01 8.7896139e+01 2.4937582e+01 1.9330239e+01 8.8093575e+01 2.5409764e+01 1.9451399e+01 8.8312337e+01 2.5898533e+01 1.9597811e+01 8.8554463e+01 2.6405114e+01 1.9772311e+01 8.8821992e+01 2.6930733e+01 1.9977731e+01 8.9116963e+01 2.7476615e+01 2.0216907e+01 8.9441415e+01 2.8043987e+01 2.0492673e+01 8.9797387e+01 2.8634073e+01 2.0807862e+01 9.0186918e+01 2.9248101e+01 2.1165310e+01 9.0612046e+01 2.9887295e+01 2.1567849e+01 9.1074810e+01 3.0552881e+01 2.2018315e+01 9.1577250e+01 3.1246086e+01 2.2519541e+01 9.2121404e+01 3.1968134e+01 2.3074363e+01 9.2709311e+01 3.2720253e+01 2.3685613e+01 9.3343009e+01 3.3503667e+01 2.4356126e+01 9.4024539e+01 3.4319602e+01 2.5088737e+01 9.4755938e+01 3.5169285e+01 2.5886280e+01 9.5539245e+01 3.6053940e+01 2.6751588e+01 9.6376499e+01 3.6974795e+01 2.7687496e+01 9.7269740e+01 3.7933073e+01 2.8696839e+01 9.8221006e+01 3.8930002e+01 2.9782450e+01 9.9232335e+01 3.9966808e+01 3.0947163e+01 1.0030577e+02 4.1044715e+01 3.2193814e+01 1.0144334e+02 4.2164949e+01 3.3525235e+01 1.0264710e+02 4.3328737e+01 3.4944262e+01 1.0391907e+02 4.4537305e+01 3.6453728e+01 1.0526130e+02 4.5791877e+01 3.8056467e+01 1.0667583e+02 4.7093680e+01 3.9755315e+01 1.0816470e+02 4.8443940e+01 4.1553104e+01 1.0972993e+02 4.9843882e+01 4.3452670e+01 1.1137359e+02 5.1294732e+01 4.5456846e+01 1.1309769e+02 5.2797716e+01 4.7568467e+01 1.1490429e+02 5.4354060e+01 4.9790367e+01 1.1679542e+02 5.5964990e+01 5.2125380e+01 1.1877311e+02 5.7631730e+01 5.4576340e+01 1.2083942e+02 5.9355508e+01 5.7146081e+01 1.2299637e+02 6.1137549e+01 5.9837438e+01 1.2524600e+02 6.2979078e+01 6.2653245e+01 1.2759037e+02 6.4881322e+01 6.5596336e+01 1.3003149e+02 6.6845506e+01 6.8669545e+01 1.3257142e+02 6.8872856e+01 7.1875707e+01 1.3521218e+02 7.0964598e+01 7.5217656e+01 1.3795583e+02 7.3121958e+01 7.8698225e+01 1.4080440e+02 7.5346161e+01 8.2320249e+01 1.4375992e+02 7.7638433e+01 8.6086563e+01 1.4682444e+02 8.0000000e+01 9.0000000e+01 1.5000000e+02