Application of a nonlinear stabilizer for localizing search of optimal trajectories in control problems with infinite horizon