⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 histsave.asv

📁 粒子群算法
💻 ASV
字号:
clear;
clc;
histPlot=zeros(1,2001);
iCount=0;
resultGood = 100000;
for i=1:2
Result = PSO();
legth = length(Result)

if (resultGood >  Result(legth))
    resultGood =Result(legth);
end
%if (Result(legth)<5)
iCount= iCount+1;
histPlot = histPlot+Result;

%end
end
histPlot = histPlot./iCount;
legth = length(histPlot)
plot(1:legth,histPlot(1:legth));
axis([0 legth-1 0 600]);
resultGood

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -