Re: Order of data in mpc struct affect MatPower functionalities?

2014-11-11 Thread Marco Barbetta
Thank you for your answers! Yesterday i tested the consequences of changing the bus / gen / branch order and all seems to be ok. In particular, case300.m is very similar to my case, because for example bus numbers jump to 664 to 1190 and from 2040 to 7001, so i've tested also that if any number

Subtle bug in runpf when enforcing q_lims (strange behavior of MATLAB's union)

2014-11-11 Thread Jose Luis Marin
[I'm re-sending this to the list, I don't think it got through the first time] Hello Ray, I think I've stumbled upon a bug. It appears when enforcing generator q_lims, but only when there's exactly *one* generator violating the QMAX constraint AND *one* generator violating the QMIN constraint.

Re: loss sensitivity factor

2014-11-11 Thread Ray Zimmerman
I just finished adding a get_losses() function for MATPOWER 5 and the test file for it (both of which I will send to you off-list) has some code to compute loss sensitivity factors. Ray On Nov 5, 2014, at 9:54 AM, nivedita arunachalam niveditaarunacha...@gmail.com wrote: Dear all,

Re: Subtle bug in runpf when enforcing q_lims (strange behavior of MATLAB's union)

2014-11-11 Thread Ray Zimmerman
Good catch … and thanks for the detailed description and patch. I ended up simply doing … infeas = union(mx', mn')’; … which I think should handle the problem as well. Matlab’s union returns a row or column vector depending on whether the inputs are rows or columns. But if they’re