Method for the management and control of a thermodynamic machine, e.g. a heat pump, based on a compression/expansion thermodynamic cycle of an operating fluid and comprising at least: - a first heat exchanger (11; 12) wherein said operating fluid absorbs, at constant pressure, thermal energy from a cold well, - a second heat exchanger (12; 11) wherein said operating fluid yields, at constant pressure, part of the thermal energy thereof to a hot well, - an expansion valve placed between said first (11; 12) and second (12; 11) heat exchanger and adapted to carry out a constant enthalpy expansion and cooling of said operating fluid, - a compressor (13; C) adapted to compress said operating fluid between a minimum pressure thereof it has at the outlet of said first heat exchanger (11; 12) and a maximum pressure thereof it has at the inlet of said second heat exchanger (12; 11), said compressor (13; C) being able to suck and compress a wet operating fluid with a suitable percentage of liquid fraction, - at least one temperature sensor (T.com) for the detection of the delivery temperature Tm of said compressor, - at least one temperature sensor (T.evap) for detecting an evaporation temperature SST in said first exchanger (11; 12), - at least one temperature sensor (T.cond) for detecting a condensation temperature SDT in said second exchanger (12; 11), characterised in that the temperature difference between said lubricating oil in the compressor (13; C) and said operating fluid at the delivery of the same compressor (13; C) is: - maintained equal to or higher than a safety threshold OIL_SH such that there is no condensation of said operating fluid in said lubricating oil, i.e. such that the relationship is verified: Toil - Tm ≥ OIL_SH, - controlled and/or maintained on said safety value OIL_SH mainly by regulating the delivery temperature Tm of said compressor (13; C), said delivery temperature Tm of the compressor (13; C) being regulated until it approaches and/or substantially reaches an optimised target delivery temperature Tm_target_opt that is: - that adapted to ensure: - an optimal wet fraction entering said compressor (13; C), - a delivery temperature Tm of said compressor (13; C) not too low to cause the condensation of the operating fluid in said lubricating oil, - a function of at least the rotation frequency of said compressor (13; C). - a first heat exchanger (11; 12) wherein said operating fluid absorbs, at constant pressure, thermal energy from a cold well, - a second heat exchanger (12; 11) wherein said operating fluid yields, at constant pressure, part of the thermal energy thereof to a hot well, - an expansion valve placed between said first (11; 12) and second (12; 11) heat exchanger and adapted to carry out a constant enthalpy expansion and cooling of said operating fluid, - a compressor (13; C) adapted to compress said operating fluid between a minimum pressure thereof it has at the outlet of said first heat exchanger (11; 12) and a maximum pressure thereof it has at the inlet of said second heat exchanger (12; 11), said compressor (13; C) being able to suck and compress a wet operating fluid with a suitable percentage of liquid fraction, - at least one temperature sensor (T.com) for the detection of the delivery temperature Tm of said compressor, - at least one temperature sensor (T.evap) for detecting an evaporation temperature SST in said first exchanger (11; 12), - at least one temperature sensor (T.cond) for detecting a condensation temperature SDT in said second exchanger (12; 11), the temperature difference between said lubricating oil in the compressor (13; C) and said operating fluid at the delivery of the same compressor (13; C) is: - maintained equal to or higher than a safety threshold OIL_SH such that there is no condensation of said operating fluid in said lubricating oil, i.e. such that the relationship is verified: Toil - Tm ≥ OIL_SH, - controlled and/or maintained on said safety value OIL_SH mainly by regulating the delivery temperature Tm of said compressor (13; C), - maintained equal to or higher than a safety threshold OIL_SH such that there is no condensation of said operating fluid in said lubricating oil, i.e. such that the relationship is verified: Toil - Tm ≥ OIL_SH, - controlled and/or maintained on said safety value OIL_SH mainly by regulating the delivery temperature Tm of said compressor (13; C), said delivery temperature Tm of the compressor (13; C) being regulated until it approaches and/or substantially reaches an optimised target delivery temperature Tm_target_opt that is: - that adapted to ensure: - an optimal wet fraction entering said compressor (13; C), - a delivery temperature Tm of said compressor (13; C) not too low to cause the condensation of the operating fluid in said lubricating oil, - a function of at least the rotation frequency of said compressor (13; C). - that adapted to ensure: - an optimal wet fraction entering said compressor (13; C), - a delivery temperature Tm of said compressor (13; C) not too low to cause the condensation of the operating fluid in said lubricating oil, - an optimal wet fraction entering said compressor (13; C), - a delivery temperature Tm of said compressor (13; C) not too low to cause the condensation of the operating fluid in said lubricating oil, - a function of at least the rotation frequency of said compressor (13; C).