MATPOWER does not include a facility for automatic N-1 contingency analysis. You can however, implement your own brute force checking of contingencies by, one-by-one, changing the status to zero (mpc.branch(k, BR_STATUS) or mpc.gen(k, GEN_STATUS)) on the line or generator taken out by the contingency in question. Beware of creating isolated buses or islands when taking out lines. The find_islands() function may be helpful there.
-- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, Ithaca, NY 14853 USA phone: (607) 255-9645 > On Nov 2, 2014, at 7:25 AM, abhisek mishra <abhisek005mis...@gmail.com > <mailto:abhisek005mis...@gmail.com>> wrote: > > Dear all, > I am a new user of matpower. Can anyone guide me in how to incorporate N-1 > contingency using matpower??? > > Thank you. > > Abhisek