Browse Source

Update GA_PID.m

master
TianZhendong 6 years ago
committed by GitHub
parent
commit
68fa226dab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      GA_PID.m

2
GA_PID.m

@ -42,7 +42,7 @@ for Iter=1:MaxIter
Kp=Population(i,1); Kp=Population(i,1);
Ki=Population(i,2); Ki=Population(i,2);
Kd=Population(i,3); Kd=Population(i,3);
PopulationFitness(i,:) = PSO_PID(Kp,Ki,Kd); PopulationFitness(i,:) = fitness(Kp,Ki,Kd);
end end
% 适应值大小排序,并保存最佳 % 适应值大小排序,并保存最佳

Loading…
Cancel
Save