Unverified Commit f262f0e8 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

apply modifications to the FVA reaction-solving problem

parent 065dbcfa
......@@ -64,7 +64,11 @@ function flux_variability_analysis(
# store a JuMP optimization model at all workers
save_model = :(
begin
optmodel = $COBREXA.make_optimization_model($model, $optimizer)
model = $model
opt_model = $COBREXA.make_optimization_model(model, $optimizer)
for mod in $modifications
mod(model, opt_model)
end
$COBREXA._FVA_add_constraint(optmodel, $(objective(model)), optmodel[:x], $Z)
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