2. Consider a two-dimensional objective function given by: f(x,y) = y2-y+x2-3x (a) Write a Matlab program to find the ma
Posted: Thu May 05, 2022 2:13 pm
2. Consider a two-dimensional objective function given by:
f(x,y) = y2-y+x2-3x
(a) Write a Matlab program to find the maximum of this function,
with starting point as (-1.2,1), and subject to no constraints:
(b) Write a Matlab program to find the maximum of this function,
with starting point as (-1.2,1), and subject to the following
constraints:
x ≥ 2
y ≥ 0
y ≤ x
f(x,y) = y2-y+x2-3x
(a) Write a Matlab program to find the maximum of this function,
with starting point as (-1.2,1), and subject to no constraints:
(b) Write a Matlab program to find the maximum of this function,
with starting point as (-1.2,1), and subject to the following
constraints:
x ≥ 2
y ≥ 0
y ≤ x