You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Does not work
model =Model(with_optimizer(CSDP.Optimizer))
@variable(model, x)
@constraint(model, [4x x; x 4x] -ones(2, 2) inPSDCone())
@objective(model, Min, x)
optimize!(model)
and gives the error
ERROR: Using bridged variable in`SingleVariable`function.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] bridged_function at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Bridges/bridge_optimizer.jl:950 [inlined]
[3] set(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{CSDP.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.ObjectiveFunction{MathOptInterface.SingleVariable}, ::MathOptInterface.SingleVariable) at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Bridges/bridge_optimizer.jl:450
[4] _pass_attributes(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{CSDP.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}, ::Bool, ::MathOptInterface.Utilities.IndexMap, ::Array{MathOptInterface.AbstractModelAttribute,1}, ::Tuple{}, ::Tuple{}, ::Tuple{}, ::typeof(MathOptInterface.set)) at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Utilities/copy.jl:148
[5] pass_attributes at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Utilities/copy.jl:112 [inlined]
[6] pass_attributes at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Utilities/copy.jl:111 [inlined]
[7] default_copy_to(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{CSDP.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}, ::Bool) at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Utilities/copy.jl:337
[8] #automatic_copy_to#97 at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Utilities/copy.jl:15 [inlined]
[9] #automatic_copy_to at ./none:0 [inlined]
[10] #copy_to#1 at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Bridges/bridge_optimizer.jl:167 [inlined]
[11] (::getfield(MathOptInterface, Symbol("#kw##copy_to")))(::NamedTuple{(:copy_names,),Tuple{Bool}}, ::typeof(MathOptInterface.copy_to), ::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{CSDP.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}) at ./none:0
[12] attach_optimizer(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}) at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Utilities/cachingoptimizer.jl:138
[13] optimize!(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}) at /home/guilhermebodin/.julia/packages/MathOptInterface/016Ol/src/Utilities/cachingoptimizer.jl:174
[14] #optimize!#78(::Bool, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Model, ::Nothing) at /home/guilhermebodin/.julia/packages/JuMP/iGamg/src/optimizer_interface.jl:141
[15] optimize! at /home/guilhermebodin/.julia/packages/JuMP/iGamg/src/optimizer_interface.jl:111 [inlined] (repeats 2 times)
[16] top-level scope at none:0
# Work
model =Model(with_optimizer(SCS.Optimizer))
@variable(model, x)
@constraint(model, [4x x; x 4x] -ones(2, 2) inPSDCone())
@objective(model, Min, x)
optimize!(model)
This works in SCS but does not in CSDP
and gives the error
This is the Project.toml I am testing against
The text was updated successfully, but these errors were encountered: