Skip to content

Commit 2a6af65

Browse files
authored
Fix termination status when Highs_run warns (#108)
1 parent cb93584 commit 2a6af65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MOI_wrapper.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ Get the solution from a run of HiGHS.
15531553
"""
15541554
function _store_solution(model::Optimizer, ret::HighsInt)
15551555
x = model.solution
1556-
x.status = ret == 0 ? _OPTIMIZE_OK : _OPTIMIZE_ERRORED
1556+
x.status = ret == kHighsStatusError ? _OPTIMIZE_ERRORED : _OPTIMIZE_OK
15571557
x.primal_solution_status = kHighsSolutionStatusNone
15581558
x.dual_solution_status = kHighsSolutionStatusNone
15591559
x.has_dual_ray = false

0 commit comments

Comments
 (0)