Controlling the Model "Residential Air Source Heat Pump" with AI
Show older comments
Hello,
I downloaded the Model from MATLAB and made some changes, so i can cnotroll the Heatpump with AI. But the AI only truns the Heatpump all the Time on or Off. With one Agent the Heatpump is all the Time on and with another Agent it is all the Time off. Depending on the Reward function. But i need it to switch dynamically. So in one Simulation it needs to switch the Heat pump onn and off. So this Question is about the Reward-Function or some issues in my adaptations of the model.
3 Comments
Sam Chak
on 5 Dec 2025
I am making an educated guess! Is the heat pump strictly constrained to only turning ON and OFF? Similar to most roller shutters, which typically move at a fixed speed (Roll UP and Roll DOWN), their motors are designed for security rather than speed, using basic limit switches to stop at set points for reliability and cost-effectiveness.
In your residential heating system project, the temperature is not directly controlled by the heat pump, but rather by the centralized hot water tank, which circulates and distributes hot water throughout the housing's thermal network. The heat pump is likely designed similarly to a water heater in a home or hotel room, where its purpose is to heat the water in the tank as quickly as possible, rather than to operate as dynamically as you might wish.

Henri
on 5 Dec 2025
Sam Chak
on 6 Dec 2025
Hi @Henri
If you want to control the temperature dynamically, you must first remove the actuator’s physical constraints, and second, from a supervisory perspective, instruct the AI to “think” like a dynamic controller. This assumes that the AI in MATLAB understands how such a controller should behave, either stability-focused in the mathematical sense, or minimum-cost-guided in the dynamic-programming sense.
Answers (0)
Categories
Find more on Simscape Fluids 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!