We developed control algorithms based on one of three artificial-intelligence-based retraining techniques (sliding window, vector adaptation, and vector augmentation) to provide the optimal indoor temperature and save on the energy expenditure for cooling in data centers. The artificial neural network prediction model predicts the computer room air handler supply air temperature of a central chilled water system and is added to the control algorithm. The proposed algorithm can determine the optimal chilled water flow rate required to cool the server to the set temperature by using the predicted computer room air handler supply air temperature. We developed a control algorithm embedded in an artificial neural network predictive model that includes three retraining techniques. Afterward, we compared the control performance and verified its adaptability by using computer simulation. When using the algorithm with sliding window control, the root mean-squared error between the set temperature and the control temperature was 0.08 °C, the maximum error was 0.81 °C, and the cooling load was 21,026.27 kWh. The accuracy, stability, and energy-saving ability of the sliding window control algorithm were higher those of the other two algorithms, and its superior adaptability and scalability under changing environmental conditions were demonstrated.