This article takes the dual color injection molding of a precision instrument panel for a certain sedan as the research object. By optimizing the dual color injection molding process parameters, the product warpage and deformation are reduced, thereby improving product quality. In view of the high dimensionality, nonlinearity, volatility and other characteristics between the two-color injection process parameters and the product warpage deformation, and the serious coupling of multiple processes, it is very easy to cause the traditional optimization method to fall into the local optimum, resulting in optimization difficulties and other problems. Based on temporal evolution particle swarm optimization algorithm(TEPSO) is proposed to address the above issues. The algorithm utilizes the advantage of balanced dispersion in orthogonal expansion space to improve the search ability and efficiency of particle swarm optimization, and adopts the Q-learning concept to develop a learning strategy based on temporal evolution through continuous interaction and exploration between particles and the environment to determine the expansion factor of particle orthogonal space. Firstly, each particle generates a Q-table, and the corresponding expansion factor is determined based on the Q-table and state. The fitness value change of each particle is obtained as an immediate reward, and the Q-table is updated using social learning behavior strategies. Secondly, the expansion factor is obtained through Q-learning, and orthogonal design is used for expansion to obtain more environmental information. Finally, shrink each orthogonal expansion space, select the particle position with the smallest fitness value to update the current particle position, and complete the iteration. Optimization design of injection molding process parameters for precision instrument panel of a certain sedan, compared with the initial experimental plan, the use of TEPSO algorithm for optimization reduced the Z-direction warping of the outer cover plate from 4.698 mm to 2.194 mm, and the optimization efficiency reached 53.3%, confirming the effectiveness and practicality of TEPSO algorithm.