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.
This PR updates Ohm's law constraint statement in all current OPF models, to ensure that the constraints always have the form
Note that
<constant>
is typically0
, and that I usepf
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.