diff --git a/Project.toml b/Project.toml index c57de1b..2a19f64 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "QuadraticToBinary" uuid = "014a38d5-7acb-4e20-b6c0-4fe5c2344fd1" authors = ["Joaquim Garcia "] -version = "0.2.0" +version = "0.2.1" [deps] @@ -10,7 +10,7 @@ DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" [compat] MathOptInterface = "0.9.12" -DataStructures = "0.17.10" +DataStructures = "0.17.10, 0.18.0" julia = "1" [extras] diff --git a/src/moi.jl b/src/moi.jl index 6f02c9c..1b6ed95 100644 --- a/src/moi.jl +++ b/src/moi.jl @@ -306,6 +306,10 @@ function MOI.supports_add_constrained_variables( model::Optimizer, ::Type{S}) where S return MOI.supports_add_constrained_variables(model.optimizer, S) end +function MOI.supports_add_constrained_variables( + model::Optimizer, ::Type{MOI.Reals}) + return MOI.supports_add_constrained_variables(model.optimizer, MOI.Reals) +end # function MOI.set(model::Optimizer, param::MOI.RawParameter, value) # # if in a subset of the q2b save it