Skip to content

Commit

Permalink
create constraints that avoid negative species populations by default
Browse files Browse the repository at this point in the history
  • Loading branch information
artgoldberg committed Dec 21, 2020
1 parent 93a1d3e commit 8af387f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wc_sim/submodels/dfba.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DfbaSubmodel(ContinuousTimeSubmodel):
}
OPTIMIZATION_TYPE = 'maximize'
FLUX_BOUNDS_VOLUMETRIC_COMPARTMENT_ID = 'wc'
NEG_POP_CONSTRAINTS = False
NEG_POP_CONSTRAINTS = True

# register the message types sent by DfbaSubmodel
messages_sent = [message_types.RunFba]
Expand Down Expand Up @@ -661,7 +661,7 @@ def run_fba_solver(self):
"""
self.determine_bounds()
self.update_bounds()
print('\n--- wc lang conv opt model ---')
# print('\n--- wc lang conv opt model ---')
# print(ShowConvOptElements.show_conv_opt_model(self.get_conv_model()))

# scale just before solving
Expand Down

0 comments on commit 8af387f

Please sign in to comment.