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

Add Gurobi Support #20

Open
ctriley opened this issue Oct 21, 2022 · 5 comments
Open

Add Gurobi Support #20

ctriley opened this issue Oct 21, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@ctriley
Copy link

ctriley commented Oct 21, 2022

I was wondering if this library could be made to call Gurobi by partnering with the already existing https://github.com/ykrist/rust-grb

@lovasoa
Copy link
Collaborator

lovasoa commented Oct 21, 2022

This library can already use gurobi through the lp-solvers feature flag.

One could add a direct binding, but it would be harder to test on ci without a valid gurobi license...

@lovasoa lovasoa added the enhancement New feature or request label Oct 21, 2022
@MartinBagaram
Copy link

How do you intercept the LP file generated when using lp-solvers? I just want to build the LP model and then use it with multiple commercial solvers of my liking.

@mfuhr
Copy link
Contributor

mfuhr commented Mar 11, 2024

How do you intercept the LP file generated when using lp-solvers? I just want to build the LP model and then use it with multiple commercial solvers of my liking.

The to_lp_file_format, display_lp, and to_tmp_file methods of the LpProblem trait might be helpful.

@MartinBagaram
Copy link

@mfuhr Is there a minimum code example of how to do this? I have not managed to generate the LP file.
I also think this should be an option for the user to just generate the LP file.
Thank you

@Tobi-Huf
Copy link

Can someone provide insights on whether integrating Gurobi with lp-solvers (LP file) is faster compared to directly embedding the grb crate? I only mean the time it takes to build the model.

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

No branches or pull requests

5 participants