This document develops an energy management model to encourage users / customers to respond to the optimal demand, considering that customers are connected to a smart micro network, with all the benefits that this entails. The demand response mechanism used in the 'real price of energy', which aims to transfer to customers the real cost of electric power service. For this, through Markov chains, the possible demands that the system will have in the next instant (generally, in the next hour) are estimated and, according to these demands, an economic dispatch of the Distributed Generation plants is carried out, obtaining The real cost of energy. As a result of the management model, dynamic, unique and different tariff schedules are obtained for each client, with ranges of energy and power consumption, assuming their respective energy price. This tariff sheet is updated hourly according to the historical demand data of each client. In this sense, what the management model is looking for is that customers modify their consumption styles, in order to reduce the total price to be paid, helping to flatten the load curve and reduce the total costs of the electrical system.