# Can anyone help me with the PID tuning using #Particle Swarm Optomization for Load Frequency Control of 3 area system??

조회 수: 12 (최근 30일)
RITU SAIKIA 2016년 3월 11일
댓글: Walter Roberson 2017년 9월 13일
PLEASE HELP ME FOR TUNING THE PID CONTROLLER PARAMETERS USING PARTICLE SWARM OPTIMIZATION ALGORITHM FOR A LOAD FREQUENCY CONTROL PROBLEM HAVING THREE AREAS.ACTUALLY I NEED SOME HELP FOR THE MATALB CODE FOR PSO.
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Walter Roberson 2016년 5월 16일

댓글을 달려면 로그인하십시오.

### 답변 (3개)

Pramit Biswas 2016년 6월 15일
##### 댓글 수: 0이전 댓글 -2개 표시이전 댓글 -2개 숨기기

댓글을 달려면 로그인하십시오.

denny 2016년 7월 3일
what's your problem exactly ? I had done some optimize for PID controller run MATLAB and MATLAB/Simulink together. My Email is yinlinfei@163.com , I can help you if you have any problem.
##### 댓글 수: 2없음 표시없음 숨기기
syukron jamil 2017년 9월 13일
can you help me? I want to use PID tunning PSo with coupled tanks system. but I don't understand how to make on simulink
Walter Roberson 2017년 9월 13일
Note that Denny will not have been notified of your comment

댓글을 달려면 로그인하십시오.

denny 2016년 12월 20일
편집: Walter Roberson 2016년 12월 20일
You mean the convergence fitness curve? you can get the convergence curve by two ways as follows:
1: use your matrix to record the convergence fitness, you can plot it at any time, I recommend this way to you.
step 1: at you main function , declare a global variable as follow:
global every_gen_bestvalues
step 2: modefy your ga function optiions, add a plot function by yourself as follow:
options=gaoptimset('Generations',100,'PopulationSize',20,'Display','iter','PlotFcn',@myplot_forga);
step 3: add a matlab function ,name as above, myplot_forga, the myplot_forga is shown as follows:
function state = myplot_forga(options,state,flag)
% set(gcf,'Visible','off')
if state.Generation>=1
global every_gen_bestvalues
every_gen_bestvalues=[every_gen_bestvalues; state.Best(end)];
end
end
step 4: you can plot the convergence curve like :
plot(every_gen_bestvalues)
step 5: you can save the variable as a mat file , and then figure it next time.
save('every_gen_bestvalues.mat','plot(every_gen_bestvalues)')
2: You can use the ga toolbox' plot function to plot it, if you close the figure window, you must run the ga optimization function again, so, I do not recommend this way . j ust one step:
options=gaoptimset('Generations',100,'PopulationSize',20,'Display','iter','PlotFcn',@gaplotbestf);

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by