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 -- http://mail.python.org/mailman/listinfo/python-list