Abstract:The lack of reasonable energy management strategies in building microgrids has led to increasingly prominent issues of low energy utilization and high carbon emissions. Based on the electric demand response technology and the principle of human body comfort. By taking the lowest energy cost of buildings as the optimization objective, and constraining human body comfort, electric demand response,energy balance and equipment operation safety, a building microgrid energy optimization scheduling model is established. Matlab is selected to call the Gurobi solver for solution. The analysis results of the example show that applying the building energy optimization scheduling model can reduce the overall energy consumption cost of buildings while ensuring comfort by optimizing internal energy supply modes, responding to external energy supply prices, and providing smooth output and peak shaving for the power grid.