The suspension system plays a role in ensuring the stability of the vehicle when traveling on the road. On many modern vehicles, the active suspension system has been proposed to replace the conventional passive suspension system. The performance of the controller for the active suspension system depends on its control method. In this paper, a half dynamics model of the vehicle is established. Besides, the LQR control method is also used. The parameters of the control matrix are calculated through the triple in-loop optimization algorithm, which has been shown in the research. This is a completely novel algorithm. This algorithm helps to choose the most optimal parameters. Thus, it ensures the efficiency and stability of the controller. The calculation and comparison process are done automatically. When the loop ends, the optimal parameters are explicitly indicated. The simulation process is done in the MATLAB-Simulink environment. The results of the research showed that when the LQR controller, which was optimized through the triple in-loop algorithm used, the vehicle's oscillation was significantly reduced. In the three survey situations, the values of the roll angle and the angular acceleration of the sprung mass are guaranteed to be stable. Besides, when using this controller, the phenomenon of “chattering” after the excitation ends does not appear. This topic can be further developed in the future.