The non-programmability characteristics of generation systems based on renewable energy sources, such as solar and wind power, together with the expected reduction in installed thermoelectric capacity, may cause problems in managing the electrical systems with a possible increase in grid congestion, being such generation systems located far from consumption centers. The lower use of thermoelectric capacity to the advantage of distributed generation will reduce the adequacy of the electrical systems and, in addition to providing for grid investments and long-term price signals for producers, it will be indispensable to implement the widespread of digital technologies in smart grids. In this new model, the provision of ancillary services to the Transmission System Operator (TSO) or Distribution System Operator (DSO) should take into account the possible flexibility furnished by new distributed resources including demand response, dispersed and small generators, also based on Renewable Energy Sources (RESs) and frequently endowed with small batteries. Moreover, new frameworks should be designed to manage the interaction between aggregators and system operators.