Description Usage Arguments Details Value See Also Examples
The generic function simEnv_par
for a simple in parallel all simulation of the environment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | simEnv_par(
object,
time,
lrw = NULL,
continue = FALSE,
reduce = FALSE,
cluster_size = NULL,
diffusion = TRUE,
sec_obj = "none",
cutoff = 1e-06,
with_shadow = FALSE,
verbose = TRUE
)
## S4 method for signature 'Arena'
simEnv_par(
object,
time,
lrw = NULL,
continue = FALSE,
reduce = FALSE,
cluster_size = NULL,
diffusion = TRUE,
sec_obj = "none",
cutoff = 1e-06,
with_shadow = FALSE,
verbose = TRUE
)
|
object |
An object of class Arena or Eval. |
time |
A number giving the number of iterations to perform for the simulation |
lrw |
A numeric value needed by solver to estimate array size (by default lwr is estimated in the simEnv() by the function estimate_lrw()) |
continue |
A boolean indicating whether the simulation should be continued or restarted. |
reduce |
A boolean indicating if the resulting |
cluster_size |
Number of cpu cores to be used. |
diffusion |
True if diffusion should be done (default on). |
sec_obj |
character giving the secondary objective for a bi-level LP if wanted. |
cutoff |
value used to define numeric accuracy |
with_shadow |
True if shadow cost should be stores (default off). |
verbose |
Set to false if no status messages should be printed. |
The returned object itself can be used for a subsequent simulation, due to the inheritance between Eval
and Arena
.
Returns an object of class Eval
which can be used for subsequent analysis steps.
1 2 3 4 5 6 7 | data(Ec_core, envir = environment()) #get Escherichia coli core metabolic model
bac <- Bac(Ec_core,deathrate=0.05,
minweight=0.05,growtype="exponential") #initialize a bacterium
arena <- Arena(n=20,m=20) #initialize the environment
arena <- addOrg(arena,bac,amount=10) #add 10 organisms
arena <- addSubs(arena,40) #add all possible substances
eval <- simEnv(arena,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.