Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

changeFobj

Function for changing the objective function of the model


Description

The generic function changeFobj changes the objective function, which is used for the linear programming in optimizeLP.

Usage

changeFobj(object, new_fobj, model, alg = "fba")

## S4 method for signature 'Human'
changeFobj(object, new_fobj, model, alg = "fba")

Arguments

object

An object of class Human.

new_fobj

A character vector giving the reaction name of the new objective function.

model

The original model structure which is converted into a problem object used for the next optimization.

alg

A character vector giving the algorithm which should be used for the optimization (default is flux balance analysis).

Details

To avoid the bias to just one particular objective function, the objective can be changed dynamically in this function.

See Also

Examples

data(Ec_core, envir = environment()) #get Escherichia coli core metabolic model
human <- Human(Ec_core,deathrate=0.05,
           minweight=0.05,growtype="exponential") #initialize a bacterium
changeFobj(human,'EX_glc(e)',Ec_core)

BacArena

Modeling Framework for Cellular Communities in their Environments

v1.8.2
GPL-3 | file LICENSE
Authors
Eugen Bauer [aut], Johannes Zimmermann [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.