Method for regulating a domestic water heating and storage system for a domestic water distribution installation, said domestic water heating and storage system comprising: - a domestic water storage tank comprising an inlet and an outlet for domestic water that are intended to be connected to a domestic water circuit, - a thermodynamic heating device comprising a heat exchanger (22, 44) for heating domestic water present in the storage tank, said thermodynamic heating device also comprising a variable-speed compressor, - at least one temperature measuring element configured to determine the temperature of domestic water inside the storage tank, - a determining element for determining an item of information about the volume of domestic water entering or leaving the storage tank, - a controller configured to manage the heating of the domestic water by the thermodynamic heating device as a function of the domestic water temperature and the item of information indicative of the volume of domestic water entering the storage tank, said method comprising the following steps: - measuring the temperature of domestic water in the storage tank, - determining an item of information about the volume of sanitary water in the storage tank, - determining a temperature of the air outside the domestic water heating and storage system, - regulating the temperature of the domestic water in the storage tank as a function of the domestic water temperature, the item of information indicative of the volume of domestic water entering the storage tank and the outside air temperature, said method also comprising determining a domestic water heating requirement when: * the volume of domestic water in the storage tank reaches an injected volume threshold value, and/or * the temperature of domestic water in the storage tank reaches a domestic water temperature threshold value, said method being characterized in that, when a heating requirement is determined, it also comprises the following steps: - triggering a mode for rapid heating of the domestic water when the outside air temperature and/or the speed of the compressor reaches a critical threshold for the optimization of the heating of the domestic water, - triggering a mode for slow heating of the domestic water when the outside air temperature and/or the speed of the compressor reaches an optimization threshold. - a domestic water storage tank comprising an inlet and an outlet for domestic water that are intended to be connected to a domestic water circuit, - a thermodynamic heating device comprising a heat exchanger (22, 44) for heating domestic water present in the storage tank, said thermodynamic heating device also comprising a variable-speed compressor, - at least one temperature measuring element configured to determine the temperature of domestic water inside the storage tank, - a determining element for determining an item of information about the volume of domestic water entering or leaving the storage tank, - a controller configured to manage the heating of the domestic water by the thermodynamic heating device as a function of the domestic water temperature and the item of information indicative of the volume of domestic water entering the storage tank, said method comprising the following steps: - measuring the temperature of domestic water in the storage tank, - determining an item of information about the volume of sanitary water in the storage tank, - determining a temperature of the air outside the domestic water heating and storage system, - regulating the temperature of the domestic water in the storage tank as a function of the domestic water temperature, the item of information indicative of the volume of domestic water entering the storage tank and the outside air temperature, - measuring the temperature of domestic water in the storage tank, - determining an item of information about the volume of sanitary water in the storage tank, - determining a temperature of the air outside the domestic water heating and storage system, - regulating the temperature of the domestic water in the storage tank as a function of the domestic water temperature, the item of information indicative of the volume of domestic water entering the storage tank and the outside air temperature, said method also comprising determining a domestic water heating requirement when: * the volume of domestic water in the storage tank reaches an injected volume threshold value, and/or * the temperature of domestic water in the storage tank reaches a domestic water temperature threshold value, * the volume of domestic water in the storage tank reaches an injected volume threshold value, and/or * the temperature of domestic water in the storage tank reaches a domestic water temperature threshold value, said method being characterized in that, when a heating requirement is determined, it also comprises the following steps: - triggering a mode for rapid heating of the domestic water when the outside air temperature and/or the speed of the compressor reaches a critical threshold for the optimization of the heating of the domestic water, - triggering a mode for slow heating of the domestic water when the outside air temperature and/or the speed of the compressor reaches an optimization threshold. - triggering a mode for rapid heating of the domestic water when the outside air temperature and/or the speed of the compressor reaches a critical threshold for the optimization of the heating of the domestic water, - triggering a mode for slow heating of the domestic water when the outside air temperature and/or the speed of the compressor reaches an optimization threshold.