That's right … just to clarify, if you modify mpc after loading it, you will have to pass mpc to runpf, not the case file name (which simply re-loads the original unmodified case).
-- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On Jul 5, 2013, at 8:20 AM, Priyanka Murali <[email protected]> wrote: > Hi, > This wont work.You will have to pass it to the case file as function arguments > regards > > > > > On Fri, Jul 5, 2013 at 5:11 PM, obokopok andrew <[email protected]> wrote: > Hi > I am using the following to inject 200 MW and 100MVARs at bus 2 of a simple > two bus system, but it is not having any impact on the outcome of the power > flow reults. What instruction format should I use to implement bus power > injection for a power flow: > define_constants; > mpc = loadcase('casemazi2'); > mpc.bus(2, PD) =200; > mpc.bus(2,QD)=-100; > runpf(casemazi2); > > Regards > Andrew >
