In this study, a three-variable control system with an energy management system (EMS) and a thermal management system (TMS) of a fuel cell/battery electric vehicle (EV) was developed using particle swarm optimization (PSO). The objectives are to enhance the temperature stability, decrease the temperature rise time, while reducing total energy consumption of dual energy sources. The control strategies for TMS and EMS were developed and modeled using a PSO, incorporating five inputs and three outputs. Previous experimental data were input for the model. The results demonstrate that, compared to the rule-based (RB) control strategies applied to both EMS and TMS under the NEDC and WLTP cycles, the PSO control strategies applied to both EMS and TMS led to energy consumption improvements of 12.33 % and 24.19 %. With EMRB/TMRB is the baseline, the temperature rise-time improvements for EMRB/TMPSO were 11.55 % and 1.94 %, and the average temperature errors improvements were 80.73 % and 81.12 %. When EMPSO/ TMRB is the baseline, the temperature rise-time improvements for EMPSO/TMPSO were 10.56 % and 20.82 %, while the average temperature error improvements were 32.21 % and 21.30 %. In future work, the developed TMS and EMS will be applied to real vehicles for benefit verification.