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 status to lp solvers (and default one to all solvers) #308

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Sep 30, 2024

Gurobi and mathopt give information about solver status. As for minizinc and cpsat, we make it available on the wrapper level.

As we use the same enumeration StatusSolver, we move it to solver_do module. And thus add for all solvers a status_solver attribute, by default equal to unknown and which is used by is_optimal() method.

We remove get_status_solver() method which was only returning self.status_solver.

Gurobi and mathopt give information about solver status. As for minizinc
and cpsat, we make it available on the wrapper level.

As we use the same enumeration `StatusSolver`, we move it to `solver_do`
module. And thus add for all solvers a `status_solver` attribute, by
default equal to unknown and which is used by `is_optimal()` method.

We remove `get_status_solver()` method which was only returning
`self.status_solver`.
@g-poveda g-poveda merged commit 0f4e7c2 into airbus:master Oct 1, 2024
14 checks passed
@nhuet nhuet deleted the status-lp branch October 4, 2024 13:05
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