Learn R Programming

sms (version 2.3.1)

run_parallel_SA: run_parallel_SA

Description

Run a simulation in parallel mode with Simulated Annealing

Usage

run_parallel_SA(insms, inseed = -1)

Arguments

insms
A microsimulation object which holds the data and details of the simulation such as iterations, lexicon.
inseed
A random number to be used for random seed.

Value

msm_results An object with the results of the simulation, for each area.

Examples

Run this code
library(sms)
data(survey)
data(census)
in.lexicon=createLexicon()
in.lexicon=addDataAssociation(in.lexicon, c("he","he"))
in.lexicon=addDataAssociation(in.lexicon, c("females","female"))

insms= new("microsimulation",census=census, panel=survey, lexicon=in.lexicon, iterations=5)
results= run_parallel_SA(insms, inseed=1900)
print(results)

Run the code above in your browser using DataLab