outputs from lsqlin parameter estimation
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
SreeHarish Muppirisetty
el 3 de Oct. de 2013
Comentada: Matt J
el 4 de Oct. de 2013
Hi
I am working on using 'lsqlin' for fitting my 3 parameters (a set of 3) in my model.
This is the command I used: k=lsqlin(stackedmatrix{:},ftderivativesofP,LB,UB)
Where k is output to store my estimated parameters. each of stackedmatrix{index} contains a square matrix (3X3) where index=1 to 189.
ftderivativesofP is a column vector (no.of rows=189). LB variable for setting lower bounds, I did: LB=0.00001*ones(3,1)
and UB for upper bounds. set as : UB=100000*ones(3,1)
Output I am getting is the following, with a bunch of warning messages:
Warning: Length of lower bounds is > length(x); ignoring extra bounds. > In checkbounds at 28 In lsqlin at 236 Warning: Length of upper bounds is > length(x); ignoring extra bounds. > In checkbounds at 42 In lsqlin at 236 Exiting due to infeasibility: 1 lower bound exceeds the corresponding upper bound.
k =
1.0e+03 *
-9.9275
-9.9275
9.9275
0
0.9996
0.9996
-0.9996
0
0
0
-0.0004
0.0004
(My main) Question is : Why am I getting 12 estimated values, as there are only 3 parameters to be estimated.
Also, any guidance for the reasoning behind these warning messages would be helpful for me.
Thanks in advance
0 comentarios
Respuesta aceptada
Matt J
el 3 de Oct. de 2013
Editada: Matt J
el 3 de Oct. de 2013
You seem to be disregarding the documentation as to which order the input arguments are to be given in. If you look again at "doc lsqlin" you will see that LB and UB are supposed to be the 7th and 8th inputs, not the 3rd and 4th.
Aside from that
lsqlin(stackedmatrix{:},arg1,arg2,...)
is equivalent to typing
lsqlin(stackedmatrix{1}, stackedmatrix{2}, stackedmatrix{3},...,stackedmatrix{end}, arg1, arg2,...)
If this is really what you are doing, no doubt it is contributing to the problem.
4 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Oil, Gas & Petrochemical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!