Re: LSQCURVEFIT bounds
- From: "Stefan" <nospam@xxxxxxxxx>
- Date: Tue, 9 Mar 2010 11:32:04 +0000 (UTC)
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);
Thanks in advance.
Mary
- Follow-Ups:
- Re: LSQCURVEFIT bounds
- From: Paul Kerr-Delworth
- Re: LSQCURVEFIT bounds
- References:
- LSQCURVEFIT bounds
- From: maria
- LSQCURVEFIT bounds
- Prev by Date: Re: Polyfit??????
- Next by Date: Re: A question
- Previous by thread: Re: LSQCURVEFIT Tolfun and Tolx
- Next by thread: Re: LSQCURVEFIT bounds
- Index(es):
Relevant Pages
|