View source: R/netsim_scenarios.R
netsim_run_one_scenario | R Documentation |
netsim
call with a scenario and saves the results deterministicallyThis inner function is called by netsim_scenarios
and
step_tmpl_netsim_scenarios
.
netsim_run_one_scenario(
scenario,
batch_num,
path_to_x,
param,
init,
control,
libraries,
output_dir,
n_batch,
n_rep,
n_cores,
save_all,
save_elements
)
scenario |
A single " |
batch_num |
The batch number, calculated from the number of replications and CPUs required. |
path_to_x |
Path to a Fitted network model object saved with |
param |
Model parameters, as an object of class |
init |
Initial conditions, as an object of class |
control |
Control settings, as an object of class
|
libraries |
A character vector containing the name of the libraries required for the model to run. (e.g. EpiModelHIV or EpiModelCOVID) |
output_dir |
The folder where the simulation files are to be stored. |
n_batch |
The number of batches to be run |
n_rep |
The number of replication to be run for each scenario. |
n_cores |
The number of CPUs on which the simulations will be run. |
save_all |
A flag instructing to save the result of the
|
save_elements |
A character vector of elements to keep from the
|
This function takes care of editing .checkpoint.dir
to create unique sub
directories for each scenario. The EpiModel::control.net
way of setting up
checkpoints can be used transparently.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.