The widespread application of machine tools in industry results in very high energy consumption. In order to save energy, it is an effective means to reduce the processing power while improving the processing efficiency of machine tools. Since milling parameters directly affect machine performance, the selection of suitable milling parameters is particularly important. In this regard, this study proposes an integrated modelling and optimization method for energy saving of computer numerical control (CNC) machine tools under operating condition. Firstly, the operating condition of the CNC machine are analyzed and the processing power and efficiency mathematical models are established based on the four milling parameters (n, fz, ae, ap). Subsequently, the Pareto optimal solution is introduced to establish an optimization model integrating the processing power and time. To solve the optimization problem, an adaptive chaotic multi-objective chimp algorithm with fast convergence and satisfactory optimization is proposed considering three aspects: search space, convergence factor, and chaotic mapping. Afterwards, further degrees of freedom and sensitivity analyses were carried out on the constructed model using the Sobol method. Finally, comparative analysis and validation are conducted through simulation cases and actual processing experiments, respectively. The results show that both validation scenarios have the same conclusion. Compared with three existing algorithms, the proposed method reduces the processing power by 5.63 %, 4.65 % and 4.51 % and improves the processing efficiency by 27.88 %, 15.11 % and 15.31 %, respectively. Based on the above enhancements, the energy consumption is reduced by 58.21 %, 45.54 % and 41.45 % respectively.