Skip to content

Commit

Permalink
remove workers
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Apr 23, 2024
1 parent bdbcbf5 commit 7df6094
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions docs/src/examples/02d-flux-variability-analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ addprocs(2) # add workers to distribute optimization problem across more CPUs
@everywhere using COBREXA, GLPK # load packages on workers

solution = flux_variability_analysis(model, optimizer = GLPK.Optimizer; workers=workers()) # distribute work to more cores

rmprocs(workers()...) # cleanup
5 changes: 0 additions & 5 deletions docs/src/examples/10-knockouts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ download_model(
import JSONFBCModels
import GLPK

@everywhere begin #src
import JSONFBCModels #src
import GLPK #src
end #src

model = load_model("e_coli_core.json")

# ## Single gene knockouts
Expand Down
5 changes: 0 additions & 5 deletions docs/src/examples/12-screening.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ download_model(
import JSONFBCModels, GLPK
import ConstraintTrees as C

@everywhere begin #src
import JSONFBCModels, GLPK #src
import ConstraintTrees as C #src
end #src

model = load_model("e_coli_core.json")

screen(-10:0) do o2_bound
Expand Down

0 comments on commit 7df6094

Please sign in to comment.