Thermodynamic based robust regulation of a heat exchanger