Skip to content

Commit

Permalink
solver version
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Apr 26, 2022
1 parent 123d5f1 commit ebd86e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/moi_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ function MOI.get(model::Optimizer, ::MOI.Silent)
return MOI.get(model.optimizer, MOI.Silent())
end

function MOI.get(model::Optimizer, ::MOI.SolverName)
return MOI.get(model.optimizer, MOI.SolverName())
function MOI.get(model::Optimizer, attr::A) where {A <: Union{MOI.SolverName, MOI.SolverVersion}}
return MOI.get(model.optimizer, attr)
end

function MOI.optimize!(model::Optimizer)
Expand Down
2 changes: 1 addition & 1 deletion test/moi_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _vaf(c::Vector{Float64}) = VAF(MOI.ScalarAffineTerm{Float64}[], c)
# `Variable.ZerosBridge` makes dual needed by some tests fail.
MOI.Bridges.remove_bridge(model.optimizer.optimizer, MOI.Bridges.Variable.ZerosBridge{Float64})
MOI.set(model, MOI.Silent(), true)
config = MOI.Test.Config(exclude = Any[MOI.SolverVersion], atol = 1e-7)
config = MOI.Test.Config(atol = 1e-7)
MOI.Test.runtests(model, config),
return
end
Expand Down

0 comments on commit ebd86e3

Please sign in to comment.