Abstract: A method of controlling a chiller is disclosed. The method includes predicting, by a controller, a quantity of energy used by a chiller, based on a predicted flow of heat into one or more rooms in a building, to maintain a temperature of the one or more rooms in a building at a desired temperature during each of a first plurality of time periods of a chilling cycle. The predicted flow of heat is calculated using a predicted condition. A set point of the chiller is automatically adjusted during the chilling cycle using the predicted quantity of energy.