Optimal Scheduling of Generators and Batteries Based on Interval Prediction of Photovoltaics