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