The optimal solution of the constrained nonlinear control system