Planning the energy sector