Intelligent Optimization of Ground-Source Heat Pump Systems Based on Gray-Box Modeling
Abstract
1. Introduction
2. Optimization Model Development
2.1. System and Model
2.2. Gray-Box Model of GSHP Units (GSHP-YFU Model)
2.2.1. Modeling Requirements
2.2.2. Evaporator and Condenser Heat-Transfer Models
- Evaporator Model: The evaporator absorbs heat from the chilled-water loop. Its evaporating temperature depends on the chilled-water return temperature and the water flow rate. The evaporating temperature model is expressed as follows:
- Condenser Model: The GSHP condenser rejects heat into the underground heat-exchanger loop. The condensing temperature depends on the ground-side inlet water temperature and the ground-loop flow rate. The condensing temperature model is expressed as follows:
2.2.3. Gray-Box COP Model for GSHP Units
2.2.4. Power Model of the GSHP Unit
2.3. Energy Consumption Model of Variable-Frequency Pumps
2.3.1. Single Variable-Frequency Pump
2.3.2. Parallel Variable-Frequency Pumps
2.4. Optimization Strategies for GSHP System
2.4.1. Overall Optimization Problem Formulation of the GSHP System
- On/off states of GSHP units;
- On/off states (or operating numbers) of chilled-water pumps;
- On/off states (or operating numbers) of ground-side circulation pumps.
- Chilled-water supply temperature;
- Chilled-water circulation flow rate;
- Ground-side circulation flow rate.
- Cooling-load balance constraint:
- Chilled-water temperature constraints:
- Ground-side temperature constraints:
- Flow-rate constraints:
- GSHP unit and pump operational constraints:
- Discrete optimization stage, in which the on/off combinations of GSHP units and circulation pumps as well as the load allocation among the running GSHP units, are determined;
- Continuous optimization stage, in which the chilled-water supply temperature and circulation flow rates are optimized under fixed unit and pump configurations.
2.4.2. GSHP Unit On/Off Control and Load Allocation
2.4.3. Optimization of Chilled-Water and Ground-Side Pump On/Off Control
2.4.4. Determination of the Optimal Staging Combination Based on Start–Stop Strategies
- Construction of the feasible on/offsets: Considering minimum on/off time constraints, minimum part-load ratios, motor capacity limits, and operational safety requirements, a complete set of feasible unit start–stop combinations is generated.
- Load-matching-based combination screening: For each candidate combination, the mean squared error (MSE) between the operating point and the optimal efficiency region of each GSHP unit is calculated. This metric is used to select one or several candidate staging combinations that best match the prevailing load.
- Optimal pump-staging selection: Based on the head–flow characteristics of parallel pumps, the power consumption under different numbers of operating pumps is estimated. The staging combination that satisfies the target flow rate with the minimum energy consumption is selected.
- The optimal on/off combination of GSHP units;
- The optimal number of operating chilled-water pumps;
- The optimal number of operating ground-side circulation pumps. These discrete decision variables serve as fixed boundary conditions for the second-stage PSO optimization.
2.4.5. PSO-Based Continuous Variable Optimization Using the Gray-Box Model
3. Case Study
3.1. System Equipment Overview
3.1.1. Configuration of Cooling Source Equipment
3.1.2. Current Status of Variable-Frequency Pump Control
3.1.3. System Operation and Data Acquisition
3.2. Model Development and Parameter Identification
3.3. Simulation Platform and Performance Validation
- a conventional non-optimized operation mode, in which the chilled-water supply temperature is fixed at 9 °C, pump frequency is maintained at 50 Hz, and no load-adaptive control is applied; and
- an AI-based group-control optimization mode, in which chilled-water supply temperature and circulation flow rates are dynamically adjusted using the proposed optimization framework.
3.3.1. Performance Under Low-Load Operating Conditions
3.3.2. Performance Under High-Load Operating Conditions
3.3.3. Annual Energy-Saving Potential
3.4. Field Implementation and Measured Energy-Saving Performance of AI-Based Optimization Control
3.4.1. Test Methodology and Baseline Configuration
3.4.2. Energy-Saving Performance of the Cooling System
3.4.3. Energy-Saving Performance of the Heating System
3.4.4. Field Test Results
4. Conclusions
- A gray-box performance modeling method for GSHP units is developed based on thermodynamic principles and measured operational data. By extending and reformulating the classical YAO model, the proposed GSHP-YFU model accurately captures the coupled effects of load ratio, chilled-water temperature, ground-loop temperature, and flow rate on the coefficient of performance (COP), while maintaining strong interpretability and suitability for real-time engineering applications.
- Energy consumption models for both single and parallel variable-frequency pumps are established using data-driven identification techniques. These models effectively characterize the nonlinear relationship between pump power consumption and real-time flow rate under different staging conditions, providing a reliable foundation for system-level hydraulic optimization.
- A multi-parameter cooperative optimization strategy is proposed, integrating GSHP unit start–stop scheduling, load allocation, pump-staging optimization, and continuous–variable regulation. To efficiently handle the coexistence of discrete and continuous decision variables, a two-stage hierarchical optimization framework is designed, in which discrete staging decisions are determined first, followed by particle swarm optimization (PSO)for continuous operational variables. This structure significantly reduces computational complexity while ensuring global optimization performance.
- An integrated simulation platform is constructed based on measured data and the developed gray-box models to validate the proposed optimization strategy under different operating conditions. Simulation results indicate that the AI-based optimization strategy achieves average daily energy-saving rates of 21.4% under low-load conditions and 18.7% under high-load conditions during the cooling season, demonstrating strong robustness across varying load regimes.
- Field implementation and alternating-day on-site testing further confirm the practical effectiveness of the proposed strategy. The AI-based control system achieves average energy-saving rates of 24.1% in the cooling season and 24.2% in the heating season, with chilled-water pumps identified as the primary contributors to energy reduction. Even during low-load and transitional periods, the system consistently maintains energy-saving rates exceeding 21.8%. The seasonal coefficient of performance (SCOP) of the GSHP system is improved from approximately 3.2 to above 4.0, corresponding to an annual electricity saving of more than 3.6 × 105 kWh.
- Overall, the proposed AI-based cooperative optimization framework demonstrates strong engineering applicability, stability, and scalability. It provides a reusable technical paradigm for intelligent energy-saving retrofits of GSHP systems in large commercial buildings and contributes to the advancement of low-carbon building operation under the dual-carbon targets.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- China Academy of Building Energy Efficiency. China Building Energy Consumption and Carbon Emission Research Report (2023); China Academy of Building Energy Efficiency: Beijing, China, 2024. [Google Scholar]
- Research Institute of Urban Construction, Department of Chongqing University. China Building Energy Consumption and Carbon Emission Research Report (2023); Chongqing University: Chongqing, China, 2024. [Google Scholar]
- Guo, S.Y.; Jiang, Y.; Hu, S. The pathways toward carbon peak and carbon neutrality in China’s building sector. Chin. J. Urban Environ. Stud. 2022, 10, 2250011. [Google Scholar] [CrossRef]
- Maghrabie, H.M.; Abdeltwab, M.M.; Tawfik, M.H.M. Ground-source heat pumps (GSHPs): Materials, models, applications, and sustainability. Energy Build. 2023, 299, 113560. [Google Scholar] [CrossRef]
- Adebayo, P.; Jathunge, C.B.; Darbandi, A.; Fry, N.; Shor, R.; Mohamad, A.; Wemhöner, C.; Mwesigye, A. Development, modeling, and optimization of ground source heat pump systems for cold climates: A comprehensive review. Energy Build. 2024, 320, 114646. [Google Scholar] [CrossRef]
- Spitler, J.D.; Gehlin, S. Measured performance of a mixed-use commercial-building ground source heat pump system in Sweden. Energies 2019, 12, 2020. [Google Scholar] [CrossRef]
- Zhi, C.Q.; Zhou, X.; Hong, X.Y.; Wang, A.X.; Ye, W.; Zhang, X.; Chen, H.X. Field study of the long-term performance and reliability of large-scale ground source heat pump systems applied to a mixed-use complex of buildings. Renew. Energy 2025, 241, 122344. [Google Scholar] [CrossRef]
- Bisengimana, E.; Zhou, J.Z.; Binama, M.; Zhao, K.M.; Abbas, S.; Yuan, Y.P. The frosting and soil imbalance performance issues of building heat pumps: An overview. Energy Build. 2022, 273, 112387. [Google Scholar] [CrossRef]
- Li, W.X.; Li, X.D.; Wang, Y.; Tu, J.Y. An integrated predictive model of the long-term performance of ground source heat pump (GSHP) systems. Energy Build. 2018, 159, 309–318. [Google Scholar] [CrossRef]
- Bina, S.M.; Fujii, H.; Kosukegawa, H.; Inagaki, F. A predictive model of long-term performance assessment of ground source heat pump (GSHP) systems in Japanese regions. Geothermics 2024, 119, 102955. [Google Scholar] [CrossRef]
- Liu, J.; Wang, F.H.; Gao, Y.; Zhang, Y.P.; Cai, W.L.; Wang, M.; Wang, Z.H. Influencing factors analysis and operation optimization for the long-term performance of medium-deep borehole heat exchanger coupled ground source heat pump systems. Energy Build. 2020, 226, 110385. [Google Scholar] [CrossRef]
- Li, J.L.; Qi, X.P.; Li, X.L.; Huang, H.J.; Gao, J. Coupled study on the building load dynamics and thermal response of ground sources in shallow geothermal heat pump systems under severe cold climate conditions. Modelling 2025, 6, 63. [Google Scholar] [CrossRef]
- Alavy, M.; Shirazi, P.; Rosen, M.A. Long-term energy performance of thermal caisson geothermal systems. Energy Build. 2023, 292, 113152. [Google Scholar] [CrossRef]
- Ma, W.T.; Kim, M.K.; Hao, J.L. Numerical simulation modeling of a GSHP and WSHP system for an office building in the hot summer and cold winter region of China: A case study in Suzhou. Sustainability 2019, 11, 3282. [Google Scholar] [CrossRef]
- Wang, J.L.; Yan, T.; Tang, X.; Pan, W.G. Design and operation of hybrid ground source heat pump systems: A review. Energy 2025, 316, 134537. [Google Scholar] [CrossRef]
- Noye, S.; Martinez, R.M.; Carnieletto, L.; De Carli, M.; Aguirre, A.C. A review of advanced ground source heat pump control: Artificial intelligence for autonomous and adaptive control. Renew. Sustain. Energy Rev. 2022, 153, 111685. [Google Scholar] [CrossRef]
- Cupeiro Figueroa, I.; Picard, D.; Helsen, L. Short-term modeling of hybrid geothermal systems for model predictive control. Energy Build. 2020, 215, 109884. [Google Scholar] [CrossRef]
- Hou, G.Y.; Taherian, H.; Li, L.J.; Fuse, J.; Moradi, L. System performance analysis of a hybrid ground source heat pump with optimal control strategies based on numerical simulations. Geothermics 2020, 86, 101849. [Google Scholar] [CrossRef]
- Zhou, K.; Mao, J.F.; Li, Y.; Zhang, H.; Chen, S.Y.; Chen, F. Thermal and economic performance of horizontal ground source heat pump systems with different flowrate control methods. J. Build. Eng. 2022, 53, 104554. [Google Scholar] [CrossRef]
- Li, Y.F.; O’Neill, Z.; Zhang, L.; Chen, J.L.; Im, P.; DeGraw, J. Grey-box modeling and application for building energy simulations: A critical review. Renew. Sustain. Energy Rev. 2021, 146, 111174. [Google Scholar] [CrossRef]
- Afram, A.; Janabi-Sharifi, F. Gray-box modeling and validation of residential HVAC system for control system design. Appl. Energy 2015, 137, 134–150. [Google Scholar] [CrossRef]
- Fu, Q.M.; Chen, X.Y.; Ma, S.A.; Fang, N.W.; Xing, B.; Chen, J.P. Optimal control method of HVAC based on multi-agent deep reinforcement learning. Energy Build. 2022, 270, 112284. [Google Scholar] [CrossRef]
- Zhao, Z.H.; Wang, C.L.; Wang, B.L. Adaptive model predictive control of a heat pump-assisted solar water heating system. Energy Build. 2023, 300, 113682. [Google Scholar] [CrossRef]
- Yao, Y.; Yu, Y. Modeling and Control in Air-Conditioning Systems; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar]









