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: