The GA Procedure

ReadCompare Call

reads a segment from a selected solution into an array, within a user fitness comparison subroutine

call ReadCompare( selected, seg, n, values );

The inputs to the ReadCompare subroutine are as follows:

selected        specifies the pair of solutions to be compared, obtained from the selection process.
segspecifies the solution segment to be read.
nspecifies the solution (1 or 2) from which to read the segment.
valuesspecifies an array to receive the solution elements.

The ReadCompare call is used to obtain the solution values for manipulation within a user fitness comparison subroutine, which can be designated in a SetCompareRoutine call.

Previous Page | Next Page | Top of Page