一、无人机模型简介:
单个无人机三维路径规划问题及其建模_IT猿手的博客-CSDN博客
参考文献:
[1]胡观凯,钟建华,李永正,黎万洪.基于IPSO-GA算法的无人机三维路径规划[J].现代电子技术,2023,46(07):115-120
二、Tiki-taka算法(TTA)简介
极致攻守算法(Tiki-Taka Algorithm,TTA)由Mohd Fadzil Faisae Ab. Rashid于2020年提出,该算法受tiki-taka 足球风格的短传、球员定位和保持控球的特点所启发。其旨在控制控球权并利用其战术优势击败对手,TTA算法新颖高效。单目标应用:Tiki-taka算法(TTA)求解太阳能光伏模型MATLAB_IT猿手的博客-CSDN博客
参考文献:
[1]Ab. Rashid, M.F.F. (2021), "Tiki-taka algorithm: a novel metaheuristic inspired by football playing style", Engineering Computations, Vol. 38 No. 1, pp. 313-343. Tiki-taka algorithm: a novel metaheuristic inspired by football playing style | Emerald Insight
[2]Zamli, Kamal Z , Kader, et al. Selective chaotic maps Tiki-Taka algorithm for the S-box generation and optimization.
三、TTA求解无人机路径规划
(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='F2'; %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]=TTA(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);%算法优化求解
AlgorithmName='TTA';%算法名字
figure
semilogy(curve,'Color','g','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.0069761e+01 1.1125126e+01 8.0947246e+01
1.0158293e+01 1.2169888e+01 8.1882689e+01
1.0265680e+01 1.3137305e+01 8.2806728e+01
1.0392006e+01 1.4030396e+01 8.3719762e+01
1.0537355e+01 1.4852178e+01 8.4622189e+01
1.0701812e+01 1.5605672e+01 8.5514408e+01
1.0885461e+01 1.6293895e+01 8.6396818e+01
1.1088385e+01 1.6919866e+01 8.7269818e+01
1.1310670e+01 1.7486605e+01 8.8133807e+01
1.1552399e+01 1.7997129e+01 8.8989182e+01
1.1813656e+01 1.8454458e+01 8.9836344e+01
1.2094525e+01 1.8861610e+01 9.0675690e+01
1.2395092e+01 1.9221604e+01 9.1507620e+01
1.2715439e+01 1.9537458e+01 9.2332531e+01
1.3055651e+01 1.9812192e+01 9.3150824e+01
1.3415813e+01 2.0048823e+01 9.3962896e+01
1.3796008e+01 2.0250372e+01 9.4769146e+01
1.4196320e+01 2.0419855e+01 9.5569974e+01
1.4616835e+01 2.0560293e+01 9.6365777e+01
1.5057635e+01 2.0674704e+01 9.7156955e+01
1.5518805e+01 2.0766106e+01 9.7943906e+01
1.6000429e+01 2.0837518e+01 9.8727029e+01
1.6502592e+01 2.0891959e+01 9.9506723e+01
1.7025377e+01 2.0932448e+01 1.0028339e+02
1.7568869e+01 2.0962003e+01 1.0105742e+02
1.8133152e+01 2.0983643e+01 1.0182922e+02
1.8718309e+01 2.1000387e+01 1.0259918e+02
1.9324426e+01 2.1015253e+01 1.0336771e+02
1.9951587e+01 2.1031261e+01 1.0413520e+02
2.0599875e+01 2.1051428e+01 1.0490206e+02
2.1269375e+01 2.1078774e+01 1.0566867e+02
2.1960170e+01 2.1116317e+01 1.0643544e+02
2.2672346e+01 2.1167077e+01 1.0720278e+02
2.3405986e+01 2.1234070e+01 1.0797107e+02
2.4161174e+01 2.1320318e+01 1.0874071e+02
2.4937994e+01 2.1428837e+01 1.0951211e+02
2.5736532e+01 2.1562647e+01 1.1028566e+02
2.6556870e+01 2.1724767e+01 1.1106176e+02
2.7399094e+01 2.1918215e+01 1.1184082e+02
2.8263286e+01 2.2146009e+01 1.1262322e+02
2.9149532e+01 2.2411170e+01 1.1340938e+02
3.0057916e+01 2.2716714e+01 1.1419967e+02
3.0988521e+01 2.3065662e+01 1.1499452e+02
3.1941432e+01 2.3461032e+01 1.1579431e+02
3.2916733e+01 2.3905842e+01 1.1659944e+02
3.3914508e+01 2.4403111e+01 1.1741031e+02
3.4934842e+01 2.4955857e+01 1.1822733e+02
3.5977818e+01 2.5567101e+01 1.1905088e+02
3.7043521e+01 2.6239860e+01 1.1988137e+02
3.8132035e+01 2.6977152e+01 1.2071920e+02
3.9243444e+01 2.7781998e+01 1.2156476e+02
4.0377832e+01 2.8657415e+01 1.2241846e+02
4.1535284e+01 2.9606421e+01 1.2328069e+02
4.2715883e+01 3.0632037e+01 1.2415185e+02
4.3919714e+01 3.1737280e+01 1.2503234e+02
4.5146860e+01 3.2925169e+01 1.2592256e+02
4.6397407e+01 3.4198724e+01 1.2682291e+02
4.7671438e+01 3.5560962e+01 1.2773379e+02
4.8969037e+01 3.7014902e+01 1.2865559e+02
5.0290289e+01 3.8563563e+01 1.2958872e+02
5.1635278e+01 4.0209964e+01 1.3053356e+02
5.3004087e+01 4.1957123e+01 1.3149053e+02
5.4396802e+01 4.3808060e+01 1.3246002e+02
5.5813505e+01 4.5765792e+01 1.3344243e+02
5.7254282e+01 4.7833339e+01 1.3443816e+02
5.8719217e+01 5.0013719e+01 1.3544760e+02
6.0208393e+01 5.2309952e+01 1.3647116e+02
6.1721896e+01 5.4725054e+01 1.3750924e+02
6.3259808e+01 5.7262047e+01 1.3856222e+02
6.4822214e+01 5.9923947e+01 1.3963052e+02
6.6409199e+01 6.2713774e+01 1.4071453e+02
6.8020847e+01 6.5634547e+01 1.4181464e+02
6.9657241e+01 6.8689283e+01 1.4293127e+02
7.1318466e+01 7.1881003e+01 1.4406480e+02
7.3004606e+01 7.5212724e+01 1.4521563e+02
7.4715745e+01 7.8687466e+01 1.4638417e+02
7.6451968e+01 8.2308247e+01 1.4757081e+02
7.8213358e+01 8.6078085e+01 1.4877596e+02
8.0000000e+01 9.0000000e+01 1.5000000e+02