grid-parity-exchange / Egret

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

option to keep variables for out of service elements #276

Closed michaelbynum closed 2 years ago

michaelbynum commented 2 years ago

Summary/Motivation:

This PR adds an option to the ACOPF and DCOPF models to construct variables corresponding to out-of-service generators and transmission lines.

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.
michaelbynum commented 2 years ago

Note that this PR does not make it easy to switch an out-of-service element to in-service. I do have some thoughts on how to do this a bit more elegantly which would make that easy. This will have to work for now, though.

michaelbynum commented 2 years ago

This PR updates the required Pyomo version to 6.4 to make use of skip_validation in Var.set_value.

bknueven commented 2 years ago

This PR updates the required Pyomo version to 6.4 to make use of skip_validation in Var.set_value.

Can you update the README as well?

michaelbynum commented 2 years ago

I will update the expected checks after I merge.