First of all, many thanks for providing the code.
I want to use the cycle model in heat mode to simulate a real heat pump system.
In the real system, the heat pump is either switched on or off according to the temperatures in a heat storage tank.
Is it possible to simulate a longer period when the heat pump is switched on or off from time to time?