The thesis uses the concept of microgrid overall optimization design,to reduce the ratio of energy storage battery as much as possible and improve the permeability of renewable energy. Based on the comparison and analysis of technical scheme, we made Homer Simulation of local photovoltaic generated energy and propose merged power networks microgrid technical solution. We further put forward microgrid energy management plan, energy optimization model and microgrid real-time control strategy under merged grid pattern. The paper provides a salutary reference technical solution of diversified energy optimized integration and control at supply and using link.