For the current spectral simulation based on Digital Micromirror, the spectral simulation unit has different bias properties and nonlinear modulation, which leads to the lack of a spectral simulation method for multiple color temperature modulation. In this paper, a stellar spectrum simulation method based on Genetic Algorithm and fuzzy PID compound control was proposed. It analyzed the composition and working principle of the stellar spectrum simulation system, designed the corresponding matrix algorithm, studied the compound control spectral simulation algorithm of Genetic Algorithm and fuzzy PID, constructed a dual-input, three-output fuzzy PID controller architecture, and designed the Genetic Algorithm dual-optimized fuzzy PID control algorithm. In this research, an experimental platform was built to verify the generalization and simulation accuracy of the Genetic Algorithm and fuzzy PID compound control stellar spectrum simulation method based on the 2500K-10000K color temperature spectral curve as the target. The results indicated that the error of 2500K-10000K spectral simulation was between -2.91% and 2.94%, and the error of spectral curve area simulation was between -0.18% and 0.22%.As the smoothing of the star spectrum curves fails to verify the simulation ability of detailed characteristics such as peaks and troughs, the AM1.5 solar spectrum is taken as the simulation object, which verifies the performance of the star spectrum simulation method based on a genetic algorithm and a fuzzy PID integration.On this basis, the AM1.5 solar spectrum was taken as the simulation target to verify the ability to simulate detailed features such as wave peaks and troughs based on Genetic Algorithm with fuzzy PID compound control stellar spectrum simulation method. The results revealed that the accuracy of the single-point spectral simulation of AM1.5 solar spectrum is -5.76%, and the spectral curve area simulation error is 0.07%. The proposed method has the ability to simulate a wide range of color temperature targets with high accuracy. It has the ability to simulate detailed features such as wave peaks and troughs. It can provide a theoretical and technical basis for the ground calibration of the high-precision star sensor development.