Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/changeObjFunc.R
The function changeObjFunc
changes or sets the objective
function for a specified model.
1 |
model |
An object of class |
react |
An object of class |
obj_coef |
A numerical vector with length equal to the number of reaction id's
given in argument |
The argument react
will be evaluated by the function
checkReactId
. The return value is used to change
the objective function.
All reactions not given in argument react
will get an objective
value of zero.
Returns the given model containing the new objective function.
Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>
Maintainer: Mayo Roettger <mayo.roettger@hhu.de>
1 2 3 | ## sets the objective function to the ATP maintenance reaction:
data(Ec_core)
Ec_new <- changeObjFunc(Ec_core, "ATPM")
|
Loading required package: Matrix
Loading required package: lattice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.