Professional Documents
Culture Documents
( )
2
2 2
f( x , y ) := ( 1 − x ) + y − x <= Expression defining the banana function
0 (
obj := f x 0 , y 0 ) obj = 32
0
<= Value of objective function at (x0, y0)
⎛1⎞
( )
<= location of minimum as found using the Mathcad
Minimize f , x 0 , y 0 = ⎜ ⎟
⎝1⎠ minimize function - this is the 'right answer'
i (
r := f x , y
i i) <= Calculate values of objective function at random x,y points
( x , y , r)
0 1 2
Z= 0 0.056 1.063 0.901 <= Estimate of Minimum
1 0.408 0.51 -0.15
2 0.527 0.434 0.644