A method for controlling an installation associated with an energy-consuming structure, the installation comprising at least one source of geothermal energy with which thermal storage is carried out, at least one other source of energy (4, CPh, CTh, ATh), items of equipment for transforming and distributing energy in the structure, and a regulating system (AUT, CU), the geothermal source comprising thermal exchange probes installed in a geothermal medium and adapted to allow heat exchange between the geothermal medium and a heat transfer fluid passing through the probes, the method comprising:
- defining a forecast trajectory (TP) of the temperature of the geothermal medium over time;
- evaluating at least substantially in real time the temperature of the geothermal medium and/or the thermal power exchanged with the geothermal medium;
- and
- making an adjustment of the thermal power exchanged between the heat transfer fluid and the geothermal medium in the direction of at least approximate conformity of the temperature of the geothermal medium with the forecast trajectory (TP).