Method of managing a plant comprising one or more cogenerating installations and one or more thermodynamic systems such as heat pumps, as well as at least one computing machine, said method comprising the following steps: (a) "Base data" is entered into said computing machine, said base data comprising at least the resilience to electrical impact of the cogenerating installation, and the value of maximum intensity of the heat pump, (b) "instantaneous data" is entered into said computing machine, said instantaneous data comprising at least the state of the cogenerating installation, the state of the heat pump and the electrical power demanded by the heat pump, (c) "target data" is defined, to which is assigned a respective "target value" in said computing machine, this target data comprising at least the minimum and/or maximum production of electricity by the plant, optionally the maximum consumption of electricity and of primary energy, and at least one from among: the temperatures of very hot water, of hot water, of cold water, of evaporation of coolant fluid (T4, T5), and the electricity demand of the local network, (d) the plant is regulated with the aid of said computing machine in such a way as to attain, for each of the target data selected, the target value or values which have been assigned thereto, the regulation being performed by comparing the current value of the target data item selected, taking into account the basic data item or items selected, as well as the instantaneous data item or items selected, and by adjusting at least one "adjustment data item", in such a way that the current value of each target data item selected is made to approach the target value assigned to it in step c), the at least one adjustment data item comprising the electrical power provided by the cogenerating installation. (a) "Base data" is entered into said computing machine, said base data comprising at least the resilience to electrical impact of the cogenerating installation, and the value of maximum intensity of the heat pump, (b) "instantaneous data" is entered into said computing machine, said instantaneous data comprising at least the state of the cogenerating installation, the state of the heat pump and the electrical power demanded by the heat pump, (c) "target data" is defined, to which is assigned a respective "target value" in said computing machine, this target data comprising at least the minimum and/or maximum production of electricity by the plant, optionally the maximum consumption of electricity and of primary energy, and at least one from among: the temperatures of very hot water, of hot water, of cold water, of evaporation of coolant fluid (T4, T5), and the electricity demand of the local network, (d) the plant is regulated with the aid of said computing machine in such a way as to attain, for each of the target data selected, the target value or values which have been assigned thereto, the regulation being performed by comparing the current value of the target data item selected, taking into account the basic data item or items selected, as well as the instantaneous data item or items selected, and by adjusting at least one "adjustment data item", in such a way that the current value of each target data item selected is made to approach the target value assigned to it in step c), the at least one adjustment data item comprising the electrical power provided by the cogenerating installation.