Pyomo / pyomo

An object-oriented algebraic modeling language in Python for structured optimization problems.
https://www.pyomo.org
Other
1.9k stars 490 forks source link

Adds support for the validation of IndexedSets using the index #3304

Open pmlpm1986 opened 6 days ago

pmlpm1986 commented 6 days ago

Fixes #2655.

Summary/Motivation:

Set members could not be validated using the index in indexed sets. This PR adds that option to allow for more complex validation rules.

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.