Skip to content

Catalog to hold OR Tools Variables, Coefficients, Constraints #4242

Closed

Description

@jainr3

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

  1. locked and limited conversation to collaborators on May 24, 2024
  2. converted this issue into a discussion #4243 on May 24, 2024
  3. added this to the v9.13 milestone on May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions