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

Feature request: SOS1 constraint support #141

Open
jacobsvante opened this issue Apr 17, 2024 · 2 comments
Open

Feature request: SOS1 constraint support #141

jacobsvante opened this issue Apr 17, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jacobsvante
Copy link

We currently use SOS1 with coin-cbc in good_lp, but would like to be able to try out SOS1 with SCIP instead. It seems that it's implemented by SCIP, and good_lp has a trait which must be implemented by russcip for support.

My C/C++ skills are lacking to say the least, but I could do the good_lp implementation if something lands in russcip.

@mmghannam
Copy link
Member

Shouldn't be too much work to implement, you can take a look at the implementation of create_cons_quadratic here. SOS1 should be easier to implement, no C/C++ skills are necessary :)

The SCIP functions you'd need are probably just SCIPcreateConsBasicSOS1 and like for the quadratic one, SCIPaddCons. Let me know where I can help. You can start by copying the code for the quadratic one and doing some renaming and calling other functions and I think you'll get there easily.

@mmghannam mmghannam added good first issue Good for newcomers enhancement New feature or request labels Apr 18, 2024
@jacobsvante
Copy link
Author

Thanks for the direction @mmghannam, I'll try it when I'm done with the static builds 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants