Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 6, 2023
1 parent 84c8853 commit 3193fe8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/src/tutorials/Polynomial Optimization/ellipsoid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,27 @@ end
# The first level of the hierarchy gives a lower bound of `-7``

model2 = solve(2)
nothing # hide
@test objective_value(model2) -6 rtol=1e-4 #src
@test termination_status(model2) == MOI.OPTIMAL #src

# The second level improves the lower bound

model3 = solve(4)
@test objective_value(model5) -74/13 rtol=1e-4 #src
@test termination_status(model5) == MOI.OPTIMAL #src
model4 = solve(4)
nothing # hide
@test objective_value(model4) -74/13 rtol=1e-4 #src
@test termination_status(model4) == MOI.OPTIMAL #src

# The third level improves it even further

model6 = solve(6)
nothing # hide
@test objective_value(model6) -4.06848 rtol=1e-4 #src
@test termination_status(model6) == MOI.OPTIMAL #src

# The fourth level finds the optimal objective value as lower bound.

model8 = solve(8)
nothing # hide
@test objective_value(model8) -4 rtol=1e-4 #src
@test termination_status(model8) == MOI.OPTIMAL #src

0 comments on commit 3193fe8

Please sign in to comment.