get.value.array: Get values from model components

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/clientmmii.R

Description

Retrieves data from the model, as either a single quantity or an array of values with the appropriate dimensions

Usage

1
get.value.array(instance.handle, value.name, as.enum.types)

Arguments

instance.handle

The handle returned by create.model(), identifying an executable model instance.

value.name

Caption path to the model component whose values are required

as.enum.types

Logical: whether to supply values as character strings, using enumerated type names if applicable. Default is false: values are numerical.

Value

A value or array of values, from the model

Note

Will not work on components inside variable-membership submodels. For these you should use get.value.list instead, as R's list structure is more appropriate than the array structure when not all values exist.

Author(s)

Jasper Taylor

See Also

get.value.list

Examples

1
2
3
get.value.array("dummy_ih", "/sector/output", FALSE)
# [1]  0.8414710  0.9092974  0.1411200 -0.7568025 -0.9589243 -0.2794155
# [7]  0.6569866  0.9893582  0.4121185 -0.5440211

Simile documentation built on May 2, 2019, 6:52 a.m.