Usage
load_workset(model, set)
load_scenario(model, set)
Arguments
- model
Model digest or model name.
- set
Name of workset (input set of model parameters).
Value
An OpenMppWorkset
instance.
Details
load_scenario()
is an alias for load_workset()
.
Public fields
WorksetName
Workset name.
WorksetMetadata
Workset metadata.
OpenMppType
OpenM++ object type (used for print()
).
Parameters
Workset parameters.
Active bindings
ReadOnly
Workset read-only status.
BaseRunDigest
Base run digest for input parameters.
Methods
Method new()
Create a new OpenMppWorkset object.
Arguments
model
Model digest or name.
set
Workset name.
Returns
A new OpenMppWorkset
object.
Print a OpenMppWorkset
object.
Usage
OpenMppWorkset$print(...)
Method set_base_digest()
Set the base run digest.
Usage
OpenMppWorkset$set_base_digest(base)
Method delete_base_digest()
Delete the base run digest.
Usage
OpenMppWorkset$delete_base_digest()
Method copy_params()
Copy parameters from a base scenario.
Usage
OpenMppWorkset$copy_params(names)
Arguments
names
Character vector of parameter names.
Method delete_params()
Delete parameters from scenario.
Usage
OpenMppWorkset$delete_params(names)
Arguments
names
Character vector of parameter names.
Method get_param()
Retrieve a parameter.
Usage
OpenMppWorkset$get_param(name)
Method set_param()
Set a parameter.
Usage
OpenMppWorkset$set_param(name, data)
Arguments
name
Parameter name.
data
New parameter data.
Method run()
Initiate a model run for the model workset/scenario.
Usage
OpenMppWorkset$run(
name,
opts = opts_run(),
wait = FALSE,
wait_time = 0.2,
progress = TRUE
)
Arguments
name
Run name.
opts
Run options. See opts_run()
for more details.
wait
Logical. Should we wait until the model run is done?
wait_time
Number of seconds to wait between status checks.
progress
Logical. Should a progress bar be shown?