Nonlinear optimization by a curvilinear path strategy