-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguous methods for supports_constraint #854
Milestone
Comments
Status: (Dualization) pkg> st
Project Dualization v0.1.0
Status `~/.julia/dev/Dualization/Project.toml`
[4076af6c] + JuMP v0.20.0
[b8f27783] + MathOptInterface v0.9.1
Status `~/.julia/dev/Dualization/Manifest.toml`
[4076af6c] + JuMP v0.20.0
[b8f27783] + MathOptInterface v0.9.1 |
Thanks I'll try this |
This came up when testing this package for 1.3: Unslack: Error During Test at /root/.julia/packages/MathOptInterface/WXD0G/test/Bridges/lazy_bridge_optimizer.jl:472
Test threw exception
Expression: MOI.supports_constraint(full_bridged_no_variable, MOI.SingleVariable, S)
MethodError: supports_constraint(::NoVariableModel{Float64}, ::Type{MathOptInterface.SingleVariable}, ::Type{MathOptInterface.LessThan{Float64}}) is ambiguous. Candidates:
supports_constraint(::MathOptInterface.Utilities.AbstractModel{T}, ::Type{MathOptInterface.SingleVariable}, ::Type{#s110} where #s110<:Union{MathOptInterface.Integer, MathOptInterface.ZeroOne, MathOptInterface.EqualTo{T}, MathOptInterface.GreaterThan{T}, MathOptInterface.Interval{T}, MathOptInterface.LessThan{T}, MathOptInterface.Semicontinuous{T}, MathOptInterface.Semiinteger{T}}) where T in MathOptInterface.Utilities at /root/.julia/packages/MathOptInterface/WXD0G/src/Utilities/model.jl:482
supports_constraint(::NoVariableModel, ::Type{MathOptInterface.SingleVariable}, ::Type{#s958} where #s958<:MathOptInterface.AbstractScalarSet) in Main at /root/.julia/packages/MathOptInterface/WXD0G/test/Bridges/lazy_bridge_optimizer.jl:256
Possible fix, define
supports_constraint(::NoVariableModel{T}, ::Type{MathOptInterface.SingleVariable}, ::Type{#s958} where #s958<:MathOptInterface.AbstractScalarSet) |
18 tasks
@matbesancon I believe this is indeed because you included |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following happened when testing Dualization with MOI v0.9:
The text was updated successfully, but these errors were encountered: