Skip to content

Commit

Permalink
Fix return type for NodeCount and BarrierIterations (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
frapac authored Oct 16, 2024
1 parent 7aae642 commit 2750930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1651,13 +1651,13 @@ function MOI.get(model::Optimizer, ::MOI.SolveTimeSec)
return p[]
end

function MOI.get(model::Optimizer, ::MOI.NodeCount)
function MOI.get(model::Optimizer, ::MOI.NodeCount)::Int64
p = Ref{Cint}(0)
@_checked KN_get_mip_number_nodes(model.inner, p)
return p[]
end

function MOI.get(model::Optimizer, ::MOI.BarrierIterations)
function MOI.get(model::Optimizer, ::MOI.BarrierIterations)::Int64
p = Ref{Cint}(0)
@_checked KN_get_number_iters(model.inner, p)
return p[]
Expand Down

0 comments on commit 2750930

Please sign in to comment.