In optimization in multi-agent systems or large scale systems, distributed methods are a candidate for the solution, in which the sub-problem for each agent is solved locally and a feasible solution is sought via interactions of agents. This paper studies distributed optimization method of energy management systems. The system is composed of multiple companies imposed energy demand and CO2 emission capacity. A distributed energy management system (DEMS) optimizes energy consumption considering energy trading among companies. Under the CO2 emission constraints traditional dual decomposition method does not converge. In this paper, we propose to use the alternating direction method of multipliers for the distributed optimization of DEMS. |