Its energy grid faces three pressing challenges at once: an unreliable electricity supply, strict emissions reduction targets and ongoing environmental issues related to wastewater ponds.