Efficient algorithm for a class of least squares estimation problems

Error thrown

Call to a member function id() on array