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
x-ref #2357
julia> import MathOptInterface as MOI julia> include("test/Bridges/sdpa_models.jl") julia> model = MOI.instantiate(GeometricSDPAModel{Float64}; with_bridge_type = Float64); julia> x = MOI.add_variable(model) MOI.VariableIndex(1) julia> set2 = MOI.GreaterThan(0.0) MathOptInterface.GreaterThan{Float64}(0.0) julia> set1 = MOI.EqualTo(0.0) MathOptInterface.EqualTo{Float64}(0.0) julia> ci = MOI.add_constraint(model, x, set1) MathOptInterface.ConstraintIndex{MathOptInterface.VariableIndex, MathOptInterface.EqualTo{Float64}}(1) julia> print(model) Feasibility Subject to: VariableIndex-in-EqualTo{Float64} v[1] == 0.0 julia> ci = MOI.add_constraint(model, x, set1) MathOptInterface.ConstraintIndex{MathOptInterface.VariableIndex, MathOptInterface.EqualTo{Float64}}(1) julia> print(model) Feasibility Subject to: VectorAffineFunction{Float64}-in-Zeros ┌ ┐ │-0.0 + 1.0 v[1]│ └ ┘ ∈ Zeros(1) VariableIndex-in-EqualTo{Float64} v[1] == 0.0 julia> MOI.delete(model, ci) Dict{MathOptInterface.ConstraintIndex, String}() julia> print(model) Feasibility Subject to: VectorAffineFunction{Float64}-in-Zeros ┌ ┐ │-0.0 + 1.0 v[1]│ └ ┘ ∈ Zeros(1)
The text was updated successfully, but these errors were encountered:
Also, MOI.delete shouldn't return a Dict, it should return nothing
MOI.delete
Dict
nothing
Sorry, something went wrong.
Yip. Fixed in #2357
Successfully merging a pull request may close this issue.
x-ref #2357
The text was updated successfully, but these errors were encountered: