原创 (二十四)matlab 粒子羣算法

粒子羣算法 function [xm,fv]=PSO(fitness,N,c1,c2,w,M,D) format long; for i=1:N for j=1:D x(i,j)=randn; v(