Unverified Commit 35c07086 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

simplify model uploading

parent 05dce829
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment