Unverified Commit d55323dd authored by Laurent Heirendt's avatar Laurent Heirendt Committed by GitHub
Browse files

Merge pull request #454 from LCSB-BioCore/mk-revert-disable-bridges

Revert "completely disable JuMP bridge constraints"
parents e95c4130 0cb0e452
Pipeline #47075 passed with stages
in 41 minutes and 41 seconds
......@@ -16,7 +16,7 @@ function make_optimization_model(model::MetabolicModel, optimizer; sense = MOI.M
m, n = size(stoichiometry(model))
xl, xu = bounds(model)
optimization_model = Model(optimizer; bridge_constraints = false)
optimization_model = Model(optimizer)
@variable(optimization_model, x[i = 1:n])
@objective(optimization_model, sense, objective(model)' * x)
@constraint(optimization_model, mb, stoichiometry(model) * x .== balance(model)) # mass balance
......
Markdown is supported
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