Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 6, 2023
1 parent 3193fe8 commit ca31943
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/tutorials/Polynomial Optimization/bilinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ end
# The first level of the hierarchy gives a lower bound of `2100`

model2 = solve(2)
nothing # hide
@test objective_value(model2) 2100 rtol=1e-4 #src
@test termination_status(model2) == MOI.OPTIMAL #src
2 changes: 1 addition & 1 deletion docs/src/tutorials/Polynomial Optimization/ellipsoid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#md # [![](https://mybinder.org/badge_logo.svg)](@__BINDER_ROOT_URL__/generated/Polynomial Optimization/ellipsoid.ipynb)
#md # [![](https://img.shields.io/badge/show-nbviewer-579ACA.svg)](@__NBVIEWER_ROOT_URL__/generated/Polynomial Optimization/ellipsoid.ipynb)
# **Adapted from**: Section 3.5 of [F99], Example 6.23 of [L09] and Table 5.1 of [Las09]
# **Adapted from**: Section 3.5 of [F99] and Table 5.1 of [Las09]
#
# [F99] Floudas, Christodoulos A. et al.
# *Handbook of Test Problems in Local and Global Optimization.*
Expand Down
3 changes: 3 additions & 0 deletions docs/src/tutorials/Polynomial Optimization/min_univariate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,21 @@ end
# The first level of the hierarchy gives a lower bound of `-7``

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

# The second level improves the lower bound

model5 = solve(5)
nothing # hide
@test objective_value(model5) -20/3 rtol=1e-4 #src
@test termination_status(model5) == MOI.OPTIMAL #src

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

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

Expand Down

0 comments on commit ca31943

Please sign in to comment.