Adaptive control algorithm with a retraining technique to predict the optimal amount of chilled water in a data center cooling system