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

Allow non-gurobi solvers #175

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

MikeLippincott
Copy link

I do not have gurobi installed as we have some commerical collaborations that would violate the use of the free version.
Instead, I wish to use the CBC solver.

This PR is in response to issue 173

Copy link
Member

@JoOkuma JoOkuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MikeLippincott thanks for the contribution,

Sorry for the bunch of suggestions.
I started with only one, but then I realized we were passing the whole tracking_config and the solver_name separately, which is redudant.

I think you could just change the MIPSolver class to use the solver_name when creating the mip.Model, this part of the code,

self._model = mip.Model(sense=mip.MAXIMIZE, solver_name=self._solver_name)

Let me know if you're busy and I can finish this PR.

ultrack/config/trackingconfig.py Outdated Show resolved Hide resolved
ultrack/config/trackingconfig.py Outdated Show resolved Hide resolved
ultrack/core/solve/sqltracking.py Outdated Show resolved Hide resolved
ultrack/core/solve/sqltracking.py Outdated Show resolved Hide resolved
@MikeLippincott
Copy link
Author

Thank you for the review @JoOkuma. I really overthought this one. I appreciate the changes. I tested in my local env and ultrack works without gurobi installed. Requesting re-review. Please feel free to take over from here if easier!

Thank you for the response and development for this package!

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

Successfully merging this pull request may close these issues.

2 participants