        </ul>
      </div>
      <h2>Optimization of a simple (Rosenbrock) function<a name="1"></a></h2><pre class="codeinput">rosen = @(x) (1-x(1)).^2 + 105*(x(2)-x(1).^2).^2;

<span class="comment">% With no constraints, operation simply passes through</span>
<span class="comment">% directly to fminsearch. The solution should be [1 1]</span>
xsol = fminsearchcon(rosen,[3 3])
</pre><pre class="codeoutput">
xsol =

      0.99998      0.99995

</pre><h2>Only lower bound constraints<a name="2"></a></h2><pre c