Uncertainty Modeling And Optimization In Smart Grid With Renewable Generation