Specifying constraints for optimization using GA
1 view (last 30 days)
For a customized GA optimization as in the Traveling Salesman Problem example in matlab documentation, how to specify the constraints of optimization? Should it be specified explicitly or should it be included in the crossover and mutation functions?
Alan Weiss on 10 Jan 2017
As documented, when using a custom population type, "ga ignores all constraints, including bounds, linear constraints, and nonlinear constraints." So your custom creation, crossover, and mutation functions must enforce your constraints.
MATLAB mathematical toolbox documentation