AI4OPT / OPFGenerator

Instance generator for OPF problems
MIT License
2 stars 3 forks source link

Ohm's law sign convention #74

Closed mtanneau closed 6 months ago

mtanneau commented 6 months ago

This PR updates Ohm's law constraint statement in all current OPF models, to ensure that the constraints always have the form

<some combination of other variables> - pf == <constant>

Note that <constant> is typically 0, and that I use pf above to denote to/from active/reactive power flows. The goal is to have a unified convention for Ohm's law duals across the various OPF problems.

Compared to the current setting of writing pf == <some function of other variables> + <constant>, this PR will effectively flip the sign of the dual variables associated to Ohm's law constraints.

mtanneau commented 6 months ago

@klamike good with you?