The GA Procedure

ReadCompare Call

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

The ReadCompare call reads a segment from a selected solution into an array, within a user fitness comparison subroutine. The inputs to the ReadCompare subroutine are as follows:


specifies the pair of solutions to be compared, obtained from the selection process.


specifies the solution segment to be read.


specifies the solution (1 or 2) from which to read the segment.


specifies 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.