The GA Procedure |
reruns the evaluation phase of the genetic algorithm
The inputs to the ReEvaluate subroutine are as follows:
index | is a numeric scalar or array that specifies the indices of the solutions to be updated. The indices correspond to the order of the solutions obtained from a GetSolutions call. |
The ReEvaluate call recomputes the objective values for the current generation. You do not normally need to use this call, because the GA procedure evaluates the objective function during the optimization process in the evaluation phase. This subroutine should be called from a user update or finalize routine if a parameter that affects the objective value or solution is changed. The optional index parameter enables you to restrict the recomputation to the solution or subset of solutions specified. If the index parameter is not supplied, then the objective values of all the solutions will be recomputed.
For example, you might have a user objective function that can perform an additional local optimization if a particular parameter is set. If your update routine changes that parameter, then you should call the ReEvaluate subroutine to update the solutions and objective function values.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.