MATPOWER / most

MOST – MATPOWER Optimal Scheduling Tool, for steady-state power systems scheduling problems.
https://matpower.org/
Other
31 stars 11 forks source link

A typo in most.m file for checking MinDown time #29

Closed talha965 closed 2 years ago

talha965 commented 2 years ago

Hi, I was reading through the most. m file and I realized there is a small bug in checking the MinDown time to be >=1 on line 377 in the most.m file as shown below. The IF condition is only checking MinUp time twice.

if any(mdi.UC.MinUp < 1) && any(mdi.UC.MinUp < 1) error('most: UC.MinUp and UC.MinDown must all be >= 1'); end

rdzman commented 2 years ago

Good catch! Thanks for letting me know. The fix will be in shortly.