Dear Shiyang Li,
Thanks for reporting this so quickly. You are correct, there is a missing
"any()" in that line. I have re-released version 4.1 minutes ago with the fix.
Please download MATPOWER 4.1 again to get the fixed version.
You can easily tell if you have the updated version by typing 'mpver' and
checking the date next to the MATPOWER entry ...
MATPOWER Version 4.1 13-Dec-2011 <-- original release
with bug
MATPOWER Version 4.1 14-Dec-2011 <-- re-release with fix
Thanks again for the quick bug report.
--
Ray Zimmerman
Senior Research Associate
419A Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645
On Dec 14, 2011, at 11:12 AM, 李诗�D wrote:
> Just now I read the script of the new version runpf.m and found there are
> some new lines:
>
> if bus(gen(mx, GEN_BUS), BUS_TYPE) == REF && length(ref) > 1
>
> error('Sorry, MATPOWER cannot enforce Q limits for slack
> buses in systems with multiple slacks.');
>
> end
>
> But, if qlim == 1, the expression “bus(-) == REF” will not necessarily scale,
> thus, violate the grammar of the operator &&.
>
> This error really occurred when I ran the case118 and others.
>
>
> 李诗�D
> Shiyang Li
> Shanghai Jiao Tong University
>