EVScheduleRandom[] randSchedules = new EVScheduleRandom[subs.size()];
for (int i = 0; i < randSchedules.length; i++)
randSchedules[i] = new EVScheduleRandom((EVSchedule) subs.get(i));
EVScheduleRollup sr = new EVScheduleRollup(randSchedules);
EVScheduleConfidenceIntervals ci = new EVScheduleConfidenceIntervals
(sr, Arrays.asList(randSchedules));
EVMetricsRollup metrics = (EVMetricsRollup) schedule.getMetrics();
metrics.setCostConfidenceInterval(ci.getCostInterval());
metrics.setTimeErrConfidenceInterval(null);
metrics.setDateConfidenceInterval(ci.getForecastDateInterval());
metrics.setOptimizedDateConfidenceInterval
(ci.getOptimizedForecastDateInterval());
}