Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 19, 2024
1 parent 407566d commit a2e86bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/tutorials/getting_started/tolerances.jl
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ print(model)
# This model has a feasible solution (to tolerances) of `(x, y) = (1, 1e-6)`.
# There can be a non-zero value of `x` even when `y` is (approximately) `0`.

primal_feasibility_report(model, Dict(x => 1, y => 1e-6))
primal_feasibility_report(model, Dict(x => 1.0, y => 1e-6))

# ### Rounding the solution

Expand All @@ -279,7 +279,7 @@ primal_feasibility_report(model, Dict(x => 1, y => 1e-6))
# `x <= M * y` is now violated by a value of `1.0`, which is much greater than a
# typical feasibility tolerance of `1e-8`.

primal_feasibility_report(model, Dict(x => 1, y => 0))
primal_feasibility_report(model, Dict(x => 1.0, y => 0.0))

# ### Why you shouldn't use a small tolerance

Expand Down

0 comments on commit a2e86bf

Please sign in to comment.