The GA Procedure

Cross Call

executes a genetic crossover operator from within a user subroutine

call Cross( selected, seg, type<, parameter1, parameter2, ...> );

The inputs to the subroutine are as follows:

selected        is an array that specifies the solutions to be crossed.
segis the desired segment of the solution to which the crossover operator should be applied.
typeis the type of crossover operator to apply, which also determines the number and type of parameters expected.
parameter1-nare optional parameters applicable to some operators.

The accepted values for type and the corresponding parameters are summarized in Table 1.1.

Table 1.1: Crossover Operator Types
Type Encodings Parameters
'arithmetic'real, integer 
'cycle'sequence 
'heuristic'real 
'null'all encodings 
'order'sequence 
'pmatch'sequence 
'simple'real, integer, Booleanalpha
'twopoint'real, integer, Booleanalpha
'uniform'real, integer, Booleanalpha, p
The parameters are as follows:

alpha        is a number such that 0 \lt alpha \leq 1.
p        is a probability such that 0 \lt p \leq 0.5.

The Cross call should be made only from within a user crossover subroutine. The precise action of these crossover operators is described in the section "Crossover Operators".

Previous Page | Next Page | Top of Page