Abstract:Against the backdrop of continuously increasing penetration of new energy, the phenomenon of low inertia and weak damping has emerged in microgrids. Existing research mainly improves the frequency regulation capability of microgrids by improving control strategies and optimizing scheduling, but the premise is that the microgrid itself has sufficient frequency regulation capacity. In response to this issue, this article incorporates frequency constraints in grid connection and off grid modes during the microgrid planning phase, and establishes a mixed integer linear capacity optimization model. Firstly, model multiple frequency modulation resources within the microgrid, construct a comprehensive frequency response model, and derive frequency constraints; Secondly, an improved adaptive linearization method is used to linearize the frequency constraint and embed it into the model; Finally, the Gurobi solver was used to validate and analyze multiple microgrid examples, and the results showed that the proposed microgrid capacity optimization configuration model can achieve the lowest construction and operation costs while ensuring the stability of system grid connection and off grid frequencies.