Model Predictive Control (MPC) is used to minimize the energy consumption of the HVAC system under the consideration of different inputs such as the outside temperature, the solar radiation, occupancy, energy price and the peak load, while these parameters are not taken into account by conventional control algorithms. Then comparing MPC with conventional HVAC control algorithms (two position(2P) and Proportional plus Integral (PI) Controls)