run_parallel_SA: run_parallel_SA

Description Usage Arguments Value Author(s) Examples

View source: R/sms.R

Description

Run a simulation in parallel mode with Simulated Annealing

Usage

1
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.

Author(s)

Dimitris Kavroudakis [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

sms documentation built on May 1, 2019, 8:18 p.m.