Optimization-Based Feedback Control Of Nonlinear Systems Subject To Input Constraints