Download the Code
Download the code described in "Optimization with MATLAB and the Global Optimization Toolbox" that finds the minimum of a nonsmooth surface using:
- The genetic algorithm
- The genetic algorithm in conjunction with a derivative-based algorithm from the Optimization Toolbox
- The pattern search algorithm
You will need the Optimization Toolbox and the Global Optimization Toolbox to run this code. Request a 30-day trial of these toolboxes.