diff --git a/test/runtests.jl b/test/runtests.jl index 16723d8..2be49be 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -204,26 +204,6 @@ end ) end -# See https://github.com/jump-dev/MosekTools.jl/issues/139 -# TODO add to MOI -@testset "Multiple PSD matrix in same constraint" begin - model = MOI.Bridges.full_bridge_optimizer( - MosekOptimizerWithFallback(), - Float64, - ) - x, _ = MOI.add_constrained_variables(model, MOI.PositiveSemidefiniteConeTriangle(2)) - y, _ = MOI.add_constrained_variables(model, MOI.PositiveSemidefiniteConeTriangle(2)) - MOI.add_constraint(model, sum(1.0 .* x) - sum(1.0 .* y), MOI.EqualTo(0.0)) - MOI.add_constraint(model, 1.0 * y[1] + 1.0 * y[3], MOI.GreaterThan(1.0)) - obj = 1.0 * x[1] + 1.0 * x[3] - MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE) - MOI.set(model, MOI.ObjectiveFunction{typeof(obj)}(), obj) - MOI.optimize!(model) - @test MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT - @test MOI.get.(model, MOI.VariablePrimal(), x) ≈ ones(3) ./ 6 rtol = 1e-6 - @test MOI.get.(model, MOI.VariablePrimal(), y) ≈ [1, -1, 1] ./ 2 rtol = 1e-6 -end - @testset "More SDP tests by forced bridging" begin model = MOI.Bridges.full_bridge_optimizer( MOI.Bridges.Constraint.RSOCtoPSD{Float64}( # Forced bridging