Fix a bug which made the function minimizer and the constrained minimizer sometimes run up to maximum number of iterations even though the optimal value has been found.
Fix a bug which made the function minimizer and the constrained minimizer sometimes run up to maximum number of iterations even though the optimal value has been found.