You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Catalog to hold OR Tools Variables, Coefficients, Constraints #4242
What language and solver does this apply to?
Python, CP-SAT, Linear Solver
Describe the problem you are trying to solve.
I am not currently aware of a centralized place to hold references to variables, coefficients and constraints created for use by calls to OR tools functions. When editing my model in subsequent solves, I would like to be able to quickly lookup these objects and edit their protos. The objects can be keyed by whatever the user would like. Having this ability would let me iteratively refine a model.
Describe the solution you'd like
I've already written some code for a Catalog that can hold variables, coefficients, and constraints. The catalog class includes getters and setters as well as other functions like enable/disable/remove in certain cases depending on the type of object. I am wondering if there is room for my code somewhere in the Python portion of OR Tools and whether such a feature would be welcomed by the community.
Activity