Creating policy and thought curriculum for colleges and schools are a concrete approach to addressing the debate of major universities and political science in the new era. And it takes time to complete the masterpiece “Surin” in high school. Curriculum development and policy studies are the cornerstone for intellectual and policy education in colleges and universities. It is important and helpful to establish “three teachers” and “fundamental ideological and political education” in colleges and universities. In this article, some of the optimization algorithms were selected and described by the algorithms. It is revised PSO algorithm, specifically to solve algorithm problems. It aims to improve the fast integration and global search capabilities of the algorithm. The algorithms described in this document are used for the design and selection of photovoltaic systems. This will further increase the functionality and cost of the proposed algorithm. This article uses interviews and questions to examine the psychological and political structure of higher education. The survey results show that there are some problems in the construction of the current ideological and political education mechanism in Colleges and universities, such as the imperfect system, the conflict between the concept and behavior of teachers’ collaborative education, the lack of students’ subject status and weak sense of acquisition, the low evaluation of teachers on the quality of mechanism construction, and the insufficient support for mechanism construction. 87% of the teachers believe that the political literacy of professional teachers needs to be strengthened. The research using particle swarm optimization algorithm has a 25% larger scope and 48% faster operation speed than the traditional method. For this work, we used a particle optimization algorithm. A system of support and promotion has been developed to provide political and financial support for psychological and curricula theory. At the same time, it creates a comprehensive system of commitment to psychology and politics courses.