Skip to content
Snippets Groups Projects
Unverified Commit 53d876e9 authored by St. Elmo's avatar St. Elmo
Browse files

more reviews

parent c791716a
No related branches found
No related tags found
No related merge requests found
...@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment