The aim of this scientific research is to experimentally determine the exergy losses of a ground heat pump and further optimization for more efficient use of operating modes and improvement of individual structural elements. In addition, it is proposed to use photovoltaic panels as a backup power source for the experimental installation under study. The exergetic losses are calculated, not only for the ground heat pump itself, with R407C refrigerant. The research methodology consists in a comprehensive assessment of exergetic flows, their optimization using new methods of approximation of piecewise linear functions, and the development of prerequisites for the use of anergy as one of the components of a new type of analysis of the efficiency of low-potential energy sources. As a result of processing the experimental data, the values of Coefficient of performance (COP) 4.136, exergetic temperature for the lower heat source 0.0253 and for the upper heat source 0.155, exergetic efficiency of the installation 0.62, and total loss of specific exergy of the heat pump 24.029 kJ/kg were obtained. Controllers with the Modbus protocol were used for data collection. Matlab Simulink was used to process the experimental data. When carrying out the procedure for optimizing the operating modes and selecting several modes with minimal exergetic losses, an important role is given to mathematical methods of processing statistical data. The method of increasing the efficiency of the heat pump is shown, first of all, based on the use of photovoltaic panels as a backup power source and optimization of exergetic losses due to exergo-anergetic evaluation of operating modes. The authors present the measurement errors of the heat pump plant parameters in the form of a 3D Gaussian curve, which becomes possible only when applying new approximation methods in the processing of measurements.