Skip to content

Commit

Permalink
Fix: typo in slow_fba, a bug in fast_fba
Browse files Browse the repository at this point in the history
  • Loading branch information
KeShih committed May 18, 2024
1 parent c51f0a5 commit f8c5e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dingo/fba.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def slow_fba(lb, ub, S, c):
"""A Python function to perform fba using scipy.optimize LP solver `linprog`
Returns an optimal solution and its value for the following linear program:
min c*v, subject to,
max c*v, subject to,
Sv = 0, lb <= v <= ub
Keyword arguments:
Expand Down
4 changes: 2 additions & 2 deletions dingo/gurobi_based_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def fast_fba(lb, ub, S, c):
optimum_value = -model.getObjective().getValue()
v = model.getVars()

for i in range(n):
optimum_sol.append(v[i].x)
for i in range(n):
optimum_sol.append(v[i].x)

optimum_sol = np.asarray(optimum_sol)

Expand Down

0 comments on commit f8c5e8d

Please sign in to comment.