It is important to minimize electric energy consumption of a data center that uses enormous electricity for maintaining an adequate indoor temperature. Most data centers have applied the outdoor air cooling method on account of economic feasibility. However, it is necessary that data centers have an efficient control method in order to achieve extra energy savings. In this paper, we propose an artificial intelligence based real-time optimal control method that minimizes electricity consumption and assures safe operation simultaneously. The main idea of our proposed method is to evolutionary search the optimal range of controlled variable during a normally operative condition. Furthermore, an optimal operating condition can be achieved without requiring large-scale data to learn a model. Experimental results demonstrate that indoor temperature of a data center can be constantly controlled safely and cost effectively based on our proposed methodology.