Learn R Programming

simplace (version 5.0.13)

setSimulationValues: 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)

Value

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

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)

Examples

Run this code
if (FALSE) {
for(i in 1:365)
{
  param <- list(vBaseLUE=3.0 + i/2000)
  setSimulationValues(simplace,param)
  stepSimulation(simplace)
}
}

Run the code above in your browser using DataLab