matlab 对粒子群惯性权重编程
收起
t_max=100; w=0.01; %初始权重 for t=1:t_max w(t+1)=(w(t)-0.001)*exp(1/(1+(t/t_max))); end %% 作图 plot(w,'b-','LineWidth',1.5);
报告相同问题?