Skip to content
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

TODO bug in MOI interface #14

Closed
laurentbartholdi opened this issue May 14, 2021 · 2 comments
Closed

TODO bug in MOI interface #14

laurentbartholdi opened this issue May 14, 2021 · 2 comments

Comments

@laurentbartholdi
Copy link

laurentbartholdi commented May 14, 2021

Some code is missing in the latest DSDP package:

julia> using DSDP, Convex
julia> A = [[1 0;0 1],[0 1;1 0]];
julia> b = [2 3;4 5];
julia> c = [6,7];
julia> x = Variable(length(A));
julia> pb = minimize(sum(x[l]*v for (l,v) in enumerate(c)),[sum(x[l]*m for (l,m) in enumerate(A))+b in :SDP]);
julia> solve!(pb,DSDP.Optimizer)
ERROR: TODO
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] _setcoefficient!(m::DSDP.Optimizer, coef::Float64, constr::Int64, blk::Int64, i::Int64, j::Int64)
    @ DSDP ~/.julia/packages/DSDP/4mGFq/src/MOI_wrapper.jl:304
  [3] load_constraint(m::DSDP.Optimizer, ci::MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.EqualTo{Float64}}, f::MathOptInterface.ScalarAffineFunction{Float64}, s::MathOptInterface.EqualTo{Float64})
    @ DSDP ~/.julia/packages/DSDP/4mGFq/src/MOI_wrapper.jl:331
  [4] load_constraints(dest::DSDP.Optimizer, src::MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.GenericModel{Float64, MathOptInterface.Utilities.ModelFunctionConstraints{Float64}}}, idxmap::MathOptInterface.Utilities.IndexMap, cis_src::Vector{MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.EqualTo{Float64}}})
    @ MathOptInterface.Utilities ~/.julia/packages/MathOptInterface/1EYfq/src/Utilities/copy.jl:1020
@blegat
Copy link
Member

blegat commented May 14, 2021

The SDP part is not implemented yet, it currently only supports LPs

@blegat
Copy link
Member

blegat commented May 15, 2024

Closed by #29

@blegat blegat closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants