We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb93584 commit 2a6af65Copy full SHA for 2a6af65
src/MOI_wrapper.jl
@@ -1553,7 +1553,7 @@ Get the solution from a run of HiGHS.
1553
"""
1554
function _store_solution(model::Optimizer, ret::HighsInt)
1555
x = model.solution
1556
- x.status = ret == 0 ? _OPTIMIZE_OK : _OPTIMIZE_ERRORED
+ x.status = ret == kHighsStatusError ? _OPTIMIZE_ERRORED : _OPTIMIZE_OK
1557
x.primal_solution_status = kHighsSolutionStatusNone
1558
x.dual_solution_status = kHighsSolutionStatusNone
1559
x.has_dual_ray = false
0 commit comments