funOptimizeSim {babsim.hospital}R Documentation

funOptimizeSim

Description

Interface function to evaluate one parameter configuration from babsimHospitalPara

Usage

funOptimizeSim(x, conf, data, ...)

Arguments

x

num: real values. Will be interpreted as parameter values for babsimHospital. Names of these parameters can be obtained via getParameterName.

conf

list with the following entries:

seed

seed. Default: 123

simRepeats

simmer repeats

parallel

simmer parallel runs. Default: FALSE

perCores

percentage of cores used for parallel simmer simulations. Default: 0.5 (=50 percent)

ICU

use ICU infection data. Default: FALSE

logLevel

log leved (0 or 1). Default: 0 (no output)

data

list with simData and fieldData

...

additional variables

Value

This function returns a real value, that represents the combined rmse from the three beds types.

Examples

x <- getStartParameter()
conf <- babsimToolsConf()
data <- getObkData()
err <- funOptimizeSim(x = x, conf = conf, data = data)

[Package babsim.hospital version 11.8.4 Index]