In order to actively respond to the “14th Five-Year Plan,” the PGA algorithm is used to develop a new energy planning strategy in this paper. The project can make full use of my country’s abundant renewable energy resources, encourage energy conservation and reduction of emissions, improve the energy structure’s low-carbon level, support the development of smart green energy, and achieve ecological civilization construction. This solution can show users how much greenhouse gas emissions can be reduced through some environmental changes, as well as the basic issues of meeting the future energy needs. It can display the benefits, costs, and emissions data under different scenarios in the future and use the scenario demonstration method to show energy planning to make energy data more vivid. It allows people, technicians, and decision makers to understand what will happen to China’s carbon emissions over time in the next 15 years. This paper innovatively combines a particle swarm optimization algorithm with a genetic algorithm and designs a PGA algorithm for path optimization. In terms of carbon emission reduction, comparative trials demonstrate that the PGA algorithm’s path optimization is 58.06 percent greater than the genetic algorithm; In terms of cost, the PGA algorithm’s path optimization is 15.72% less expensive than the genetic algorithm’s. This article provides a reference path for selecting the best results for future energy planning schemes and provides a new strategy for the “14th Five-Year” energy plan.