Skip to content

Commit

Permalink
Update MOI_wrapper.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Mar 6, 2024
1 parent d6b08a0 commit ad7620d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/MOI_wrapper/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2843,11 +2843,8 @@ function MOI.get(model::Optimizer, attr::MOI.PrimalStatus)
_check_ret(model, ret)
if doubleP[] < 1e-8
return MOI.FEASIBLE_POINT

Check warning on line 2845 in src/MOI_wrapper/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI_wrapper/MOI_wrapper.jl#L2841-L2845

Added lines #L2841 - L2845 were not covered by tests
elseif doubleP[] < 1e-6
return MOI.NEARLY_FEASIBLE_POINT
else
return MOI.INFEASIBLE_POINT
end
return MOI.UNKNOWN_RESULT_STATUS

Check warning on line 2847 in src/MOI_wrapper/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI_wrapper/MOI_wrapper.jl#L2847

Added line #L2847 was not covered by tests
end

function _has_dual_ray(model::Optimizer)
Expand Down Expand Up @@ -2902,11 +2899,8 @@ function MOI.get(model::Optimizer, attr::MOI.DualStatus)
_check_ret(model, ret)
if doubleP[] < 1e-8
return MOI.FEASIBLE_POINT

Check warning on line 2901 in src/MOI_wrapper/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI_wrapper/MOI_wrapper.jl#L2898-L2901

Added lines #L2898 - L2901 were not covered by tests
elseif doubleP[] < 1e-6
return MOI.NEARLY_FEASIBLE_POINT
else
return MOI.INFEASIBLE_POINT
end
return MOI.UNKNOWN_RESULT_STATUS

Check warning on line 2903 in src/MOI_wrapper/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI_wrapper/MOI_wrapper.jl#L2903

Added line #L2903 was not covered by tests
end

function _has_primal_ray(model::Optimizer)
Expand Down

0 comments on commit ad7620d

Please sign in to comment.