From 580617796f2ce4d309b846f3ae865c62829092ff Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Thu, 19 Sep 2024 14:09:03 +0200 Subject: [PATCH] simplify --- docs/src/examples/05b-enzyme-constrained-models.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/src/examples/05b-enzyme-constrained-models.jl b/docs/src/examples/05b-enzyme-constrained-models.jl index c6ae20ae..54baacef 100644 --- a/docs/src/examples/05b-enzyme-constrained-models.jl +++ b/docs/src/examples/05b-enzyme-constrained-models.jl @@ -426,11 +426,8 @@ ec_optimum = optimized_values( # ...then creating a system constrained to near-optimal growth: import ConstraintTrees as C -ec_system *= - :optimum_bound^C.Constraint( - ec_system.objective.value, - C.Between(0.99 * ec_optimum, Inf), - ) + +ec_system.objective.bound = C.Between(0.99 * ec_optimum, Inf) # ...and finally, finding the extremes of the near-optimal part of the feasible # space: