Model.new: Creates a new OpenABM Model (wrapper for 'Model$new()')

Description Usage Arguments Value

View source: R/Model.R

Description

Creates a new OpenABM Model instance from a Parameters object and/or a list of parameters overrides.

Note that model instances are a memory/CPU extensive and this function can take a few seconds to complete.

Usage

1
Model.new(params_object = NULL, params = NULL)

Arguments

params_object

An object of type Parameters or NULL (for default params). The constructor will lock the parameter values (ie. params_code will become read-only).

params

A named list of parameters fo override (default NULL for no overrides)

Value

Model object (R6 Class), NULL on error or if out-of-memory.


OpenABMCovid19 documentation built on July 20, 2021, 5:08 p.m.