The contribution describes the demand response solution, which was developed within the international project Mirabel and cofounded by the European 7th Framework Program. The main goal of the project is to provide a solution, which controls the peak consumption and provide a more efficient integration of the renewable sources into the electricity grid. The uniqueness of the solution is the economic concept, where the consumer makes a closed energy supply contract for that part of its consumption, which is put under the control of the external party - Balance responsible party. That approach is in relation of the energy transfer on the organized market, which is close to the BRP's energy handling practice. The algorithms of the data aggregation, consumption and production forecasting and energy flow scheduling developed within the project enable the integration of the large amount of consumers into the Mirabel solution. The preliminary results presented are generated during the testing phase of the project, which is being executed for the time of the generating this paper. The testing is being executed in the simulation environment and with the real data provided by the utility project partner.