Patent attributes
A thermostat for a building zone includes at least one of a model predictive controller and an equipment controller. The model predictive controller is configured to obtain a cost function that accounts for a cost of operating HVAC equipment during each of a plurality of time steps, use a predictive model to predict a temperature of the building zone during each of the plurality of time steps, and generate temperature setpoints for the building zone for each of the plurality of time steps by optimizing the cost function subject to a constraint on the predicted temperature. The equipment controller is configured to receive the temperature setpoints generated by the model predictive controller and drive the temperature of the building zone toward the temperature setpoints during each of the plurality of time steps by operating the HVAC equipment to provide heating or cooling to the building zone.