Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to data of different constraint types #941

Open
pfetsch opened this issue Dec 16, 2024 · 2 comments
Open

Access to data of different constraint types #941

pfetsch opened this issue Dec 16, 2024 · 2 comments
Assignees

Comments

@pfetsch
Copy link
Contributor

pfetsch commented Dec 16, 2024

It would be nice to have the possibility to access the data (coefficients, lhs/rhs, etc.) of different constraint types, e.g., cons_knapsack (cons_linear is there already). This would be interesting after presolving.

In principle, this seems easy to do and I can provide a first draft. Are there any obstacles concerning the usage of transformed variables?

@Joao-Dionisio
Copy link
Collaborator

Hello again, @pfetsch! I had a draft PR (#935) that, among other things, allowed getting the lhs/rhs of nonlinear constraints, as now it only allows linear and quadratic. Your PR would be greatly appreciated.

What's your idea for doing this? If you (nearly) exclusively use SCIP functions, no problems should arise.

@Opt-Mucca
Copy link
Collaborator

Opt-Mucca commented Dec 17, 2024

There's no obstacles on handling transformed variables. They're handled in the same Variable class and work exactly like in SCIP. (A lot of functions have an original or transformed flag to cover both cases)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants