If it is to modify a standard OPF, the easiest thing is probably just to add A, l, and u fields to your MATPOWER case struct (mpc) as described in Section 7.1.2 of the User’s Manual<https://matpower.org/docs/MATPOWER-manual-7.1.pdf>. The A matrix columns correspond to Va, Vm, Pg and Qg, in that order (i.e. voltage angles, magnitudes, and real and reactive generator injections), all corresponding to internal ordering (i.e. offline generators removed).
Ray On Oct 27, 2020, at 10:46 PM, Adjifack Nelson <[email protected]<mailto:[email protected]>> wrote: Hey every body I am new at using matpower and i have difficulties adding linear constraints to opf models(add_lin_constraints). I have issues with idx_list or number if constraints. Can some body please help me with how to do that with an appropriate example? Best regards
