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

consider putting SolverFactory logic in python #14

Open
tlambert03 opened this issue Mar 26, 2023 · 0 comments
Open

consider putting SolverFactory logic in python #14

tlambert03 opened this issue Mar 26, 2023 · 0 comments

Comments

@tlambert03
Copy link
Member

I just spent a little time trying to see what it would take to allow ilpy to be installed and run without all backends being present in the environment. (Currently, one must install all possible backends for ilpy to even import, even if they only intend on using one)

The thing that would need to change, I believe, is the SolverFactory. Currently SolverFactory.cpp includes all of the headers that are present at build time, (and expects them all to be there at runtime), which would necessitate a different build for every backend/combination.

If we pulled out the SolverFactory.createXSolverBackend logic from cpp land and put it into python, then we could try/except any specified backend preferences, meaning if scip or gurobi wasn't installed, it would simply raise a runtime python exception (at the moment of unsatisfiable preference) rather than an ilpy ImportError.

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

1 participant