data(swiss)
genetic(cor(swiss),3,4,popsize=10,nger=5,iseed=c(2345,3276,1568,3187),criterion="Rv")
## For cardinality k= 4
## Generation number 4 does not
## have sufficient genetic diversity
## for acceptable levels of consanguinity
## (couples differing by at least 2 genes).
##
## This situation may be overcome by
## reducing the maximum acceptable number
## of clones (maxclone).
##
##
## Best criterion value found so far: 0.955714479
##
## $subsets
## Var.1 Var.2 Var.3
## Solution 1 1 2 3
## Solution 2 1 2 5
## Solution 3 3 4 6
## Solution 4 1 4 5
## Solution 5 3 4 5
## Solution 6 3 4 5
## Solution 7 3 4 5
## Solution 8 2 4 5
## Solution 9 1 3 4
## Solution 10 1 3 4
##
## $values
## Solution 1 Solution 2 Solution 3 Solution 4 Solution 5 Solution 6
## 0.9141995 0.9098502 0.9034868 0.9023910 0.9020271 0.9020271
## Solution 7 Solution 8 Solution 9 Solution 10
## 0.9020271 0.8982510 0.8940945 0.8940945
##
## $bestvalues
## Card.3
## 0.9141995
##
## $bestsets
## Var.1 Var.2 Var.3
## 1 2 3
##
Run the code above in your browser using DataLab