Skip to content

Commit

Permalink
relax bounds in SCS and MUS
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanielmachado committed May 23, 2020
1 parent c56d877 commit d2b1043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smetana/smetana.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def sc_score(community, environment=None, min_growth=0.1, n_solutions=100, verbo

solver.update()

bigM = 100
bigM = 1000
for org_id, rxns in community.organisms_reactions.items():
org_var = 'y_{}'.format(org_id)
for r_id in rxns:
Expand Down Expand Up @@ -134,8 +134,8 @@ def mu_score(community, environment=None, min_mol_weight=False, min_growth=0.1,
if environment:
environment.apply(community.merged, inplace=True, warning=False)

max_uptake = max_uptake * len(community.organisms)
scores = {}

solver = solver_instance(community.merged)

for org_id in community.organisms:
Expand Down

0 comments on commit d2b1043

Please sign in to comment.