Skip to content

Commit

Permalink
Which free model is seen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deborah Hendrych committed Nov 17, 2023
1 parent f6aa940 commit bcb29cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ext/BosciaSCIPExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ end
Cleanup internal SCIP model
"""
function Boscia.free_model(o::SCIP.Optimizer)
println("Free model for SCIP")
return SCIP.SCIPfreeTransform(o)
end

Expand Down
2 changes: 1 addition & 1 deletion src/MOI_bounded_oracle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ end

# no-op by default
function free_model(o::MOI.AbstractOptimizer)
println("Free model for AbtractOptimizer")
return true
end

Expand All @@ -312,7 +313,6 @@ function check_feasibility(blmo::MathOptBLMO)
)
MOI.optimize!(blmo.o)
status = MOI.get(blmo.o, MOI.TerminationStatus())
#free_model(blmo)
return status
end

Expand Down

0 comments on commit bcb29cd

Please sign in to comment.