Managing Uncertainty: Scenario Generation And Control In Renewable Energy Systems