Skip to content

Commit

Permalink
Fix failing test by bounding SOS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Feb 8, 2024
1 parent 4c7efa9 commit 346045c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/JuMP_tests.jl
Expand Up @@ -453,11 +453,10 @@ function _specialorderedset(opt)
m = JuMP.Model(opt)

JuMP.@variable(m, u)
JuMP.@variable(m, w[1:3])
JuMP.@variable(m, 0 <= w[1:3] <= 1.5)
w0 = w + [1.1, 2.3, 3.5]
JuMP.@constraint(m, vcat(u, w0) in MOI.GeometricMeanCone(4))
JuMP.@objective(m, Max, u)
JuMP.@constraint(m, w .<= 1.5)
JuMP.@constraint(m, w in S([1.0, 2, 3]))
JuMP.optimize!(m)

Expand Down

0 comments on commit 346045c

Please sign in to comment.