Algorithm for non-negative least error minimal norm solutions