Least-Squares Minimization with Bounds and Constraints
