View source: R/SimplaceWrapper.R
setAllSimulationValues | R Documentation |
Sets values of arbitrary SimVariables in a simplace simulation. Useful if you want to couple simplace with another simulation and interchange values daily.
setAllSimulationValues(simplace, parameterLists = NULL)
simplace |
handle to the SimplaceWrapper object returned by |
parameterLists |
a list of parameter lists for each simulation |
No return value, called for the side effect of changing parameters in all simulations
## Not run:
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)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.