pyomo
pyomo copied to clipboard
Adds support for the validation of IndexedSets using the index
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:
- I agree my contributions are submitted under the BSD license.
- 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.