As far as I know, constraints in C++ can be used by calling
Code:
real_1d_array param= "[1,2,3]";
real_1d_array bndl = "[-1e8,-1e8,-1e8]";
real_1d_array bndu = "[1e8,1e8,1e8]";
lsfitsetbc(state, bndl, bndu);
In this case, a fit that is supposed to fit 3 parameters will limit the area of parameters from -1e8 to 1e8.
To fixate a parameter during a fit, you can set
Code:
bndl[1]=bndu[1]=param[1];
So param[1] won't get changed...
At least that's how I understood this option.^^
And as the .h file states, this function is copyrighted at the 14.01.2011, so I suppose it's also available in the delphi package?
If you meant other kinds of constrains then I', sorry for misunderstanding your question.