Bug in Simulating Automatic Climate Control Systems simulink example
Show older comments
Hello,
I just noticed that in the Simulink example “Simulating Automatic Climate Control System” there seems to be an issue with the thermodynamic model. For instance, if I set the User Setpoint temperature to 25 °C and the external temperature to –20 °C, the heater does not turn on, which clearly indicates a problem.
Link to the demo: https://ch.mathworks.com/help/simulink/slref/simulating-automatic-climate-control-systems.html

Answers (1)
Sam Chak
on 19 Sep 2025
0 votes
Hi @Tommaso
The reason the heater does not turn on is that the thermometer clearly indicates the initial air temperature in the car is 25.5°C, which exceeds the user setpoint of 25.0°C. I believe that if the temperature drops below 25.0°C, the heater will activate.

6 Comments
Tommaso
on 19 Sep 2025
Sam Chak
on 19 Sep 2025
Hi @Tommaso
You need to investigate:
Is 25.5°C the equilibrium temperature of the thermal system when the setpoint is 25.0°C?
If the setpoint is adjusted to 27.0°C while the current temperature is 25.5°C, does the heater turn on?
Additionally, if the number of occupants remains the same while the heater and air conditioning are disabled, does the temperature rise?
One more point to consider is that there is usually a deadband for heating to prevent excessive energy waste from On/Off cycles. Does 25.5°C fall within the range of temperatures at which the heater does not respond?
Tommaso
on 19 Sep 2025
Sam Chak
on 19 Sep 2025
Have you observed a temperature drop when the heater and air conditioning are completely disabled or disconnected? Logically, since the outdoor temperature is –20°C, the indoor temperature is expected to decrease.
Tommaso
on 21 Sep 2025
Sam Chak
on 22 Sep 2025
At this point, the best course of action is likely to contact technical support to report the bug you discovered.

Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!