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
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.
This discussion was converted from issue #4242 on May 24, 2024 09:25.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.Beta Was this translation helpful? Give feedback.
All reactions