MULTI-OPERATIONAL MODE INVERTERS THAT FACILITATE A UNIFIED CONTROL DESIGN ACROSS DIFFERENT POWER GRID TYPES

20260095052 ยท 2026-04-02

    Inventors

    Cpc classification

    International classification

    Abstract

    A computing system for functional integration with a distributed power grid having one or more inverters. The computing system includes processing device(s) to control operation of an inverter by executing a feedback controller with a grid-tied line, of the distributed power grid, treated as a plant and including a unified algebraic control system operating based on a pair of closed-loop variables carried in closed-loop signals of the unified algebraic control system. The processing device(s) control, using the feedback controller, transitions of the inverter between a plurality of operating modes by adjusting a magnitude of the closed-loop signals, which correspond to the pair of closed-loop variables, towards a setpoint of a plurality of setpoints. Each setpoint corresponds to a different operating mode of the plurality of operating modes.

    Claims

    1. A computing system for functional integration with a distributed power grid comprising one or more inverters, wherein the computing system comprises: one or more processing devices; and memory communicatively coupled with and readable by the one or more processing devices and having stored therein processor-readable instructions which, when executed by the one or more processing devices, cause the one or more processing devices to perform operations comprising: controlling operation of an inverter, of the one or more inverters, by executing a feedback controller with a grid-tied line, of the distributed power grid, treated as a plant and comprising a unified algebraic control system operating based on a pair of closed-loop variables carried in closed-loop signals of the unified algebraic control system; and controlling, using the feedback controller, transitions of the inverter between a plurality of operating modes by adjusting a magnitude of the closed-loop signals, which correspond to the pair of closed-loop variables, towards a setpoint of a plurality of setpoints, wherein each setpoint corresponds to a different operating mode of the plurality of operating modes.

    2. The computing system of claim 1, wherein the plurality of operating modes comprises at least two or more of grid-forming (GFM), grid-following (GFL), static synchronous compensator (STATCOM), energy storage system (ESS), or voltage source inverter (VSI).

    3. The computing system of claim 1, wherein the controlling the transitions further comprises adjusting the pair of closed-loop variables along trajectories in a control parameter space, starting and ending at setpoints, of the plurality of setpoints, corresponding respectively to an initial mode and a final mode of the plurality of operating modes.

    4. The computing system of claim 1, wherein the pair of closed-loop variables comprise an inverter variable and a grid state variable, which are implemented as a control input and a disturbance using a direct quadrature formulation.

    5. The computing system of claim 1, wherein controlling the transitions further comprises: modeling, using direct quadrature formulation, inputs and outputs of the unified algebraic control system using a pair of a single input, single output (SISO) models comprising sensitivity and a multiplicative perturbation; and deriving a coupling between the pair of SISO models.

    6. The computing system of claim 5, wherein the operations further comprise: factoring a set of primary closed-loop models and a corresponding closed-loop sensitivity model into a set of diagonal parts; determining a bounded coupling perturbation between the set of diagonal parts; and shaping sensitivity of the set of diagonal parts to minimize the bounded coupling perturbation.

    7. The computing system of claim 1, wherein the operations further comprise: quantifying sensitivities of a pair of two q-axis transfer functions of the unified algebraic control system, wherein the pair of two q-axis transfer functions comprises: i) a closed-loop transfer function between a current setpoint and a grid current; and ii) a transient frequency response of the inverter; generating a measure of robustness to model perturbations as a product of the sensitivities; and bounding a frequency range of operation of the inverter according to bounds of the measure of robustness to preserve stability and performance characteristics under plant perturbations.

    8. The computing system of claim 1, wherein the operations further comprise: implementing, as part of the unified algebraic control system, a cascaded closed-loop structure with an inner current loop and an outer voltage loop; using feedback linearization to decouple inductor dynamics of an inductor and a capacitor being modeled within the inner current loop; and employing a phase interpolator controller to shape the inner current loop into a unity gain low-pass filter.

    9. The computing system of claim 1, wherein the feedback controller comprises a multiple input, multiple output (MIMO) feedback controller decomposed into: a MIMO plant shaping controller component configured to transform line dynamics into a modified plant with reduced coupling and cross-channel interaction between a d-axis for voltage and a q-axis for frequency; and a diagonal controller component configured to maintain stability and achieve target objectives associated with a decoupled d-axis and a decoupled q-axis under an impact of the modified plant.

    10. The computing system of claim 9, wherein the plant shaping controller component is configured to achieve at least one of: diagonal modified plant dynamics at steady state; triangular modified plant dynamics at steady state; or an optimal condition number for the modified plant across frequency ranges for a highest stability margin.

    11. The computing system of claim 1, wherein the operations further comprise implementing mode-independent synchronization by maintaining synchronization conditions across the plurality of operating modes by: ensuring capacitor voltage alignment with a direct-quadrature (dq) reference frame; and achieving a frequency lock between the inverter and a grid frequency.

    12. The computing system of claim 11, wherein the synchronization is achieved by configuring: a first q-axis controller with at least two zeros at the origin relative to a second q-axis controller; and the second q-axis controller with at least one pole at the origin.

    13. The computing system of claim 1, wherein the operations further comprise characterizing the plurality of operating modes based on a number of zeros at the origin in sensitivity transfer functions, wherein characterizing comprises at least two of: a grid-following mode corresponds to one zero in a d-axis, associated with grid voltage, and two zeros in a q-axis associated with grid frequency; a grid-forming mode corresponds to no zeros in the d-axis and one zero in the q-axis; a static synchronous compensator (STATCOM) mode corresponds to no zeros in the d-axis and two zeros in the q-axis; or an energy storage system (ESS) mode corresponds to one zero in the d-axis and one zero in the q-axis.

    14. The computing system of claim 1, wherein the operations further comprise implementing virtual inertia control by shaping a frequency response transfer function as a low-pass filter with adjustable bandwidth and damping characteristics to control: a rate of change of frequency between the inverter and the grid-tied line; and frequency nadir following disturbances bypassing a reliance on mimicking synchronous generator dynamics.

    15. The computing system of claim 14, wherein the operations further comprise deriving parameters for the virtual inertia control from a surrogate second-order system model relating: a phase margin to system damping; and a gain crossover frequency to virtual inertia constant.

    16. The computing system of claim 1, wherein the operations further comprise implementing droop characteristics for power sharing among parallel inverters, of the one or more inverters, wherein: d-axis droop coefficients determine voltage regulation characteristics, wherein the d-axis droop coefficients are bounded by line impedance characteristics for d-axis voltage droop; and q-axis droop coefficients, associated with grid frequency, determine frequency regulation characteristics, wherein the q-axis droop coefficients are bounded by a targeted frequency response bandwidth for q-axis frequency droop.

    17. The computing system of claim 1, wherein the operations further comprise implementing current limiting operation by dynamically adjusting operating mode parameters using a barrier function based on a ratio of output current to a maximum allowable current, wherein the barrier function causes transition toward a grid-following mode as grid current approaches the maximum allowable current.

    18. The computing system of claim 17, wherein the barrier function comprises a logarithmic barrier that scales operating mode parameters inversely with proximity to the maximum allowable current.

    19. The computing system of claim 1, wherein the operations further comprise compensating for line-to-ground fault conditions by incorporating proportional-resonant compensators tuned to second harmonic frequency to maintain current control during fault conditions.

    20. A method for controlling distributed inverters in a multi-source power grid, the method comprising: executing, by a computing system operatively coupled to the distributed inverters, a unified algebraic control system in which different operating modes of the distributed inverters are defined by magnitudes of closed-loop signals, wherein the different operating modes cause differing control of the distributed inverters, and the closed-loop signals are associated with a plurality of control parameters; parameterizing, within the unified algebraic control system, an operational space of the multi-source power grid as a two-dimensional continuum of the different operating modes using the plurality of control parameters; enabling smooth transitions between the operating modes by adjusting the plurality of control parameters along trajectories in the operational space between setpoints of the plurality of control parameters; and maintaining, by the computing system, stability during inverter transitions through pointwise stability at each operating mode, of the operating modes, and a controlled rate of parameter change associated with the plurality of control parameters.

    21. The method of claim 20, further comprising: factoring multiple input, multiple output (MIMO) sensitivity into: diagonal two-single input, single output (2-SISO) sensitivity components; and multiplicative coupled perturbation terms; wherein the factorization enables conversion of MIMO analysis into simpler SISO problems than the MIMO analysis.

    22. The method of claim 20, further comprising implementing a plant shaping controller that satisfies: decoupling conditions at steady state through triangular or diagonal structure; stability margin optimization at high frequencies; and condition number optimization for robustness to input uncertainty.

    23. The method of claim 20, further comprising designing, within the unified algebraic control system, a d-axis controller and a q-axis controller with specified characteristics comprising at least one of: the d-axis controller determines voltage regulation and reactive power support; the q-axis controller comprises parallel branches for frequency response and synchronization; or the plurality of control parameters are selected to achieve a target bandwidth, a target phase margin, and a target steady-state droop.

    24. The method of claim 20, further comprising implementing a seamless transition between grid-connected and islanded operation without implementing control reconfiguration, islanding detection schemes, or communication-based coordination.

    25. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations for inverter control, the operations comprising: executing a feedback control algorithm that treats power grid connection of one or more inverters, of a multi-source power grid, as a plant comprising resistor-inductor impedance; maintaining, associated with the feedback control algorithm, a two-dimensional operating space parameterized by voltage and frequency control variables associated with the multi-source power grid; causing, using the feedback control algorithm, transitions between a plurality of operating modes of the one or more inverters by adjusting the voltage and frequency control variables according to grid conditions and power requirements of the multi-source power grid; and ensuring stability of operation of the one or more inverters within the multi-source power grid through satisfaction of sector-boundedness conditions for nonlinear dynamics modeled within the feedback control algorithm.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0003] A more particular description of the disclosure briefly described above will be rendered by reference to the appended drawings. Understanding that these drawings only provide information concerning typical embodiments and are not therefore to be considered limiting of its scope, the disclosure will be described and explained with additional specificity and detail through the use of the accompanying drawings.

    [0004] FIG. 1 is an operational schematic diagram illustrating a collection of inverter units to assimilate distributed energy resource and storage units into a power grid according to some embodiments.

    [0005] FIG. 2A is a circuit diagram illustrating an inverter as a controlled voltage source, v.sub.c, connected to the power grid, v.sub.g, via an resistor-inductor (RL) impedance according to various embodiments.

    [0006] FIG. 2B is a graph of dq synchronous rotating frame associated with FIG. 2A according to some embodiments.

    [0007] FIG. 3 is a circuit diagram illustrating a proposed closed-loop with line dynamics G.sub.L in Equation (4) as plant and K={tilde over (K)}K.sub.L as a multiple input, multiple output (MIMO) feedback controller according to some embodiments.

    [0008] FIG. 4A, FIG. 4B, FIG. 4C, FIG. 4D are Bode plots illustrating inverter operating mode based on the shape and number of zeros in S at low-frequency in, respectively: (a) grid-forming (GFM); (b) voltage support in static synchronous compensator (STATCOM); (c) frequency support in an energy storage system (ESS); and (d) grid-following (GFL).

    [0009] FIG. 5 is a continuum representation of a spectrum between GFL and VSI parameterized by {tilde over (S)} according to some embodiments.

    [0010] FIG. 6 is a Bode plot illustrating operations of desired q-axis closed-loops T.sub.v, T.sub., {tilde over (T)}.sup.q, and corresponding open-loops

    [00001] K 1 q G M , K 2 q G M

    ana K.sup.q{tilde over (G)}.sub.M according to some embodiments.

    [0011] FIG. 7 is a Bode plot illustrating smaller values of , which impose stricter upper-bounds on sensitivity around the fundamental frequency .sub. according to at least one embodiment.

    [0012] FIG. 8A and FIG. 8B are circuit diagrams illustrating, respectively, (a) nested structure with voltage and current inputs; and (b) inverter closed-loop as part of feedback compensator.

    [0013] FIG. 9 is multi-dimensional graph illustrating operating space of a multi-operational mode power grid parameterized by (.sub.v, .sub.) according to some embodiments.

    [0014] FIG. 10A, FIG. 10B, FIG. 10C, and FIG. 10D are graphs of current over time during nominal grid operation, respectively: (a) active current with and without set-point adjustment; (b) reactive current in a complex line scenario; (c) active current with adjusted current set-point; and (d) reactive current in inductive line scenario according to various embodiments.

    [0015] FIG. 11A, FIG. 11B, FIG. 11C, FIG. 11D are graphs of current over time during disturbed grid operation, respectively: (a) active current with and without set-point adjustment under grid frequency disturbance; (b) reactive current deviation under grid volage disturbance; (c) improving active current with adjusted current set-point; and (d) improving reactive current in inductive line scenario by decreasing the sensitivity transfer function according to various embodiments.

    [0016] FIG. 12 is a graph of a frequency response of the inverter to step change of magnitude 0.1 hertz (Hz) in grid frequency according to at least one embodiment.

    [0017] FIG. 13 is a set of graphs illustrating how a proposed GFM control system effectively rejects a 120 Hz ripple caused by line-to-ground fault on inverter current and frequency according at least one embodiment.

    [0018] FIG. 14A, FIG. 14B, FIG. 14C, FIG. 14D are graphs illustrating, respectively, d-axis current, q-axis current, inverter voltage, and inverter frequency of a seamless transition of the set of inverters during on-grid operation at particular moments outline in Table III according to some embodiments.

    [0019] FIG. 15A, FIG. 15B, FIG. 15C are graphs illustrating, respectively, (a) a Bode plot for d-axis and q-axis open-loops under GFM and GFL operation; (b) GFM response to step-change in active current set-point under line impedance variation; and (c) GFL response to step-change in active current set-point under line impedance variation according to some embodiments.

    [0020] FIG. 16A, FIG. 16B, FIG. 16C, FIG. 16D are graphs illustrating, respectively, d-axis current, q-axis current, inverter voltage, and inverter frequency of a seamless transition of the set of inverters during on-grid operation at particular moments outline in Table IV according to some embodiments.

    [0021] FIG. 17A is a control diagram of a three-phase phase-locked loop (PLL) system for GFL inverters according to some embodiments.

    [0022] FIG. 17B is a control diagram of modified frequency control for GFN inverters to mimic rotor dynamic and governor action according to some embodiments.

    [0023] FIG. 18 is a graph of Bode plots for five key transfer functions in the q-axis and their corresponding open-loop transfer functions according to some embodiments.

    [0024] FIG. 19A is a circuit diagram of a three-phase DC/AC inverter with sensor measurements for feedback control according to some embodiments.

    [0025] FIG. 19B is a control diagram representation of the embedded implementation of the feedback controller according to some embodiments.

    [0026] FIG. 20A is a graph of an inverter's output current magnitude as a function of grid voltage deviation (v) and frequency deviation () according to an embodiment.

    [0027] FIG. 20B is a 2D cross-section of the surface in FIG. 20A along the i.sup.q=0 plane according to an embodiment.

    [0028] FIG. 20C is a 2D cross-section of the surface in FIG. 20A along the i.sup.d=0 plane according to an embodiment.

    [0029] FIG. 21 illustrates a block diagram illustrating an exemplary computer device (or computing device), in accordance with implementations of the present disclosure.

    [0030] While embodiments of the present disclosure are susceptible to various modifications and alternative forms, exemplary embodiments thereof are shown by way of example in the drawings and are herein described in detail. It should be understood, however, that the description of exemplary embodiments is not intended to limit the disclosure to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the spirit and scope of the in accordance with one or more embodiments of the present disclosure.

    DETAILED DESCRIPTION

    [0031] The technology now will be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments are shown. Indeed, the disclosure may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will satisfy applicable legal requirements.

    [0032] Likewise, many modifications and other embodiments of the technology described herein will come to mind to one of skill in the art to which the disclosure pertains having the benefit of the teachings presented in the enclosed descriptions and the associated drawings. Therefore, it is to be understood that the disclosure is not to be limited to the specific embodiments disclosed and that modifications and other embodiments are intended to be included within the scope of this disclosure. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

    [0033] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of skill in the art to which embodiments described herein pertain. Although any methods and materials similar to or equivalent to those described herein can be used in the practice or testing of embodiments of the present disclosure, the preferred methods and materials are described herein.

    [0034] Existing control frameworks for direct-current (DC)/alternating-current (AC) power inverters are significantly customized and fine-tuned to a specific and fixed operating mode based on their intended use, limiting their versatility. For example, in the presence of a stiff grid, inverters operate in grid-following (GFL) mode, where they synchronize and supply power to the grid. On the other hand, in the absence of a viable or stiff grid, inverters usually operate in grid-forming (GFM) mode, where they not only control the power flow, but also provide voltage and frequency support at the point of common coupling (PCC). The other popular operating modes are the static synchronous compensator (STATCOM) and energy storage system (ESS), where the inverters serve as ancillary devices (grid support).

    [0035] In STATCOM mode, the inverter improves voltage regulation and power transfer capacity by balancing reactive power. In contrast, an ESS acts as a rapidly dispatchable power source, primarily enhancing frequency control by exchanging active power with the connected AC system. The existing literature focuses predominantly on designing distinct control systems to address the objectives of each mode separately. However, with the increased integration of uncertain DERs and highly dynamic power consumption and generation profiles, it is becoming critical for the same inverter to operate in different operational modes at different times. In this context, the inverter control framework should facilitate a seamless transition between operating modes. For example, when most inverters operate in GFL mode with Maximum Power Point Tracking (MPPT), rapid spatio-temporal changes in irradiance (e.g., irradiance anomalies due to moving clouds) lead to rolling and non-localized power imbalance in the network. To address this issue, transitioning some of the inverters near the impacted MPPT areas to ESS or GFM can help locally adjust the power and prevent propagation of undesired voltage and frequency transients in the network.

    [0036] FIG. 1 is an operational schematic diagram illustrating a collection of inverter units to assimilate distributed energy resource and storage units 110 into a power grid 120 according to some embodiments. In embodiments, the energy resource and storage units 110 include batteries 110A, electric vehicles 110B, renewables 110C, and a generator set 110D that feed the power grid 120. The generator set 110D (also referred to as gen set) can provide a non-renewable source of power. Another common scenario involves transitioning between grid-tied (GFL) and islanded (GFM) modes, particularly during grid fault. This transition can be facilitated by reconfiguring and switching an inverter controller 130 based on islanding detection schemes, e.g., via control logic 132. In some embodiments, the inverter controller 130 is implemented by a computing device 2100 or computing system such as discussed with reference to FIG. 21. However, most islanding detection methods rely on real-time, centralized communication, making them vulnerable to communication delays and blackouts, which limits the robustness of the microgrid. Furthermore, sudden switching and reconfiguration of controllers can result in harmful transient response and instability in low-inertia inverter-based microgrids during the transition. Consequently, there has been increasing research on achieving seamless transition in weak-grid conditions without control reconfiguration and islanding detection.

    [0037] Low-inertia refers to portions of a distributed and mix-source power grid lacking large synchronous generators (SG) that retain stored kinetic energy. This stored kinetic energy within such generators can act as a buffer to provide inertia when demand suddenly fluctuates. Microgrids made up of renewal power sources such as solar photovoltaic, wind turbines, batteries, and the like, are usually connected to the grid through power electronics, e.g., power inverters referred to here more generally as inverters. These renewal power sources, however, lack the natural inertia of large SG.

    [0038] Synchronverters, which emulate the behavior of SG, offer a promising approach to seamless transition. These systems replace conventional voltage and current loops with angle, frequency, and torque controllers, providing emulated inertia and enhanced frequency dynamics. However, relying solely on SG dynamics may not fully exploit the fast dynamics of the inverters or allow for more advanced control strategies, potentially resulting in limited stability margins and suboptimal performance. Consequently, numerous studies have focused on improving stability margins, damping characteristics, and reducing sensitivity to weak grid coupling by leveraging inverter dynamics.

    [0039] Another approach involves the perpetual operation of the inverters in droop-based grid-forming mode regardless of grid availability. These methods propose dynamically improved droop laws to maintain system stability in both grid-connected and islanded modes. Control strategies based on multivariate loop-shaping techniques are explored to decouple active and reactive power in weak grids. Although systematic, these approaches lack multiple-input multiple-output (MIMO) stability analysis, and performance analysis that generalizes beyond the proposed loop-shaping controller. At least one work provides a mode-dependent droop-based GFM that can operate in a grid-tied mode and improve reactive power regulation upon receiving a mode switch signal.

    [0040] Aspects of the present disclosure address the above and other deficiencies of present multi-source power grid approaches through employing an integrated control system designed to achieve seamless transitions among a spectrum of inverter operational modes according to various embodiments. The operation spectrum can include, for example, grid-forming (GFM), grid-following (GFL), static synchronous compensator (STATCOM), energy storage system (ESS), and voltage source inverter (VSI). The proposed control architecture offers guarantees of stability, robustness, and performance regardless of the specific mode.

    [0041] In some embodiments, the disclosed systems and methods establish a unified algebraic structure for the feedback control system, where different modes are defined by the magnitude of closed-loop signals. As demonstrated, this approach results in a two-dimensional continuum of operational modes and enables transition trajectories between operational modes by dynamically adjusting closed-loop variables towards corresponding setpoints. Stability, robustness, and fundamental limitation analyses are provided for the closed-loop system across any mode, as well as during transitions between modes. This design facilitates stable and enhanced on-grid integration, even during GFM operation and weak grid conditions. Ultimately, attributes of the proposed system are demonstrated through simulations and experiments designed to highlight its efficacy in managing on-grid operation and islanding scenarios, particularly in situations of weak grid operation. This disclosure provides extensive analysis by modeling the GFM in both on-grid and off-grid operations and investigating the root locus for a range of parameters.

    [0042] In various embodiments, the disclosed control system solves the multi-mode operation challenge through three aspects that work together like layers of a control hierarchy. First, imagine a power inverter as a translator between DC and AC power that needs to speak different languages (e.g., control formulation) depending on needs of the power grid. In strong grid conditions, the power inverter acts like a current source (GFL mode), precisely following power commands. In weak or absent grid conditions, the power inverter acts like a voltage source (GFM mode), maintaining stable voltage and frequency. In some embodiments, therefore, the power inverter creates one unified translator that allows smooth translation between these languages. Second, the control system may simplify control by separating complex coupled dynamics (where voltage affects frequency and vice versa) into independent channels. Third, the system includes built-in safeguards against real-world uncertainties, e.g., variations in line impedance, measurement noise, and grid disturbances. These safeguards work like shock absorbers in a car, maintaining stable operation even when the road (grid conditions) becomes rough. The following disclosure details how these concepts are implemented mathematically and practically.

    [0043] In some embodiments, a computing system is disclosed for functional integration with a distributed power grid having one or more inverters, e.g., inverters that control power flow between multiple power sources (such as DERs) in a multi-source ground. The computing system can include one or more processing devices and memory communicatively coupled with and readable by the one or more processing devices and having stored therein processor-readable instructions which, when executed by the one or more processing devices, cause the one or more processing devices to perform operations disclosed herein below. The operations, for example, can include controlling operation of an inverter, of the one or more inverters, by executing a feedback controller with a grid-tied line, of the distributed power grid, treated as a plant. The feedback controller can further include a unified algebraic control system operating based on a pair of closed-loop variables carried in closed-loop signals of the unified algebraic control system. The operations further include controlling, using the feedback controller, transitions of the inverter between a plurality of operating modes by adjusting a magnitude of the closed-loop signals, which correspond to the pair of closed-loop variables, towards a setpoint of a plurality of setpoints. In embodiments, each setpoint corresponds to a different operating mode of the plurality of operating modes.

    [0044] The operations can further include quantifying sensitivities of a pair of two q-axis transfer functions of the unified algebraic control system. In embodiments, the pair of two q-axis transfer functions include: i) a closed-loop transfer function between a current setpoint and a grid current; and ii) a transient frequency response of the inverter. The operation can include generating a measure of robustness to model perturbations as a product of the sensitivities and bounding a frequency range of operation of the inverter according to bounds of the measure of robustness to preserve stability and performance characteristics under plant perturbations.

    [0045] In related embodiments, a method for controlling distributed inverters in a multi-source power grid includes executing, by a computing system operatively coupled to the distributed inverters, a unified algebraic control system in which different operating modes of the distributed inverters are defined by magnitudes of closed-loop signals, wherein the different operating modes cause differing control of the distributed inverters, and the closed-loop signals are associated with a plurality of control parameters. The method can include parameterizing, within the unified algebraic control system, an operational space of the multi-source power grid as a two-dimensional continuum of the different operating modes using the plurality of control parameters. The method can include enabling smooth transitions between the operating modes by adjusting the plurality of control parameters along trajectories in the operational space between setpoints of the plurality of control parameters. The method can include maintaining, by the computing system, stability during inverter transitions through pointwise stability at each operating mode, of the operating modes, and a controlled rate of parameter change associated with the plurality of control parameters.

    [0046] In some embodiments, the method further includes designing, within the unified algebraic control system, a d-axis controller and a q-axis controller with specified characteristics, These characteristics can include: the d-axis controller determines voltage regulation and reactive power support; the q-axis controller comprises parallel branches for frequency response and synchronization; and/or the plurality of control parameters are selected to achieve a target bandwidth, a target phase margin, and a target steady-state droop. The method can further include implementing a seamless transition between grid-connected and islanded operation without implementing control reconfiguration, islanding detection schemes, or communication-based coordination.

    [0047] Therefore, advantages of the systems and methods implemented in accordance with some embodiments of the present disclosure include, but are not limited to, a unified control system that facilitates seamless transitions between different operating modes. Included in this approach is establishing a common algebraic system or framework for the feedback control system across various modes. In this structure, the operational space of the inverter can be viewed as a continuum of modes, including GFM, GFL, STATCOM, and ESS. Each mode can be parameterized by two control variables. Smooth transitions between modes can be enabled by adjusting these parameters along trajectories in the parameter space, starting and ending at setpoints corresponding to the initial and final modes. The proposed system transforms inverter control objectives into closed-loop properties of the feedback control structure. This approach inherently incorporates the benefits of existing state-of-the-art design concepts such as droop, virtual impedance, PLL, and inertia, without explicitly designing for them. In some embodiments, the present feedback control structure results in a universal characterization of stability, performance, and fundamental trade-offs for the MIMO closed-loop, regardless of the operational mode. Other advantages will be apparent to those skilled in the art of power semiconductor transistor design and fabrication, which will be discussed hereinafter.

    [0048] FIG. 2A is a circuit diagram illustrating an inverter as a controlled voltage source, v.sub.c, connected to the power grid, v.sub.g, via an resistor-inductor (RL) impedance according to various embodiments. FIG. 2B is a graph of dq synchronous rotating frame associated with FIG. 2A according to some embodiments. In the disclosed system, the inverter interface can be associated with a power network, which is common to all operational modes, as two voltage sources connected with an RL impedance as shown in FIG. 2A. Here, v.sub.c is the inverter's capacitor voltage, while v.sub.g represents the PCC voltage governed by the rest of the microgrid, i.e., the power grid and/or other inverter units. The RL impedance signifies the transmission line impedance R.sub.g+jL.sub.g and the grid side impedance of the LCL filter R.sub.f+jL.sub.f (R.sub.f, L.sub.f=0 in case of LC filter). Regardless of the mode of operation, it may be desired that the inverter in FIG. 2A maintains v.sub.c close to the nominal value of v.sub.0 while regulating the active and reactive power-flow {P, Q} through the impedance close to a {P.sub.0, Q.sub.0} set-point. The steady-state power-flow at fundamental frequency can be expressed as

    [00002] P = ( .Math. "\[LeftBracketingBar]" v c .Math. "\[RightBracketingBar]" .Math. "\[LeftBracketingBar]" v g .Math. "\[RightBracketingBar]" Z cos - .Math. "\[LeftBracketingBar]" v g 2 .Math. "\[RightBracketingBar]" Z ) cos z - .Math. "\[LeftBracketingBar]" v C .Math. "\[RightBracketingBar]" .Math. "\[LeftBracketingBar]" v G .Math. "\[RightBracketingBar]" Z sin z sin , ( 1 ) Q = ( .Math. "\[LeftBracketingBar]" v c .Math. "\[RightBracketingBar]" .Math. "\[LeftBracketingBar]" v g .Math. "\[RightBracketingBar]" Z cos - .Math. "\[LeftBracketingBar]" v g 2 .Math. "\[RightBracketingBar]" Z ) sin z + .Math. "\[LeftBracketingBar]" v C .Math. "\[RightBracketingBar]" .Math. "\[LeftBracketingBar]" v G .Math. "\[RightBracketingBar]" Z cos z sin ,

    where is the phase difference between v.sub.c and v.sub.g and Z.sub.z:=R+jL in FIG. 2A. Different operating modes balance trade-offs between deviations in inverter output power and voltage from their nominal setpoints. For example, GFM and GFL inverters differ in the allowable voltage magnitude and frequency deviations to accommodate accurate tracking of the power reference, as set forth in Equation (1).

    [0049] In some embodiments, the fundamental trade-offs between control objectives are characterized not only at steady-state, but throughout the frequency spectrum. Therefore, instead of relying on the nonlinear steady-state power flow equation in Equation (1) or the dynamic power phasor, exploited are the rich and linear dynamics of the grid current, i.sub.g, for the design and analysis of closed-loop control. In this context, the averaged dynamical model of the transmission line and inverter, as illustrated in FIG. 2A, in the direct quadrature (dq) frame can be expressed as

    [00003] L d .Math. g .fwdarw. dt = v c .fwdarw. - v g .fwdarw. - R .Math. g .fwdarw. - L ( 0 [ - i g q , i g d ] T + ( t , .Math. g .fwdarw. ) ) ( 2 ) L i d .Math. L .fwdarw. dt = v dc 2 m .fwdarw. - v c .fwdarw. - R i .Math. L .fwdarw. - L i [ - i L q , i L d ] T , ( 3 ) C i d v c .fwdarw. dt = .Math. L .fwdarw. - .Math. G .fwdarw. - C i [ - v c q , v c d ] T .

    [0050] Here is the angular frequency of the dq frame, .sub.0 is the nominal frequency,

    [00004] ( t , .fwdarw. i g ) = ( - 0 ) [ - i L q , i g d ] T

    is sector-bounded nonlinearity,

    [00005] ( v dc / 2 ) .fwdarw. m

    is the cycle-averaged model of the switching node, and each vector contains the respective d and q signal components. Applying the Laplace transform to Equation (2) and Equation (3) results in

    [00006] .Math. g .fwdarw. = G L ( v .fwdarw. c - v .fwdarw. g ) , where G L = [ s + 0 - 0 s + ] L ( s 2 + 2 s + 2 + 0 2 ) and = R L , ( 4 ) v .fwdarw. c = 1 C i s ( .Math. .fwdarw. L - .Math. .fwdarw. g - { C i [ - v c q , v c d ] T } ) , ( 5 ) .Math. .fwdarw. L = 1 L i s + R i ( v dc 2 m .fwdarw. - v .fwdarw. c - { L i [ - i L q , i L d ] T } )

    where the hat notation signifies the Laplace domain signals, s is the Laplace variable, and custom-character{} is Laplace transform.

    [0051] In some embodiments, the effect of nonlinearity (, ) is neglected in Equation (4). However, in Proposition 9.1 associated with Equation (75), sufficient conditions are established for the nominal closed-loop system under which the nonlinearity is sector-bounded and does not compromise closed-loop stability. Therefore, it is justifiable to neglect nonlinearity when the conditions outlined in Proposition 9.1 are met. Unlike the frequency-invariant input-output coupling in Equation (1), the frequency-dependent input-output coupling in Equation (4) allows design of controllers that achieve improved stability margins by exploiting the dynamic nature of the MIMO coupling.

    [0052] FIG. 3 is a circuit diagram illustrating a proposed closed-loop with line dynamics G.sub.L in Equation (4) as plant and K={tilde over (K)}K.sub.L as a multiple input, multiple output (MIMO) feedback controller according to some embodiments. In embodiments, the K.sub.L is the full matrix part of K, while

    [00007] K ~ = diag ( K d , K 1 q + K 2 q )

    is the diagonal part of the controller. The input disturbances {d.sup.d, d.sup.q} capture the effect of the PCC on the closed-loop, while {u.sup.d, u.sup.q} integrates the capacitor voltage and the dq frame angle as closed-loop control effort.

    [0053] In some embodiments, the closed-loop block diagram in FIG. 3 can be employed to analyze the stability and performance of the inverter and grid setup in FIG. 2A. In this context, G.sub.L represents the MIMO line dynamics in Equation (4) and the feedback controller K encapsulates the inverter dynamics in Equation (5). However, before the performance and stability are evaluated in terms of closed-loop in FIG. 3, one can resolve the control input {right arrow over (u)}=[u.sup.d, u.sup.q].sup. and disturbance {right arrow over (d)}=[d.sup.d, d.sup.q].sup. in terms of the inverter and grid state variables.

    [0054] Proposition 3.1: For the closed-loop structure in FIG. 3, the control input {right arrow over (u)} and disturbance {right arrow over (d)} are

    [00008] [ u d u q ] = [ v c d v c q ] + [ 0 u ] , and [ d d d q ] = [ v g .Math. v g .Math. dt ] , ( 6 )

    where

    [00009] v c d = v c d - v 0 , v g = .Math. v g .Math. - v 0 , v c q = v c q - 0 , u ( t ) = .Math. v g .Math. dt , = - ,

    and .sub.g=.sub.g.sub.0. The control input u may represent what the inverter can actively control: the capacitor voltage deviation and the rotating reference frame angle. The disturbance d may represent what the inverter cannot control but responds to: grid voltage variations and grid frequency changes. These are the fundamental signals that determine whether the inverter maintains stable operation.

    [0055] Proof 3.1: Base on FIG. 3 and Equation (4) result {right arrow over (v)}{right arrow over (d)}={right arrow over (v)}.sub.c{right arrow over (v)}.sub.g=({right arrow over (v)}.sub.c[{right arrow over (v)}.sub.o, 0].sup.)({right arrow over (v)}.sub.g[v.sub.0, 0].sup.)({right arrow over (v)}.sub.g[v.sub.0, 0].sup.). Therefore, the difference between {right arrow over (u)} and {right arrow over (d)} can be expressed as

    [00010] u .fwdarw. - d .fwdarw. = [ v c d v c q ] [ .Math. v g .Math. cos ( ) - v 0 .Math. v g .Math. sin ( ) ] [ v c d v c q ] - [ v g .Math. v g .Math. ] . ( 6 a )

    In Equation (6a), =.sub.g is the angle between v.sub.g and the dq rotating frame. Furthermore, v.sub.g=d.sup.qu.sub. where

    [00011] d q = .Math. v g .Math. t 0 t ( g ( ) - 0 ) d , u = .Math. v g .Math. t 0 t ( g ( ) - 0 ) d . ( 6 b )

    [0056] Here, the capacitor voltage, {right arrow over (v)}.sub.c, and dq rotating angle, , are controllable, while the grid states, v.sub.g and .sub.g, are not measurable or even controllable. Therefore, Equation (6) can be recovered.

    [0057] Some embodiments include a non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations for inverter control. In embodiments, the operations include executing a feedback control algorithm that treats power grid connection of one or more inverters, of a multi-source power grid, as a plant comprising resistor-inductor impedance. The operations can further include maintaining, associated with the feedback control algorithm, a two-dimensional operating space parameterized by voltage and frequency control variables associated with the multi-source power grid. In embodiments, the operations include causing, using the feedback control algorithm, transitions between a plurality of operating modes of the one or more inverters by adjusting the voltage and frequency control variables according to grid conditions and power requirements of the multi-source power grid. In embodiments, the operations include ensuring stability of operation of the one or more inverters within the multi-source power grid through satisfaction of sector-boundedness conditions for nonlinear dynamics modeled within the feedback control algorithm.

    [0058] Grid disturbance d is unknown; however, the following disturbance model can be adapted for closed-loop analysis, as follows:

    [00012] [ d d d q ] = [ 1 0 0 v 0 / s ] [ v g / s g / s ] + .fwdarw. ( s ) . ( 7 )

    The above disturbance model assumes nominally constant deviations in voltage and frequency if the power grid, with {right arrow over ()}(s) representing unmodeled disturbances. The model can be updated in Equation (7) if additional information on grid dynamics is available. For example, in the case of a line-to-ground fault, one can include the second-order harmonic model in Equation (7).

    [0059] In some embodiments, the closed-loop in FIG. 3 maps the current set-point {right arrow over (.Math.)}.sub.0, and grid disturbance {right arrow over (d)}, as defined in Equation (7), into the grid current {right arrow over (.Math.)}.sub.g and control signal {right arrow over (u)} as

    [00013] .Math. g .fwdarw. = G L S ( K .Math. ^ 0 .fwdarw. - d .fwdarw. ) , u .fwdarw. = T ( G L - 1 .Math. ^ 0 .fwdarw. + d .fwdarw. ) , where ( 8 )

    In Equations (8), S and T represent the sensitivity transfer function and complementary sensitivity transfer function, respectively. associated with the closed-loop system in FIG. 3. Moreover, the S and T transfer functions in Equation (8) are defined in terms of closed-loop plant G.sub.L and feedback controller K shown in FIG. 3 as

    [00014] S = ( I 2 + K G L ) - 1 , T = I 2 - S = K G L ( I 2 + K G L ) - 1 . ( 9 )

    It can be clear from Equation (8) that the closed-loop objectives and internal stability may hinge on the sensitivity S and complementary sensitivity T transfer functions in Equation (9). Furthermore, both S and T are shaped by designing a feedback compensator K. In some embodiments, the MIMO feedback compensator K represents a two-by-two matrix of transfer functions with a specific structure.

    [0060] In the context of Equation (8) and FIG. 3, the primary challenge in closed-loop analysis and control synthesis arises from the coupled MIMO dynamics of the plant G.sub.L as defined in Equation (4) and feedback controller K. In embodiments, these two MIMO transfer matrices, G.sub.L, and K, form the MIMO sensitivity S per definition in Equation (9). Moreover, the sensitivity S is the primary transfer function that defines the input-output behavior of the closed-loop per Equation (8). In this disclosure, the coupling problem of the MIMO sensitivity S can be mitigated by factoring closed-loop sensitivity S in Equation (9) into diagonal (2-SISO, or single input, single output) sensitivity {tilde over (S)} defined in Equation (10) and a multiplicative coupled perturbation X.sub.c where and X.sub.c are MIMO transfer matrices defined in Equation (10). In this regard, the MIMO sensitivity S=X.sub.c{tilde over (S)}. Subsequently, the bounds for the perturbation X.sub.c can be derived, thus converting the MIMO analysis and synthesis problems into a simpler SISO problem based on the nominal 2-SISO sensitivity {tilde over (S)}, which factorization enables simplifying control. In practical terms, this proposed factorization is like breaking a complex recipe into simpler sub-recipes. The MIMO sensitivity S (which determines how disturbances affect the system output) can be split into: a diagonal part {tilde over (S)} (controlling each axis independently) and a coupling term X.sub.c (representing the interaction between axes). By making the coupling term small, one can design controllers for each axis separately, dramatically simplifying the control problem.

    [0061] The disclosed system and method can obtain this factorization by decomposing the controller K into a product of two controller components, {tilde over (K)}K.sub.L, where {tilde over (K)}=diag(K.sup.d, K.sup.q) is a diagonal controller component, and K.sub.L is a stable, proper two-by-two MIMO transfer matrix. The diagonal controller component can be configured to maintain stability and achieve target objectives associated with a decoupled d-axis and a decoupled q-axis under an impact of the modified plant. Also, in the context of FIG. 3, the modified plant can be defined as G.sub.M=K.sub.LG.sub.L and factorized as G.sub.M={tilde over (G)}.sub.M(I.sub.2+E), where

    [00015] G M = diag ( G M d , G M q )

    includes the diagonal elements of G.sub.M, and

    [00016] E = G M - 1 ( G M - G M )

    represents the coupling terms. The factorization of the MIMO sensitivity transfer function can be summarize as S as follows.

    [0062] Proposition 3.2: (a) Factorization of Sensitivity. The MIMO sensitivity S in (9) can be factored into a nominal 2-SISO sensitivity {tilde over (S)}=diag({tilde over (S)}.sup.d, {tilde over (S)}.sup.q) and coupled perturbation X.sub.c as

    [00017] S = c S , where = G M - 1 G M , c = ( I 2 + S ( - I 2 ) ) - 1 , and ( 10 ) S = ( I 2 + K G M ) - 1 = [ ( 1 + K d G M d ) - 1 0 0 ( 1 + K q G M q ) - 1 ] .

    [0063] (b) Coupling Strength. The coupling impact of X.sub.c in Equation (10) between the input and output of the system can be bounded as follows

    [00018] .Math. c ( j ) - I 2 .Math. 2 ( ) 1 - ( ) ( 11 )

    Here () represents the size of coupling dynamics and captures how small and insignificant the impact is of coupling on system dynamics. In mathematical term () can be defined as ()=S(j).sub.2(j)I.sub.2.sub.2 and it may be desired to keep () small to avoid complications arising from coupled dynamics in the system. The definition of () allows us to effectively design the sensitivity S or to reduce the coupling dynamics as explained below after Equation (14). In embodiments, the robustness is quantified by a coupling strength metric based on deviation from diagonal plant structure sensitivity bounds at fundamental and harmonic frequencies. The robustness can further be quantified by a condition number of modified plant across operating frequency range.

    [0064] (c) Closed-Loop Characterization: Effect of the coupling X.sub.c and 2-SISO sensitivity components {tilde over (S)} on closed-loop dynamics in Equation (8) can be expressed as

    [00019] .Math. ^ g .fwdarw. = G ~ M c S ~ ( K ~ .Math. ^ 0 .fwdarw. - d ^ .fwdarw. ) , u ~ .fwdarw. = K ~ G ~ M c S ~ ( G M - 1 .Math. ^ 0 .fwdarw. + d ^ .fwdarw. ) . ( 12 )

    Proof 3.2: (a) Using K={tilde over (K)}K.sub.L and G.sub.M=K.sub.LG.sub.L can result in sensitivity expressed as

    [00020] S = ( I 2 + K G L ) - 1 = ( I 2 + K ~ K L G L ) - 1 = ( I 2 + K ~ G M ) - 1 . ( 13 )

    [0065] Replacing the modified plant G.sub.M by {tilde over (G)}.sub.M(I.sub.2+E) can result in

    [00021] ( I 2 + K ~ G M ( I 2 + E ) ) - 1 = ( I 2 + S K ~ G M E ) - 1 ( I 2 + K ~ G M ) - 1

    The identity {tilde over (S)}{tilde over (K)}{tilde over (G)}.sub.M=I.sub.2{tilde over (S)} in above can be used to obtain

    [00022] S = ( I 2 + ( I 2 - S ) E ) - 1 ( I 2 + K ~ G M ) - 1 . ( 14 )

    [0066] As final step, E can be replaced by (.sup.1I.sub.2) and factor out .sup.1 to arrive at the factorization in Equation (10). The Neumann series can be employed to achieve

    [00023] c - I 2 = ( I 2 + S ( - I 2 ) ) - 1 - I 2 = .Math. n = 1 ( - S ( - I 2 ) ) n

    where the right-hand side of the above is bounded by geometric series below

    [00024] .Math. n = 1 ( .Math. ( j ) - I 2 .Math. .Math. S ( j ) .Math. 2 ) n = ( ) 1 - ( )

    [0067] (c) The proof follows from replacing the sensitivity factorization of Equation (10) into Equation (8) and Equation (9). In some embodiments, the operations include factoring multiple input, multiple output (MIMO) sensitivity into diagonal two-single input, single output (2-SISO) sensitivity components and multiplicative coupled perturbation terms. In embodiments, the factorization enables conversion of MIMO analysis into simpler SISO problems than the MIMO analysis. In related embodiments, controlling the transitions between operating modes includes modeling, using direct quadrature formulation, inputs and outputs of the unified algebraic control system using a pair of a single input, single output (SISO) models including sensitivity and a multiplicative perturbation and deriving a coupling between the pair of SISO models. In embodiments, the operations further include factoring a set of primary closed-loop models and a corresponding closed-loop sensitivity model into a set of diagonal parts. The operations can include determining a bounded coupling perturbation between the set of diagonal parts and shaping sensitivity of the set of diagonal parts to minimize the bounded coupling perturbation.

    [0068] Based on Equation (11), we can decrease e by (a) reducing the sensitivity {tilde over (S)}, as defined in Equation (10), through a control design for {tilde over (K)}, that represents the diagonal part of feedback controller K, or (b) shaping the coupling term , defined in Equation (10), close to identity. In this work, we assume that the design satisfies .sub.0.1 and that the approximation custom-characterI.sub.2 is accurate for transient and steady-state analysis. Therefore, the input-output relation in Equation (12) simplifies into

    [00025] .Math. g .fwdarw. = T ~ .Math. 0 .fwdarw. - G M S d .fwdarw. , u .fwdarw. = T ( G M - 1 .Math. 0 .fwdarw. + d .fwdarw. ) , e ^ .fwdarw. = S ( .Math. 0 .fwdarw. + G M d .fwdarw. ) ( 15 )

    where

    [00026] .Math. g .fwdarw. = K L .Math. g .fwdarw. , .Math. 0 .fwdarw. = K L .Math. 0 .fwdarw. , e .fwdarw. = K L e .fwdarw.

    and {tilde over (T)} is a 2-SISO complementary sensitivity defined below

    [00027] T = I 2 - S = S K ~ G M = [ S d K d G M d 0 0 S q K q G M q ] . ( 16 )

    [0069] The primary transfer matrices in Equation (15) are diagonal as denoted by the tilde () notation. This allows circumvention of the difficulties of MIMO control and develop a simplified but comprehensive system for closed-loop control design and analysis. In practical terms, this factorization technique simplifies the complex multi-input, multi-output (MIMO) control problem into two simpler single-input, single-output (2-SISO) problems. This is analogous to solving two simple equations instead of one complex coupled equation for closed-loop control. The sensitivity transfer matrix S represents how much the system's output deviates from the desired setpoint when disturbances occur. By breaking S into diagonal components ({tilde over (S)}) and coupling terms (.sub.c), we can design controllers independently for voltage (d-axis) and frequency (q-axis) control, then account for their interaction separately.

    [0070] In some embodiments, the characterization of MIMO stability in terms of SISO and coupling perturbation stability can be exploited. The SISO factorization of S can be exploited in Proposition 3.2 to propose novel stability criteria for control synthesis.

    [0071] Proposition 4.1: In practical terms, stability means the inverter does not oscillate or diverge when subjected to (grid) disturbances, like ensuring a bridge won't collapse under wind loads. The internal stability of the closed-loop controller in FIG. 3 is guaranteed if (a) holds with either (b) or (c), listed as follows.

    [0072] (a) SISO Condition: {tilde over (S)}.sup.d, and {tilde over (S)}.sup.q in (10) are stable. This means each axis (voltage and frequency) is individually stable when considered in isolation.

    [0073] (b) Decoupling Condition: G.sub.M is triangular or diagonal. Physically, this means the controller K.sub.L has successfully eliminated cross-coupling between voltage and frequency control.

    [0074] (c) Magnitude Condition: in (11) satisfies ().sub.<1. This bounds the residual coupling effects to ensure they do not destabilize the system.

    [0075] Proof 4.1: The plant G.sub.L and the controller K are stable and minimum phase (we consider stable and minimum phase controllers); hence, the closed-loop in FIG. 3 is internally stable when S is stable. The stability of {tilde over (S)} and .sub.c is sufficient for the stability of S ( is stable if K.sub.L is minimum phase). Condition (a) assumes that {tilde over (S)} is stable; the stability of the coupling term custom-character.sub.c is guaranteed through the spectral radius condition ({tilde over (S)}(j)((j)I.sub.2))<1, . The as defined in Equation (11) is an upper bound on the spectral radius; therefore, the magnitude condition in (c) provides a sufficient but conservative guarantee for the stability of custom-character.sub.c. The condition in (b) is less conservative than (c) and can directly guarantee that the spectral radius is zero irrespective of the magnitude and shape of {tilde over (S)}. If G.sub.M is triangular, then

    [00028] - I 2 = G M - 1 G ~ M - I 2

    can be strictly triangular and, consequently, {tilde over (S)}(I.sub.2) can also be strictly triangular. All the eigenvalues of a strictly triangular matrix are zero; hence, irrespective of {tilde over (S)}, a spectral radius can be equal to zero.

    [0076] From this theorem, one can guarantee stability of custom-character.sub.c by either reducing the magnitude of {tilde over (S)} or shaping the modified plant G.sub.M into a triangular or diagonal matrix. Maintaining two distinct methods can be helpful, since reducing {tilde over (S)} requires a high-gain controller {tilde over (K)} (see Equation (10)), which is not always feasible. For instance, in GFM operation, as we shall see later, the low-frequency gain of the controller is bounded above, limiting the feasible reduction in sensitivity at low frequencies. Moreover, in any case, {tilde over (S)} converges to the identity at high frequencies for a proper feedback controller.

    [0077] In some embodiments, the algebraic structure of plant shaping controller can be employed as follows. In scenarios where it is not possible to arbitrarily reduce {tilde over (S)} (e.g., GFM operation), Proposition 4.1(b) imposes a structure K.sub.L such that the modified plant G.sub.M=K.sub.LG.sub.L is triangular or diagonal. To characterize such a structure, one can consider a static row normalized K.sub.L as

    [00029] K L = [ cos 1 - sin 1 sin 2 cos 2 ] ( 17 )

    where .sub.1, .sub.2[0, /2]. In the following proposition, the parameters .sub.1 and .sub.2 can be associated with the stability margin of the coupling term custom-character.sub.c and the conditioned number of the modified plant G.sub.M=K.sub.LG.sub.L. Subsequently, a transfer function K.sub.L(s) that simultaneously achieves optimal stability margins can be obtained at both low and high frequencies.

    [0078] Proposition 4.2: (a) The modified plant G.sub.M(j0) satisfies Proposition 4.1(b) in steady state if .sub.1=.sub.z or .sub.2=.sub.z. Here, .sub.z=arctan X/R where X=L.sub.0 and R are the transmission line reactance and resistance.

    [0079] (b) At high frequency (s.fwdarw.) the stability margin of coupling term .sub.c for K.sub.L in (17) converges to

    [00030] lim s .fwdarw. det ( c ) = cos ( 1 - 2 ) cos 1 cos 2 . ( 18 )

    [0080] For .sub.1=0 or .sub.2=0, the stability margin is 1 (optimal) irrespective of the line impedance phase angle .sub.z. Hence, a static custom-character.sub.c can achieve an optimal stability margin at low and high frequencies if {.sub.1=z, .sub.2=0} or {.sub.1=0, .sub.2=.sub.z}.

    [0081] (c) The condition number of the modified plant G.sub.M=K.sub.LG.sub.L at both low and high frequencies is given as

    [00031] lim .fwdarw. ( G M ( j ) ) = ( G M ( j 0 ) ) = 1 + .Math. sin ( ) .Math. 1 - .Math. sin ( ) .Math. ( 19 )

    where =.sub.1.sub.2. A small condition number indicates the robustness of the plant to input uncertainty. A large condition number, however, implies lack of effective control over plant output associated with smallest singular value. We achieve the smallest possible condition number of one for .sub.1=.sub.2. Static K.sub.L cannot satisfy (a) and (b) and achieve the optimal condition number simultaneously, except for resistive lines.

    [0082] Proof 4.2: (a) define Z={square root over (X.sup.2+R.sup.2)} and .sub.1=.sub.z then

    [00032] G M ( j 0 ) = K L ( j 0 ) G L ( j 0 ) = 1 Z [ 1 0 sin ( 2 - z ) 1 ] ( 20 )

    The case for .sub.2=.sub.z follows the same but instead results in an upper triangular matrix.

    [0083] (b) The

    [00033] lim s .fwdarw. S ~ = I 2

    can result, therefore

    [00034] lim s .fwdarw. det ( c ) = lim s .fwdarw. det ( ) - 1 .

    Moreover, det().sup.1=det(K.sub.L)det(G.sub.L)/det({tilde over (G)}m). Taking into account that det(K.sub.L)=cos(.sub.1.sub.2), one can obtain

    [00035] lim s .fwdarw. det ( ) - 1 = cos ( 1 - 2 ) lim s .fwdarw. det ( G L ) det ( G ~ M ) = cos ( 1 - 2 ) cos ( 1 ) cos ( 2 ) ( 20 a )

    and the proof is complete.

    [0084] (c) For an arbitrary .sub.1, .sub.2[0, /2] can result in

    [00036] G M ( j 0 ) = 1 Z [ cos ( 1 - z ) - sin ( 1 - z ) sin ( 2 - z ) cos ( 2 - z ) ] ( 21 )

    and therefore

    [00037] _ ( G M ( j 0 ) ) = 1 + .Math. sin ( 1 - 2 ) .Math. , _ ( G M ( j 0 ) ) = 1 - .Math. sin ( 1 - 2 ) .Math. . ( 21 a )

    [0085] The Proposition 4.2 outlines a design for a static K.sub.L. One can use the same analysis to obtain the transfer matrix K.sub.L(s). One particular choice that satisfies the stability conditions in (a), (b), and the optimal condition number in Equation (19) is

    [00038] K L ( s ) = m s + m [ L Z s + cos z - sin z sin z L Z s + cos z ] . ( 22 )

    This K.sub.L result in the diagonal modified plant can be inserted into G.sub.M as

    [00039] G M = K L G L = m / Z s + m I 2 = G ~ M . ( 23 )

    [0086] Many choices for the transfer matrix K.sub.L(s) satisfy the stability conditions in Proposition 4.2(a) and Proposition 4.2(b). The proposed K.sub.L in Equation (22) is one such a choice that also achieves an optimal condition number. As discussed in more detail later, one can adopt a K.sub.L(s) with a suboptimal condition number that offers more attractive power sharing performance. The plant shaping controller K.sub.L acts like a pre-filter that transforms the inherently coupled dynamics of the power line into a form that is easier to control. When properly designed, K.sub.L makes the d-axis (voltage/reactive power) and q-axis (frequency/active power) behave independently at critical frequencies, eliminating problematic interactions that could cause instability.

    [0087] In some embodiments, the feedback controller includes a multiple input, multiple output (MIMO) feedback controller decomposed into a MIMO plant shaping controller component configured to transform line dynamics into a modified plant with reduced coupling and cross-channel interaction between a d-axis for voltage and a q-axis for frequency. The feedback controller can also include a diagonal controller component configured to maintain stability and achieve target objectives associated with a decoupled d-axis and a decoupled q-axis under an impact of the modified plant. The operations may further include implementing a plant shaping controller that satisfies decoupling conditions at steady state through triangular or diagonal structure, stability margin optimization at high frequencies, and/or condition number optimization for robustness to input uncertainty. In some embodiments, the plant shaping controller component is configured to achieve: diagonal modified plant dynamics at steady state; triangular modified plant dynamics at steady state; and/or an optimal condition number for the modified plant across frequency ranges for a highest stability margin.

    [0088] In some embodiments, specifying objectives and operating modes based on the closed-loop sensitivity can be employed. In seeking for sensitivity and inverter closed-loop objectives, relevant steady-state control objectives for inverters include

    [00040] lim t .fwdarw. v c .fwdarw. ( t ) = 0 , lim t .fwdarw. ( t ) = 0 , lim t .fwdarw. e .fwdarw. ( t ) = 0

    [0089] In the context of FIG. 3 and Equation (6), {right arrow over (v)}.sub.c and are inverter capacitor voltage deviation from the nominal value, and inverter frequency deviation from nominal value. These are also components of the closed-loop control effort {right arrow over (u)}, while {right arrow over (e)} represents the modified current feedback error. This observation, together with Equation (15), facilitates formulating inverter control objectives in terms of closed-loop sensitivity {tilde over (S)} and complementary sensitivity {tilde over (T)} as follow

    [00041] .Math. u .fwdarw. .Math. 2 .Math. T ~ .Math. 2 .Math. G M - 1 .Math. ^ 0 .fwdarw. + d ^ .fwdarw. .Math. 2 , .Math. e ^ .fwdarw. .Math. 2 .Math. S ~ .Math. 2 .Math. .Math. ^ 0 .fwdarw. + G ~ M d ^ .fwdarw. .Math. 2 ( 24 )

    [0090] In some embodiments, it is desirable to minimize {tilde over (T)}.sub.2 and {tilde over (S)}.sub.2 to reduce effect of the exogenous inputs {{right arrow over (.Math.)}.sub.0, {right arrow over (d)}} on {{right arrow over (u)}, {right arrow over (e)}}, thereby improving voltage, frequency, and current regulation. However, the algebraic constraint {tilde over (S)}+{tilde over (T)}=I.sub.2, evident from Equation (16), indicates a fundamental trade-off. This trade-off exists between achieving perfect voltage and frequency regulation (VSI operation) by keeping {tilde over (S)}.sub.2 small and perfect current tracking (GFL operation) by reducing {tilde over (T)}.sub.2.

    [0091] FIG. 5 is a continuum representation of a spectrum between GFL and VSI parameterized by {tilde over (S)} according to some embodiments. The GFM operation is based on adjusting the sensitivity {tilde over (S)} to achieve the desired balance between the VSI and GFL operations, as illustrated in FIG. 5. In some embodiments, a harmonic tradeoff can exist between voltage and current. An ideal PR compensator with a resonant frequency of .sub.h in {tilde over (K)}, leads to {tilde over (S)}(j.sub.h)=0 and (j.sub.h)=I.sub.2. This shifts harmonics from line current to capacitor voltage and inverter frequency according to Equation (24). On the other hand, the notch filter in {tilde over (K)}, results in {tilde over (S)}(j.sub.h)=I.sub.2 and {tilde over (T)}(j.sub.h)=0, shifting the harmonics from voltage and frequency to current.

    [0092] In some embodiments, line-to-ground fault results in a considerable second harmonic component in grid disturbance {right arrow over (d)}. Overlooked, the disturbance can spread to the line current causing fault trip. A second-harmonic PR compensator ensures {tilde over (S)} (j2120)=0 and {right arrow over (e)}(j2120).sub.2=0 in Equation (24), providing precise control of the line current at 120 Hz.

    [0093] In some embodiments, a sensitivity exists between four fundamental operating modes. The inverter's operational mode is determined by how the sensitivity {tilde over (S)} shapes and mitigates the impact of grid disturbance {right arrow over (d)} on the current feedback error {right arrow over (e)} during steady-state operation. To illustrate this, consider the transfer function between the grid disturbance {right arrow over (d)} and {right arrow over (e)} from Equation (15) and expand {right arrow over (d)} according to the nominal disturbance model in Equation (7) to obtain

    [00042] [ e ^ d e ^ q ] = G ~ M S ~ d ^ .fwdarw. G ~ M [ S ~ d 0 0 S ~ q ] [ 1 / s 0 0 v 0 / s 2 ] [ v g g ] ( 25 )

    [0094] Based on Equation (25), there are only four meaningful scenarios for steady-state operation. These scenarios depend on whether {tilde over (S)}.sup.d and {tilde over (S)}.sup.q can either completely reject grid disturbances {v.sub.g, .sub.g} in Equation (25) or result in a finite gain between {v.sub.g, .sub.g} and {e.sup.d, e.sup.q} during steady-state operation. In the following proposition, demonstrated herein are that these scenarios correspond to GFL, GFM, ESS and STATCOM operation, and can be characterized by the zeros of {tilde over (S)}.sup.d and {tilde over (S)}.sup.q.

    [0095] Proposition 5.1: Inverter operating modes are determined by the number of zeros at the origin in the diagonal components of {tilde over (S)}, denoted by {tilde over (S)}.sup.d and {tilde over (S)}.sup.q in (10), as follows: [0096] (a) GFL: If {tilde over (S)}.sup.d has one zero and {tilde over (S)}.sup.q includes two zeros at the origin, we achieve complete grid disturbance rejection and

    [00043] lim t .fwdarw. e d = 0 , lim t .fwdarw. e q = 0 ( 26 ) [0097] (b) STATCOM: If {tilde over (S)}.sup.d has no zero and {tilde over (S)}.sup.q includes two zeros at the origin, the inverter operates at STATCOM and

    [00044] lim t .fwdarw. e d = v g / ( G ~ M - 1 ( j 0 ) + K d ( j 0 ) ) , lim t .fwdarw. e q = 0 ( 27 ) [0098] (c) ESS: If {tilde over (S)}.sup.d and {tilde over (S)}.sup.q each maintain one zero at the origin, the inverter functions as ESS and

    [00045] lim t .fwdarw. e d = 0 , lim t .fwdarw. e q = lim s .fwdarw. 0 g / ( sK q ( s ) ) ( 28 ) [0099] (d) GFM: If {tilde over (S)}.sup.d has no zero at the origin and {tilde over (S)}.sup.q has one zero at the origin, the closed-loop in FIG. 3 leads to an inherent and well-posed drooping characteristic at steady state given below

    [00046] [ v g g ] = [ G ~ M - 1 ( j 0 ) + K d ( j 0 ) 0 0 lim s .fwdarw. 0 sK q ( s ) ] [ e ^ d e ^ q ] ( 29 )

    [0100] In some embodiments, the operations further include implementing droop characteristics for power sharing among parallel inverters, of the one or more inverters. Such implementing can include d-axis droop coefficients that determine voltage regulation characteristics. In embodiments, the d-axis droop coefficients are bounded by line impedance characteristics for d-axis voltage droop. Such implementing can include q-axis droop coefficients, associated with grid frequency, that determine frequency regulation characteristics. In embodiments, where the q-axis droop coefficients are bounded by a targeted frequency response bandwidth for q-axis frequency droop.

    [0101] Proof 5.1: (a), (b), (c), and (d) are the direct result of application of the final value theorem to Equation (25). FIG. 4A, FIG. 4B, FIG. 4C, FIG. 4D are Bode plots illustrating inverter operating mode based on the shape and number of zeros in {tilde over (S)} at low-frequency in, respectively: (a) grid-forming (GFM); (b) voltage support in synchronous compensator (STATCOM); (c) frequency support in an energy storage system (ESS); and (d) grid-following (GFL). For control design, one can leverage the definition of in Equation (10) to convert the conditions on the number of zeros, as outlined in Proposition 5.1, into an equivalent condition regarding the number of integrators in diagonal components of {tilde over (K)} denoted by K.sup.d and K.sup.q.

    [0102] In various embodiments, the control relationships associated with Proposition 5.1 are summarized in Table 1 where the number of integrators (zeros at origin) in the controller determines the inverter's operating mode. The GFL mode may act like a current source, precisely tracking power commands. The GFM mode may act like a voltage source with droop characteristics, supporting grid voltage and frequency stability. The STATCOM mode may provides voltage support through reactive power exchange. The ESS mode may provide frequency support through active power exchange. Each mode represents a different balance between maintaining voltage and frequency stability versus tracking power setpoints.

    TABLE-US-00001 TABLE 1 K.sup.q (right): K.sup.d (below): 1 (1/s) 2 (1/s) 0 (1/s) GFM ESS 1 (1/s) STATCOM GFL

    [0103] In some embodiments, the operations further include characterizing the plurality of operating modes based on a number of zeros at the origin in sensitivity transfer functions. In various embodiments, such characterization can include that a grid-following mode corresponds to one zero in a d-axis, associated with grid voltage, and two zeros in a q-axis associated with grid frequency; a grid-forming mode corresponds to no zeros in the d-axis and one zero in the q-axis; a STATCOM mode corresponds to no zeros in the d-axis and two zeros in the q-axis; and/or an ESS mode corresponds to one zero in the d-axis and one zero in the q-axis.

    [0104] The more accurate term for STATCOM and ESS operation in the Proposition 5.1 is the voltage support and the frequency support, since in steady-state e.sup.d and e.sup.q are linear combinations of e.sup.d and e.sup.q specified by K.sub.L(j0). For example, with K.sub.L in Equation (22), steady-state {right arrow over (e)} can be illustrated as

    [00047] e .fwdarw. = K L e .fwdarw. .fwdarw. [ e d e q ] = [ cos z - sin z sin z cos z ] [ e d e q ] . ( 30 )

    [0105] In this case, the nature of power transactions for voltage and frequency regulation is a combination of active and reactive power, depending on the characteristics of the line. For inductive lines (.sub.z90), one can observe conventional STATCOM and ESS operation, where voltage regulation is achieved through reactive current transactions and frequency regulation through active current transactions.

    [0106] In some embodiments, power sharing exists among parallel GFM inverters. Power sharing between parallel inverters can be pursued for the sustained operation of GFM inverters with varying power ratings and to enforce the DER usage priority. Power sharing can be defined as the change in the active and reactive output power or current from the nominal set point, proportional to changes in the PCC voltage v.sub.g and .sub.g. This proportion for each GFM inverter determines the sharing ratio. Based on this definition and the droop law in Equation (29) the sharing ratio between two arbitrary GFM inverters (i) and (j) is

    [00048] ( G ~ M - 1 ( j 0 ) + K d ( j 0 ) ) ( i ) ( G ~ M - 1 ( j 0 ) + K d ( j 0 ) ) ( j ) = e d ( j ) e d ( i ) , lim s .fwdarw. 0 K q ( s ) ( i ) K q ( s ) ( j ) = e q ( j ) e q ( i ) ( 31 )

    [0107] In some embodiments, the d-axis sharing in Equation (31) depends on the controller K.sup.d and the line impedance

    [00049] G ~ M - 1 .

    However, one call reduce the effect of line impedance on power sharing and droop behavior in Equation (29) by increasing the DC gain of the controller

    [00050] G ~ M - 1 ( j 0 ) K d ( j 0 ) .

    This subsumes the concept of virtual impedance.

    [0108] As mentioned earlier, the q-axis sharing in Equation (31), unlike the d-axis, depends solely on K.sup.q. This allows for exact sharing of the e.sup.q component between inverters with different line impedances. However, based on the specific choice of K.sub.L, e.sup.q in Equation (31) represents a linear combination of e.sup.d and e.sup.q. For example, K.sub.L(j0) in Equation (22) results in e.sup.q=[sin .sub.z cos .sub.z]{right arrow over (e)}. This particular choice of K.sub.L can lead to exact active power sharing only for inductive lines (.sub.z90). However, once can achieve exact active current sharing by adopting

    [00051] K L *

    in Equation (32), which maps e.sup.q to e.sup.d at steady-state, regardless of line impedance.

    [00052] K L * ( s ) = m s + m [ L Z s + cos z - sin z 2 + 0 2 s + 1 0 2 + 0 2 s ] ( 32 )

    [0109] The proposed

    [00053] K L *

    satisfies stability criteria outlined in parts (a) and (b) of the Proposition 4.2, resulting in the following modified plant G.sub.M* and its diagonal counterpart

    [00054] G ~ M *

    below

    [00055] G M * = m / Z s + m [ 1 0 cos z sin z ] , G ~ M * = m / Z s + m [ 1 0 0 sin z ] . ( 33 )

    [0110] However,

    [00056] G M * ( j 0 )

    in Equation (33) has a suboptimal condition number of

    [00057] ( G M * ( j 0 ) ) = ( 1 + cos ( z ) ) / sin ( z ) and for z 11 ,

    (dominantly resistive line), the condition number becomes exceeds 10. This suggests that

    [00058] K L *

    trades the robustness margin to achieve exact active power-sharing.

    [0111] In some embodiments, synchronization and frequency transient responses can be explained as follows. Existing GFL and STATCOM use the PLL mechanism to synchronize their rotating frame with an established grid voltage. However, GFM and ESS synchronize through power transactions based on frequency droop. Therefore, changing between the GFL/STATCOM and GFM/ESS modes involves changing the synchronization method. In this section, we exploit the parallel structure of the q-axis controller, that is

    [00059] K q = K 1 q + K 2 q

    in FIG. 3 to develop a mode-independent synchronization scheme and generalize the concept of inertia and rate-of-change of frequency (RoCoF) as a closed-loop transient response. In the context of the closed-loop signals in FIG. 3 the two primary synchronization conditions are

    [00060] ( 34 ) lim t .fwdarw. v c q = 0 , ( a ) lim t .fwdarw. v 0 ( . g - . ) lim t .fwdarw. d . q - u = 0 ( b )

    where {dot over ()}.sub.g is the time derivative of grid voltage angle (grid frequency), and {dot over ()} is the time derivative of inverter synchronous frame angle (inverter frequency). The approximation in (b) is based on definition of dq and u.sub. in Proposition 3.1.

    [0112] Condition (a) aligns the capacitor voltage phasor {right arrow over (v)}.sub.c with the dq frame while (b) ensures that the rotating frame achieves frequency lock with the grid frequency {dot over ()}.sub.g. Both conditions are expressed in terms of the closed-loop variables

    [00061] v c q

    and u.sub., along with the grid disturbance dq (see FIG. 3). This allows conversion of synchronization conditions in Equation (34) into constraints for the feedback control design. To clarify, consider the transfer function between the exogenous inputs, and

    [00062] v c q

    and u.sub. as follows:

    [00063] v ^ c q = T v ( w ^ + d ^ q ) , u ^ = T ( w ^ + d ^ q ) , ( 35 )

    where

    [00064] w = [ 0 1 ] G M - 1 .Math. ^ l .fwdarw.

    and the transfer functions T.sub.v and T.sub. are

    [00065] T v = G M q K 1 q 1 + G M q ( K 1 q + K 2 q ) , T = G M q K 2 q 1 + G M q ( K 1 q + K 2 q ) . ( 36 )

    [0113] Using final value theorem and Equation (35), Equation (34) can be converted into

    [00066] lim s .fwdarw. 0 sT v ( w ^ + d ^ q ) = 0 , lim s .fwdarw. 0 s 2 ( ( 1 - T ) d ^ q - T w ^ ) = 0 ( 37 )

    [0114] In some embodiments, the operations include implementing mode-independent synchronization by maintaining synchronization conditions across the plurality of operating modes by ensuring capacitor voltage alignment with a direct-quadrature (dq) reference frame and achieving a frequency lock between the inverter and a grid frequency.

    [0115] FIG. 6 is a Bode plot illustrating operations of desired q-axis closed-loops T.sub.v, T.sub., {tilde over (T)}.sup.q, and corresponding open-loops

    [00067] K 1 q G ~ M , K 2 q G ~ M

    and K.sup.q{tilde over (G)}.sub.M according to some embodiments. The equation above allows us to formulate the synchronization in terms of the conditions on the controllers

    [00068] K 1 q Kq and K 2 q .

    [0116] Proposition 5.2: We achieve synchronization, regardless of the operating mode, if

    [00069] ( K 1 q / K 2 q )

    includes at least two zeros at the origin and

    [00070] K 2 q

    has at least one pole at the origin.

    [0117] Proof 5.2: Adopting the nominal ramp model in Equation (7) for d.sup.q and considering

    [00071] T v = T K 1 q / K 2 q ,

    Equation (37) is rewritten as follows

    [00072] lim s .fwdarw. 0 s K 1 q K 2 q T ( w ^ + v 0 g s 2 ) = 0 , lim s .fwdarw. 0 v 0 ( 1 - T ) g - s 2 T w ^ = 0.

    Based on the conditions in the proposition lim.sub.s.fwdarw.0T.sub.=1, lims.fwdarw.0 T=1, and

    [00073] lim s .fwdarw. 0 K 1 q / ( s 2 K 2 q ) = c o n s t ,

    completing the proof. In some embodiment, the synchronization is achieved by configuring a first q-axis controller with at least two zeros at the origin relative to a second q-axis controller and the second q-axis controller with at least one pole at the origin.

    [0118] 1) Transient response of Inverter Frequency: T.sub. in Equation (36) represents the closed-loop transfer function between the inverter's frequency deviation , and the grid frequency deviation .sub.g. Therefore, the characteristics of T.sub., such as the bandwidth, generalize the concepts of inertia and RoCoF, while the peak of T.sub., denoted as M.sub.T=T.sub..sub., is directly proportional to the overshoot (frequency nadir) and the transient oscillation of . Therefore, it is desired to shape T.sub. as a unity gain low-pass filter with M.sub.T<3 dB, and low bandwidth. However, there are two sources of difficulties. First, the transient frequency response, the current and the voltage regulation objectives on the q axis are interdependent and conflicting. Second, shaping T.sub. and T.sub.v in (36) to achieve the desired closed-loop objectives requires the concurrent design of both

    [00074] K 1 q and K 2 q

    [0119] We establish the design criteria for

    [00075] K 1 q and K 2 q

    considering the fundamental algebraic constraints outlined below

    [00076] T + T v = T q , S q + T q = S q + ( T + T v q ) = 1 ( 38 )

    where {tilde over (T)}.sup.q is the closed-loop variable between the current setpoint

    [00077] i 0 q and i g q g .

    We aim to keep e{tilde over (T)}.sup.q close to one and {tilde over (S)}.sup.q small over a broad frequency range [0, .sup.q] to achieve effective disturbance rejection in Equation (15), negligible tracking error in Equation (24), dynamic decoupling in Equation (11), and MIMO stability (Proposition 4.1(c)). Furthermore, T.sub. in Equation (36) should be designed as a low-pass filter with a bandwidth .sub.J<<.sup.q to achieve an inertial response, low RoCoF, and to attenuate the effect of high-frequency grid disturbances on . Based on Equation (38), this automatically constrains T.sub.v to a unity gain band-pass filter between .sub.J and .sub.q as shown in FIG. 6. In the following, we sketch the outline of the open-loops M that result in the desired T.sub., T.sub.v and {tilde over (T)}.sup.q Subsequently, in Section VI-A, we provide an example control design for

    [00078] K 1 q and K 2 q .

    [0120] In some embodiments, the operations further include implementing virtual inertia control by shaping a frequency response transfer function as a low-pass filter with adjustable bandwidth and damping characteristics to control: a rate of change of frequency (RoCoF) between the inverter and the grid-tied line; and frequency nadir following disturbances bypassing a reliance on mimicking synchronous generator dynamics.

    [00079] K 1 q G M :

    should be designed as a bandpass filter with a gain cross-over frequency near .sub.q and a phase margin of 60. The pass band should satisfy .sub.J[.sub.1, .sub.2], as shown in FIG. 6, where .sub.J is the bandwidth of T.sub. and adjusts the desired inertial response. The ratio .sub.J/.sub.1 is directly proportional to M.sub.T and damps and reduces the frequency nadir and oscillation. Finally, the filter should achieve slope of 20 dB/dec at low frequency to satisfy synchronization condition in Proposition 5.2.

    [00080] K 2 q G M :

    should be shaped close to an integrator (e.g., .sub./s) that intersects

    [00081] K 1 q G M

    at .sub.J in the pass band region, as shown in FIG. 6. To attenuate the effect of high-frequency disturbances on inverter frequency, we augment the open-loop with a low-pass filter with cut-off frequency .sub.f above .sub.J.

    [0121] Hereinafter is disclosed a feedback control design for {tilde over (K)} that meets the stability and performance criteria proposed in this disclosure. Subsequently, we implement the proposed control design using inverter closed-loop dynamics. For the control design, assume the nominal line impedance of Z.sub.z, and adopt K.sub.L in Equation (22) and the corresponding {tilde over (G)}.sub.M in (23) to satisfy the coupling stability in Proposition 4.2. Subsequently, for

    [00082] K ~ = diag ( K d , K 1 q + K 2 q )

    we employ the following set of controllers

    [00083] K d = s + m m / Z ( s + v s + 2 2 ( Z ) v ) ( 2 d s + d ) 3 ( s + d s + d ) K 1 q = s + m m / Z ( q 2 + 2 2 s ( s + 1 ) ( s + 2 ) ) ( 2 q s + q ) 2 ( s + q s + q ) K 2 q = s + m m / Z ( s ) ( s + / s + Z ) ( f s + f ) ( 39 )

    [0122] We justify the proposed control parameters and design by considering their dynamic and steady-state characteristics as follows.

    [0123] 1) d-axis: Droop characteristics: Based on Equation (29), the steady-state voltage droop coefficient for K.sup.d in (39) is

    [00084] G M - 1 + K d ( j 0 ) = Z + v , max { v a Z , 4 ( a Z ) 2 v } << d . ( 40 )

    The voltage droop depends on the ratio .sub.v/.sub.v. Higher values of .sub.v and .sub.v correspond to faster zero and pole in Equation (39) and quicker droop responses. We recommend limiting .sub.v and .sub.v by the d-axis open-loop bandwidth as indicated in (40).

    [0124] Dynamic characteristics: Given that inequality in Equation (40) holds, K.sup.d in (39) leads to an open-loop

    [00085] K d G M d

    with a gain crossover frequency of close to .sub.d and phase margin

    [00086] P M 4 5 + arc sin ( 1 - a ) / ( 1 + a ) , 0 a 1 ( 41 )

    [0125] 2) q-axis: Droop characteristics: Based on (29), the steady-state frequency droop coefficient for K.sup.q in Equation (39) is

    [00087] lim s .fwdarw. 0 sK q = lim s .fwdarw. 0 s ( K 1 q + K 2 q ) = , max { , } << J ( 42 )

    We limit .sub. and .sub. by .sub.J in (42), where .sub.J represents the bandwidth for T.sub. to achieve desired inertia.

    [0126] Dynamic characteristics

    [00088] K 1 q and K 2 q

    in Equation (39) satisfy the synchronization condition in Proposition 5.2. Furthermore, for .sub.1<.sub.2<<.sup.q the shape of

    [00089] K 1 q G ~ M

    traces the desired shape shown in FIG. 6, with a gain cross-over frequency of .sup.q and a phase margin close to PMarcsin(1a)/(1+a). The proposed

    [00090] K 2 q

    in Equation (39), includes an integrator .sub./s, lowpass filter with a cut-off frequency of .sub.f(.sub.J<.sub.f) to attenuate the disturbance in the inverter frequency, and a compensator to shape the drooping characteristics. The resulting

    [00091] K 2 q G ~ M

    intersects the pass band region of

    [00092] K 1 q G ~ M

    at .sub.J[.sub.1, .sub.2] provided that .sub. satisfies the constraint

    [00093] log ( J ) - log ( 2 ) log ( ) - log ( a q ) , q a 2 J . ( 43 )

    This allows us to calculate .sub. for the desired inertial bandwidth .sub.J. Finally, by adjusting .sub.1, we can fine-tune the ratio of .sub.J/.sub.1 for the desired damping of the frequency oscillation.

    [0127] 3) PR compensator for enhanced stability: Proposition 9.1 imposes an upper-bound on the 2-SISO sensitivity {tilde over (S)} to ensure stability in the presence of the nonlinear term (, ) in line dynamics.

    [0128] FIG. 7 is a Bode plot illustrating smaller values of , which impose stricter upper-bounds on sensitivity around the fundamental frequency .sub. according to at least one embodiment. This upper bound is explicitly dependent on G.sub.L(j).sup.1, where the shape of G.sub.L(j) is uniquely determined by the line characteristics, denoted by =R/L. As shown in FIG. 7, smaller values of result in a significant notch in G.sub.L(j).sup.1 at the fundamental frequency .sub.0. Consequently, this requires the 2-SISO sensitivity transfer function {tilde over (S)} to be small at 0. In embodiments, the sensitivity transfer function {tilde over (S)}(j) denotes the current error signal (e.g., tracking error) relative to the desired current setpoint at frequency , which can be understood as an algebraic difference between the setpoint and the measured output relative to setpoint at given frequency . Thus, {tilde over (S)}(j)=({circumflex over (r)}(j)(j))/{circumflex over (r)}(j)), where {circumflex over (r)}(j) is the setpoint or reference signal value at frequency and (j) is the measured process variable, e.g., actual frequency actual voltage, actual power output component at frequency . Based on the definition of {tilde over (S)} in Equation (10), we can reduce {tilde over (S)} at 0 by cascading a proportional resonant compensator (PR) in series K.sup.d and

    [00094] K 1 q

    controllers in Equation (39). An example of a PR compensator is given below

    [00095] K PR = 1 + k 0 2 0 s s 2 + 2 0 s + 0 2 , = max 0 ( 44 )

    where k.sub..sub.0 sets the PR gain and .sub.max represents the maximum expected frequency deviation from nominal value.

    [0129] We simplified closed-loop analysis and design by neglecting the dependence of K.sup.d and

    [00096] K 1 q

    on the inverter closed-loop dynamics. In the following discussion related to FIGS. 8A-8B, discussed is how to use inverter dynamics to implement K.sup.d and

    [00097] K 1 q .

    [0130] In some embodiments, an inverter closed-loop can function as a feedback compensator as follows. We adopt the cascaded closed-loop structure in FIG. 8A with inner current and outer voltage loops. Here, G.sub.i=1/(L.sub.is+R.sub.i) and G.sub.v=1/(C.sub.is) represent the dynamics of the inductor and capacitor in Equation (5). To form the inner closed loop, we use feedback linearization to decouple the inductor dynamics in Equation (5) by defining the modulation signal as

    [00098] m .fwdarw. = 2 v dc ( u .fwdarw. .Math. + v .fwdarw. c + L i . [ - i L q , i L d ] ) ( 45 )

    where {right arrow over (u.sub..Math.)} denotes the output of current controller K.sub.i in FIG. 8A. Subsequently, we use the proportional-integral (PI) controller K.sub.i=.sub.c(L.sub.is+R.sub.i)/s to shape the inner closed-loop Ti in FIG. 8A into a unity gain low-pass filter with cut-off frequency .sub.c below

    [00099] T i = G i K i 1 + G i K i = c s + c , and S i = 1 - T i = s s + c ( 46 )

    [0131] The operations can further include implementing, as part of the unified algebraic control system, a cascaded closed-loop structure with an inner current loop and an outer voltage loop, as illustrated in FIGS. 8A-8B. The operations can include using feedback linearization to decouple inductor dynamics of an inductor and a capacitor being modeled within the inner current loop and employing a phase interpolator controller to shape the inner current loop into a unity gain low-pass filter.

    [0132] Specifically, FIG. 8A and FIG. 8B are circuit diagrams illustrating, respectively, (a) nested structure with voltage and current inputs; and (b) inverter closed-loop as part of feedback compensator. The outer voltage loop is formed by setting the reference,

    [00100] .Math. L * .fwdarw. ,

    for the inner closed-loop as follows

    [00101] .Math. L * .fwdarw. = .Math. r .fwdarw. + u v .fwdarw. + .Math. g .fwdarw. + C i . [ - v c q , v c d ] ( 47 )

    where {right arrow over (u.sub.v)} is the output of the voltage compensator K.sub.v and {right arrow over (.Math..sub.r)} is the input to the cascaded closed-loop as shown in FIG. 8A. The feed-forward term

    [00102] .Math. g .fwdarw. + C i . [ - v c q , v c d ]

    decouples the capacitor dynamics and counteracts the effect of grid current in (5). The proposed cascaded closed-loop in FIG. 8A leads to the following relation between the inputs {{right arrow over (v.sub.0)}, {right arrow over (.Math..sub.r)}, {right arrow over (.Math..sub.g)}}{right arrow over ({circumflex over (v)}.sub.c )}

    [00103] v c .fwdarw. = G v S v ( T i l ^ r .fwdarw. + T i K v v 0 .fwdarw. - S i ( .Math. g .fwdarw. + C i [ - v c q , v c d ] ) ) ( 48 )

    where {S.sub.i, T.sub.i} are given by Equation (46), and S.sub.v is the sensitivity transfer function for the voltage closed-loop defined below

    [00104] S v = [ S v d 0 0 S v q ] [ ( 1 + G v T i K v d ) - 1 0 0 ( 1 + G v T i K v q ) - 1 ] . ( 49 )

    [0133] For a large value of .sub.c, S.sub.i in (48) remains small over a broad frequency range and can be assumed to be negligible. Therefore, considering {right arrow over (v.sub.c)}={right arrow over (v.sub.c)}{right arrow over (v.sub.0)}, we can rewrite (48) as

    [00105] v c .fwdarw. = K inv .Math. .fwdarw. r - S v v 0 .fwdarw. where K i n v = G v S v T i ( 50 )

    [0134] In some embodiments, K.sub.inv captures the inverter closed-loop dynamics as a compensator between {right arrow over (.Math..sub.r)} and {right arrow over (v.sub.c)} as shown in FIG. 8B. K.sub.inv can represent any transfer function with a relative degree of at least two and the following zpk (zeros (z), poles (p) and gain (k)) form

    [00106] K i n v = N ( s ) D ( s ) = c C i ( s + z n ) .Math. ( s + z 0 ) ( s + p m ) .Math. ( s + p 0 ) , n ( m - 2 ) ( 51 )

    if voltage compensator K.sub.v=N.sub.v(s)/D.sub.v(s) is designed as

    [00107] N v ( s ) = D ( s ) - C i s ( s + c ) N ( s ) / c , D v ( s ) = N ( s ) ( 52 )

    and the inner closed-loop controller K.sub.i is set to

    [00108] K i = c L i s + R i s where ( 53 ) c = .Math. i = 0 m p i - .Math. i = 0 n z i

    where p.sub.i and z.sub.i are poles and zeros of transfer function K.sub.inv in Equation (51). We can cascade K.sub.inv with a series compensator Kc to form the feedback compensator between {right arrow over (e)} and {right arrow over (v.sub.c)} shown in FIG. 8B. In this case, comparing FIG. 3 and FIG. 8B shows

    [00109] K c K i n v = [ K c d K i n v d 0 0 K c q K i n v q ] = [ K d 0 0 K 1 q ] ( 54 )

    [0135] Equation (53) indicates that poles and zeros of the controllers K.sup.d and

    [00110] K 1 q

    should be divided between K.sub.c and K.sub.inv. We suggest that the inverter dynamics K.sub.inv only includes the smallest zero and three of the largest poles of K.sup.d and

    [00111] K 1 q

    and K.sub.c include rest of poles and zeros. For example, K.sup.d and

    [00112] K 1 q

    in (39) can be divided into K.sub.inv and K.sub.c as follows

    [00113] K i n v d = c d C i s + v ( s + d ) 3 , K i n v q = c q C i s ( s + 2 ) ( s + q ) 2 ( 55 ) K c d = C i c d ( 2 2 d 3 m / Z ) ( s + m s + 2 2 ( a Z ) v ) ( s + a d a s + d ) ( 56 ) K c q = C i c q ( 2 q 2 q 2 + 2 2 m / Z ) ( s + m s + 1 ) ( s + a q a s + q ) ( 57 )

    where

    [00114] c d = 3 d - v and c q = 2 q - 2 .

    Finally, we implement K.sub.inv in (55) by designing K.sub.v and K.sub.i as

    [00115] K v d = C i ( 3 d 2 + v c d ) s + d 3 c d ( s + v ) , K i d = c d L i s + R i s ( 58 ) K v q = C i ( q 2 + 2 2 ) s + 2 q 2 c q s , K i q = c q L i s + R i s ( 59 )

    according to Equation (52) and Equation (53).

    [0136] 1) Generating the rotating angle: Based on the Proposition 3.1, the control signal u.sub. from

    [00116] K 2 q

    encodes the dq rotating angle . Therefore, in practice, u.sub. is implemented indirectly through as follow

    [00117] ( t ) = 0 t + 1 v 0 u ( t ) ( mod 2 ) ( 60 )

    [0137] In some embodiments, disclosed include seamless transitions between operating modes. FIG. 9 is multi-dimensional graph illustrating operating space of a multi-operational mode power grid parameterized by variable pair (.sub.v, .sub.) according to some embodiments. Variables of this variable pair can be defined as .sub.v=.sub.v/.sub.v and .sub.=.sub./.sub., where v, v and , are the parameters in Equation (39). The (.sub.v, .sub.) pair can define a 2D steady-state operating space, as shown in FIG. 9. The y-axis (.sub.v=0) corresponds to an integrator in K.sup.d, while the x-axis (.sub.=0) corresponds to two integrators in K.sup.q. According to Table I, the y-axis represents the ESS mode, the x-axis represents STATCOM operation, and the origin represents GFL mode. Moreover, each point within this 2D space specifies a unique combination of operating modes; for example, point A in FIG. 9 is closer to the ESS mode, while point B is closer to STATCOM operation.

    [0138] Changing =(.sub.v, .sub.) allows seamless transitions between operating modes, as shown in FIG. 9. The secondary control layer can leverage the mode transitions to create a flexible and adaptive system that aligns with economic or dispatch goals in a dynamic environment. Although the controller in Equation (39) ensures stability in each mode (pointwise stability), one can also ensure stability during mode transition, given a sufficiently slow change in the parameters =(.sub.v, .sub.). This two-dimensional operating space can be visualized as a map where each point represents a different inverter behavior. Moving smoothly between points (e.g., changing v and ) allows the inverter to transition between modes without discontinuous jumps that could cause grid disturbances. For example, gradually reducing both parameters toward zero can shift the inverter from grid-forming toward grid-following mode.

    [0139] In some embodiments, controlling the transitions includes adjusting the pair of closed-loop variables along trajectories in a control parameter space, starting and ending at setpoints, of the plurality of setpoints, corresponding respectively to an initial mode and a final mode of the plurality of operating modes. In embodiments, the pair of closed-loop variables include an inverter variable and a grid state variable, which are implemented as a control input and a disturbance using a direct quadrature formulation. The v and parameters can serve as the pair of closed-loop variables controlling transitions along trajectories in the 2D parameter space.

    [0140] Proposition 6.1: Pointwise stability at each operating mode =(.sub.v, .sub.) is a sufficient condition to ensure the stability of the closed-loop system during mode transitions, provided that the parameters =(.sub.v, .sub.) change slowly enough.

    [0141] Proof 6.1: The seamless transition between operational modes involves the adjustment of controller parameters K, which results in a closed-loop LPV system. We guarantee the stability of the closed-loop, shown in FIG. 3, during mode transitions by limiting the rate of change of parameters. To begin, we rewrite the closed-loop system in (79) in the following form:

    [00118] d d t x = ( A ( ) - B K min C ) x + B u , ( 61 ) u = ( t , y ) + K min y = - * ( t , y ) ( 62 )

    where x=[x.sub.gx.sub.k].sup. and {A, B, C} triplet are defined as

    [00119] A ( ) = [ A g + D k C k - B k A k ( ) ] , B = [ I 2 0 ] , C = [ I 2 0 ] ( 63 )

    [0142] Moreover, the transformed feedback nonlinearity .sub.*(, ) in (62) belongs to the sector [0, K.sub.*], where K.sub.*=K.sub.maxK.sub.min=2I.sub.2.sub.max (see Equation (81) and Equation (82)).

    [0143] The system in Equation (61) can have the following transfer matrix realization

    [00120] G L S ( I 2 + K min G L S ) - 1 := [ A * B C 0 ] ( 64 )

    where A.sub.*=A()BK.sub.minC. If Z(s) in Equation (83) is strictly positive real (SPR), then there exist a positive definite matrix W, matrix L and a positive constant 0<n such that {A.sub.*, B, C} satisfy

    [00121] W A * + A * T W = - L T L - nW ( 65 ) WB = C T K * - 2 L T ( 66 )

    [0144] One can adopt the Lyapunov function v(x)=x.sup.TW()x for the system in (61) where W is the same as (65). The time derivative of v(x) along the trajectories of x(t) is

    [00122] v ( x ) = x T ( W ( ) - L T L - n W ) x - 2 x T W B * ( t , y ) ( 67 )

    [0145] The nonlinearity .sub.*(, ) belongs to the sector [0, K.sub.*] therefore we add the positive term 2.sub.*(t, y).sup.(.sub.*(t, y)K.sub.*y)>0 to the right-hand side of (67) to get the following inequality

    [00123] v ( x ) x T W ( ) x - x T L T L x - 2 * T ( t , y ) * ( t , y ) + 2 x T ( C T K * - WB ) * ( t , y ) - n v ( x ) ( 68 )

    [0146] Based on Equation (66), we complete the square term above to get

    [00124] v ( x ) x T W ( ) x - x T M T M x - n v ( x ) ( 69 )

    where Mx is defined below

    [00125] M x = L x - 2 * ( t , y ) = ( L - 2 [ 0 1 - 1 0 ] C ) x ( 70 )

    [0147] We apply Grnwall's inequality to demonstrate that the Lyapunov function {dot over (v)}(x) and the closed-loop trajectories remain bounded and stable during the transition. To achieve this, we need to bound {dot over (v)}(x) in terms of v(x). This is accomplished by applying two consecutive bounds to Equation (69), as shown below

    [00126] v ( x ) x T W ( ) x - n v ( x ) q ( t ) v ( x ) ( 71 )

    [0148] The term q(t) is defined below by directly applying the Rayleigh-Ritz theorem to x.sup.T{dot over (W)}x.

    [00127] q ( t ) = ( W ( ) ) ( W ( ) ) - n ( 72 )

    [0149] In above () is the spectral radius, and () indicates smallest eigenvalue. Employing the Grnwall's inequality, we get the following bound on closed-loop trajectories

    [00128] v ( t , x ) = x T W x v ( 0 , x 0 ) exp ( 0 t q ( ) d ) ( 73 )

    [0150] Based on the above, the sufficient condition for Lyapunov stability is the convergence of the exponential term to zero. Therefore, q(t)<0 provides a sufficient condition for stability. We convert this condition into an upper bound on the rate of change of {.sub.v, .sub.} through the following three operations:

    [0151] In Equation (72), we express {dot over (W)} as {dot over ()}.sub.vW/.sub.v+{dot over ()}.sub.W/.sub., where the partial derivatives are applied element-wise.

    [0152] The matrices W/.sub.v and W/.sub. are symmetric, and for symmetric matrices, the spectral radius () is equal to .sub.2. The matrix two-norm is sub additive.

    [0153] Based on Equation (72) and the three steps outlined above, the following condition is sufficient to ensure q(t)<0.

    [00129] [ .Math. "\[LeftBracketingBar]" v .Math. "\[RightBracketingBar]" .Math. "\[LeftBracketingBar]" .Math. "\[RightBracketingBar]" ] [ .Math. W ( ) / v .Math. 2 .Math. W ( ) / .Math. 2 ] ( W ( ) ) n ( 74 )

    [0154] For small {{dot over ()}.sub.v, {dot over ()}.sub.} we can satisfy the above inequality since the right-hand side is always defined and positive.

    TABLE-US-00002 TABLE II Simulation and Experimental Parameters Parameter Sym. Sim. Expt. Parameter Sym. Value Filter C.sub.i 15 F 15 F Grid voltage .sub.g 120 V capacitor (line-RMS) Filter L.sub.i 1 mH 470 H Fundamental .sub.g 60 Hz inductor Frequency Grid L 1 mH 470 H Switching f.sub.aw 50 kHz inductor frequency Grid R 1 m 1.4 m Sampling f.sub.a 50 kHz resistance Frequency

    [0155] The following disclosure covers simulation and experimental results. We demonstrate the salient features of the proposed system through hardware-in-the-loop (HIL) simulation and experiment. The simulations are carried out using the OPAL-RT real-time platform; as for the experimental results, we used a set of three-phase inverters to assume the rule of GFM, GFL, and power grid. In both cases, the control algorithms are implemented in the TI TMS320F28388D digital signal processor (DSP).

    On Grid Operation

    [0156] In this section, we investigate the performance of the proposed GFM inverter in grid-tied operation. We assess the accuracy of active and reactive current injection in two scenarios: first, when the grid operates at nominal voltage and frequency; and second, when the grid experiences disturbances causing deviations from the nominal voltage and frequency. Furthermore, we explore the transient response of the GFM to step changes in grid voltage and frequency and demonstrate the inverter's ability to achieve an inertia-like response. Subsequently, we demonstrate a seamless transition scenario in which a group of grid-tied inverters provide ancillary services to the grid through a mode switch. Lastly, we showcase the robustness of the inverter to uncertainties in line impedance by operating it under conditions where the line impedance differs significantly from the nominal value. This steps is essential to guarantee operation of the inverter under weak grid conditions.

    [0157] FIG. 10A, FIG. 10B, FIG. 10C, and FIG. 10D are graphs of current over time during nominal grid operation, respectively: (a) active current with and without set-point adjustment; (b) reactive current in a complex line scenario; (c) active current with adjusted current set-point; and (d) reactive current in inductive line scenario according to various embodiments. Nominal grid operation: Based on the above disclosure, proposed GFM inverter can inject active and reactive currents into the grid with zero steady-state error, provided two conditions are met: 1) the grid operates at nominal voltage and frequency; and 2) the inverter's current set-point is determined using the modified current set-point

    [00130] .Math. 0 * .fwdarw. = K L - 1 T K L .Math. 0 .fwdarw. .

    Solid lines in FIG. 10A and FIG. 10B demonstrate group of three inverters successfully tracking the exact current set-points in case of complex line impedance. The dashed lines in these figures represent the deviation of the active and reactive current of the inverter if the set-point was not adjusted according to modified set-point.

    [0158] The adjusted current set-point is based on knowledge of the line impedance. However, in the case of a purely inductive line, where cos .sub.z=0, the precise injection of active current does not depend on the value of the line impedance. FIG. 10c shows precise active current injection for both adjusted and unadjusted current set-point. However, as shown in FIG. 10d, in the purely inductive line the reactive current deviates for the unadjusted current set-point.

    [0159] FIG. 11A, FIG. 11B, FIG. 11C, FIG. 11D are graphs of current over time during disturbed grid operation, respectively: (a) active current with and without set-point adjustment under grid frequency disturbance; (b) reactive current deviation under grid volage disturbance; (c) improving active current with adjusted current set-point; and (d) improving reactive current in inductive line scenario by decreasing the sensitivity transfer function according to various embodiments. Disturbed grid operation: When the voltage and frequency of the grid deviate from the nominal values, the GFM output current shifts away from its target set point. In the case of a predominantly inductive line, the deviation in active and reactive currents is independently determined by the droop characteristics of the GFM q-axis and d-axis controllers, respectively, as well as by the value of the line impedance. FIG. 11A and FIG. 11B shows how a set of three inverters reacts to deviations of 0.1 pu in voltage and 0.1 Hz in frequency within the grid. These Figures clearly demonstrate that the magnitude of these deviations from the intended set-points is directly proportional to the droop characteristics of the d and q controllers of each GFM inverter.

    [0160] FIG. 12 is a graph of a frequency response of the inverter to step change of magnitude 0.1 Hz in grid frequency according to at least one embodiment. Increasing the bandwidth of T.sub. leads to faster response while increasing the phase margin reduce the oscillation. Improving accuracy of current injection: Based on Equation (24) and Equation (25), we can improve the accuracy of steady-state current set-point tracking by reducing the sensitivity transfer function S at low frequencies. This improvement holds irrespective of any disturbances in grid voltage and frequency or changes in line impedance. Lowering the sensitivity transfer function can be achieved by reducing the values of .sub.v, .sub. towards zero. Doing so moves the operating mode closer to the origin in FIG. 9, indicative of a pronounced Grid-Following (GFL) operation. FIG. 11C and FIG. 11D show rapid improvement in active and reactive current set-points tracking under complex line impedance and grid voltage and frequency disturbances at t=1.25 and t=1.75 for smaller values of {.sub.v, .sub.}.

    [0161] FIG. 13 is a set of graphs illustrating how a proposed GFM control system effectively rejects a 120 Hz ripple caused by line-to-ground fault on inverter current and frequency according at least one embodiment. This facilitates the fault ride through.

    [0162] FIG. 14A, FIG. 14B, FIG. 14C, FIG. 14D are graphs illustrating, respectively, d-axis current, q-axis current, inverter voltage, and inverter frequency of a seamless transition of the set of inverters during on-grid operation at particular moments outline in Table III according to some embodiments, wherein pu stands for per unit.

    TABLE-US-00003 TABLE III Statue of Inverters and Power Grid t.sub.1 t.sub.2 t.sub.3 t.sub.4 t.sub.5 t.sub.6 inv 1 GFL GFL GFL GFL GFL GFM inv 2 GFL GFL GFL ESS ESS ESS inv 3 GFL STAT STAT STAT STAT STAT v.sub.g 0.1 (pu) 0.1 pu 0.1 pu 0.1 pu Off- Grid w.sub.g 0 Hz 0 Hz 0.1 Hz 0.1 Hz

    [0163] FIG. 15A, FIG. 15B, FIG. 15C are graphs illustrating, respectively, (a) a Bode plot for d-axis and q-axis open-loops under GFM and GFL operation; (b) GFM response to step-change in active current set-point under line impedance variation; and (c) GFL response to step-change in active current set-point under line impedance variation according to some embodiments.

    [0164] Inverter Inertial Frequency Response: According to previously explanation, we can adjust the inverter frequency response to grid frequency disturbances. This adjustment can be made regardless of the operating mode, only by modifying the bandwidth and phase margin of T.sub.. In FIG. 12 we illustrate that the frequency response of the GFM inverter to the step change in the grid frequency varies with different bandwidths and phase margins for T.sub.. Clearly, a higher bandwidth results in a quicker response time, whereas a greater phase margin reduces oscillations in the inverter's frequency during transients.

    [0165] Line-to-Ground Fault: In the event of a line-to-ground fault, there is a risk of a significant current surge in the affected phase, which can cause damage to the equipment or trigger circuit breakers. This issue is particularly challenging for traditional GFM and VSI, which lack the precise current control capabilities of GFL inverters within the closed-loop bandwidth. However, as previously discussed, we can enhance the GFM control to operate as a GFL at the determined frequency by making the 2-SISO sensitivity transfer function {tilde over (S)} small at that frequency. Given that a line-to-ground fault introduces a second harmonic disturbance into the system, integrating a proportional resonant (PR) compensator tuned to 20 (double the fundamental frequency) into the feedback loop enables the GFM inverter to precisely control current and reject disturbances at this specific frequency.

    [0166] FIG. 13 shows that the proposed GFM inverter continues to operate smoothly during a fault, effectively rejecting the 120 Hz ripple on both the inverter output current and frequency. This is a drastic improvement over conventional GFM, shown by the dashed line in the graphs of FIG. 13. Note that in both cases, the voltage regulation is compromised to accommodate for fault-ride-through. In embodiments, the operations further include compensating for line-to-ground fault conditions by incorporating proportional-resonant (PR) compensators tuned to second harmonic frequency to maintain current control during fault conditions. For example, the PR compensator at 20 enables fault ride-through.

    [0167] Seamless Transition and Ancillary Service: The proposed inverter control is designed to smoothly transition between the GFL, GFM, STATCOM, and ESS modes. To evaluate the seamless transition, we initially operate a set of three inverters in GFL mode connected to a stiff grid. However, in the event of a contingency, the voltage and frequency of the grid deviate from the nominal value. Under given circumstances, we provide an ancillary service to the grid by transitioning one of the inverters to ESS for frequency support and another inverter to STATCOM to assist with voltage correction. This adjustment effectively mitigates deviations in the voltage and frequency of the grid, bringing them closer to their nominal values. In the last stage of the experiment, we assessed the system's response to sudden islanding. During islanding, both the ESS and STATCOM intervene to stabilize the frequency and voltage of the newly formed islanded grid. We further enhance the voltage and frequency stability of the islanded microgrid by switching the last GFL to GFM operation. We have detailed the statue of the inverters and the grid in the Table III. Additionally, FIG. 14 illustrates the effectiveness of proposed controllers, showing a smooth transition and satisfactory transient response during key moments outlined in Table III. In embodiments, at least one inverter operates in grid-forming mode to establish voltage and frequency reference, and the remaining inverters operate in grid-following, STATCOM, or ESS modes based on ancillary service requirements.

    [0168] Robustness to Line Impedance Variation: Proposed control design ensures robustness to changes in the line impedance. The Bode plots in FIG. 15a show that we consistently achieve a 60 phase margin and a 17 dB gain margin for both d and q open-loops regardless of mode of operation. Based on the definition of the modified plant in (23), this means that we can handle a decrease in the magnitude of the line impedance Z by a factor of 7 (19 dB). Conversely, increasing the magnitude of Z does not cause instability in any mode of operation. However, it is crucial to note that the phase for the q open-loop in GFL mode approaches 180 at lower frequencies. This implies that lowering the open-loop gain in the q axis not only reduces the closed-loop bandwidth but also leads to a smaller phase margin and increased oscillatory behavior. For example, a reduction of 19 dB in the gain of the q axis yields a new open-loop with a crossover frequency of 3 Hz and a phase margin of approximately 30, as illustrated in FIG. 15A. In our final demonstration of the robust stability, we design the controller for the nominal line impedance of L.sub.g=1 mH. Subsequently, we examine the closed-loop's response to a unit step change in the active current set-point across three different line impedances: L.sub.g=5 mH, L.sub.g=1 mH, and L.sub.g=200 H. The results in FIG. 15B and FIG. 15C show that the system operates stably in all three scenarios. However, there is a noticeable decrease in bandwidth when the inductance values are higher, and oscillatory behavior is observed in the GFL operation.

    Off Grid Operation

    [0169] The proposed control design enables a collection of inverters to establish an islanded microgrid if at least one inverter is set to operate in GFM mode or if the group includes at least one STATCOM and one ESS inverter.

    [0170] FIG. 16A, FIG. 16B, FIG. 16C, FIG. 16D are graphs illustrating, respectively, d-axis current, q-axis current, inverter voltage, and inverter frequency of a seamless transition of the set of inverters during on-grid operation at particular moments outline in Table IV according to some embodiments. A system for coordinated control of multiple inverters in a microgrid can include a plurality of inverters, each implementing the unified control framework, power sharing ratios determined by relative droop coefficients, mode assignment based on grid strength and power balance requirements, and seamless transition capability for individual inverters without affecting others.

    [0171] Seamless Transition and Power Sharing: We assess the seamless transition and power sharing in islanded operation by initially operating a set of three inverters in GFM mode with sharing ratios of .sub.1=0.22, .sub.2=0.33, .sub.3=0.45. Next, we doubled the resistive load and found that the inverters continued to share power effectively, though, as anticipated, this caused a droop in voltage. We then switched two of the inverters to GFL operation, which led to a further reduction in voltage. In the final step, by converting the remaining GFM inverter to an ideal VSI, we enhanced both the voltage and the frequency stability. Additionally, we demonstrate that slowing the rate at which the operational mode changes can minimize transients. The details of the grid are given in Table III. In embodiments, the operations include implementing a seamless transition between grid-connected and islanded operation without implementing control reconfiguration, islanding detection schemes, or communication-based coordination.

    TABLE-US-00004 TABLE IV Statue of inverters and load. i.sup.d.sub.0 i.sup.d.sub.0 t.sub.1 t.sub.2 t.sub.3 t.sub.4 inv 1 0.22 0.5 pu 0 pu GFM GFM GFM VSI inv 2 0.33 0.75 pu 0 pu GFM GFM GFL GFL inv 3 0.45 1 pu 0 pu GFM GFM GFL GFL Resistive Load 1 pu 2 pu 2 pu 2 pu

    [0172] Proposition 9.1: In practice, inverters must operate reliably despite uncertainties: the actual line impedance may differ from assumed values, grid frequency varies during disturbances, and measurement noise affects control signals. The following analysis establishes mathematical bounds that guarantee stable operation despite these uncertainties. The central challenge is that frequency variations create nonlinear coupling between the d and q axes-imagine two pendulums connected by a spring where the spring stiffness varies with time. We handle this by (i) bounding the maximum expected frequency deviation (.sub.max), (ii) treating the nonlinearity as a sector-bounded disturbance (contained within known limits), and (iii) deriving conditions on the controller that ensure stability for all disturbances within these bounds. This approach provides hard guarantees rather than just typical-case performance. The closed-loop system in FIG. 3 maintains stability under the effect of nonlinear term .sub.*(t, {right arrow over (y)}) in line dynamics of Equation (3) if (a) inverter frequency is bounded as ({dot over ()}.sub.0)[.sub.max, .sub.max], (b) G.sub.LS is stable, and (c) the following bound on 2-SISO sensitivity {tilde over (S)} holds

    [00131] .Math. S ( j ) .Math. 2 < .Math. c .Math. 2 - 1 max .Math. G L ( j ) .Math. 2 - 1 , ( 75 )

    [0173] Proof 9.1: Assume that the line dynamics G.sub.L and the feedback controller ={tilde over (K)}K.sub.L, as depicted in FIG. 3, are represented by the following state-space realization:

    [00132] d d t x g = A g x g - ( t , y g ) + y k , y g = x g ( 76 ) d d t x k = A k x k - B k y g , y k = C k x k + D k y g ( 77 )

    where {A.sub.k, B.sub.k, C.sub.k, D.sub.k} in Equation (77) represent the minimal realization of controller K. Moreover, A.sub.g and (, ) in Equation (76) denote the state-matrix and the nonlinear dynamic below

    [00133] A g = [ - R L 0 - 0 - R L ] , ( t , y g ) = ( t ) [ 0 - 1 1 0 ] [ y g d y g q ] ( 78 )

    [0174] Our primary objective is to ensure the stability of the closed-loop in FIG. 3, represented by the line and controller dynamics in Equation (76) and Equation (77), in the presence of nonlinear dynamics (, ). To establish a stability condition, we first reformulate the dynamics in Equation (76) and Equation (77) as the following LTI system

    [00134] d d t [ x g x k ] = [ A g + D k C k - B k A k ] [ x g x k ] + [ I 2 0 ] u ( 79 ) y = [ I 2 0 ] [ x g x k ]

    with the nonlinear feedback law.

    [00135] u = - ( t , y ) ( 80 )

    [0175] By representing the nonlinear line dynamics as the feedback nonlinearity in Equation (80), we can establish a sufficient stability condition using a sector-boundedness argument.

    [0176] The nonlinear element (t, y) belongs to the sector [K.sub.min, K.sub.max] if

    [00136] [ ( t , y ) - K min y ] T [ ( t , y ) - K max y ] 0 , t ( 81 )

    [0177] Assuming the maximum allowable deviation in the inverter's frequency from the nominal value is bounded as follow

    [00137] 0 - max < < 0 + max ( 82 ) [0178] then K.sub.max=I.sub.2.sub.max and K.sub.min=I.sub.2.sub.max provide one such sector bound for (, ) in Equation (78). Now we are ready to present the stability condition.

    [0179] Take G(s) as the transfer matrix realization of the state space model in Equation (79), then the sufficient conditions for the stability of the system in Equation (79) with the nonlinear feedback law in Equation (80) are as follows: G(s)(I.sub.2.sub.maxG(s)).sup.1(a) is stable, (b) Z(s) below is strictly positive real (SPR)

    [00138] Z ( s ) = ( I 2 + max G ( s ) ) ( I 2 - max G ( s ) ) - 1 ( 83 )

    [0180] We can simplify the stability of G(s)(I.sub.2.sub.maxG(s)).sup.1 and the SPR condition for Z(s) into the following sufficient conditions, which will be more useful for control design

    [00139] max .Math. G ( j ) .Math. < 1 ( 84 )

    and G(s) is stable. We demonstrate the sufficiency of the above condition by examining the three SPR conditions for Z(s), assuming that (84) holds [20].

    [0181] (a) The plot of det[I.sub.2.sub.maxG(j)] neither goes through nor circles the origin under the condition in Equation (84). Hence, by the multivariate Nyquist criterion, G(s)(I.sub.2.sub.maxG(s)).sup.1 and subsequently Z(s) is Hurwitz.

    [0182] (b) Z(j)+Z.sup.(j) is positive definite for all if (84) holds. Consider the following factorization

    [00140] Z ( j ) + Z T ( - j ) = 2 ( I 2 - max G T ( - j ) ) - 1 ( I 2 - max 2 G T ( - j ) G ( j ) ) ( I 2 - max G ( j ) ) - 1 ( 85 )

    [0183] Based on factorization above Z(j)+Z.sup.(j)>0 for all if and only if

    [00141] min ( I 2 - max 2 G T ( - j ) G ( j ) ) > 0 , ( 86 )

    where .sub.min is the smallest singular value. Note that this is indeed the case since 1(.sub.maxG(j).sub.).sup.2>0 fulfills following lower-bound

    [00142] min ( I 2 - max 2 G T ( - j ) G ( j ) ) > 1 - ( max .Math. G ( j ) .Math. ) 2 .

    [0184] (c) For strictly proper G(s) we have

    [00143] Z ( ) + Z T ( ) = 2 I 2 > 0 ( 87 )

    [0185] To establish practical design criteria for the feedback controller, we need to explicitly express G(s) in Equation (84) in terms of the relevant closed-loop transfer functions of FIG. 3. This can be done by noting that G.sub.LS has the same state-space realization as (79), or simply G(s)=G.sub.LS. Consequently, we can convert Equation (84) into a condition on the magnitude of the closed-loop sensitivity as follows:

    [00144] .Math. S ( j ) .Math. 2 < 1 max .Math. G L ( j ) .Math. 2 - 1 , ( 88 )

    As the final operation, we replace S with its factorization in terms of S from Proposition 3.2 to get the desired result in Equation (75). This robustness condition ensures the inverter remains stable even when the actual grid impedance differs from the assumed value, enabling weak grid operation. This limiting/bounding relates three factors: (1) how much coupling exists between d and q axes, (2) the maximum expected frequency deviation, and (3) the line impedance characteristics. Meeting this condition guarantees stable operation across a wide range of grid conditions. In some embodiments, a method for ensuring robust stability of grid-connected inverters under line impedance variations includes designing controllers for nominal line impedance; establishing gain and phase margins sufficient to handle impedance variations; implementing sensitivity shaping to bound coupling effects; and verifying stability through spectral radius conditions on closed-loop transfer matrices.

    [0186] This disclosure has demonstrated a seamless transition between different operating modes. The final step toward a truly unified inverter control system is to introduce a common synchronization mechanism. GFL-based and STATCOM-based systems typically synchronize with the grid voltage using the PLL, as shown in FIG. 17A, while GFM and ESS synchronize using a frequency droop scheme, such as a virtual inertia method shown in FIG. 17B, to achieve power synchronization. Consequently, switching between GFL/STATCOM and GFM/ESS modes has traditionally required changing the synchronization strategy.

    [0187] To address this, we leverage the parallel structure of the q-axis controller,

    [00145] K q = K 1 q + K 2 q ,

    in FIG. 3 and apply a disturbance rejection system to develop a mode-independent synchronization approach. This method also generalizes the concepts of inertia and the rate-of-change of frequency (RoCoF) by interpreting them as properties of the closed-loop transient response.

    Synchronization as Disturbance Rejection

    [0188] The following are general synchronization conditions that hold irrespective of mode of operation:

    [00146] ( a ) lim t .fwdarw. v c q = 0 , ( 89 ) ( b ) lim t .fwdarw. v 0 ( g - ) = 0.

    [0189] Condition (a) ensures that the capacitor voltage phasor {right arrow over (v)}.sub.c aligns with the d-axis in FIG. 2B, forcing

    [00147] v c q = 0.

    As a result, the following mapping between active/reactive power and the dq currents becomes decoupled:

    [00148] [ i 0 d i 0 q ] = 2 / 3 .Math. c .fwdarw. ( t ) .Math. 2 [ c d c q c q - c d ] [ P 0 Q 0 ] . ( 90 )

    [0190] Condition (b) ensures that the dq rotating frame achieves frequency lock with the grid frequency {dot over ()}.sub.g. In this work, we use condition (b) expressed in terms of the input disturbance d.sup.q and the control effort u.sub. from FIG. 3 as follows:

    [00149] lim t .fwdarw. 0 ( ( g - 0 ) - ( - 0 ) ) = lim t .fwdarw. d d t ( 0 g - d t ) lim t .fwdarw. d d t ( d q - u ) ( 91 )

    [0191] Here, the final approximation follows from the definitions of d.sup.q and u.sub. in (12) and (13).

    [0192] To convert synchronization conditions in (89) into closed-loop control design criteria, we apply the final value theorem to part (a) of (89) and the equivalent of condition (b) from (91), yielding:

    [00150] ( a ) lim s .fwdarw. 0 s c q = 0 , ( b ) lim s .fwdarw. 0 s 2 ( d q - u ^ ) = 0. ( 92 )

    [0193] Referring to the closed-loop block diagram in FIG. 3 and related closed-loop error dynamic, the following relations hold between the exogenous inputs, {.sup.q, {circumflex over (d)}.sup.q}, and

    [00151] { c q , u ^ } :

    [00152] c q = K 1 q e ^ q = T ( K 1 q / K 2 q ) ( i ^ 0 q / G M q + d q ) , ( 93 ) u ^ = K 2 q e ^ q = T ( i ^ 0 q / G M q + d q ) , ( 94 ) [0194] where the transfer function T.sub. is given by:

    [00153] T = G M q K 2 q S q = G M q K 2 q 1 + G M q ( K 1 q + K 2 q ) , ( 95 )

    [0195] Substituting

    [00154] c q

    and .sub. from (93) and (94) into the Laplace-domain synchronization conditions in (92) yields:

    [00155] ( a ) lim s .fwdarw. 0 sT ( K 1 q / K 2 q ) ( i ^ 0 q / G M q + d q ) = 0 , ( 96 ) ( b ) lim s .fwdarw. 0 s 2 ( ( 1 - T ) d q - T i ^ 0 q / G M q ) = 0 , ( 97 )

    which reformulates the synchronization requirements in terms of T.sub. from (95) and the ratio of feedback controllers

    [00156] K 1 q / K 2 q .

    Although these expressions may appear complex, they result in a simple synchronization condition, expressed purely in terms of

    [00157] K 1 q and K 2 q .

    [0196] Proposition 7.1: Synchronization is achieved for any operating mode if

    [00158] K 2 q

    includes at least one pole at the origin (i.e., one integrator), and the ratio of two parallel q-axis controllers

    [00159] K 1 q / K 2 q ,

    has at least two zeros at the origin.

    B. Inertia, RoCoF and Frequency Transient Response

    [0197] The transient characteristics of an inverter's frequency response are commonly evaluated using two key metrics: the frequency nadir, .sub.nadir, and the rate of change of frequency (RoCoF), both measured following a disturbance such as a sudden change in load. These metrics are formally defined as:

    [00160] n a d i r = max t > t 0 .Math. "\[LeftBracketingBar]" ( t 0 ) - ( t ) .Math. "\[RightBracketingBar]" , RoCoF T ( T + t 0 ) - ( t 0 ) T , ( 98 )

    where t.sub.0 represents the instant of the disturbance, and T is the time window for the calculation of the RoCoF, which typically varies from 100 to 500 ms [30].

    [0198] In the disclosed system, T.sub. in (95) is the transfer function between the grid's frequency deviation .sub.g and inverter's frequency deviation :

    [00161] = T g . ( 99 )

    [0199] As a result, the step-response characteristics of T.sub., such as the peak time t.sub.p and the maximum overshoot M.sub.p, naturally generalize key concepts such as RoCoF, inertia and frequency nadir for the inverter system.

    [0200] To shape the transient response and meet specific inertia and RoCoF requirements, we use the loop-shaping technique. We start by expressing T.sub. from (73) in closed-loop form, where the corresponding loop transfer function L.sub.(s) is defined as:

    [00162] T = L ( s ) 1 + L ( s ) , L ( s ) = G M q K 2 q 1 + G M q K 1 q . ( 100 )

    [0201] Moreover, let us assume that through an appropriate design of the controllers

    [00163] K 1 q and K 2 q

    in (100), the open-loop transfer function L.sub.(s) takes the following parametric form:

    [00164] L ( s ) = k s ( s + s + ) ( 1 s + f ) , ( 101 ) [0202] where k.sub., .sub., .sub., and .sub.f are tunable parameters. These parameters set the open-loop gain crossover frequency .sub.gc, phase margin .sub.pm, and low-frequency gain, thus determining the transient and steady-state response of T.sub..

    [0203] Typically, achieving a desired transient response involves adjusting the phase margin .sub.pm and .sub.gc for L.sub.(s) through trial and error. This adjustment is based on the principle that .sub.pm is proportional to the overall damping of the system, whereas .sub.gc is inversely proportional to the system's inertia.

    [0204] A more systematic approach involves establishing approximate, yet insightful links between .sub.pm, .sub.gc, and key transient performance metrics using a simplified surrogate second-order system. Specifically, we approximate T.sub. and its open-loop transfer function L.sub. using the following second-order system, with open-loop transfer function L.sub.so:

    [00165] n 2 s 2 + 2 n s + n 2 = L so ( s ) 1 + L so ( s ) , L so ( s ) = n 2 s ( s + 2 n ) , ( 102 )

    [0205] In some embodiments, the operations further comprise deriving parameters for the virtual inertia control from a surrogate second-order system model relating a phase margin to system damping and relating a gain crossover frequency to virtual inertia constant. This surrogate model can yield convenient closed-form solutions in terms of damping ratio and natural frequency .sub.n for several key parameters:

    [0206] 1) Step-response characteristics: For an underdamped system with (<1, the peak time t.sub.p, and maximum overshoot M.sub.p are given by

    [00166] t p = n 1 - 2 , M p = exp ( - 1 - 2 ) . ( 103 )

    [0207] 2) Swing equation representation: The second-order system also represents the following linearized swing equation for the dq-frame rotating angle :

    [00167] 2 H 0 .Math. + D 0 . = v 0 2 cos 0 ZS base ( g - + 0 ) , ( 104 )

    where, .sub.0 and v.sub.0 are nominal voltage and frequency, S.sub.base is base power, Z is the line impedance, and .sub.0 is the load angle for nominal power P.sub.0, defined as

    [00168] 0 = sin - 1 ( ZP 0 / v 0 2 ) .

    The inertia constant H and the damping D are given by

    [00169] H = v 0 2 0 cos 0 2 n 2 ZS base , D = 2 v 0 2 0 cos 0 n ZS base ( 105 )

    [0208] 3) Open-loop .sub.pm and .sub.gc: For the open-loop transfer function L.sub.so(s) in (80), the gain crossover frequency .sub.gc and phase margin .sub.pm are

    [00170] gc = n 1 + 4 4 - 2 2 , ( 106 ) pm = tan - 1 2 1 + 4 4 - 2 2 . ( 107 )

    [0209] In the following proposition, we use these expressions to facilitate a direct linkage between phase margin, gain crossover frequency, and the system's transient characteristics (e.g., frequency nadir, inertia, and rate of change of frequency).

    [0210] Proposition 7.2: (a) For L.sub.(s) in (101), a good initial choice for the open-loop phase margin .sub.pm and the gain crossover frequency .sub.gc can be determined by examining the following transient characteristics.

    [0211] 1) Frequency nadir: For a given grid frequency deviation .sub.g, the inverter experiences a frequency nadir

    [00171] nadir = ( 1 + M p ) g ( 108 ) [0212] where the overshoot M.sub.p is related to the phase margin .sub.pm through the damping ratio as follows:

    [00172] = .Math. "\[LeftBracketingBar]" ln M p .Math. "\[RightBracketingBar]" 2 + ln 2 M p , pm = tan - 1 2 1 + 4 4 - 2 2 . ( 109 )

    [0213] This relationship determines the required phase margin based on the desired overshoot for underdamped system <1.

    [0214] 2) Virtual inertia: To achieve the desired inertia constant H, the gain crossover frequency should be initialized as

    [00173] gc v 0 0 cos 0 2 HZS base 1 + 4 4 - 2 2 ( 110 ) [0215] where Z is the transmission line impedance, and is determined from (87).

    [0216] 3) RoCoF: Given the damping ratio (gain crossover frequency .sub.gc, overshoot M.sub.p, and grid frequency deviation .sub.g, the RoCoF can be roughly calculated as:

    [00174] RoCoF t p ( g ) gc ( 1 + M p ) 1 - 2 1 + 4 4 - 2 2 g rad / s 2 ( 111 )

    for the time window t.sub.p (peak time).

    [0217] (b) The open-loop parameters k.sub., .sub., .sub., and .sub.f in (101) are determined by solving the following set of equations:

    [00175] pm = tan - 1 f gc + tan - 1 gc - tan - 1 gc , ( 112 ) k = gc ( gc 2 + f 2 ) ( gc 2 + 2 ) / ( gc 2 + 2 ) , ( 113 ) = v 0 f G M q ( j 0 ) k ( 1 ) , max { , } gc . ( 114 )

    [0218] Here, the phase margin .sub.pm and the gain crossover frequency .sub.gc are calculated based on the transient requirements specified in part (a). The parameter .sub. characterizes the steady-state operation and sets the ratio .sub./.sub..

    [0219] We introduced a novel synchronization condition and outlined a loop-shaping method to design for the desired frequency transient response. However, we have not yet presented a specific design for the controllers

    [00176] K 1 q and K 2 q

    that simultaneously satisfy the synchronization conditions in Proposition 7.1 and shape L.sub. for inertia, RoCoF, and related transient requirements. The next section addresses these requirements in detail as part of the control design.

    [0220] We have developed a comprehensive control design system for analyzing both stability and performance. In this section, we present an example controller design for K.sub.L,

    [00177] K d , K 1 d and K 2 q

    in FIG. 3, that meets the specified stability and performance requirements.

    A. Design of the Plant Shaping Controller K.SUB.L

    [0221] As discussed in Sections III-C and IV, K.sub.L mitigates the impact of MIMO coupling on closed-loop stability and performance. We proposed two designs for K.sub.L in (22) and (32). The choice of K.sub.L in (22) provides stronger stability margins and yields the following SISO plants for the d- and q-axes:

    [00178] G M d = 1 Z ( m s + m ) , G M q = 1 Z ( m s + m ) , ( 115 ) [0222] where Z denotes the line impedance. In contrast, the choice of K.sub.L in (32) compromises the stability margin in exchange for improved active power tracking under complex line impedances. This choice of K.sub.L yields the following SISO plants for the d- and q-axes:

    [00179] G M d = 1 Z ( m s + m ) , G M q = sin z Z ( m s + m ) , ( 116 )

    where .sub.z denotes the line impedance angle.

    [0223] Once the appropriate K.sub.L is selected, the control design is simplified to two independent SISO problems for the d- and q-axes. For each axis, the corresponding SISO plants

    [00180] G M d and G M q

    follow from (115) or (116) depending on the choice of K.sub.L.
    B. Design of the d-Axis Controller K.sup.d

    [0224] In the d-axis,

    [00181] K d G M d

    represents the open-loop transfer function for both the sensitivity S.sup.d in (49), and the complementary sensitivity T.sup.d in (117).

    [00182] T = [ T d 0 0 T q ] [ ( 1 + K q G M d ) - 1 0 0 S q K q G M q ] ( 117 )

    [0225] Therefore, K.sup.d can be designed using classical loop-shaping techniques. In this work, we adopt the following structure for K.sup.d:

    [00183] K d = ( s + v s + v ) ( K PR G m d ) ( k d ( s + 1 ) ( s + 2 ) 2 ) K rem d ( s ) , ( 118 )

    and outline a procedure for tuning the controller parameters.

    [0226] 1) PR compensator: As outlined previously, the set of PR compensators K.sub.PR from (44) is included to improve stability, suppress THD, and enable fault ride-through.

    [0227] 2) Bandwidth and stability: Robust stability is ensured if the open-loop transfer function

    [00184] K d G M d

    maintains a phrase margin .sub.pm>50 at the gain crossover frequency .sub.d. By selecting the gain crossover frequency .sub.d sufficiently higher than max{.sub.v, .sub.v}, the desired phase margin is achieved if the parameters k.sub.d, .sub.1, and .sub.2 satisfy:

    [00185] pm - K PR ( j d ) - 2 tan - 1 2 d + tan - 1 d 1 = 0 ( 119 )

    [00186] k d - .Math. K PR ( j d ) .Math. 2 ( 1 2 + d 2 ) ( 2 2 + d 2 ) = 0 ( 120 )

    [0228] Since these equations involve three unknown parameters, obtaining a unique solution requires fixing one parameter, typically .sub.1. A practical rule is to choose .sub.1 below the crossover frequency .sub.d, but slightly above the highest resonant frequency of K.sub.PR.

    [00187] v v = G M d ( j 0 ) / v - 1 G M d ( j 0 ) / K rem d ( j 0 ) , ( 121 ) = 1 / v 0 K rem q ( j 0 )

    [0229] 3) Steady-state operation mode: The steady-state operating mode is uniquely determined by the pair (.sub.v, .sub.). To achieve the desired .sub.v, the controller parameters .sub.v and .sub.v are obtained by substituting

    [00188] K rem d ( s )

    from (118) into (121):

    [00189] v v = 1 2 2 k d ( 1 / v Z - 1 ) , max { v , v } << d . ( 122 )

    [0230] Here, the parameters k.sub.d, .sub.1, and .sub.2 have already been determined by the phase margin requirement.

    [00190] [ i g d i g q ] = [ i 0 d i 0 q ] - [ v 0 0 ] [ v g g ] . ( 123 )

    According to (123), 1/.sub.v also represents the voltage droop coefficient. To avoid negative values for .sub.v or .sub.v, we must have 1/.sub.vZ, implying that the voltage droop coefficient is bounded below by the line impedance.
    C. Design for the q-Axis Controllers

    [00191] K 1 q and K 2 q

    [0231] The q-axis controller, K.sup.q, comprises two parallel controllers,

    [00192] K 1 q and K 2 q ,

    as shown in FIG. 3. Consequently, achieving stability and control objectives for the q-axis requires the concurrent design of both

    [00193] K 1 q and K 2 q .

    Specifically, a successful design must address three key challenges:

    [0232] 1)

    [00194] K q = K 1 q + K 2 q

    and results in a stable sensitivity transfer function S.sup.q, as defined in (21). Moreover, S.sup.q must provide sufficient attenuation of exogenous inputs to enhance current tracking performance, as discussed in Section V.

    [0233] 2)

    [00195] K 1 q and K 2 q

    shape the open-loop transfer function L.sub.(s), as defined in (100), into the specific form presented in (101) to achieve the desired inertia and RoCoF response.

    [0234] 3)

    [00196] K 1 q and K 2 q

    meet the synchronization condition outlined in Proposition 7.1.

    [0235] Designing a two-degree-of-freedom (2-DOF) controller that meets all the aforementioned objectives can be quite challenging. However, by introducing suitable auxiliary variables, the 2-DOF design problem can be transformed into a simpler 1-DOF control design. In this case, we define the following sensitivity transfer functions as auxiliary variables:

    [00197] S = 1 1 + L ( s ) , S = 1 1 + G M q K 1 q . ( 124 )

    [0236] Using the definitions of L.sub. in (100) and S.sub. in (124), we can express

    [00198] K 1 q and K 2 q

    in terms of L.sub. and S.sub. as follows:

    [00199] K 1 q = 1 - S G M q S , K 2 q = L G M q S . ( 125 )

    [0237] An important feature of this formulation is that, for a given transient requirement (e.g. inertia, nadir, and RoCoF), L.sub.(s) in (125) is entirely determined by Proposition 7.2.

    [0238] As a result, the control design is reduced to a single degree-of-freedom, which involves shaping S.sub. to satisfy the q-axis control objectives. Once S.sub. is determined, both

    [00200] K 1 q and K 2 q

    are fully specified by (125). In what follows, we express these objectives in terms of S.sub. and present the corresponding design criteria.

    [0239] 1) Synchronization: The synchronization condition in Proposition 7.1 can be reformulated in terms of S.sub. by expressing the ratio of two controllers in (100) as:

    [00201] K 1 q K 2 q = 1 - S L ( 126 )

    [0240] According to (101), 1/L.sub. has a zero at the origin. Therefore, to satisfy the condition in Proposition 7.1, it is necessary and sufficient that 1S.sub.(j0)=0, i.e., S.sub.(j0)=1.

    [0241] Furthermore, since

    [00202] G M q

    is strictly proper and

    [00203] K 1 q

    is a proper transfer function, it follows from the definition of S.sub. in (122) that S.sub.(s).fwdarw.1 as s.fwdarw.. As a result, S.sub. must satisfy the following limiting conditions:

    [00204] lim s .fwdarw. 0 S ( s ) = lim s .fwdarw. S ( s ) = 1 ( 127 )

    [0242] This ensures that S.sub. complies with the synchronization condition while remaining consistent with the underlying closed-loop dynamics.

    [0243] 2) Robust stability: The q-axis plant model,

    [00205] G M q ,

    is subject to perturbations arising from unmodeled dynamics, neglected nonlinearities, and parameter variations, particularly under weak grid conditions. These perturbations can adversely impact two key q-axis transfer functions: T.sup.q in (117) which is the closed-loop transfer function between the current setpoint

    [00206] i 0 q

    and the grid current

    [00207] i g g

    (see (15)), and T.sub.(78) which characterizes the transient frequency response of the inverter.

    [0244] The relative sensitivity of the transfer functions T.sub.(s) and T.sup.q(s) to perturbations in the plant model

    [00208] G M q

    can be mathematically quantified using their normalized derivatives with respect to

    [00209] G M q :

    [00210] G M q T ( d T d G M q ) = S S , G M q T q ( d T q d G M q ) = S S , ( 128 )

    where S.sub. and S.sub. are the same as (124). The product S.sub.S.sub. in (103) serves as a unique measure of the robustness to model perturbations. Specifically, if

    [00211] .Math. S ( j ) S ( j ) .Math. 2 < 1 , [ 1 , 2 ] , ( 129 )

    then, within the frequency range [.sub.1, .sub.2], the relative deviations of T.sub.(s) and T.sup.q(s) from their nominal transfer functions remain small, even under variations in

    [00212] G M q .

    Consequently, T.sub.(s) and T.sup.q(s) preserve their stability and performance characteristics even under plant perturbations. This is particularly important in weak grid operation, where impedance variations are common.

    [0245] 3) Disturbance rejection: In addition to its robustness implications, the product S.sub.S.sub. also directly influences closed-loop performance. In embodiments, the q-axis sensitivity S.sup.q can be expressed as:

    [00213] S q = 1 1 + G M q ( K 1 q + K 2 q ) = 1 / ( 1 + G M q K 1 q ) 1 + L ( s ) = S S . ( 130 )

    Substituting S.sup.q=S.sub.S.sub. yields the following upper bound on the q-axis current tracking error:

    [00214] .Math. e q ( ) .Math. 2 .Math. S ( j ) S ( j ) .Math. 2 .Math. i 0 q ( ) + G M q d q ( ) .Math. 2 . ( 131 )

    The upper bound reveals that the robustness condition in (129) also serves as a direct measure of disturbance attenuation. In other words, smaller values of |S.sub.(j)S.sub.(j).sub.2 result in better suppression of the impact of exogenous inputs on the current tracking error, thereby enhancing q-axis current regulation.

    [0246] 4) Inertial design: Choosing a large inertia constant H to achieve pronounced virtual inertia places constraints on the q-axis control design. Specifically, as the inertia constant H increases, the gain crossover frequency .sub.gc of L.sub.(s) defined in (110) decreases (see FIG. 18).

    [0247] Consequently, the ability of S.sub. to contribute to robustness and disturbance rejection, as described in (127), is reduced at frequencies higher than .sub.gc. More precisely, based on the definition of S.sub. in (100), and as shown in FIG. 18, for frequencies above .sub.gc, we have:

    [00215] S ( j ) 1 .Math. .Math. S ( j ) S ( j ) .Math. 2 .Math. S ( j ) .Math. 2 ( 132 )

    [0248] This indicates that for >.sub.gc, the magnitude of the product S.sub.S.sub.=S.sup.q is primarily governed by S.sub. as shown in FIG. 18. Therefore, to satisfy the robustness criterion in (129) and improve disturbance rejection above this frequency range, it is crucial that S.sub.(j).sub.2 remains small for w>.sub.gc.

    [0249] Remark 9: The key takeaway from the preceding analysis is that achieving robust stability and effective disturbance rejection, particularly in high-inertia designs, requires S.sub..sub.2 to remain small within a specific frequency band. This band starts well below the gain crossover frequency .sub.gc of L.sub.(s) (defined in (110)) and extends up to the desired q-axis bandwidth .sub.q, above .sub.gc. Furthermore, S.sub. must approach unity at both DC and high frequencies to satisfy the synchronization and consistency condition in (127). Consequently, the transfer function of S.sub. exhibits the characteristics of a unity-gain bandstop filter as shown in FIG. 18.

    [0250] Proposition 8.1: The characteristics of S.sub. highlighted in Remark 9 lead to three key design criteria for

    [00216] K 1 q :

    [0251] 1) Synchronization: To ensure that S.sub. satisfies the synchronization condition in (102), the controller

    [00217] K 1 q

    must be a proper transfer function that includes a zero at the origin.

    [0252] 2) Robustness and disturbance rejection: To minimize S.sub..sub.2 within the frequency range [.sub.L, .sub.q], and thereby improve robustness and disturbance rejection (see (129)), the corresponding open-loop transfer function

    [00218] L = G M q K 1 q

    should be shaped as a passband filter. In particular, L.sub. should exhibit gain crossover at frequencies .sub.L, and .sub.q (i.e., L.sub.(j.sub.L).sub.2=L.sub.(j.sub.q).sub.2=1, and achieve midband gain A.sub.F>1, as shown in FIG. 18.

    [0253] To promote robust stability margins, the frequency range [.sub.L, .sub.q] should begin well below .sub.gc in (110), and extend beyond it to the desired q-axis bandwidth .sub.g.

    [0254] 3 Stability: To ensure robust stability of S.sub., the open-loop

    [00219] L = G M q K 1 q

    should maintain a phase margin .sub.pm of at least 50 at the upper crossover frequency .sub.q.

    [0255] To satisfy the conditions outlined in Proposition 8.1, we present the following sample design for

    [00220] K 1 q :

    [00221] K 1 q = ( K PR G M q ) ( s s + 1 ) ( k q ( s + 2 ) ( s + 3 ) 2 ) , ( 133 )

    [0256] This controller is strictly proper and includes a zero at the origin. Therefore, the design task simplifies to selecting the parameters .sub.1, .sub.2, .sub.3 and k.sub.q such that

    [00222] L = G M q K 1 q

    forms a bandpass profile, with gain crossover at frequencies .sub.L and .sub.q and a midband gain A.sub.F>1, as shown in FIG. 18.

    [0257] For desired q-axis bandwidth .sub.q, midband gain A.sub.F, and phase margin .sub.pm, the parameters .sub.2 and .sub.3 are determined by solving the following system of equations:

    [00223] pm - 2 tan - 1 ( 3 / q ) + tan - 1 ( q / 2 ) = 0 , ( 134 ) A F - ( 1 + ( q / 3 ) 2 ) 1 + ( q / 2 ) 2 = 0. ( 135 )

    [0258] After .sub.2 and .sub.3 are computed, k.sub.q and .sub.1 are obtained as:

    [00224] k q = A F 2 3 2 , 1 = L A F 2 - 1 . ( 136 )

    [0259] If .sub.1>.sub.2, then .sub.L must be decreased to ensure .sub.1<.sub.2.

    [0260] Once the controller

    [00225] K 1 q

    has been fully designed, its parallel counterpart

    [00226] K 2 q

    is directly given by:

    [00227] K 2 q = ( s + s ( s + ) ) ( k G M q ) ( 1 + G M q K 1 q s + f ) , ( 137 )

    where all parameters are specified according to Proposition 7.2 to achieve the desired frequency transient response.

    [0261] In some embodiments, a method for designing q-axis controllers for inverter synchronization and frequency response includes specifying desired inertia constant and rate of change of frequency limits and determining open-loop transfer function parameters from transient requirements. The method can further include decomposing two-degree-of-freedom control into auxiliary sensitivity functions and shaping sensitivity functions to satisfy synchronization, robustness, and disturbance rejection criteria. The method can conclude with implementing controllers through cascaded control structure with appropriate compensators.

    [0262] Remark 10: Increasing the midband gain A.sub.F improves disturbance rejection and robust stability, but at the cost of voltage quality. This trade-off can be quantified by the transfer function between the q-axis disturbance d.sup.q and

    [00228] v c q :

    [00229] v c q = S ( 1 - S ) d q .Math. [ gc , q ] v c q A F 1 + A F d q . ( 138 )

    [0263] As A.sub.F increases, the disturbance-to-voltage path approaches unity within the band [.sub.gc, .sub.q], compromising voltage quality despite improved robustness.

    [0264] In the following section, we will provide details on implementing these controllers using inverter closed-loop dynamics and discuss practical deployment on an embedded device.

    DSP Implementation

    [0265] The closed-loop block diagram in FIG. 3 is helpful for control design and analysis but does not represent the embedded implementation of the feedback controller. This section provides a brief overview of control implementation on a real-time embedded device.

    [0266] FIG. 19A shows a typical three-phase DC/AC inverter connected to the grid via an LCL filter. Vector switching signals {{right arrow over (s.sub.a)}, {right arrow over (s.sub.b)}, {right arrow over (s.sub.c)}} contain the gating signals for the switches in each of the three-phase legs. These switching signals are generated by the DSP and serve as the only control input from the DSP to the physical hardware. On the sensing side, three measurements are taken from the inverter: the DC input port voltage v.sub.dc, the filter inductor current i.sub.Labc, capacitor voltage v.sub.cabc, and the grid-side current i.sub.gabc. These per-phase measurements in the abc frame are transformed into their dq frame equivalents, {right arrow over (i.sub.L)}, {right arrow over (v.sub.c)}, and {right arrow over (i.sub.g)}, using the abc to dq (Park) transform, which utilizes the angle generated by the control algorithm.

    [0267] FIG. 19B shows the embedded implementation of the controllers and the corresponding signal flow. Note that K.sub.L and

    [00230] K 2 q

    are directly implemented, while K.sup.d and

    [00231] K 1 q

    are implemented indirectly via K.sub.c, K.sub.v and K.sub.i. As shown in FIG. 19B, the switching signals {{right arrow over (s.sub.a)}, {right arrow over (s.sub.b)}, {right arrow over (s.sub.c)}} are generated by first applying the dq to transform to the modulation signal {right arrow over (m)} and subsequently generating the abc switching signals using SVPWM method.

    [0268] It is important to note that the original feedback controller, as shown in FIG. 5 does not directly include the modulation signal {right arrow over (m)} or the dq frame angle required for the Park and inverse Park transform. This is because these signals were embedded in the control signals {right arrow over (u.sub.i)}, and u.sub. to simplify control design and analysis. However, FIG. 19B explicitly shows how the modulation signal m is recovered from the control signal {right arrow over (u.sub.i )} based on (139).

    [00232] m ^ .fwdarw. = 2 v dc ( u ^ i .fwdarw. + v ^ c .fwdarw. + { L s . [ - i L q , i L d ] T } ) , ( 139 )

    [0269] Furthermore, according to Proposition 3.1, the control signal u.sub. from

    [00233] K 2 q

    encodes the dq rotating angle . Therefore, in practice, u.sub. is implemented indirectly through as follows

    [00234] ( t ) = 0 t + 1 v 0 u ( t ) ( mod ) ( 2 ) . ( 140 )

    X. Employing Seamless Transition to Achieve Current Limiting Operation in GFM Inverters

    [0270] Synchronous generators can tolerate overcurrent up to five times their rated value for short periods. Furthermore, standards such as IEC 60034-1 require that AC generators with rated output below 1200 MVA must withstand currents equal to 1.5 times their rated current for at least 30 seconds. In contrast, switched devices such as IGBTs, MOSFETs, and GaNs can only endure short overcurrent spikes of only 1.5 to 2 times their rated current for very brief periods, typically in the range of milliseconds.

    [0271] This limited overcurrent capability is particularly challenging in GFM operation, where we lack the high bandwidth and precise control over the output current that GFL inverters provide. As a result, GFM inverters are more susceptible to sudden overcurrent transients caused by fluctuations in grid voltage and frequency. This limitation makes it difficult to create a robust, GFM-powered grid that can effectively withstand overcurrent conditions.

    [0272] The seamless transition system offers an effective solution for the GFM current-limiting operation by gradually shifting the inverter's operation toward the GFL mode as the inverter's output current approaches the predefined current limit. This shift to GFL operation enables more accurate control over the output current near the current limit, allowing for a reliable current-limiting operation.

    [0273] We implement the GFM-to-GFL transition by scaling the inverter's operation mode parameters (.sub.v, .sub.) using a log-barrier function that depends on the ratio of the inverter's output current to maximum allowable current, {right arrow over (i)}/i.sub.max as shown below:

    [00235] [ v 0 0 ] ( .Math. .fwdarw. ) = [ v * 0 0 * ] / ( 1 - log ( 1 - .Math. i .fwdarw. .Math. / i max ) / t ) ( 141 )

    [0274] Here,

    [00236] ( v * , * )

    are constants representing the inverter's nominal operating mode when the output current remains within safe limits. The parameter i.sub.max sets the desired current limit, while .sub.t adjusts the sharpness of the mode transition. As the inverter's output current magnitude {right arrow over (i)}/i.sub.max approaches imax, the log-barrier function in (137) tends toward infinity, scaling (.sub.v, .sub.) from the initial value of

    [00237] ( v * , * )

    down to zero. This pushes the inverter's operation point towards (0, 0), indicating a transition towards GFL mode, as illustrated in FIG. 9.

    [0275] We conclude our analysis by examining how the current-limiting law in (137) shapes the current response of the GFM inverter to grid voltage and frequency deviations. By substituting (140) into (123), we obtain the 3D surface shown in FIG. 12a, which illustrates how the magnitude of the inverter's output current varies with changes in grid voltage and v, frequency .

    [0276] As shown in FIG. 20A, the GFM inverter preserves its typical droop characteristics when grid voltage and frequency deviations are small. However, with larger deviations, the output current reaches the maximum limit i.sub.max instead of increasing indefinitely. This behavior is further illustrated by examining two specific cross-sections of the 3D surface: one with the i.sup.d=0 plane (blue) and the other with i.sup.q=0 (magenta). As shown in FIG. 20B and FIG. 20C, these cross sections reveal that .sub.v and .sub. define the inverse droop slope for small deviations, while for larger deviations, the slope approaches zero, capping the output current at i.sub.max. The current limiting mechanism works like an automatic transmission that shifts gears as load increases. As output current approaches the safety limit, the log-barrier function smoothly transitions the inverter from grid-forming (voltage source) behavior toward grid-following (current source) behavior. This provides the precise current control needed to prevent overcurrent damage while maintaining continuous operation.

    [0277] In some embodiments, the operations further comprise implementing current limiting operation by dynamically adjusting operating mode parameters using a barrier function based on a ratio of output current to a maximum allowable current. In embodiments, wherein the barrier function causes transition toward a grid-following mode as grid current approaches the maximum allowable current. In embodiments, the barrier function includes a logarithmic barrier that scales operating mode parameters inversely with proximity to the maximum allowable current.

    [0278] Remark 12: Implementing a log-function directly in DSP consumes unnecessary computational resources, with minimal benefit compared to using a lookup table. Therefore, we recommend tabulating the scaling factor in (141) for a finite set of values of {right arrow over (i)}/i.sub.max within the interval (0, 1], and then interpolating these values instead of recalculating the logarithm each time.

    [0279] FIG. 21 illustrates a block diagram illustrating an exemplary computer device 2100 (or computing device or computing system), in accordance with implementations of the present disclosure. Computer device 2100 can, for example, implement the distributed grid control system, as described above, to include the inverter controller 130 (FIG. 1). Example computer device 2100 can be connected to other computer devices in a LAN, an intranet, an extranet, and/or the Internet. Computer device 2100 can operate in the capacity of a server in a client-server network environment. Computer device 2100 can be a personal computer (PC), a set-top box (STB), a server, a network router, switch or bridge, or any device capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that device. Further, while only a single example computer device is illustrated, the term computer shall also be taken to include any collection of computers that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methods discussed herein.

    [0280] Example computer device 2100 can include a processing device 2102 (also referred to as a processor, central processing unit (CPU), or graphics processing unit (GPU)), a volatile memory 2104 (or main memory, e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM), etc.), a non-volatile memory 2106 (e.g., flash memory, static random access memory (SRAM), etc.), and a secondary memory (e.g., a data storage device 2116), which can communicate with each other via a bus 2130.

    [0281] Processing device 2102 (which can include processing logic 2122) represents one or more general-purpose processing devices such as a microprocessor, central processing unit, or the like. More particularly, processing device 2102 can be a complex instruction set computing (CISC) microprocessor, reduced instruction set computing (RISC) microprocessor, very long instruction word (VLIW) microprocessor, processor implementing other instruction sets, or processors implementing a combination of instruction sets. Processing device 2102 can also be one or more special-purpose processing devices such as an ASIC, a FPGA, a digital signal processor (DSP), network processor, or the like. In accordance with one or more aspects of the present disclosure, processing device 2102 can be configured to execute instructions performing the method disclosed herein.

    [0282] Example computer device 2100 can further comprise a network interface device 2108, which can be communicatively coupled to a network 2120. Example computer device 2100 can further comprise a video display 2110 (e.g., a liquid crystal display (LCD), a touch screen, or a cathode ray tube (CRT)), an alphanumeric input device 2112 (e.g., a keyboard), a cursor control device 2114 (e.g., a mouse), and an acoustic signal generation device 2118 (e.g., a speaker).

    [0283] Data storage device 2116 can include a computer-readable storage medium (or, more specifically, a non-transitory computer-readable storage medium) 2124 on which is stored one or more sets of executable instructions 2126. In accordance with one or more aspects of the present disclosure, executable instructions 2126 can comprise executable instructions performing the method disclosed herein.

    [0284] Executable instructions 2126 can also reside, completely or at least partially, within volatile memory 2104 and/or within processing device 2102 during execution thereof by example computer device 2100, volatile memory 2104 and processing device 2102 also constituting computer-readable storage media. Executable instructions 2126 can further be transmitted or received over a network via network interface device 2108.

    [0285] While the computer-readable storage medium 2124 is shown in FIG. 21 as a single medium, the term computer-readable storage medium or non-transitory computer-readable storage medium storing instructions or computer-readable instructions should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, and/or associated caches and servers) that store the one or more sets of operating instructions. The term computer-readable storage medium shall also be taken to include any medium that is capable of storing or encoding a set of instructions for execution by the machine that cause the machine to perform any one or more of the methods described herein. The term computer-readable storage medium shall accordingly be taken to include, but not be limited to, solid-state memories, and optical and magnetic media.

    [0286] Some portions of the detailed descriptions above are presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

    [0287] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as identifying, determining, storing, adjusting, causing, returning, comparing, creating, stopping, loading, copying, throwing, replacing, performing, or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.

    [0288] Examples of the present disclosure also relate to an apparatus for performing the methods described herein. This apparatus can be specially constructed for the required purposes, or it can be a general-purpose computer system selectively programmed by a computer program stored in the computer system. Such a computer program can be stored in a computer readable storage medium, such as, but not limited to, any type of disk including optical disks, CD-ROMs, and magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMS, EEPROMs, magnetic disk storage media, optical storage media, flash memory devices, other type of machine-accessible storage media, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus.

    [0289] The methods and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems can be used with programs in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will appear as set forth in the description below. In addition, the scope of the present disclosure is not limited to any particular programming language. It will be appreciated that a variety of programming languages can be used to implement the teachings of the present disclosure.

    [0290] It is to be understood that the above description is intended to be illustrative, and not restrictive. Many other implementation examples will be apparent to those of skill in the art upon reading and understanding the above description. Although the present disclosure describes specific examples, it will be recognized that the systems and methods of the present disclosure are not limited to the examples described herein, but can be practiced with modifications within the scope of the appended claims. Accordingly, the specification and drawings are to be regarded in an illustrative sense rather than a restrictive sense. The scope of the present disclosure should, therefore, be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.

    [0291] Other variations are within the scope of the present disclosure. Thus, while disclosed techniques are susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in drawings and have been described above in detail. It should be understood, however, that there is no intention to limit the disclosure to a specific form or forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of the disclosure, as defined in appended claims.

    [0292] Use of terms a and an and the and similar referents in the context of describing disclosed embodiments (especially in the context of following claims) are to be construed to cover both singular and plural, unless otherwise indicated herein or clearly contradicted by context, and not as a definition of a term. Terms comprising, having, including, and containing are to be construed as open-ended terms (meaning including, but not limited to,) unless otherwise noted. Connected, when unmodified and referring to physical connections, is to be construed as partly or wholly contained within, attached to, or joined together, even if there is something intervening. Recitations of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if it were individually recited herein. In at least one embodiment, the use of the term set (e.g., a set of items) or subset unless otherwise noted or contradicted by context, is to be construed as a nonempty collection comprising one or more members. Further, unless otherwise noted or contradicted by context, the term subset of a corresponding set does not necessarily denote a proper subset of the corresponding set, but subset and corresponding set may be equal.

    [0293] Conjunctive language, such as phrases of the form at least one of A, B, and C, or at least one of A, B and C, unless specifically stated otherwise or otherwise clearly contradicted by context, is otherwise understood with the context as used in general to present that an item, term, etc., may be either A or B or C, or any nonempty subset of the set of A and B and C. For instance, in an illustrative example of a set having three members, conjunctive phrases at least one of A, B, and C and at least one of A, B and C refer to any of the following sets: {A}, {B}, {C}, {A, B}, {A, C}, {B, C}, {A, B, C}. Thus, such conjunctive language is not generally intended to imply that certain embodiments require at least one of A, at least one of B and at least one of C each to be present. In addition, unless otherwise noted or contradicted by context, the term plurality indicates a state of being plural (e.g., a plurality of items indicates multiple items). In at least one embodiment, the number of items in a plurality is at least two, but can be more when so indicated either explicitly or by context. Further, unless stated otherwise or otherwise clear from context, the phrase based on means based at least in part on and not based solely on.

    [0294] Operations of processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. In at least one embodiment, a process such as those processes described herein (or variations and/or combinations thereof) is performed under control of one or more computer systems configured with executable instructions and is implemented as code (e.g., executable instructions, one or more computer programs or one or more applications) executing collectively on one or more processors, by hardware or combinations thereof. In at least one embodiment, code is stored on a computer-readable storage medium, for example, in the form of a computer program comprising a plurality of instructions executable by one or more processors. In at least one embodiment, a computer-readable storage medium is a non-transitory computer-readable storage medium that excludes transitory signals (e.g., a propagating transient electric or electromagnetic transmission) but includes non-transitory data storage circuitry (e.g., buffers, cache, and queues) within transceivers of transitory signals. In at least one embodiment, code (e.g., executable code or source code) is stored on a set of one or more non-transitory computer-readable storage media having stored thereon executable instructions (or other memory to store executable instructions) that, when executed (i.e., as a result of being executed) by one or more processors of a computer system, cause a computer system to perform operations described herein. In at least one embodiment, a set of non-transitory computer-readable storage media comprises multiple non-transitory computer-readable storage media and one or more of individual non-transitory storage media of multiple non-transitory computer-readable storage media lack all of the code while multiple non-transitory computer-readable storage media collectively store all of the code. In at least one embodiment, executable instructions are executed such that different instructions are executed by different processors.

    [0295] Accordingly, in at least one embodiment, computer systems are configured to implement one or more services that singly or collectively perform operations of processes described herein, and such computer systems are configured with applicable hardware and/or software that enable the performance of operations. Further, a computer system that implements at least one embodiment of present disclosure is a single device and, in another embodiment, is a distributed computer system comprising multiple devices that operate differently such that distributed computer system performs operations described herein and such that a single device does not perform all operations.

    [0296] Use of any and all examples, or exemplary language (e.g., such as) provided herein, is intended merely to better illuminate embodiments of the disclosure and does not pose a limitation on the scope of the disclosure unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the disclosure.

    [0297] All references, including publications, patent applications, and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein.

    [0298] In description and claims, the terms coupled and connected, along with their derivatives, may be used. It should be understood that these terms may not be intended as synonyms for each other. Rather, in particular examples, connected or coupled may be used to indicate that two or more elements are in direct or indirect physical or electrical contact with each other. Coupled may also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other.

    [0299] Unless specifically stated otherwise, it may be appreciated that throughout specification terms such as processing, computing, calculating, determining, or like, refer to actions and/or processes of a computer or computing system, or similar electronic computing device, that manipulate and/or transform data represented as physical, such as electronic, quantities within computing system's registers and/or memories into other data similarly represented as physical quantities within computing system's memories, registers or other such information storage, transmission or display devices.

    [0300] In a similar manner, the term processor may refer to any device or portion of a device that processes electronic data from registers and/or memory and transform that electronic data into other electronic data that may be stored in registers and/or memory. As non-limiting examples, a processor may be a network device or a MACsec device. A computing platform may comprise one or more processors. As used herein, software processes may include, for example, software and/or hardware entities that perform work over time, such as tasks, threads, and intelligent agents. Also, each process may refer to multiple processes, for carrying out instructions in sequence or in parallel, continuously or intermittently. In at least one embodiment, the terms system and method are used herein interchangeably insofar as the system may embody one or more methods, and methods may be considered a system.

    [0301] In the present document, references may be made to obtaining, acquiring, receiving, or inputting analog or digital data into a sub-system, computer system, or computer-implemented machine. In at least one embodiment, the process of obtaining, acquiring, receiving, or inputting analog and digital data can be accomplished in a variety of ways, such as by receiving data as a parameter of a function call or a call to an application programming interface. In at least one embodiment, processes of obtaining, acquiring, receiving, or inputting analog or digital data can be accomplished by transferring data via a serial or parallel interface. In at least one embodiment, processes of obtaining, acquiring, receiving, or inputting analog or digital data can be accomplished by transferring data via a computer network from providing entity to acquiring entity. In at least one embodiment, references may also be made to providing, outputting, transmitting, sending, or presenting analog or digital data. In various examples, processes of providing, outputting, transmitting, sending, or presenting analog or digital data can be accomplished by transferring data as an input or output parameter of a function call, a parameter of an application programming interface, or an inter-process communication mechanism.

    [0302] Although descriptions herein set forth example embodiments of described techniques, other architectures may be used to implement described functionality, and are intended to be within the scope of this disclosure. Furthermore, although specific distributions of responsibilities may be defined above for purposes of description, various functions and responsibilities might be distributed and divided in different ways, depending on circumstances.

    [0303] Furthermore, although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter claimed in appended claims is not necessarily limited to specific features or acts described. Rather, specific features and acts are disclosed as exemplary forms of implementing the claims.