

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


x =1.308 y =−2.056 f x y( , ) =−15.
Taking the steepest descent step:
h :=Minimize g h( , ) h =−0.
h :=0.1^ initial guess
Finding the optimal step size numerically:
h h
d g h( ) d
:= solve h, →−.
Finding the optimal step size analytically:
Gradient direction:
Starting point:
First Step:
dfdy x y( , ) y
d f x y( , ) d
:= → 11 +4 y⋅ −2 x⋅
dfdx x y( , ) x
d f x y( , ) d
:= →− 7 +2.4 x⋅ −2 y⋅
Gradient Components:
minimize: f x y( , ) :=− 7 ⋅ x+ 1.2 x ⋅ 2 + 11 y⋅ + 2 y ⋅ 2 −2 x⋅ ⋅y
x =1.071 y =−2.214 f x y( , ) =−15.
x y
:=Minimize f x( , ,y)
x := 1 y :=− 1 initial guesses
Using MathCAD's Built-in Solver:
x =1.069 y =−2.208 f x y( , ) =−15.
New point (after step 2)
h :=Minimize g h( , ) h =−0.
h :=0.1 initial guess
Step Size (calculated numerically):
Gradient direction:
x 0 :=x y 0 :=y
New Point (step 2 starting point):
Second Step: