makeonecross: Make a cross from two solutions and mutate.

Description Usage Arguments Author(s)

View source: R/makeonecross.R

Description

Given two training sets, identifiers for candidates, this function makes a new solution using crossover and one point mutation with probability mutprob. Only one mutation is allowed.

Usage

1
makeonecross(x1, x2, Candidates, mutprob, mutintensity=2)

Arguments

x1

a vector of identifiers selected from the candidate set.

x2

a vector of identifiers selected from the candidate set that has the same length as x1.

Candidates

vector of identifiers for individuals in the candidate set.

mutprob

point mutation probability for each individual generated. Only one mutation per solution is allowed.

mutintensity

mean of the poisson variable that is used to decide the number of mutations for each cross.

Author(s)

Deniz Akdemir


STPGA documentation built on May 2, 2019, 8:19 a.m.