selectparents: select parents in the genetic algorithms

Description Usage Arguments Value Author(s)

Description

In this selection mechanism, parents are chosen to produce offspring in the next stage. Three different methods are provided: "twopropselection", "onepropselection" and "tournament"

Usage

1
selectparents(originalparents, couplenum, method, fitness, subsetnum = NULL)

Arguments

originalparents

is a casenum * variablenum matrix

couplenum

number of couples selected

method

the method to select the parents, "twopropselection", "onepropselection" or "tournament"

fitness

goodness of fit ~ a casenum * 1 vector , default is AICvalue

subsetnum

In method "tournament", we partition the set of chromosomes in generation t into "subsetnum" disjoint subsets

Value

Returns the selected parents ~ list

Author(s)

Lei Zhang


lixiao0214/GA documentation built on May 3, 2019, 7:06 p.m.