Sets/changes the Objective Function
The function changeObjFunc
changes or sets the objective
function for a specified model.
changeObjFunc(model, react, obj_coef = rep(1, length(react)))
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>
## sets the objective function to the ATP maintenance reaction: data(Ec_core) Ec_new <- changeObjFunc(Ec_core, "ATPM")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.