From d2b10434df6d13741614420b933b0870ea598222 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 23 May 2020 18:15:29 +0200 Subject: [PATCH] relax bounds in SCS and MUS --- smetana/smetana.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smetana/smetana.py b/smetana/smetana.py index 20768db..c824082 100644 --- a/smetana/smetana.py +++ b/smetana/smetana.py @@ -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: @@ -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: