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

updating callbacks for other functions

parent ea7e1be4
......@@ -23,15 +23,10 @@ sol = pfba(model, biomass, optimizer; solver_attributes=atts)
function pfba(
model::CobraModel,
optimizer;
objective_func::Union{Reaction,Array{Reaction,1}} = Reaction[],
weights = Float64[],
solver_attributes = Dict{Any,Any}(),
constraints = Dict{String,Tuple{Float64,Float64}}(),
sense = MOI.MAX_SENSE,
modifications = [(model, opt_model) -> nothing]
)
## FBA ################################################
if typeof(optimizer) <: AbstractArray # choose optimizer
cbm = make_optimization_model(model, optimizer[1], sense = sense)
v = cbm[:x]
......
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