A statistical generalized programming algorithm for stochastic optimization problem