initperm {adana}R Documentation

Permutation coded initialization

Description

This function generates an initial population when each variable of the chromosomes is desired to be encoded on a rank scale or permutation.

Usage

initperm(n, permset, prevpop, type, ...)

Arguments

n

Population size

permset

A vector of permutation set

prevpop

Matrix of solutions used in heuristic and hybrid initialization

type

Type of output matrix

...

Further arguments passed to or from other methods.

Details

Unlike other initialization function inputs, the initperm function has an argument called permset. This argument is a vector containing permutation set values. The permutation set can contain numbers or letters. In the initial population, each variable randomly takes any value from this set, but there cannot be two of the same value in a chromosome.

Value

The output matrix includes only chromosomes of initial population when type=2, otherwise The output matrix includes chromosomes of initial population and additional two empty columns for generation number and fitness values.

Author(s)

Zeynel Cebeci & Erkut Tekeli

See Also

initbin, initval, initnorm, initialize

Examples

n = 20   #Population size (number of chromosemes)
m = 6    #number of Variables
lb = c(10, 2, 5, 100, 50, 25)
ub = c(40, 8, 20, 500, 250, 90)
population = initval(n, m, lb=lb, ub=ub, nmode="integer")
tail(population, 3)

[Package adana version 1.1.0 Index]