From: kay on 16 Apr 2010 09:15 Alan Weiss <aweiss(a)mathworks.com> wrote in message <hq9hgi$gbh$1(a)fred.mathworks.com>... > Take a look at the Getting Started example for help understanding basics > of the ptimization Toolbox: > http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/brg0p3g-1.html > > The output you related indicates that fmincon was successful. > "Terminated" simply means stopped, fmincon is telling you why it thinks > it found the answer. > > Alan Weiss > MATLAB mathematical toolbox documentation > since i want my x(1) and x(2) ,both to be in between 10 to 20, why is it that the optimization didnt show me any iteration between that range of value? is there something wrong with the way i wrote the upper n lower boundary? i run the program n it only gives 1 iteration which directly gives minimum value of x(1)=x(2)=10. i wrote the boundary like this: lb=[10;10] and ub=[inf;inf] plus, changing the start value didnt show any different on the result. what is it that actually wrong with my program? could it be my inequality constraint? please help :(
From: Alan Weiss on 16 Apr 2010 11:48 I don't understand why you think something is wrong. Your objective function is x(1)*x(2), and your variables are bounded below by 10. Therefore, if x(1) = x(2) = 10 is a feasible point, then it is clearly the solution to your problem. I didn't notice any constraint that makes [10 10] infeasible. So why do you think there is a problem? Alan Weiss MATLAB mathematical toolbox documentation On 4/16/2010 9:15 AM, kay wrote: > Alan Weiss <aweiss(a)mathworks.com> wrote in message > <hq9hgi$gbh$1(a)fred.mathworks.com>... >> Take a look at the Getting Started example for help understanding >> basics of the ptimization Toolbox: >> http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/brg0p3g-1.html >> >> >> The output you related indicates that fmincon was successful. >> "Terminated" simply means stopped, fmincon is telling you why it >> thinks it found the answer. >> >> Alan Weiss >> MATLAB mathematical toolbox documentation >> > > since i want my x(1) and x(2) ,both to be in between 10 to 20, why is it > that the optimization didnt show me any iteration between that range of > value? is there something wrong with the way i wrote the upper n lower > boundary? i run the program n it only gives 1 iteration which directly > gives minimum value of x(1)=x(2)=10. > i wrote the boundary like this: > lb=[10;10] and ub=[inf;inf] > > plus, changing the start value didnt show any different on the result. > what is it that actually wrong with my program? could it be my > inequality constraint? > please help :(
|
Pages: 1 Prev: 3 questions regarding code generation Next: whitening-derivative filter |