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

Adds ILP solver ENV checks for GUROBI and CPLEX #206

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

maxkratz
Copy link
Member

@maxkratz maxkratz commented Jan 15, 2025

Closes #202.

I've added ENV checks for GUROBI and CPLEX and tested them both successfully on my Linux machine. Please check (and confirm) that this also works on your Windows system, @arg0n1s.

  • GUROBI has publicly accessible (static) fields for the version (major, minor, technical).
  • CPLEX is also capable of returning the version number but only if the JNI can access the native libs (which would not be the case if the ENV setup is wrong). Some of the CPLEX classes contain a private static final field for the version; therefore, I've implemented the Java version request via reflections.
  • GLPK does not need any special ENV setup (at least on Linux), so I did not implement any checks for it.

@maxkratz maxkratz added the enhancement New feature or request label Jan 15, 2025
@maxkratz maxkratz requested a review from arg0n1s January 15, 2025 13:54
@maxkratz
Copy link
Member Author

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

Successfully merging this pull request may close these issues.

Check if solver and solver Java API versions match during build
1 participant