OPTIMIZATION - Lecture2
OPTIMIZATION - Lecture2
TECHNIQUES
[AcSIR-01-ES-AD-009]
Presented by:
Dr. R. S. Bisht, Pr. Scientist,
[email protected]
CSIR-CBRI, Roorkee, India
Contents
Note: The theory cannot make distinction between local and global extrema.
Example-1
Analyze the extrema of 𝑓(𝑥) = 5𝑥6 − 36𝑥5 + 165 /2 𝑥4 − 60𝑥3 + 36 in the interval in the
interval −1 ≤ 𝑥 ≤ 4
MATLAB
%%
% single variable Example-1
x=-1:0.05:4
y=5*x.^6-36*x.^5+165/2*x.^4-
60*x.^3+36;
plot(x,y)
grid on
Note: The theory cannot make distinction between local and global extrema.
Proof: This can be shown using Taylor’s theorem,
[X,Y] = meshgrid(0:0.5:20);
Z = sin(X) + cos(Y);
surf(X,Y,Z)
[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
surfc(X,Y,Z)
clear all
[x,y] = meshgrid(-2:0.05:2);
f = x.*exp(-x.^2-y.^2)+(x.^2+y.^2)/20;
surfc(x,y,f)
Problem-1
https://www.math.csi.cuny.edu/Computing/matlab/Tutorial/
Problem-2