cog-imperial / entmoot

Multiobjective black-box optimization using gradient-boosted trees
https://entmoot.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
56 stars 12 forks source link

Add ConstraintList #27

Closed TobyBoyne closed 1 year ago

TobyBoyne commented 1 year ago

When defining a problem, users may provide a list of constraints. Applying constraints to a Pyomo model in a for-loop requires a pyo.ConstraintList object. This PR supports addings lists of constraints to Pyomo models, using the entmoot.ConstraintList.