grid-parity-exchange / Egret

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

Replacing __getitem__() with at() for ordered sets #243

Closed bknueven closed 2 years ago

bknueven commented 2 years ago

Fixes # N/A

Summary/Motivation:

Pyomo 6.1 deprecated __getitem__() for ordered Pyomo Sets

Changes proposed in this PR:

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.
bknueven commented 2 years ago

I'll update this for Pyomo 6.1.2, which moves card to at (Pyomo/pyomo#2096).