Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
NewChrom = mutint(Chrom, VLUB, MutOpt)
MUTation for INTeger representation This function takes the integer representation of the current population, mutates each element with given probability and returns the resulting population. Syntax: NewChrom = mutint(Chrom, VLUB, MutOpt) Input parameters: Chrom - A matrix containing the chromosomes of the current population. Each row corresponds to an individuals string representation. VLUB - Matrix containing the boundaries of each variable. not used here, necessary for compatibility with real valued mutation MutOpt - (optional) Vector containing mutation options (similar to real valued mutation in mutreal) MutOpt(1): MutRate - number containing the mutation rate - probability for mutation of a variable if omitted or NaN, MutRate = 1/variables per individual is assumed MutOpt(2): MutRange - (optional) number for shrinking the mutation range in the range [0 1], possibility to shrink the range of the mutation depending on, for instance actual generation. if omitted or NaN, MutRange = 1 is assumed MutOpt(3): MutPreci - (optional) precision of mutation steps if omitted or NaN, MutPreci = 16 is assumed Output parameter: NewChrom - Matrix containing a mutated version of Chrom. See also: mutate, mutreal, mutbmc, mutbin, initip
This function is called by | |
---|---|