With the continuous expansion of the scale of renewable energy generation and the rapid development of its technology, the forms of power grid become more diverse. Meanwhile, the coupling and uncertainty of various heterogeneous energy resources will significantly change the characteristics and dynamic balance mechanism of the power system. Power generated from renewable energy sources such as wind and light is uncertain and uncontrollable, and such renewable energy enjoys complementary characteristics across time and space. In this paper, we investigate the uncertainty of renewable energy and its complementary space-time characteristics among various power sources and propose to take advantage of the synergistic effects of different forms of energy to realize optimal allocation of resources in a multi-energy power system on a larger scale. Taking the newly built energy base in northwest China as an example, the power distribution of multi-energy power system is optimized through production simulation. Through simulation, it is verified that the method proposed in this paper can improve the efficiency of renewable energy power generation to a certain extent, and has a certain significance for promoting the transformation of energy production and consumption.