Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Sep 19, 2024
1 parent 4bccebf commit 5806177
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/src/examples/05b-enzyme-constrained-models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5806177

Please sign in to comment.