Unverified Commit a48a9090 authored by St. Elmo's avatar St. Elmo
Browse files

to matrix

parent f5197c3d
Pipeline #43091 passed with stages
in 8 minutes and 51 seconds
......@@ -68,10 +68,9 @@ function frugal_flux_balance_analysis(
# add transformation variables
t = @variable(opt_model, t[1:length(frugal_reactions)])
@objective(opt_model, Min, sum(t))
for (i, frugal_reaction) in enumerate(frugal_reactions)
@constraint(opt_model, t[i] >= opt_model[:x][frugal_reaction])
@constraint(opt_model, t[i] >= -opt_model[:x][frugal_reaction])
end
@constraint(opt_model, t .>= I(length(frugal_reactions))*opt_model[:x][frugal_reactions])
@constraint(opt_model, t .>= -I(length(frugal_reactions))*opt_model[:x][frugal_reactions])
for rb in relax_bounds
lb, ub = objective_bounds(rb)(Z)
......
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