Skip to content

Commit

Permalink
Remove test added in MOI (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Jan 21, 2025
1 parent 8b7bd32 commit 570a900
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 570a900

Please sign in to comment.