setSimulationValues {simplace}R Documentation

Changes values of the current simulation

Description

Sets values of arbitrary SimVariables in a simplace simulation. Useful if you want to couple simplace with another simulation and interchange values daily.

Usage

setSimulationValues(simplace, parameterList = NULL, simulationNumber = 1)

Arguments

simplace

handle to the SimplaceWrapper object returned by initSimplace

parameterList

a list with the parameter name as key and parametervalue as value

simulationNumber

number of simulation in the queue whose parameters should be set (default first simulation)

Value

No return value, called for the side effect of changing parameters in the current simulation

Examples

## Not run: 
for(i in 1:365)
{
  param <- list(vBaseLUE=3.0 + i/2000)
  setSimulationValues(simplace,param)
  stepSimulation(simplace)
}

## End(Not run)


[Package simplace version 5.0.13 Index]