change objective OPF

2016-11-24 Thread Robin Weckx
Dear, I have implemented the two area kundur topology in the matpower software. I can successfully run a PF and OPF. My next goal is the change the objective of the OPF so that the voltages on the busses are as close to unity as possible independently from the cost of the generators. For this

Re: change objective OPF

2016-12-07 Thread Robin Weckx
(nb, nb) sparse(nb, 2*ng)]; mpc.fparm = ones(nb, 1) * [2 1 0 1]; mpc.Cw = 1000 * ones(nb, 1); r2 = runopf(mpc, mpopt); norm(r1.bus(:, VM) - 1) norm(r2.bus(:, VM) - 1) Notice the reduction in voltage deviations from the first run. Ray On Nov 24, 2016, at 10:46 AM, Robin Weckx mailto:ro