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

Merge pull request #450 from LCSB-BioCore/mk-disable-jump-bridges

completely disable JuMP bridge constraints
parents aad22c68 e99747f6
Pipeline #46847 passed with stages
in 38 minutes and 5 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)
optimization_model = Model(optimizer; bridge_constraints = false)
@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