Planning the production of electrical energy