[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lsqlin() error message

From: GoSim
Subject: Re: lsqlin() error message
Date: Fri, 5 Jul 2019 17:16:54 -0500 (CDT)

I tried to create a username in savannah 20 times but evidently I need a
password from Mars so I will just write my ideas here.

To the maintainer of optim:

Best solution: remove lin. dependent rows and keep lsqlin working even if
e.g. two of the same linear combinations are filled in.

Second best solution: Do like Matlab but also write an error/warning so the
user understands why he gets NaN. Lsqlin is very powerful and it is hard to
understand that such a small thing can make it fail.

Worst solution: just like Matlab

Experimental solution: identify lin. dependent rows and to all but one of
them add a very small white noise. The idea is that if you have many linear
combinations that are the same this means something, it should be weighted.
So by keeping them and adding a very small noise maybe the algorithm can
handle it and it will be weighted.

Thanks for optim, I use it often.   

Sent from:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]