Text this: MATLAB nonlinear optimization with fmincon.