As I said to Santiago, MATPOWER does not have a mechanism for handling contingencies automatically within the OPF (i.e. it's not a security-constrained OPF). If you want to run a power flow or optimal power flow for a specific contingency case, say with a branch out, then you change the BR_STATUS column for that branch from 1 to 0 in the branch matrix. For a generator outage, it would be the GEN_STATUS column in the gen matrix.
-- Ray Zimmerman Senior Research Associate 419A Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On Dec 5, 2012, at 9:00 AM, Geev Mokryani <[email protected]> wrote: > Dear Prof. Zimmerman, > > According to your following response in order to consider contingency, what > changes I have to apply to gen or branch matrix? If possible, please explain > in detail what I have to do? > > I want to maximize social welfare by solving security constraint OPF in > MATPOWER. > > Best regards, > > Geev > > > > ---------- Forwarded message ---------- > From: Ray Zimmerman <[email protected]> > Date: Fri, Sep 9, 2011 at 8:44 PM > Subject: Re: Contingency modeling > To: MATPOWER discussion forum <[email protected]> > > > Hi Santiago, > > MATPOWER does not have a mechanism for handling contingencies automatically > within the OPF (i.e. it's not a security-constrained OPF), However, if you > want to run a contingency explicitly, it is sufficient to change the status > field in the appropriate row of the branch or gen table. > > -- > Ray Zimmerman > Senior Research Associate > 419A Warren Hall, Cornell University, Ithaca, NY 14853 > phone: (607) 255-9645 > > > > > On Sep 6, 2011, at 8:39 AM, Santiago Torres wrote: > >> Dear Friends, >> >> How can MATPOWER cope with contingencies? How they are modeled in the >> program? It is enough to take the line off in "STATUS" of the line data? >> Please, I will appreciate your comments. >> >> Best Regards, >> >> Santiago >> >> -- >> Dr.-Ing. Santiago Torres >> IEEE Senior Member >> >> Post-Doctoral Fellow >> School of Electrical and Computer Engineering >> >> University of Cornell >> >> Mobile: 607-379-5190 >> >> University of Campinas, Campinas, SP, Brazil >> >> http://www.dsee.fee.unicamp.br/ >> >> Albert Einstein, 400 >> 13083-852, Campinas, SP, Brazil >> > >
