</span>
<span class="comment">% be active in this test.</span>
LB = [.5 .5 .5 .5 .5];
xsol = fminsearchcon(Quadraticfun,[1 2 3 4 5],LB,[],[],[],[],opts)
</pre><pre class="codeoutput"> 
 Iteration   Func-count     min f(x)         Procedure
     0            1          351.442         
     1            6          351.442         initial simplex
     2            8          296.007         expand
     3            9          296.007         reflect
     4           10          296.007         reflect
     5 