I need some help to call matpower into the Teaching Learning based Optimization (TLBO) algorithm.

I wrote the program by replacing Newton raphson iteration on TLBO by calling Matpower. I use the function "define_constants" to define the state variable x and the control variable u.
define_constants;
[mpc,mpcdc]=runacdcpf('case30_ieee', 'case5_stagg_MTDCslack');
Vmg=mpc.bus([1 2 5 8 11 13],VM);
Vag=mpc.bus([1 2 5 8 11 13],VA);
Vml=mpc.bus([3 4 6 7 9 10 12 14 15 16 17 18 19 ...
20 21 22 23 24 25 26 27 28 29 30],VM);
Val=mpc.bus([3 4 6 7 9 10 12 14 15 16 17 18 19 ...
20 21 22 23 24 25 26 27 28 29 30],VA);
PG1=mpc.gen(1,PG);
PGfinal=mpc.gen([2 3 4 5 6],PG);
QGfinal=mpc.gen(:,QG);
x.PG1=PG1;
x.VML=Vml;
x.QG=QGfinal;
u.PG=PGfinal
but when running TLBO, the obejctive function show flat results (same result for each iteration). Did I wrong in writing my program? or should I change the Matpower program code so it dynamically follows the changing iterations of the TLBO program?
(I am new in matlab)

Answers (0)

Asked:

on 2 Oct 2020

Community Treasure Hunt

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

Start Hunting!