Learn R Programming

simplace (version 5.1.2)

setAllSimulationValues: Changes values of the all simulations in queue

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

setAllSimulationValues(simplace, parameterLists = NULL)

Value

No return value, called for the side effect of changing parameters in all simulations

Arguments

simplace

handle to the SimplaceWrapper object returned by initSimplace

parameterLists

a list of parameter lists for each simulation

Examples

Run this code
if (FALSE) {
for(i in 1:365)
{
  params <- list()
  params[[1]] <- list(vBaseLUE=3.0 + i/2000)
  params[[2]] <- list(vBaseLUE=3.0 - i/2000)
  setAllSimulationValues(simplace,params)
  stepAllSimulations(simplace)
}
}

Run the code above in your browser using DataLab