How to find the minimum of the function?
4 views (last 30 days)
Show older comments
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
on 12 Dec 2017
Then why didn't you accept and vote for Birdman's answer? And why did you delete your question?
Answers (1)
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!