This example shows how to minimize an objective function subject to nonlinear inequality constraints and bounds using the Genetic Algorithm.
www.mathworks.com