Abstract The double-layer optimization control method for distribution networks based on complementary electricity and demand response designed in this article has two significant advantages. Firstly, it takes into account the complex electricity production and transportation situation in mountainous areas and comprehensively optimizes and combines scheduling for distributed energy transportation and access to the distribution network. Secondly, considering the network with the player side, a double-layer optimization management is carried out to achieve a win-win situation for distributed energy between the distribution network and the microgrid. The present invention aims to search for multiple optimal solutions in multi-objective optimization and combined scheduling of distributed energy. In double-layer optimization management, the upper function is the maximization of the distribution network operator, and the lower objective function is to minimize the operating costs expected by each user.