Skip to content

Commit

Permalink
Updates to MOI v0.5 (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored and mlubin committed Aug 7, 2018
1 parent 3d08140 commit 7dcc75f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
julia 0.6
MathOptInterface 0.4 0.5
MathOptInterface 0.5 0.6
ForwardDiff 0.5 0.8
Calculus
DataStructures
Expand Down
6 changes: 1 addition & 5 deletions src/optimizerinterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ end

function MOIU.attachoptimizer!(model::Model)
@assert mode(model) != Direct
copyresult = MOIU.attachoptimizer!(caching_optimizer(model))
# TODO: more reliable error reporting
@assert copyresult.status == MOI.CopySuccess
@assert caching_optimizer(model).state == MOIU.AttachedOptimizer
return copyresult
MOIU.attachoptimizer!(caching_optimizer(model))
end


Expand Down

0 comments on commit 7dcc75f

Please sign in to comment.