Skip to content

Commit

Permalink
mmdf acts sus
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jan 29, 2024
1 parent a1489e6 commit fc737e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/src/examples/06-mmdf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ using COBREXA

import Downloads: download

#TODO use AFBCMs functionality
!isfile("e_coli_core.json") &&
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")

# Additionally to COBREXA, and the model format package, we will need a solver
# -- let's use Tulip here:
# -- let's use GLPK here:

using COBREXA
import JSONFBCModels
import Tulip
import GLPK

model = load_model("e_coli_core.json")

Expand Down Expand Up @@ -116,8 +118,7 @@ mmdf_solution = max_min_driving_force_analysis(
concentration_upper_bound = 1e-1, # M
T = 298.15, # Kelvin
R = 8.31446261815324e-3, # kJ/K/mol
optimizer = Tulip.Optimizer,
settings = [set_optimizer_attribute("IPM_IterationsLimit", 1_000)],
optimizer = GLPK.Optimizer,
)

@test isapprox(mmdf_solution.max_min_driving_force, 5.78353, atol = TEST_TOLERANCE) #src

0 comments on commit fc737e3

Please sign in to comment.