SECQUOIA / gdplib

An open library of Generalized Disjunctive Programming (GDP) models
BSD 3-Clause "New" or "Revised" License
9 stars 7 forks source link

Updates accounting for Pyomo logical expression system, Boolean indicator_vars, and importing models #6

Closed emma58 closed 2 years ago

emma58 commented 2 years ago

This PR updates the models to account for the current logical expression system in pyomo, as well as the fact that GDPopt now requires that an algorithm be specified. In addition, some models were not importable either because of dashes in the filename, because of relative imports, or because of hard-coded data files. This updates those so that they can be instantiated and run outside of the gdplib directory. Last, this updates the use of indicator_var to comply with the fact that it is now Boolean, and adds the use of binary_indicator_var when it is the binary that is needed.