Suboptimal control of nonlinear systems