[scilab-Users] lsqrsolve

Samuel Gougeon Samuel.Gougeon at univ-lemans.fr
Wed Apr 7 11:12:38 CEST 2010


----- Message d'origine -----
De : Maso Ricci
Date : 31/03/2010 12:18:
> Hi,
>
> I am using the lsqrsolve function to fit some data.
> I wonder whether lsqrsolve accepts contrains in order to force the 
> solution to be positive.
>
> thanks in advance for any comments and suggestions
Did you check the leastsq() function based on the optim() one ? Its 'b', 
binf, bsup
sequence of 3 input arguments allow to specify some boundaries.
So, for instance, if the solution you are searching for is a scalar that 
must be positive,
just set 'b',0,%inf. see help leastsq()

HTH
Samuel




More information about the users mailing list