grid-parity-exchange / Egret

Tools for building power systems optimization problems
Other
126 stars 50 forks source link

Priced load and renewables #238

Closed bknueven closed 2 years ago

bknueven commented 3 years ago

...for more modeling flexibility. Includes additional generator type "virtual", which in most cases is an alias for "renewable" (except it doesn't show up as "curtailed").

Along the way, I noticed (and fixed) two bugs regarding relaxed transmission constraints with slacks:

  1. Relaxed transmission constraints, when in lazy mode but added initially, did not have their slack penalties added to the objective
  2. The btheta model was not adding transmission lower bounds properly when transmission slacks were used

New tests cover both these cases, as well as the new features.