Question: a ) Take ( x 0 , y 0 ) = ( - 0 . 2 , 1 ) and find ( x 1 ,
a Take and find using the following formula:
hgradf
where is a small number, say
b Use the same formula and find
If we repeat the procedure, we will find a curve that leads us to the maximum. The graph
is khrown helow
In physics and engineering, we call these curves the gradient flow lines.
c To find minimum, we should take steps in the opposite direction of gradf. This means that is a
negative number. The following code in Matlab, gives the minimum point starting at
faxyxy~expxy~;
fxmxyy;
fyaxyxmp@subsupyoperatornameexpmp@subsupxmp@subsupy;
x;y; h;xxy;
whle abs fxxyabafyxy
xxbfxxy;
yytyxy;
end
x::;
yx;
inagescxyfxy'alptadata',
bold on
plotX:X:'color',r'LiseHdth
X end X end
Run the code and attach the graph to your solution. What is the minimum point of this
procedure?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
