A Stochastic Approach to General Nonlinear Programming Problems