find_best_selection_SA: find_best_selection_SA

Description Usage Arguments Value Author(s) Examples

Description

Run a simulation in parallel mode with Simulated Annealing

Usage

1
find_best_selection_SA(area_census, insms, inseed = -1)

Arguments

area_census

A census dataset consisting of various areas rows.

insms

A microsimulation object which holds the data and details of the simulation such as iterations, lexicon.

inseed

A number to be used for random seed.

Value

msm_results An object with the results of the simulation, of this area.

Author(s)

Dimitris Kavroudakis dimitris123@gmail.com

Examples

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

this_area=as.data.frame(census[1,]) #Select the first area from the census table
insms= new("microsimulation",census=census, panel=survey, lexicon=in.lexicon, iterations=5)
myselection= find_best_selection_SA( this_area, insms, inseed=1900)
print(myselection)

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