Constraints

Constraints
is a list of rules ({vID → {lb, ub}, ...}) attribute containing constraints on steady-state fluxes.
Access the constraints of a model
Set new constraints for model (discard old ones)
Set constraints to previous values
Updating the constraints attribute will add to the already existing constraints. Newly defined constraints take precedence over already existing ones.
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Access the constraints of a model
In[3]:=
Click for copyable input
Out[3]//Short=
In[4]:=
Click for copyable input
Out[4]=
Set new constraints for model (discard old ones)
In[5]:=
Click for copyable input
In[6]:=
Click for copyable input
Out[6]=
Set constraints to previous values
In[7]:=
Click for copyable input
In[8]:=
Click for copyable input
Out[8]=
Updating the constraints attribute will add to the already existing constraints. Newly defined constraints take precedence over already existing ones.
In[9]:=
Click for copyable input
In[10]:=
Click for copyable input
Out[10]=
The initial model cannot carry a positive biomass flux.
Change the model's constraints to simulate glucose mininmal media condtions and require a certain ATP maintainance flux:
Now the biomass reaction can carry a flux