grid-parity-exchange / Egret

Tools for building power systems optimization problems
Other
133 stars 54 forks source link

Emit warning when branch limits equal 0 #228

Open jeanpaulwatson opened 3 years ago

jeanpaulwatson commented 3 years ago

Egret mirrors Matpower convention, which treats 0 as unlimited in the case of branch limits. This is a mildly weird convention, and I as a user would like to know when a case has such data. Thus, I suggest emitting a warning for such branches, or at least adding a flag somewhere in the logic to force suppression - thus requiring a user to knowingly allow the convention to be applied.