A control device, for at least calculating optimal distribution of timed energy attribute certificates for the energy demand from plurality of consumers to energy suppliers within a predefined plurality of geographical areas, the control device comprising - a first input unit configured to receive historical energy demand data and operation data of one or more energy consumers, wherein the received historical energy demand data is measured time-series data, - a demand analysing unit configured to determine forecast demand energy data based on the received historical energy demand data for each energy consumer, - a demand estimation generation unit configured to determine estimate demand energy data based on the received operation data of the one or more energy consumers for each energy consumer, - an aggregation unit configured to aggregate the forecast demand energy data and the estimate demand energy data of a plurality of energy consumers to aggregated energy demand data, - a second input unit configured to receive green certificate data including information about the availability of timed renewable energy certificates, - an optimization unit configured to compare the aggregated energy demand data with the available timed renewable energy certificates of a predetermined future time period and to adjust the forecast demand energy data and/or the estimate demand energy data so as minimize the costs for the timed renewable energy certificates and the carbon emissions by the energy consumers, and - a control instruction unit configured to send instruction data to the energy consumers to adapt their energy consumption in accordance with the adapted forecast demand energy data and/or the estimate demand energy data. - a first input unit configured to receive historical energy demand data and operation data of one or more energy consumers, wherein the received historical energy demand data is measured time-series data, - a demand analysing unit configured to determine forecast demand energy data based on the received historical energy demand data for each energy consumer, - a demand estimation generation unit configured to determine estimate demand energy data based on the received operation data of the one or more energy consumers for each energy consumer, - an aggregation unit configured to aggregate the forecast demand energy data and the estimate demand energy data of a plurality of energy consumers to aggregated energy demand data, - a second input unit configured to receive green certificate data including information about the availability of timed renewable energy certificates, - an optimization unit configured to compare the aggregated energy demand data with the available timed renewable energy certificates of a predetermined future time period and to adjust the forecast demand energy data and/or the estimate demand energy data so as minimize the costs for the timed renewable energy certificates and the carbon emissions by the energy consumers, and - a control instruction unit configured to send instruction data to the energy consumers to adapt their energy consumption in accordance with the adapted forecast demand energy data and/or the estimate demand energy data.