solving equation system

Carl Banks pavlovevidence at gmail.com
Mon Jul 17 18:20:57 EDT 2006


TG wrote:
> Hi there.
>
> Anyone knows how to use numpy / scipy in order to solve this ?
>
> * A is an array of shape (n,)
> * X is a positive float number
> * B is an array of shape (n,)
> * O is an array of shape (n,) containing only zeros.
>
> A.X - B = O
> min(X)
>
> thanks.

Looks like an incorrectly specified degenerate linear least squares
problem.  The function numpy.linalg.linear_least_squares might be able
to do what you want.


Carl Banks




More information about the Python-list mailing list