This is an error within the documentation for Genetic Algorithm and Direct Search Toolbox 2.1 (R2007a). The documentation should implement the correct syntax as follows:
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.
Best Answer