Skip to content

Commit

Permalink
Remove allocations in mip_solve_xxx(stat) (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg authored Mar 21, 2024
1 parent 67265ab commit ec481f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6783,11 +6783,11 @@ end
=#

function mip_solve_complete(stat)
return stat in [Lib.XPRS_MIP_INFEAS, Lib.XPRS_MIP_OPTIMAL]
return stat in (Lib.XPRS_MIP_INFEAS, Lib.XPRS_MIP_OPTIMAL)
end

function mip_solve_stopped(stat)
return stat in [Lib.XPRS_MIP_INFEAS, Lib.XPRS_MIP_OPTIMAL]
return stat in (Lib.XPRS_MIP_INFEAS, Lib.XPRS_MIP_OPTIMAL)
end

function fixinfinity(val::Float64)
Expand Down

0 comments on commit ec481f6

Please sign in to comment.