The European Union Establishes that for the next few years. a cleaner and more efficient energy system should be used. In order to achieve this. this work proposes an energy optimization method that facilitates the achievement of these objectives. https://www.diegojavierfares.com/