From 1becb0f8d1203eae1c57f4b10705efc07302950d Mon Sep 17 00:00:00 2001 From: odow Date: Thu, 3 Oct 2024 19:49:16 +1300 Subject: [PATCH] Update --- docs/src/tutorials/getting_started/tolerances.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/tutorials/getting_started/tolerances.jl b/docs/src/tutorials/getting_started/tolerances.jl index b6ea6738d6f..7f9788550c4 100644 --- a/docs/src/tutorials/getting_started/tolerances.jl +++ b/docs/src/tutorials/getting_started/tolerances.jl @@ -384,7 +384,7 @@ is_solved_and_feasible(model) model = Model() @variable(model, x) -@constraint(model, 1e-8 * x == 1-4) +@constraint(model, 1e-8 * x == 1e-4) # This should have the solution that $x = 10^4$, but because the feasibility # tolerance of this constraint is $|10^{-4} - 10^{-8} * x| < 10^{-8}$, it @@ -468,3 +468,7 @@ model = Model() # This problem is equivalent to the original problem, but it has much better # problem scaling. + +# As a general rule, to fix problem scaling you must simultaneously scale both +# variables and constraints. It is usually not sufficient to scale variables or +# constraints in isolation.