# Re: LSQCURVEFIT bounds

M;aybe I'm missing something, but why is in

lb=[0.05, 0.05, 2, 1e-6, 300];
ub=[2 ,3 , 0.1, 0.5, 600];

at the third position the lower bound greater than the upper bound?

Regards,
Stefan

"maria " <mariaame@xxxxxxxxx> wrote in message <hmocec\$fkn\$1@xxxxxxxxxxxxxxxxxx>...
Hi,
I am using lsqcurvefit to solve an optimization problem. I specify upper and lower bounds for the solutuion, how ever, watching ont the parameters evolution, I have noticed that my fourth parameter goes out of the bounds, it is suppose to be smaller that 0.5 and the algorithm is testing in 30!. Problem is that the algorithm might have found a local minimun there and for this reason, it keeps on trying in this region, which is actually physically imposible.

Anybody has any idea about why is the algorithm testing outside the bounds?. My cost function gives a vector of size 2 which should be near to 0.

lb=[0.05, 0.05, 2, 1e-6, 300];
ub=[2 ,3 , 0.1, 0.5, 600];
options=optimset('TolFun',tol);
x2=lsqcurvefit(@costfunction_V1,parameters,0,[0,0],lb,ub,options);

Mary
.

## Relevant Pages

• Re: Releated to POSETS (Partially ordered sets).
... could you tell me the lower bound and the upper bound in this ... The upper and lower bound of WHAT, ... You are missing one upper bound. ... --- Calvin ...
(sci.math)
• RE: Any formula to return the most frequent bin range?
... i may be missing something but how about for the lower bound: ... and adding 50 for the upper bound. ... Obviously replace 50 by a cell reference ... and subtract 50 for the lower bound. ...
(microsoft.public.excel.misc)
• Re: unbounded
... How can g be unbounded when it has a lower bound of 0? ... Why is h unbounded when it has an upper bound of 0? ... QxQ is unbounded in every rational direction ...
(sci.math)
• Re: unbounded
... How can g be unbounded when it has a lower bound of 0? ... Why is h unbounded when it has an upper bound of 0? ... distinctly different notions of unbounded? ... The negation of bounded is unbounded above or unbounded below. ...
(sci.math)
• Re: unsigned type
... "A range has a lower bound and an upper bound and specifies ... range of the subtype. ...