| Category | Quantity | Cooling Capacity (kW) | Power (kW) | Flow Rate (m3/h) | Head (m) |
|---|---|---|---|---|---|
| GSHP Unit | 1 | 2627 | 507 | – | – |
| GSHP Unit | 2 | 2388 | 364 | – | – |
| Chilled-water Pump | 4 | – | 75 | 460 | 37 |
| Ground-loop Pump | 4 | – | 75 | 460 | 37 |
| Unit | a1 | a2 |
|---|---|---|
| 1 GSHP-YFU Unit | 0.3485 | 0.3662 |
| 2 GSHP-YFU Unit | 0.3814 | 0.3917 |
| Operating Mode | b0 | b1 | b2 |
|---|---|---|---|
| Single Pump | 8.2563 | −0.2257 | 0.0022 |
| Two Pumps in Parallel | 11.5840 | −0.3655 | 0.0039 |
| Three Pumps in Parallel | 12.4910 | −0.4600 | 0.0056 |
| Four Pumps in Parallel | 13.2159 | −0.5545 | 0.0073 |
| Pump No. | b0 | b1 | b2 |
|---|---|---|---|
| 1 Ground-loop Pump | 16.4840 | −0.2895 | 0.0017 |
| 2 Ground-loop Pump | 14.9624 | −0.2701 | 0.0016 |
| 3 Ground-loop Pump | 10.0260 | −0.1985 | 0.0014 |
| 4 Ground-loop Pump | 17.5911 | −0.3055 | 0.0017 |
| Metric | Value | Description |
|---|---|---|
| RMSE | 0.22 | Root mean square error of COP prediction |
| CV (%) | 3.5 | Coefficient of variation under load-ratio-based grouping |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Wang, K.; Shuai, Z.; Yao, Y. Intelligent Optimization of Ground-Source Heat Pump Systems Based on Gray-Box Modeling. Energies 2026, 19, 608. https://doi.org/10.3390/en19030608
Wang K, Shuai Z, Yao Y. Intelligent Optimization of Ground-Source Heat Pump Systems Based on Gray-Box Modeling. Energies. 2026; 19(3):608. https://doi.org/10.3390/en19030608
Chicago/Turabian StyleWang, Kui, Zijian Shuai, and Ye Yao. 2026. "Intelligent Optimization of Ground-Source Heat Pump Systems Based on Gray-Box Modeling" Energies 19, no. 3: 608. https://doi.org/10.3390/en19030608
APA StyleWang, K., Shuai, Z., & Yao, Y. (2026). Intelligent Optimization of Ground-Source Heat Pump Systems Based on Gray-Box Modeling. Energies, 19(3), 608. https://doi.org/10.3390/en19030608

