Multiplexed real-time optimization was developed for HVAC systems. Degree of freedom based reset was integrated into the multiplexed optimization. Around 10% energy savings was achieved by the proposed method. Tracking errors of the HVAC local loop controls were reduced by over 26%.