Can anyone help me with the PID tuning using #Particle Swarm Optomization for Load Frequency Control of 3 area system??
15 views (last 30 days)
denny on 20 Dec 2016
Edited: Walter Roberson on 20 Dec 2016
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:
step 2: modefy your ga function optiions, add a plot function by yourself as follow:
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)
step 4: you can plot the convergence curve like :
step 5: you can save the variable as a mat file , and then figure it next time.
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: