pyomo icon indicating copy to clipboard operation
pyomo copied to clipboard

Adds support for the validation of IndexedSets using the index

Open pmlpm1986 opened this issue 1 year ago • 0 comments

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:

  • Allows validation of indexed sets to access the member and the respective index just like in Parameter objects
  • Supports one- and multi-dimensional set members
  • Adds tests to retain the functionality
  • Revised the tutorial to illustrate the functionality.

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.

pmlpm1986 avatar Jun 26 '24 22:06 pmlpm1986