energy production optimization