Renewable Energy Optimization, Planning and Control