
    iterations: 77
     funcCount: 138
     algorithm: 'Nelder-Mead simplex direct search'
       message: [1x194 char]

</pre><p class="footer"><br>
         Published with MATLAB&reg; 7.0.1<br></p>
      <!--
##### SOURCE BEGIN #####
%% Optimization of a simple (Rosenbrock) function
rosen = @(x) (1-x(1)).^2 + 105*(x(2)-x(1).^2).^2;

% With no constraints, operation simply passes through
% directly to fminsearch. The solution should be [1 1]
xsol = fminsearchcon(rosen,[3 3])

%% Only lower bound constrain