Skip to content

Matrix API easy access to LocalBounds #969

@mariokloster

Description

@mariokloster

Hello Pyscipopt Team,

Is your feature request related to a problem? Please describe.
I'm currently unable to access the individual bounds of variables that I created using the Matrix API. While setting the bounds during variable creation is very convenient, reading them afterwards is not as straightforward.

Describe the solution you'd like
When I create variables using the Matrix API, I can set their bounds like this:

x = scip.addMatrixVar(shape, vtype='C', name='x', ub=np.array([[5, 6], [2, 8]]))

It would be great if I could also retrieve the bounds in a similar matrix-style format, for example:

ub = x.getUbLocal() # or a similar method

Additional context
This feature would make it easier to inspect and debug models that rely heavily on matrix-based variable definitions.

Thank you all for your great work and for considering this request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions