From: Kiril on
I have to find Max value of this function :
fun = @(x) (b1 + b2*x(1) + b3*x(2) + b4*x(1)^2);
The b's are vars in workspade.
My problem is thant I don't know the optim toolbox. Can some one help me with my task. I need some function to find global Max of "fun".
Thanks!
From: Matt J on
"Kiril " <kkirqkov(a)gmail.com> wrote in message <hu2cvo$78l$1(a)fred.mathworks.com>...
> I have to find Max value of this function :
> fun = @(x) (b1 + b2*x(1) + b3*x(2) + b4*x(1)^2);
> The b's are vars in workspade.
> My problem is thant I don't know the optim toolbox. Can some one help me with my task. I need some function to find global Max of "fun".
=======

The function has no maximum unless b3=0. Otherwise, I can push the function to infinity by pushing x(2) to sign(b3)*infinity.

If b3=0, then the function reduces to a single variable quadratic function, which is easy to maximize.
From: Kiril on
Thanks Matt, but i know that. I have to prove it with matlab - this is my task. I have to try to find max of this function with constrains 1 <= x1 <= 20 and 20 <= x2 <= 50. Never mind if thare isn't any i have to make a simple function to prove it.
 | 
Pages: 1
Prev: Optim problem
Next: Isometric Text in 3D Plot?