How to find the minimum of the function?

4 views (last 30 days)
Wooseok Kang
Wooseok Kang on 12 Dec 2017
Commented: Rena Berman on 26 Dec 2017
using one of built in function for optimization (such as fminbnd,fminsearch )
F(x,y,z) = 2x^2 + 3y^2 + z^2 + xy + xz -2y
Please find the minimum of the function
  2 Comments
Image Analyst
Image Analyst on 12 Dec 2017
Then why didn't you accept and vote for Birdman's answer? And why did you delete your question?

Sign in to comment.

Answers (1)

Birdman
Birdman on 12 Dec 2017
fun=@(x) 2.*x(1).^2+3.*x(2).^2+x(3).^2+x(1).*x(2)+x(1).*x(3)-2.*x(2);
val=fminsearch(fun,[0 0 0]);
min=fun(val)
x(2) is y, x(3) is z.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!