The GA Procedure |
evaluates a standard objective function from within a user subroutine
The inputs to the function are as follows:
selected | is an array that specifies the solution to be evaluated. |
seg | is the desired segment of the solution to be evaluated. |
type | is objective function name, which also determines the number and type of parameters expected. |
parameter1-n | are optional parameters applicable to particular objective functions. |
The accepted values for type and the corresponding parameters are summarized in Table 1.3.
Table 1.3: Objective Function Typestype | encodings | parameters | |
'TSP' | sequence | distances |
distances | is a matrix of distances between locations, such that is the distance between location and . |
The Objective call should be made only from within a user objective function. The precise actions of the standard objective functions are described in the section "Objective Functions".
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.