3.1. Fast Frequency Response Control Strategy
Flexible loads (also known as demand-side resources), such as thermostatically controlled loads (e.g., air conditioners, electric water heaters, and refrigerators) and EVs with inherent energy storage, have been used for primary and secondary frequency regulation in power systems. Traditionally, flexible loads performing primary frequency control typically employ non-coordinated, autonomous controllers that measure local frequency and adjust local load demand to provide primary frequency regulation analogous to that of synchronous generators [
20]. Optimal operation in zero-carbon smart grid systems has been researched for synergistic effects of ESSs and demand-side management [
21,
22].
This paper proposes a novel control strategy for FFR based on the coordinated participation of DERs and flexible loads. In this strategy, individual NLUs communicate with the EEMT, which makes optimal dispatch decisions for scheduling controllable DERs and flexible loads. Leveraging high-speed local measurements, the strategy ensures the fulfillment of potentially time-varying local control objectives. Suitable for building-scale or factory-scale applications, it fully utilizes the flexibility of loads in building clusters to participate in FFR.
The design concept of this strategy is to use a NLU to provide demand response to grid frequency fluctuations by coordinating and optimizing control of DERs and loads within the unit. NLU is defined as DERs and loads located behind the meter of a typical electricity consumer. Considering a grid-connected smart residential building as a NLU, it comprises DERs and various typical loads, with DERs connected to a common bus via inverters. The loads can be categorized into M flexible loads and N non-flexible loads. Let
denote the set of time-varying power demands (in kW) of the M flexible loads at time t (in seconds), and
represent the set of power demands (in kW) of the N non-flexible loads at time t (in seconds). Assuming that flexible loads are turned off or on upon receiving a command
, the effective power of the flexible loads can be expressed as:
The power provided by the inverter is denoted as
(in kW). By convention, a positive value indicates that the inverter supplies power to the bus, while a negative value indicates that the inverter absorbs power from the bus. The inverter should operate within its rated upper and lower limits
and respond extremely rapidly to the inverter control command
. Let
represent the power (in kW) imported from the grid, with its capacity upper and lower limits denoted as
. According to Kirchhoff’s law, and neglecting losses, Equation (2) holds:
The control objective of this strategy is to minimize the total amount of load that must be shed while providing demand response. It is first assumed that the NLU is incentivized by the local system operator or a local aggregator to provide demand response services upon detection of a frequency anomaly event. A frequency anomaly event is defined as when Equation (3) or Equation (4) is met, i.e., when the measured frequency exceeds a predefined threshold. Upon detecting such an event, the NLU responds, and the post-disturbance grid power can be derived using Equation (5).
where
is the nominal grid frequency (in Hz);
and
are the frequency deviation thresholds below and above the nominal frequency
, respectively (in Hz);
denotes the time instant when a frequency anomaly event is detected (in seconds);
is the measured AC grid frequency at time
(in Hz),
is the measured power transfer value at the point of common coupling at time
(in kW), and
denotes the grid power dispatch command (in kW).
represents the frequency response power of the NLU (in kW), which is determined by the droop controller designed in this paper.
As a widely used control scheme in power systems, droop control enables flexible demand-side resources to participate in fast frequency response. In this paper, the grid frequency droop control curve for flexible loads based on edge terminals is illustrated in
Figure 3.
Table 1 summarizes the specific values of the parameters shown in
Figure 3, derived from actual power grid operations. These values remain unchanged during the smart building and EV charging piles tests.
The response amount of the flexible load is determined by this frequency response function, as shown in Equation (6). Specifically, when the frequency deviation exceeds the deadband threshold, EEMT utilizes this frequency response function to calculate the response amount based on the magnitude of the frequency deviation.
where
is the maximum upward response power (under-frequency response) and
is the maximum downward response power (over-frequency response), both in kW;
is the active power-frequency regulation coefficient for under-frequency response, determined through annual setting;
is the active power-frequency regulation coefficient for over-frequency response, determined through annual setting;
is the deadband threshold for under-frequency response activation (in Hz);
is the full-response frequency for under-frequency response (in Hz);
is the deadband threshold for over-frequency response activation (in Hz);
is the full-response frequency for over-frequency response (in Hz); and
is the frequency at the point of common coupling (in Hz).
Under an incentive-based revenue mechanism, the NLU operator (e.g., the owner of a smart residential building) tends to provide the net load response at minimal cost (such as avoiding load curtailment). Therefore, the control objective of this strategy is to prioritize the dispatch of inverters to meet the required net load response. If the inverter response alone is insufficient to meet the overall net load response requirement, the strategy minimizes curtailment of flexible loads to satisfy it. The mathematical formulation of this control objective is as follows:
where
is a bipolar binary variable to represent the lower-frequency or over-frequency, and
denotes the inverter power dispatch command (in kW). Based on real-world project experience, Equations (15) and (16) have been introduced to impose bounds on transmission losses. The objective function, Equation (7), prioritizes inverter-based power adjustments, followed by shiftable loads, with the primary aim of minimizing impact on end consumers.
3.2. Implementation Based on EEMT
The fast frequency response control process based on the reuse of flexible demand-side resources proposed in this paper is illustrated in
Figure 4. This control process, implemented through the EEMT, primarily consists of the following steps:
Step 1 (Real-time Monitoring of Grid Operating Status): After the edge terminal is successfully connected, it continuously monitors the grid’s operating status (including voltage, current, and frequency) at a 40-millisecond time scale. It is important to emphasize that frequency signals during normal grid operation are insufficient for evaluating the dynamic response performance of flexible demand-side resources, as they limit multi-scenario testing and hinder dynamic response assessment. While constructing a low-inertia microgrid system and inducing significant frequency fluctuations could serve as an experimental approach, this method is challenging to implement. Instead, this experiment utilizes a series of frequency variation signals generated by the edge terminal to simulate frequency fluctuations under different scenarios. Specific details are provided in the following section.
Step 2 (Frequency Anomaly Detection): The edge terminal monitors the frequency signal in real time to determine whether it exceeds preset limits (such as frequency deviation thresholds or rate-of-change-of-frequency thresholds). In this experiment, the edge terminal primarily detects frequency deviations to initiate load control.
Step 3 (Frequency Response): When the frequency deviation exceeds the threshold, the edge terminal immediately calculates the required response amount using the frequency response function and sends the corresponding control signals to the target devices. It is important to note that this process first requires identifying the real-time operating power of the controlled object as the baseline. The target operating power of the controlled object is then determined by combining this baseline with the response amount calculated from the frequency response function.
Step 4 (Target Solution): After receiving the control signals, the power of the inverter and the flexible loads are calculated based on the mathematical formulation of this optimization problem. During under-frequency (or over-frequency) conditions, Equation (13) yields a value of −1 (or 1). Equation (13) constrains the value of the objective function in Equation (7) to be always greater than or equal to zero. Equation (8) determines the frequency response amount at the moment of response. Equations (9)–(12) represent the upper and lower limit constraints for the grid input power and inverter power, respectively. Furthermore, the solution process must also satisfy the constraint given by Equations (14)–(16). When the inverter power adjustment can satisfy the net load response requirement, the objective function value is 0. In this case, only the inverter power is adjusted via commands and . When the inverter power adjustment alone cannot meet the net load response requirement, the objective function value becomes greater than 0. In this case, both the inverter power and the flexible loads are adjusted simultaneously via commands and , with the change in flexible loads being constrained. This approach achieves the net load response at minimal cost, fulfilling the control objective of minimizing the variation in flexible loads while prioritizing inverter power adjustment. The optimization model is solved using CPLEX, with a solution time of approximately 35 ms. To meet the computational requirements of EEMT, we implemented a dedicated software environment. It includes the Python 3.11.9 interpreter, along with essential libraries and tools such as Pyomo 6.7.3, pandas 2.2.1, NumPy 2.0.0, the CPLEX optimizer 20.1, and other necessary components.