摘要:AbstractDue to the high share of buildings in global energy consumption, the increased implementation of power management on the demand side is deemed essential by promoting the flexible interaction and responsiveness of the buildings, which could offer multiple potential benefits in future power systems. This paper presents a novel contract-based optimization approach by model predictive control scheme to optimize the microgrid energy demand and save the operation cost. We define the concept of dynamic capacity to illustrate the flexibility potential of buildings. The control strategy is developed through a bilevel optimization structure, serving for the operational planning of microgrid decisions and the aggregated power responses at the system level. An application of simulation is studied and demonstrates that the suggested approach could shift the building flexibility potential and improve the economy for microgrid management. The results validate the feasibility of the proposed metrics and algorithms.