Skip to content

Commit

Permalink
Allow returning almost feasible solution (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 11, 2023
1 parent c0f3d81 commit 9b8306c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI_wrapper.jl
Expand Up @@ -336,7 +336,7 @@ end
MOI.get(::Optimizer, ::MOI.DualStatus) = MOI.NO_SOLUTION

function MOI.get(model::Optimizer, ::MOI.ResultCount)
return MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT ? 1 : 0
return MOI.get(model, MOI.PrimalStatus()) == MOI.NO_SOLUTION ? 0 : 1
end

# utilities:
Expand Down

0 comments on commit 9b8306c

Please sign in to comment.