Multi-time scale microgrid energy optimizing management system structure and method

The invention relates to a multi-time scale microgrid energy optimizing management system structure and method. The system adopts an MAS (Mobile Agent Server) system framework which comprises a plurality of distributive power agents (Agent), a plurality of distributive power Agents, a plurality of demand response agents (Agent), a plurality of user Agents and a main electric grid dispatching Agents, wherein the Agents are collaborated and coordinated with an MAS system served as a frame based on the real-time capacity of a dynamic contract net protocol and ultra-short-term microgrid energy optimization; in case an important even that the Agents are triggered via an electric grid, the Agents are internally collaborated and collaborated with different Agents based on a set contract net coordination strategy, so as to ensure a microgrid system can run in an optimal mode under the rules of safety and speed. By adopting the structure and method provided by the invention, the gaps of the distributive power generation caused by the intermittency and the discontinuity can be filled, the robustness of the system can be improved, the response time can be reduced, the environmental benefit can be ensured as well as the economy of the electric grid in a full running period.