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

more reviews

parent c791716a
Pipeline #50156 passed with stages
in 7 minutes and 39 seconds
......@@ -249,8 +249,8 @@ function change_objective!(
all(!haskey(model.reactions, rid) for rid in rxn_ids) &&
throw(DomainError(rxn_ids, "Some reaction ids were not found in model."))
for rid in reactions(model) # reset to zero
model.reactions[rid].objective_coefficient = 0.0
for (_, rxn) in model.reactions # reset to zero
rxn.objective_coefficient = 0.0
for (k, rid) in enumerate(rxn_ids)
model.reactions[rid].objective_coefficient = weights[k]
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