powered by
The generic function consume implements the consumption and production of substances based on the flux of exchange reactions of organisms
consume
consume(object, sublb, cutoff = 1e-06, bacnum, fbasol)# S4 method for Organism consume(object, sublb, cutoff = 1e-06, bacnum, fbasol)
# S4 method for Organism consume(object, sublb, cutoff = 1e-06, bacnum, fbasol)
An object of class Organisms.
A vector containing the substance concentrations in the current position of the individual of interest.
A number giving the cutoff value by which value of objective function is considered greater than 0.
Integer indicating the number of bacteria individuals per gridcell
Problem object according to the constraints and then solved with optimizeProb.
optimizeProb
Returns the updated vector containing the substance concentrations in the current position of the individual of interest.
The consumption is implemented by adding the flux of the exchange reactions to the current substance concentrations.
Organism-class
# NOT RUN { NULL # }
Run the code above in your browser using DataLab