Previous Up Next

16.3.3  Derivative-free constrained optimization

The fMin and fMax commands find local minima and maxima of a multivariate function, possibly subject to constraints (either equalities or inequalities), by using the COBYLA algorithm.

Examples

fMax((x-2)^2+(y-1)^2,[-.25x^2-y^2+1>=0,x-2y+1=0],[x,y],[.5,.75])
     

−1.82287565553,−0.411437827766
          
fMin((x-5)^2+y^2-25,[y>=x^2],[x,y],[1,1])
     

1.2347728625,1.52466402196
          

Previous Up Next