We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MathOptInterface.jl/src/Utilities/model.jl
Lines 743 to 773 in 6b0b2af
julia> c MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}}(5) julia> MOI.set(model, MOI.ConstraintFunction(), c, MOI.SingleVariable(x)) ERROR: MethodError: no method matching _modifyconstr(::MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}}, ::MathOptInterface.ScalarAffineFunction{Float64}, ::MathOptInterface.EqualTo{Float64}, ::MathOptInterface.SingleVariable) Closest candidates are: _modifyconstr(::MathOptInterface.ConstraintIndex{F,S}, ::F, ::S, ::MathOptInterface.AbstractFunctionModification) where {F, S} at /Users/oscar/.julia/dev/MathOptInterface/src/Utilities/model.jl:68 _modifyconstr(::MathOptInterface.ConstraintIndex{F,S}, ::F, ::S, ::F) where {F, S} at /Users/oscar/.julia/dev/MathOptInterface/src/Utilities/model.jl:60 _modifyconstr(::MathOptInterface.ConstraintIndex{F,S}, ::F, ::S, ::S) where {F, S} at /Users/oscar/.julia/dev/MathOptInterface/src/Utilities/model.jl:61 Stacktrace: [1] _modify(::Array{Tuple{MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}},MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}},1}, ::MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}}, ::Int64, ::MathOptInterface.SingleVariable) at /Users/oscar/.julia/dev/MathOptInterface/src/Utilities/model.jl:76 [2] _modify(::MathOptInterface.Utilities.ModelScalarConstraints{Float64,MathOptInterface.ScalarAffineFunction{Float64}}, ::MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}}, ::Int64, ::MathOptInterface.SingleVariable) at /Users/oscar/.julia/dev/MathOptInterface/src/Utilities/model.jl:1292 [3] _modify(::MathOptInterface.Utilities.Model{Float64}, ::MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}}, ::Int64, ::MathOptInterface.SingleVariable) at /Users/oscar/.julia/dev/MathOptInterface/src/Utilities/model.jl:1308 [4] set(::MathOptInterface.Utilities.Model{Float64}, ::MathOptInterface.ConstraintFunction, ::MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.EqualTo{Float64}}, ::MathOptInterface.SingleVariable) at /Users/oscar/.julia/dev/MathOptInterface/src/Utilities/model.jl:749 [5] top-level scope at none:0
The text was updated successfully, but these errors were encountered:
odow
Successfully merging a pull request may close this issue.
MathOptInterface.jl/src/Utilities/model.jl
Lines 743 to 773 in 6b0b2af
The text was updated successfully, but these errors were encountered: