1. Introduction
The development of low-carbon energy systems and new-type power systems has increased the need for operational flexibility. Power systems with high penetrations of wind and photovoltaic generation must accommodate rapid fluctuations in renewable output, maintain multi-period power balance, and reserve sufficient regulation capacity under uncertain net-load conditions. Conventional thermal units alone may not provide the required flexibility, as their operation is constrained by ramping limits, minimum output levels, start-up and shut-down requirements, and economic operation ranges. Therefore, distributed generation, controllable loads, energy storage systems, and multi-energy conversion devices are increasingly coordinated to provide operational flexibility and support the secure and reliable operation of power systems [
1,
2].
A virtual power plant (VPP) aggregates geographically dispersed resources into an observable, measurable, and controllable operating entity. Supported by communication and coordinated scheduling, the VPP can be dispatched as a single flexible resource and participate in energy and ancillary service markets, similarly to conventional power plants. When multiple energy carriers, including electricity, heating, and natural gas carriers, are integrated into the VPP, their complementary characteristics provide richer regulation mechanisms than an electricity-only aggregation. The electrical subsystem provides fast power regulation, while heating and natural gas networks offer additional flexibility through thermal inertia and gas storage characteristics. Such cross-carrier coordination is enabled by energy conversion devices, including combined heat and power (CHP) units, gas-fired generators, gas boilers, and heat pumps, which couple electricity, heating, and natural gas networks and allow flexibility among different energy carriers. Related studies have also shown that district-heating-network reconfiguration can further enhance the flexibility of CHP-VPPs and integrated electricity–heating systems [
3,
4]. By exploiting complementary flexibility across multiple energy networks, electricity–heating–gas coordination can enhance the regulation capability of the electrical system and facilitate renewable energy integration [
5,
6].
Most existing VPP studies focus on economic scheduling, market bidding, demand response, or robust operation under prescribed objectives [
7,
8,
9]. For integrated electricity–heating systems, distributed operation and secure CHP dispatch have also been investigated to improve operational coordination and computational efficiency [
10,
11]. These approaches are effective in determining optimal operating points or dispatch trajectories, but they do not by themselves characterize the full range of flexibility available to system operators. For dispatch decision making and ancillary-service procurement, it is necessary to quantify the feasible net-power exchange between the VPP and the external grid while satisfying all internal network and device constraints. This range can be interpreted as the projection of the internal feasible set onto the external power interface. With positive values denoting power export, its upper and lower limits represent the maximum export and import capabilities, respectively, and determine the regulation margin available relative to a scheduled operating point [
12,
13].
Existing studies have increasingly incorporated the dynamic characteristics of coupled energy networks into multi-energy flexibility assessment. Clegg and Mancarella combined electrical optimal power flow with steady-state and transient gas-network analyses and introduced a zonal-linepack metric to quantify the flexibility that the gas network can provide to the power system under different heating scenarios [
14]. Schwele et al. coordinated electricity, district heating, and natural gas systems while accounting for heat transport and gas linepack, and quantified network flexibility through the operational benefits enabled by pipeline energy storage [
15]. Abbà et al. developed a dynamic simulation-based method for networked multi-energy systems, and obtained electrical upward and downward flexibility boundaries and profiles subject to district-heating-network constraints [
16]. More recently, Li et al. constructed admissible power-fluctuation regions for dynamic district-heating and hydrogen-enriched natural gas networks and aggregated them to evaluate the power flexibility of multi-energy systems under uncertainty [
17]. These studies demonstrate that multi-energy flexibility is shaped not only by device capacities, but also by network dynamics, inherited states, and intertemporal coupling.
Despite this progress, existing dynamic multi-energy flexibility studies mainly quantify flexibility through system-level metrics, operational benefits, simulation-based profiles, or multidimensional admissible power-fluctuation regions. These representations are useful for revealing internal flexibility, but they are not directly aligned with grid-side regulation assessment, where the VPP is observed and scheduled through the net power exchanged at the PCC. Without an explicit projection onto this interface, the externally deliverable flexibility may be either overestimated, because internal thermal and gas constraints can prevent declared regulation from being delivered, or underestimated, because pipeline thermal storage and gas linepack may release additional regulation capability. Therefore, for an electricity–heating–gas VPP operated as a grid-facing entity, a key question remains: how can the joint time-varying feasible set formed by electric-network constraints, heating-network temperature dynamics, gas-network pressure dynamics, and multi-energy conversion devices be translated into period-wise PCC import and export limits? This mapping should also recover the feasible internal dispatch and state trajectories supporting each boundary point. Such a direct mapping from the joint dynamic feasible set to time-resolved PCC limits has not been sufficiently addressed by existing flexibility-assessment frameworks.
A further gap concerns the operational meaning of a calculated boundary. Heat transport delay, pipeline thermal storage, gas-pressure evolution, and linepack couple current PCC regulation to historical and terminal network states [
18,
19,
20]. A schedule may therefore reach a large physical PCC extreme by depleting temperature or pressure margins near the end of the horizon, leaving the VPP unable to continue normal operation. Likewise, a physically attainable extreme may require an uneconomical combination of internal devices. Existing flexibility regions do not generally distinguish such short-term physical extremes from limits that are both state-sustainable and economically deployable. Consequently, the unresolved research gap is the lack of a PCC-oriented assessment framework that converts the joint dynamic feasibility of a multi-energy VPP into time-resolved external flexibility boundaries and screens the resulting extremes according to terminal-state and economic requirements.
The scientific problem addressed in this paper is therefore how to project the jointly coupled, time-varying feasible set of an electricity–heating–gas VPP onto the PCC net-power variable, while preserving historical temperature and pressure effects and distinguishing attainable limits from sustainable and economically deployable ones. To support repeated boundary optimization, the frequency-domain ECM is adopted to convert heating- and gas-network dynamics into algebraic constraints, retaining thermal propagation, gas-pressure evolution, and historical-state dependence without dense time–space discretization [
21,
22]. In this way, each calculated PCC boundary point is supported by a feasible internal state trajectory.
Accordingly, the main contributions of this paper are summarized as follows:
(1) An interface-oriented dynamic feasible-set projection framework is formulated for electricity–heating–gas VPPs. The proposed formulation directly optimizes the PCC net power over the jointly coupled dynamic feasible set, and obtains period-wise import and export limits together with the internal dispatch and state trajectories supporting each boundary point.
(2) A state-aware boundary formulation is established by embedding heating-network temperature dynamics, gas-network pressure dynamics, electric-network constraints, and multi-energy conversion devices into a unified boundary optimization. This formulation links historical network states and available temperature/pressure margins to coupling-device feasibility and ultimately to the time variation and directional asymmetry of the PCC flexibility boundary, providing a mechanism-based interpretation beyond the qualitative recognition of thermal inertia and gas linepack.
(3) A hierarchical characterization of physical, sustainable, and economically deployable flexibility is developed. Terminal-state recovery constraints prevent the boundary from being artificially enlarged through end-of-horizon depletion of pipeline storage, while an economic feasibility constraint excludes physically feasible but excessively costly schedules. This distinction provides a transferable principle for converting a technical multi-energy feasible range into grid-callable flexibility.
2. Dynamic ECM-Based Operation Model for the Electricity–Heating–Gas VPP
To evaluate the external flexibility of an electricity–heating–gas virtual power plant (VPP), the electric power flow, heating-network temperature dynamics, gas-network pressure dynamics, and multi-energy coupling-device constraints must be considered in a unified framework. Conventional static energy-flow models typically represent heating and gas networks using instantaneous steady-state balance equations, and therefore do not explicitly capture heat transmission delays, thermal inertia, or gas linepack effects [
23]. To address this limitation, this section formulates a dynamic energy circuit model (ECM) to represent the operating states of the internal electric, heating, and gas subsystems under coupled dynamic network constraints.
To make the modeling scope explicit, the principal assumptions and simplifications adopted in this study, together with their possible influence on the calculated flexibility boundaries, are summarized as follows. (1) The electric network uses lossless DC power flow, which may yield optimistic PCC boundaries. (2) Heating-pipe mass flows and directions are fixed, excluding variable-flow flexibility. (3) Gas dynamics are linearized around a nominal point and may be inaccurate under large deviations. (4) Load and wind-power forecasts are deterministic, so the boundaries are forecast-dependent.
2.1. Electric Power Network (EPN) Operation Model
At the VPP scheduling time scale, electromagnetic transients in the electric network are much faster than the dispatch interval. Therefore, the electric network is represented by a steady-state DC power-flow model. Let
be the active-power net injection vector of electric nodes in period t, and let
be the corresponding line-flow vector. Under the DC power-flow approximation, the line flows are given by
where
is the power transfer distribution factor matrix. The nodal active-power balance is enforced as
and the line security constraint is expressed as
The nodal net injection is determined by the electric outputs of internal generation units, wind generation, electric loads, electric-to-heat devices, and the power exchanged at the point of common coupling (PCC). Thus, we have:
Here, includes the electric outputs of conventional units, gas-fired units, and CHP units; represents wind power; represents electric load; denotes the electric consumption of heat pumps, electric boilers, and other electric-to-heat devices; and is the power exchanged with the external grid. The PCC exchange variable enters the nodal active-power balance at the designated interface bus. Under the adopted lossless DC power-flow approximation, active transmission losses within the VPP electric network are neglected.
Wind-power output is modeled as a bounded dispatch variable rather than a fixed injection. For each wind turbine w and period t, its scheduled output satisfies , where is the forecast available wind power. Thus, downward adjustment through wind curtailment is allowed, whereas wind power cannot be scheduled above its forecast availability.
2.2. District Heating Network (DHN) Operation Model
In a district heating network, thermal energy is transported by the working fluid. As a result, the network exhibits heat transmission delays and thermal inertia. A change in heat-source output cannot be instantaneously reflected at load nodes; instead, the temperature response depends on pipe length, flow velocity, heat loss, and historical temperature states. Therefore, heating-network dynamics should be explicitly retained in the flexibility boundary assessment.
The district heating network is assumed to operate in quality-regulation (temperature-regulation) mode. Accordingly, the mass-flow rate and nominal flow direction of each heating pipe are prescribed and remain unchanged throughout the scheduling horizon. For each heating pipe b, this condition is expressed as
where
denotes the prescribed mass-flow rate of pipe
b. The positive sign corresponds to its predefined from-node–to-node direction. Therefore, the flow velocity and the associated frequency-domain pipe parameters are fixed before the boundary optimization.
Under this assumption, the model retains temperature propagation delay, heat attenuation, pipeline thermal storage, and historical-state dependence for the prescribed hydraulic operating condition. Relative to a fully variable-flow formulation, fixing the mass-flow rates and directions removes hydraulic control degrees of freedom and may therefore produce a conservative estimate of the total flexibility range. If the actual mass flow differs appreciably from the prescribed value, however, both heat-transport delay and attenuation change, and the resulting temperature constraints may shift either the upper or lower PCC boundary. Thus, the direction of the boundary error cannot be stated universally. The present model is mainly applicable to district heating systems with stable mass-flow settings and no flow reversal over the scheduling horizon.
For a heating branch
, let
be the working-fluid temperature at position
and time
,
denote the flow velocity,
denote the ambient temperature, and
denote the heat-loss coefficient. The temperature dynamics along the pipe are described by:
which indicates that the outlet temperature is governed not only by the current inlet temperature but also by historical inlet temperatures and the pipe heat-transfer process. In the frequency-domain ECM, this dynamic inlet–outlet relationship can be transformed into an algebraic form. For the
-th frequency component, the branch temperature relation is given by:
where
is the transfer coefficient of heating branch
, and
is the equivalent term associated with ambient temperature, boundary conditions, and historical states. By assembling all branch-level relations according to the heating-network topology, the network-level frequency-domain model can be written as:
The frequency-domain model is then transformed back to the time domain, yielding
where
Here,
is the discrete Fourier transform matrix. The vector
is the heat-power injection sequence over the optimization window,
is the heating-network temperature-state sequence, and
is the equivalent influence of historical temperatures and heat injections mapped into the target scheduling interval through the frequency-domain ECM. The temperature security limits of the heating network are imposed as
which embeds the effect of heating-network dynamics into the VPP flexibility assessment. Pipe heat storage can support short-term electric-power regulation, while temperature limits and transmission delays restrict the adjustable ranges of CHP units, heat pumps, and gas boilers.
2.3. Natural Gas Network (NGN) Operation Model
Natural gas networks exhibit appreciable dynamic characteristics because gas compressibility enables pipelines to store gas through linepack effects. Variations in the gas consumption of gas-fired generators and gas boilers directly affect nodal pressures, while the pressure evolution is constrained by historical operating states and available linepack capacity. Therefore, gas-network dynamics influence the capability of gas-fired devices to provide flexibility regulation for the VPP.
For a natural gas pipe
, let
denote the pressure variable and
the mass flow. The linearized dynamic equations of the gas pipeline are expressed as
The coefficients
,
,
are determined by pipe parameters and the operating base point. These linearized relations retain the dominant gas-network dynamics around the nominal operating point while avoiding nonlinear coupling in the repeated boundary optimization. The detailed derivation, linearization treatment, and approximation-error validation of the adopted ECM are provided in [
21,
22]. Through frequency-domain transformation, the dynamic gas-network equations are converted into algebraic forms. For the k
th frequency component, the network-level pressure relation is given by:
where
is the frequency component of nodal gas net injection,
is the frequency-domain impedance matrix of the gas network, and
represents the equivalent influence of historical pressures and gas injections mapped by the frequency-domain ECM. Transforming the frequency-domain model back to the time domain gives
Here,
is the gas net-injection sequence over the optimization window,
is the gas-node pressure sequence, and
represents the contribution of historical line pack and initial pressure states to the current scheduling window. The pressure safety constraint of the gas network is imposed as
This constraint reflects the impact of gas line pack and pressure dynamics on the flexibility boundary. When sufficient pressure margin is available, line pack can temporarily support the regulation of gas-fired devices. Conversely, when nodal pressures approach their limits, the adjustable capability of gas-consuming devices is restricted.
2.4. Multi-Energy Coupling Device Model
The VPP considered in this paper includes natural gas units, CHP units, gas boilers, heat pumps, and other multi-energy coupling devices. Their variables are connected to the electric, heating, and gas networks through nodal injection terms, and thus affect the PCC net power and the resulting flexibility boundary.
2.4.1. Energy Conversion Models
A natural gas unit (NGU) converts gas into electric power. The gas consumption and electric output of NGU
in period
satisfy:
where
is the electric output,
is its gas consumption, and
is the gas-to-electric conversion coefficient.
A CHP unit produces electric and thermal power simultaneously. Under a fixed heat-to-electric ratio, its output relation is expressed as:
where
and
denote the electric and heat output, respectively, and
is the heat-to-electric ratio.
A gas boiler converts gas into heat. The corresponding conversion relation is:
Here is the heat output, is the gas consumption, and is the gas-to-heat conversion coefficient.
A heat pump consumes electric power and supplies heat to the heating network. Its electric consumption and heat output are related by
where
is the electric consumption of the heat pump,
is its heat output, and
is the coefficient of performance.
2.4.2. Device Operating Constraints
For a controllable device
, let
denote its operating variable in period
. The output limits are uniformly expressed as
and the ramping constraint is given by
Here, can represent the electric output of a gas-fired unit, the electric output of a CHP unit, the heat output of a gas boiler, the heat output of a heat pump, or the gas supply of a gas source.
2.4.3. Nodal Injections of Coupling Devices
Multi-energy coupling devices enter the electric, heating, and natural gas-network models through nodal injection terms. Let
denote that device
is connected to node
. The electric net injection at node
in period
is formulated as
The first four terms represent the electric outputs of conventional thermal units, gas-fired units, CHP units, and wind turbines, respectively. The fifth term is the electric consumption of heat pumps, and the last term is the electric load. Thus, gas-fired units, CHP units, and wind turbines act as positive injections in the electric network, whereas heat pumps and electric loads act as negative injections.
The gas net injection at node
is
where gas sources are positive injections, while gas-fired units, gas boilers, and gas loads are negative injections.
Similarly, the heat-power net injection at a heating node or pipe inlet is given by
CHP units, gas boilers, and heat pumps act as heat sources, while heat loads are negative injections. Through these nodal injection relationships, different heat-source combinations can satisfy heat demand while simultaneously affecting the electric and natural gas-network states.
2.5. Time–Frequency Consistency Constraints for Coupling-Device Injections
Since the heating- and gas-network constraints are formulated in the frequency domain, the gas-side and heat-side injection variables of coupling devices must be consistent with their corresponding time-domain operating variables. Therefore, in addition to the time-domain output limits, ramping limits, and energy-conversion constraints, a discrete Fourier transform (DFT) relationship is imposed between the time-domain device sequences and the frequency-domain network injection variables.
Taking the gas consumption of NGU
as an example, its time-domain sequence over the optimization horizon is
The corresponding
-th frequency-domain component is obtained by
Here, are the elements of the discrete Fourier transform matrix. The same mapping is applied to gas-boiler consumption, gas-source supply, and heat-power injection variables. Through these time–frequency consistency constraints, multi-energy coupling devices are linked to the frequency-domain heating and gas-network models via nodal injections, thereby affecting the electric-, heating-, and gas-network states as well as the PCC net power.
3. Operational Flexibility Boundary Assessment Model
Based on the dynamic ECM-based operation model established in
Section 2, this section formulates an optimization-based operational flexibility boundary assessment model. The PCC net power is selected as the external flexibility interface, while the electric, heating, gas, and coupling-device constraints define the internal feasible operating set of the VPP. By maximizing and minimizing the PCC net power over this feasible set, the physical upper and lower flexibility boundaries are obtained for each scheduling period. Upward and downward flexibility indices are then defined relative to the baseline operating point. Terminal recovery and economic feasibility constraints are further introduced to prevent excessive use of network storage and to ensure that the boundary schedules remain practically acceptable.
3.1. PCC Net Power of the VPP
With the PCC net power selected as the external interface variable, is defined as the net active power exchanged between the VPP and the external grid in period . A positive value of indicates power export from the VPP to the external grid, whereas a negative value indicates power import from the external grid.
According to the active-power balance of the internal electric subsystem,
can be expressed as:
The positive terms represent electric power supplied by conventional thermal units, natural gas units, CHP units, and wind turbines, while the negative terms represent heat-pump electricity consumption and electric load. Thus,
provides a compact external representation of the internal electric dispatch of the VPP. For economic evaluation, the PCC net power is further decomposed into selling and buying variables:
Here,
and
denote the power sold to and purchased from the external grid, respectively. The corresponding electricity prices satisfy
where
and
are the buying and selling prices, respectively. This relationship is used in the economic feasibility constraint introduced later.
3.2. Physical Operational Flexibility Boundary
Based on the dynamic ECM-based operation model in
Section 2 and the PCC net-power definition in
Section 3.1, the physical feasible operation set of the VPP is denoted by
. This set includes the steady-state electric power-flow constraints, district-heating temperature dynamic constraints, natural gas pressure dynamic constraints, multi-energy coupling-device constraints, time-frequency consistency constraints, device output and ramping limits, and network security limits. For compactness, it is written as:
Under
, the upper operational flexibility boundary of the VPP in period
is defined as
and the lower boundary is defined as
Therefore, the physical operation flexibility interval in period
is
This interval represents the reachable range of PCC net power without violating the internal electric, heating, gas, and device operating constraints. It is not obtained by a simple summation of individual device capacities; rather, it is the projection of the coupled dynamic feasible region of the electricity–heating–gas VPP onto the external net-power interface.
3.3. Upward and Downward Flexibility Indices
The baseline operating point represents the normal dispatch schedule of the VPP under forecasted load, renewable generation, and price conditions. Let
denote the PCC net power at this baseline operating point in period
. For a specified PCC flexibility boundary
, the upward flexibility of the VPP relative to the baseline trajectory is defined as
and the downward flexibility is
Here, and characterize the upward and downward flexibility margins relative to the baseline operating point, respectively. The upward margin corresponds to the additional PCC net power that can be provided through generation increase, load reduction, or reduced electric-to-heat consumption. The downward margin corresponds to the reducible PCC net power, or additional import capability, enabled by generation reduction, increased heat-pump consumption, or coordinated adjustment of multi-energy coupling devices.
The absolute PCC boundaries and the baseline-referenced flexibility margins have different roles. The extrema defined in
Section 3.2 represent the scenario-conditioned reachable export and import limits and are independent of a scheduled PCC value. Their differences from the committed day-ahead baseline quantify the remaining upward and downward adjustment capability and are suitable for reserve-capacity and ancillary-service assessment. Changing the baseline therefore reallocates the upward and downward margins but does not alter the underlying PCC boundary under the same feasible set.
The baseline trajectory is obtained first through a full-horizon economic dispatch under the same dynamic-network, device, security, historical-state, forecast, price, and capacity conditions used in the boundary calculation. This baseline optimization provides the reference PCC trajectory, the baseline operating cost, and the corresponding terminal network states. The terminal states and operating cost obtained from this baseline solution are subsequently used as references in the terminal-recovery and economic-feasibility constraints introduced in
Section 3.4.
Other flexibility representations include ramping flexibility, cumulative energy flexibility, joint multi-period trajectory regions, and cost–flexibility curves. This study reports the period-wise PCC envelope and its baseline-referenced upward and downward margins because grid regulation is scheduled around a committed PCC trajectory.
3.4. Terminal Recovery and Economic Feasibility Constraints
The physical flexibility boundary defined in
Section 3.2 characterizes the maximum reachable PCC net-power range under the dynamic network and device operating constraints. However, a physically reachable boundary schedule may not be practically sustainable if it excessively exploits heating-network thermal storage or gas-network linepack, and it may also be economically unattractive if it relies on high-cost internal dispatch. Therefore, the proposed framework distinguishes three nested levels of flexibility: the physical boundary, the sustainable boundary obtained by additionally imposing terminal-state recovery, and the economically deployable boundary obtained by further imposing the economic-feasibility constraint.
To obtain the sustainable boundary, the terminal state of each boundary schedule is constrained to remain sufficiently close to the terminal state of the baseline economic dispatch. Let
denote the key state variables at the end of the window, including heating-network temperatures, gas-network pressures, and device outputs. Let
denote the corresponding baseline states. The terminal recovery constraint is expressed as:
where
is the allowed terminal-state deviation. This constraint limits excessive depletion or accumulation of pipeline thermal storage and gas-network linepack and prevents the calculated boundary from relying on an unfavorable end-of-horizon state. The resulting boundary is therefore referred to as the sustainable flexibility boundary.
To further obtain an economically deployable boundary, an economic-feasibility constraint is imposed on the sustainable boundary schedules to exclude operating strategies that require excessive additional cost solely to enlarge the PCC regulation range. Let
denote the total operating cost of a boundary schedule over the scheduling horizon, including conventional-unit cost, gas-fired-unit cost, gas-boiler cost, PCC transaction cost, and penalty cost. It is expressed as:
where the PCC transaction cost is
Let
be the baseline dispatch cost and
the allowed cost-deviation ratio. The economic feasibility constraint is then given by
This constraint ensures that the internal dispatch supporting each retained boundary point remains economically acceptable relative to normal operation. Consequently, the three flexibility levels satisfy a nested relationship: the sustainable boundary is contained within the physical boundary, and the economically deployable boundary is further contained within the sustainable boundary.