To address the challenges of complex harmonic characteristics, multi-source coupling, and strong time variability in aggregated loads downstream of high-voltage substations, this paper proposes an Adaptive Multi-Task Gaussian Process Regression (AMT-GPR) method for harmonic modeling. First, field measurements from the medium-voltage side of a 500 kV substation are denoised and analyzed using Fourier transform to reveal the dynamic patterns and interdependencies of harmonic current magnitudes. Then, a multi-task GPR framework is constructed, incorporating task correlation modeling and adaptive kernel functions to capture inter-task coupling and differences in feature scales. Finally, a probabilistic harmonic model is developed based on multiple sets of measured data, and the modeling performance of AMT-GPR is compared with single-task GPR, conventional MT-GPR, and mainstream machine learning approaches including RBF, LS-SVM, and LSTM. Simulation results demonstrate that traditional harmonic modeling methods are insufficient to capture the dynamic behavior and uncertainty of aggregated loads and AMT-GPR maintains strong robustness under small-sample conditions, significantly reduces prediction errors, and yields narrower uncertainty intervals, outperforming the baseline models. These findings validate the effectiveness of the proposed method in modeling harmonics of aggregated loads in high-voltage substations and provide theoretical support for subsequent harmonic assessment and mitigation strategies.
To address rapid frequency decline, transient voltage violations, and excessive configuration costs caused by competition between active and reactive power support in weak grids, this paper proposes an optimal configuration method that incorporates the fault-period voltage-support capability of photovoltaic (PV) inverters into the planning of a grid-forming energy storage system (ESS). A coordinated response model for the ESS and PV inverter is developed, in which the PV inverter provides reactive power through Q-V droop control while smoothing its active power output. An optimization model is then formulated to minimize the annualized ESS cost while satisfying constraints on transient frequency security, voltage recovery, islanded operation, and state of charge (SOC). Frequency security indices, including the rate of change in frequency, frequency nadir, and quasi-steady-state frequency deviation, are explicitly linked to the rated power and energy capacity of the ESS. A hierarchical solution framework integrating capacity search, scheduling while connected to the grid, stepwise transient verification, and steady-state assessment under islanded operation is adopted to improve computational efficiency. Case studies on a weak distribution network show that PV transient voltage support reduces the reactive power requirement of the grid-forming ESS and lowers its configuration cost by approximately 5.2%. Meanwhile, all frequency and voltage indices remain within the prescribed security limits. Further multi-scenario evaluations and sensitivity analyses confirm the broader applicability of the proposed method across different operating conditions.