Skip to content
Snippets Groups Projects
Unverified Commit 35c07086 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil :bicyclist:
Browse files

simplify model uploading

parent 05dce829
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,10 @@ function warmup(
# create optimization problem, apply constraints
save_model = :(
begin
optmodel = $COBREXA.make_optimization_model($model, $optimizer)
model = $model
optmodel = $COBREXA.make_optimization_model(model, $optimizer)
for mod in $modifications
mod($model, optmodel)
mod(model, optmodel)
end
optmodel
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment