Text this: Haar wavelet method for constrained nonlinear optimal control problems with application to production inventory model