Method and control unit for controlling an electrical converter, and converter system

LQG-SHC decouples grid current and voltage harmonics in electrical converters, addressing harmonic performance issues by enabling high-bandwidth linear control and effective harmonic rejection, ensuring high-quality output voltage and low distortion.

WO2025180680A1PCT designated stage Publication Date: 2025-09-04ABB (SCHWEIZ) AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2024/084818
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-29
Filing Date
2024-12-05
Publication Date
2025-09-04

AI Technical Summary

Technical Problem

Existing methods for controlling electrical converters using pulse patterns struggle with harmonic performance, particularly when dealing with high ripple currents, as they lack a fixed modulation cycle, leading to inferior harmonic rejection and limited controller bandwidth.

Method used

A method and control unit employing Linear Quadratic Gaussian Selective Harmonic Control (LQG-SHC) that decouples grid current and voltage harmonics, allowing for high-bandwidth linear control and precise harmonic rejection, independent of the specific pulse pattern used, by using a harmonic observer and controller to determine optimized switching angles.

Benefits of technology

Enables high-quality output voltage with low current total harmonic distortion, compatible with various pulse patterns, and effectively rejects grid voltage harmonics, maintaining superior harmonic performance across different applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024084818_04092025_PF_FP_ABST
    Figure EP2024084818_04092025_PF_FP_ABST
Patent Text Reader

Abstract

A method for controlling an electrical converter (16) is provided. The electrical converter (16) is coupled to a DC energy source and to an electrical grid and is configured for converting a DC voltage from the DC energy source into an AC voltage and to feed the AC voltage into the electrical grid. The method comprises the steps of: receiving a grid current signal being representative for a grid current (ig,abc) of the grid and a grid voltage signal being representative for a grid voltage (vg,abc) of the grid; determining grid current harmonics (îg,αβ;h) of the grid current (ig,abc) and grid voltage harmonics (see formula (I)) of the grid voltage (vg,abc) from the grid voltage signal and the grid current signal; determining an optimized pulse pattern (see formula (II)) for driving the electrical converter (16) from the determined grid current harmonics (îg,,αβ;h), the determined grid voltage harmonics (see formula(I)), and a given fundamental grid current setpoint (see formula (III)), wherein the optimized pulse pattern (see formula (IV)) comprises switching angles (see formula (V)) for the electrical converter (16) over a next modulation period of the electrical converter (16); and applying at least the next switching angle (see formula (V)) determined from the optimized pulse pattern to the electrical converter (16).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] DESCRIPTION METHOD AND CONTROL UNIT FOR CONTROLLING AN ELECTRICAL CONVERTER, AND CONVERTER SYSTEM FIELD OF THE INVENTION The invention relates to the field of high-power converter control. In particular, the invention relates to a method and a control unit for controlling an electrical converter, and to a converter system comprising the control unit and the electrical converter. BACKGROUND OF THE INVENTION It is already known to drive electrical converters by pulse patterns, e.g. Selective Harmonic Elimination (SHE) or Optimized Pulse Patterns (OPPs), which may be determined offline independent from an operation of the electrical converter. These pulse patterns may be stored in a lookup table and may be used for driving the electrical converter, wherein it is also known to modify these predetermined pulse patterns online when driving the electrical converter. However, such pulse patterns for driving the electrical converter do not per se have a modulation cycle of a fixed length in time. Consequently, unlike carrier-based methods, it is impossible to distinguish from a singlefixed-rate sample of the ripple current between the fundamental component and its harmonic content. Given a sinusoidal current setpoint of fundamental frequency, a linear controller governing such a pulse pattern will struggle when fed-back this sample of ripple current. The harmonics will be interpreted as tracking error, and by design, the controller will attempt to eliminate them. As exemplified by SHE, this objective yields inferior harmonic performance. Whereas for OPPs, their objective is to minimize a broader spectrum of harmonics rather than just eliminate a select few. When linear controllers are governing OPPs, their bandwidth must be severely limited to preserve the OPP’s superior harmonic performance. This restrains the controller’s innate disposition towards eliminating harmonics when fed-back a sample of current with a high ripple component. Internal Use The paper "Grid integration improvement for single-phase inverters of small wind turbines under distorted voltage conditions", by Nguyen Thah Hai et al., International Journal of Electrical Power & Energy Systems, Jordan Hill, Oxford, GB, vol. 87, 14 November 2016 (2016-11 -14), pages 144-153, XP029868528, ISSN: 0142-0615, DOI: 10.1016 / J.IJEPES.2016.11.003, describes a method for grid-tied single-phase inverter in small wind turbines based on PMSG (permanent-magnet synchronous generator) under grid voltage distortion. The electrical converter is connected to a DC energy source and to an electrical grid. The current is injected into the grid, which is termed as grid current. Composite observers used for extracting the fundamental and harmonic components of the grid voltage and current facilitate current control action and synchronize the inverter with the grid. The harmonic components of the grid voltage and current are used as state variables in the composite observer models for carrying out a pulse width modulation. "Optimized Pulse Patterns for the 5-Level ANPC Converter for High Speed High Power Applications", Jorg Meili et al, IEEE industrial electronics, IECON 2006 - 32nd annual conference on, IEEE, Piscataway, NJ, USA, 1 November 2006 (2006-11 -01), pages 2587- 2592, XP031077188, ISBN: 978-1-4244-0135-2, describes an analysis of an active neutral- point-clamped 5-level converter (ANPC5L) with regards to the total harmonic distortion (THD) for high-speed, high-power applications, wherein different optimized pulse patterns are compared with a traditional pulse width modulation (PWM) approach. DESCRIPTION OF THE INVENTION It is an objective of the invention to provide a method and a control unit for controlling an electrical converter, which may contribute to a high quality of an output voltage of the electrical converter, which may be compatible with several different kinds of optimized pulse patterns, and / or which may enable to achieve a low current total harmonic distortion. Further, it is an objective of the invention to provide a converter system comprising the control unit and the electrical converter. These objectives are achieved by the subject-matter of the independent claims. Further exemplary embodiments are evident from the dependent claims and the following description. An aspect of the invention relates to a method for controlling an electrical converter. The electrical converter is coupled to a DC energy source and to an electrical grid. The electrical converter is configured for converting a DC voltage from the DC energy source into an AC Internal Use voltage and to feed the AC voltage into the electrical grid. The method comprises the steps of: receiving a grid current signal being representative for a grid current of the grid and a grid voltage signal being representative for a grid voltage of the grid; determining grid current harmonics of the grid current and grid voltage harmonics of the grid voltage from the grid voltage signal and the grid current signal; determining an optimized pulse pattern for driving the electrical converter from the determined grid current harmonics, the determined grid voltage harmonics, and a given fundamental grid current setpoint, wherein the optimized pulse pattern comprises switching angles for the electrical converter over a next modulation period of the electrical converter; and applying at least the next switching angle determined from the optimized pulse pattern to the electrical converter. A further aspect of the invention relates to a control unit for controlling the electrical converter. The control unit comprises: a harmonic observer being electrically coupled to the electrical grid and being configured for receiving the grid current signal being representative for the grid current of the electrical grid and the grid voltage signal being representative for the grid voltage of the electrical grid and for determining grid current harmonics of the grid current and grid voltage harmonics of the grid voltage from the grid voltage signal and the grid current signal; and a harmonic controller being electrically coupled to harmonic observer and to the electrical grid, and being configured for determining the optimized pulse pattern for driving the electrical converter from the determined grid current harmonics, the determined grid voltage harmonics, and the given fundamental grid current setpoint, wherein the optimized pulse pattern comprises the switching angles for the electrical converter over the next modulation period of the electrical converter, and for applying at least the next switching angle determined from the optimized pulse pattern to the electrical converter. A further aspect of the invention relates to a converter system. The converter system comprises: the electrical converter being coupled to the DC energy source and to the electrical grid and being configured for converting the DC voltage from the DC energy source into the AC voltage and to feed the AC voltage into the electrical grid; and the control unit as described above and in the following and being coupled to the electrical converter and being configured for controlling the electrical converter in accordance with the method as described above and in the following. The present invention embodies the new concept of Linear Quadratic Gaussian Selective Harmonic Control (LQG-SHC) which is presented herewith. The basic idea of the proposed method, which may be embodied as control algorithm, is the regulation of selected grid Internal Use current harmonics and the rejection of their respective grid voltage harmonics. By decoupling these components, a high-bandwidth linear controller for optimized pulse patterns is designed. In particular, individual harmonics can be extracted from afixed-rate sample of ripple current by the method described herein by adopting a decoupled approach to system modelling. Thereby allowing a high-bandwidth linear control unit for any optimized pulse pattern to be designed at no detriment to their intended steady-state harmonic performance. Input disturbances, such as grid voltage harmonics, are also modelled and can thus be rejected too. This innovative control method is agnostic to the optimized pulse pattern used or the corresponding harmonic objective. Aided by its generalized formulation, it can be extended to any application using optimized pulse patterns by simply changing the setpoints for each harmonic. The method may be carried out by the control unit coupled to the electrical converter. The grid current signal may be received by the control unit from a current sensor coupled to the electrical grid, or “grid” only in the following. The current sensor may measure the grid current and may generate the grid current signal accordingly. The grid voltage signal may be received by the control unit from a voltage sensor coupled to the grid. The voltage sensor may measure the grid voltage and may generate the grid voltage signal accordingly. The DC energy source may be a battery system, a dc link consisting of capacitor storage elements, or a photovoltaic system, for example. The electrical converter may be an inverter, in particular a grid-connected inverter. The control unit may comprise a processor configured for carrying out the method as described above and in the following and a memory communicatively coupled to the processor and configured for storing one or more look-up tables comprising one or more optimized pulse patterns, with each optimized pulse pattern comprising corresponding switching angles. The grid current harmonics and the grid voltage harmonics may be determined by estimation. The switching angles may be translated into switching instants, wherein the switching instants may be determined by multiplying them with the angular fundamental frequency. The next modulation period may be the fundamental period, which is the inverse of the fundamental frequency, or it may be a fraction or an integer multiple of the fundamental period. According to an embodiment, the optimized pulse pattern is determined from the determined grid current harmonics, the determined grid voltage harmonics, and a given Internal Use fundamental grid current setpoint by determining state harmonic setpoints and input harmonic setpoints from the determined grid voltage harmonics and the given fundamental grid current setpoint and by determining the optimized pulse pattern from the determined state harmonic setpoints, the determined input harmonic setpoints and the grid current harmonics. This enables regulation of individual grid current harmonics and as such the rejection of their respective grid voltage harmonics. According to an embodiment, the state harmonic setpoints and input harmonic setpoints are determined from the determined grid voltage harmonics and the given fundamental grid current setpoint by determining a modulation index from the determined grid voltage harmonics and the given fundamental grid current setpoint, by determining switching angles of a predetermined optimized pulse pattern stored in a lookup-table depending on the modulation index and by determining the state harmonic setpoints and the input harmonic setpoints from the determined switching angles. This may contribute to determine the state harmonic setpoints and the input harmonic setpoints very precisely and as such to a very good, for example optimal rejection of their respective grid voltage harmonics. According to an embodiment, the state harmonic setpoints and input harmonic setpoints are determined from the determined switching angles by determining Fourier Coefficients, from the determined switching angles, by determining an amplitude and a phase of the corresponding harmonics from the determined Fourier Coefficients, and by determining the input harmonic setpoints from the amplitude and the phase and by determining the state harmonic setpoints from the input harmonic setpoints and the grid voltage harmonics. This may contribute to determine the harmonic grid current setpoint and the harmonic input setpoint in an easy way. According to an embodiment, the optimized pulse pattern is determined from the determined state harmonic setpoints, the determined input harmonic setpoints and the grid current harmonics by determining input harmonic commands for the electrical converter and by determining the optimized pulse pattern from these determined input harmonic commands. This may enable one to drive the electrical converter such that the respective grid voltage harmonics are rejected. According to an embodiment, the optimized pulse pattern is determined from the determined harmonic input commands by determining the switching angles of the optimized pulse pattern from the determined harmonic input commands. This may contribute to drive the electrical converter in an easy way. Internal Use According to an embodiment, the grid voltage harmonics are determined from the grid voltage signal, the grid current signal, and the optimized pulse pattern, and / or the grid current harmonics are determined from the grid current signal, the switching angles, and the grid voltage harmonics. This may contribute to precisely determine the grid current and grid voltage harmonics. According to an embodiment, the grid voltage harmonics are estimated by a first Kalman filter; and / or the grid current harmonics are estimated by a second Kalman filter. The Kalman filters each may be a Steady-State Kalman Filter (SSKF). This may contribute to determine the grid voltage and current harmonics in an easy and / or effective way. According to an embodiment, the harmonic controller comprises a harmonic setpoint generator for determining state harmonic setpoints and input harmonic setpoints from a given fundamental grid current setpoint and the determined grid voltage harmonics. According to an embodiment, the harmonic controller comprises a Linear Quadratic Regulator (LQR) coupled to the harmonic controller and being configured for determining input harmonic commands for the electrical converter from the fundamental grid current setpoint, state harmonic setpoints and input harmonic setpoints. According to an embodiment, the harmonic controller comprises an optimized pulse pattern QP solver coupled to the LQR and being configured for determining the switching angles of the optimized pulse pattern from the input harmonic commands. According to an embodiment, the harmonic controller comprises a modulator coupled to the optimized pulse pattern QP solver and being configured to apply the pulse pattern determined from the switching angles to the electrical converter. A quantization error of the applied switching angles may degrade any optimized pulse pattern’s harmonic performance. Therefore, it may be advantageous to sample the optimized pulse pattern at the highest rate possible. However, this contrasts with a sample rate of an advanced digital control algorithm, such as the harmonic controller as this should be executed at the lowest acceptable rate to reduce the computational burden and hence processing power needed by hardware for implementation. This juxtaposition between reducing quantization error and computational burden can be resolved by executing the modulator independently from the harmonic controller at a much higher rate, as further described below. According to an embodiment, the harmonic observer comprises the first Kalman filter configured for estimating the grid voltage harmonics from the grid voltage signal, the grid current signal, and the optimized pulse pattern; and the second Kalman filter configured for Internal Use estimating the grid current harmonics from the grid current signal, the switching angles, and the grid voltage harmonics. Further aspects of the invention relate to a computer program for controlling the electrical converter, which, when being executed by the processor, e.g. of the control unit, is adapted to carry out the steps of the above method, and to a computer-readable medium, on which the computer program is stored. Both the harmonic observer and the harmonic controller may be executed as software on one or more processors, e.g. of the control unit, or may be embodied as hardware, e.g. of the control unit, or may be embodied as a corresponding hardware-software combination. The computer-readable medium may be a floppy disk, a hard disk, an USB storage device, a RAM, a ROM, an EPROM or a FLASH memory. The computer-readable medium may also be a data communication network, e.g. the Internet, which allows downloading a program code. In general, the computer-readable medium may be a non-transitory or transitory medium. In general, it has to be understood that features of the method as described in the above and in the following may be features of the computer program, the computer-readable medium, the control unit, and the converter system as described in the above and in the following, and vice versa. These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS The subject-matter of the invention will be explained in more detail in the following text with reference to exemplary embodiments which are illustrated in the attached drawings. Fig.1 shows a block diagram of a converter system according to an embodiment of the invention. Fig.2 shows a block diagram of a harmonic controller of the converter system according to figure 1. Fig.3 shows a block diagram of a harmonic observer of the converter system according to figure 1. Internal Use DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS Fig. 1 shows a block diagram of a converter system 10 according to an embodiment of the invention. The converter system 10 comprises an electrical power converter system 14 and a control unit 12. The electrical power converter system 14 comprises an electrical converter 16 that is coupled to a DC energy source (not shown). The electrical converter 16 is configured for converting a DC voltage from a DC energy source into an AC voltage and to feed the AC voltage into the electrical grid. The electrical converter 16 has an RL output impedance 20 that couples it to a AC grid voltage 18. The electrical converter 16 may be a grid-connected three-phase converter, as they are widely known in the art. So, the system to be modelled is a grid-connected three-phase converter. The RL output impedance 20 of the converter typically represents a transformer, a filter and the grid impedance. These are lumped together to form the RL output component 20, as shown in Fig.1. The state, input and disturbance vectors in the abc frame are: Athree-level pulse pattern is assumed, so ^^^^,^^^^^^ ∈ {−1,0,1}.The system is modelled using a decoupled approach within the stationary αβ frame. This yields a distinct model for each harmonic with no cross-coupling between them: The number of positive- and negative-sequence non-triplen odd harmonics modelled within (1.2) depends on the selected harmonics hsel. Whereas the highest order selected Internal Use harmonic is nsel. For notational brevity, I2x2= I and the subscripthdenotes a vector that is composed of these selected harmonics. To discretize the system model, a zero-order hold (ZOH) is applied to (1.2): ^^^^^^;ℎ(^^ + 1) = ^^^^^^^^;ℎ(^^) + ^^^^^^^^;ℎ(^^) + ^^^^^^^^;ℎ(^^) where, and the state, input, disturbance and output vectors are respectively, In essence, this linear time-invariant (LTI) system plus input disturbance (1.3) is modelled as a sum of non-triplen odd harmonics, truncated up to nsel. This is encapsulated in the output, ^^^^^^(^^), as a sample of ripple current is decomposed into a summation of its selected harmonics, ^^^^^^;ℎ(^^). However, a Fourier Series stipulates that an infinite numberof harmonics would be needed for ^^ ( This infinite sumharmonics is gracefully completed with a single pair of states by introducing the notion of residual harmonics, hres. The control unit 12 is configured for controlling the electrical converter 16. The control unit 12 comprises a harmonic observer 22 and a harmonic controller 24. The harmonic observer 22 is electrically coupled to the electrical grid. The harmonic observer 22 is configured for receiving a grid current signal being representative for a grid current ^^^^,^^^^^^of the electrical grid and a grid voltage signal being representative for a grid voltage ^^^^,^^^^^^of the electrical grid and for determining grid current harmonics ^^^̂^,^^^^;ℎof the grid current ^^^^,^^^^^^and grid voltage harmonics ^^^^,^^^^;ℎof the grid voltage ^^^^,^^^^^^from the grid voltage signal and the grid current signal. The grid current ^^^^,^^^^^^and the grid voltage ^^^^,^^^^^^may be measured. Internal Use The harmonic controller 24 is electrically coupled to the harmonic observer 22 and to the electrical grid. The harmonic controller 24 is configured for determining an optimizedpulse pattern ^^ ^^^^^^ ^^,^^^^^^for driving the electrical converter 16 from the determined grid current harmonics ^^^̂^,^^^^;ℎ, the determined grid voltage harmonics ^^^^,^^^^;ℎ, and a given fundamental grid current setpoint ^^^∗^,^^^^^^;1. The optimized pulse pattern comprises switching angles for the electrical converter 16 over a next modulation period of the electrical converter 16, and for applying at least the next switching angle determined from the optimized pulse pattern ^^ to the electrical converter 14. The next modulation period may be the fundamental period, which is the inverse of the fundamental frequency, or it may be a fraction or an integer multiple of the fundamental period. The control unit 12 may comprise a processor (not shown) configured for carrying out the method as described above and in the following and a memory (not shown) communicatively coupled to the processor and configured for storing one or more look-up tables comprising one or more of the optimized pulse patterns ^^ ^^^^^^ ^^,^^^^^^, with each optimized pulse pattern comprising corresponding switching angles The harmonic observer 22 and the harmonic controller 24 each may be embodied as software stored on the memory and / or carried out by the processor. Alternatively, the harmonic observer 22 and the harmonic controller 24 each may be embodied as hardware contained in the processor or being coupled to the processor. Alternatively, the harmonic observer 22 and the harmonic controller 24 each may be embodied as a corresponding software-hardware combination. The harmonic observer decomposes the grid current ^^^^,^^^^^^and the grid voltage ^^^^,^^^^^^into estimations of their respective harmonics, i.e. the grid current harmonics ^^^̂^,^^^^;ℎand the grid voltage harmonics ^^^^,^^^^;ℎ. The harmonic controller 24 then optimizes Fourier Coefficients to design an optimized pulse pattern ^^ that tracks the fundamental grid current setpoint ^^^∗^,^^^^^^;1and selected harmonics to achieve any desired objective. Fig. 2 shows a block diagram of a harmonic controller 24 of the converter system 10 according to figure 1. The harmonic controller 24 may have a harmonic setpoint generator 30 for determining state harmonic setpoints ^^^∗^,^^^^;ℎand input harmonic setpoints ^^^∗^^^;ℎfrom a given fundamental grid current setpoint and the determined grid voltage harmonics ^^^^,^^^^;ℎ. The harmonic controller 24 may have a Linear Quadratic Regulator LQR coupled to the harmonic controller 24 and being configured for determining input harmonic Internal Use commands ^^^^^^;ℎfor the electrical converter 16 from the state harmonic setpoints ^^^∗^,^^^^;ℎ, the input harmonic setpoints ^^^∗^^^;ℎ, and the grid current harmonics ^^^̂^,^^^^;ℎ. The harmonic controller 24 may have an optimized pulse pattern QP solver coupled to the LQR and being configured for determining the switching angles of the optimized pulse pattern from the input harmonic commands ^^^^^^;ℎ. The harmonic controller 24 may have a modulator 36 coupled to the optimized pulse pattern QP solver 34 and being configured to apply the optimized pulse pattern ^^ determined from the switching angles to electrical converter 14. Given the fundamental grid current setpoint ^^ and the estimates from the observer 22, the state harmonic setpoints ^^^∗^,^^^^;ℎand the input harmonic setpoints ^^∗^^^^;ℎmay be created by the harmonic setpoint generator 30. These may be fed to the LQR for harmonic-based tracking. Then, the input commands for the selected harmonics, in other words the harmonic input commands ^^^^^^;ℎ, may then be optimized into the switching angles ^^ ^^^^^^ ^^,^^^^^^by the optimized pulse pattern QP solver 34. Its objective is to adjust a pre-computed pulse pattern to embody the Fourier Coefficients of the input harmonic commands ^^^^^^;ℎ. The modulator 36 may then be executed at an accelerated rate to decouple the execution of the harmonic controller 24 and the resolution of the determined optimized pulse pattern ^^ ^^^^^^ ^^,^^^^^^applied to the electrical converter 16. Harmonic Setpoints The concept of Linear Quadratic Gaussian Selective Harmonic Control (LQG-SHC) embodied and / or carried out by the control unit 12 is agnostic to the optimized pulse pattern used, in particular to the pre-computed optimized pulse pattern. Be it SHE, OPP or SHM, there is no change to its structure. Different optimized pulse patterns are merely interpreted as different state or input setpoints for each harmonic. To reiterate, any feasible setpoint for any harmonic can be given. This generalized formulation affords LQG-SHC the potential to excel at many challenging grid-connected applications, such an active power filter or a STATCOM. For example, if a pre-computed optimized pulse pattern is constrained to satisfy the IEEE-519 grid codes, none of these constraints need to be carried over to LQG-SHC. They are simply encapsulated in the harmonic setpoints. So long as the Internal Use harmonic setpoints are tracked, all constraints of the pre-computed optimized pulse pattern are implicitly satisfied. In the succeeding sections, the equilibrium point of the system model (1.3) willfirst be derived. This is evaluated to ensure that the state harmonic setpoints ^^^∗^,^^^^;ℎand the input harmonic setpoints ^^^∗^^^;ℎare congruent in the steady-state. Then, a step-by-step approach for generating the complete set of harmonic setpoints that leverages the pre-computed optimized pulse patterns will be given: Equilibrium Point For the grid-connected inverter, as the electrical converter16, the system setpoints are active and reactive power generation. Focusing on a grid current control loop, which is presented herewith, these system setpoints are interpreted as amplitude, ^^^∗^, and phase angle, , setpoints per grid current harmonic in the αβ frame: where the derivative of (3.1.1) is: =^^^^1 ∙ ^^ ∙ ^^∗^^^^;^^(^^) For each of the harmonics, then the equilibrium point is found. This is an input setpoint, ^^∗^^^^;^^that attracts the system model (1.2) to a given state setpoint, ^^^∗^,^^^^;^^: Internal Use where, ^^^^ = ^^^^1^^^^ + ^^ ∙ ^^ (3.1.3a)The equilibrium point (3.1.3) can be solved to yield the input or state setpoints ^^∗^^^^;^^, ^^^∗^,^^^^;^^. It also intrinsically accounts for the grid voltage harmonics ^^^^,^^^^;ℎas an input disturbance. Recalling that positive- and negative-sequence harmonics rotate in opposite directions, the sign of each consecutive non-triplen odd harmonic, n, alternates (1.2). To reject or track harmonics of any phase, half-wave symmetry must be imposed on the pre-computed optimized pulse patterns. The switching angles of these optimized pulse patterns are indexed by their modulation indices and then stored in a Look-Up Table (LUT). New optimized pulse patterns can be optimized online to supersede this LUT, as explained at the end of this description. For example, if grid voltage harmonics emerge, LQG-SHC can transition to a new set of harmonic setpoints to reject these input disturbances. Pre-computed optimized pulse patterns of quarter- or half-wave symmetry can be stored in this LUT. As an example, a step-by-step procedure for acquiring harmonic setpoints from a QW LUT is as follows: 1. EVALUATION THE EQUILIBRIUM POINT FOR THE FUNDAMENTAL INPUT SETPOINT: 2. CALCULATE THE MODULATION INDEX: 3. EXTRACT THE SWITCHING ANGLES FROM THE LUT: 4. FOR EACH HARMONIC, COMPUTE THE AMPLITUDE AND PHASE OF ITS FOURIER COEFFICIENT: Internal Use ^^∗^^ = arg (−^^^^^∗^) 5. THEN, COMPENSATE FOR THE GRID VOLTAGE HARMONICS TO YIELD NEW INPUT SETPOINTS THAT TRACK THE STATE SETPOINTS: 6. FROM THE EQUILIBRIUM POINT, COMPUTE THE STATE SETPOINTS FOR EACH HARMONIC: (3.1.10)By formulating the harmonic setpoints from the pre-computed optimized pulse pattern (3.1.6), they are congruent in the steady-state. However, if arbitrary harmonic setpoints were given, they could be incongruent if a corresponding optimized pulse pattern does not exist for them. This would impose an inverse constraint on the control law, as it is not known what harmonic setpoints are feasible until it is attempted to design the corresponding optimized pulse pattern for them. This would significantly degrade the controller’s performance, as an unknown non-linearity is introduced to the controller’s actuator-the optimized pulse pattern. Nonetheless, leveraging a LUT for LQG-SHC is a simple inclusion that ensures the harmonics setpoints and applied optimized pulse pattern are congruent in the steady-state. Whereas for the transient, a constraint is placed on the maximum permissible deviation from this pre-computed optimized pulse pattern, as described below. It is important to highlight that optimized pulse pattern LUTs typically assume that the grid voltage ^^^^,^^^^^^is ideal. Consequently, this LUT is sub-optimal if the grid voltage ^^^^,^^^^^^is distorted. Storing LUTs for a variety of grid voltage harmonics ^^^^,^^^^;ℎis infeasible as its size rapidly becomes a burden. A technically feasible suggestion for optimizing harmonic performance under distorted grid voltages ^^^^,^^^^^^is given further below. Harmonic-based Control Internal Use In the steady-state, we’d like the input setpoints to be applied by the control unit 12. To do so, we first redefine the state and input vectors in terms of error from their respective setpoints. They are then subtracted, removing the input disturbance term, to yield an error- space model of a LTI system: For this LTI MIMO system (3.2.1), a full state feedback controller is preferred; it is the simplest topology that can regulate many states. Within this error-space form, the state- feedback control law applies the setpoint inputs as the tracking error decays: For the state feedback gain K, a Linear Quadratic Regulator (LQR) is designed by minimizing the Discrete-time Algebraic Riccati Equation (DARE): (3.2.3) ^^ = (^^^^^^^^ + ^^)−1 ∙ (^^^^^^^^)A compromise between tracking error and control effort is biased by the state and input penalties, Q and R, respectively. The design of these matrices is described in the succeeding sub-sections. Internal Use The input harmonic commands ^^^^^^;ℎcannot be applied by the electrical converter 16. Instead, they must be transformed into the switching angles by the optimized pulse pattern QP solver 34. As described below, this designs an optimized pulse pattern that embodies the Fourier Coefficients of ^^^^^^;ℎ. Further as described below, the harmonic observer 22 may use a Steady-State Kalman Filter (SSKF) to estimate individual current harmonics. Therefore, the state vector in the control law (3.2.2) is an estimate, ^^^^^^;ℎ→ ^̂^^^^^;ℎ. By combining a LQR with a SSKF, a Linear Quadratic Gaussian (LQG) controller for selectively controlling harmonics is created; hence the control algorithm is denoted as LQG-SHC. State Penalty From a tracking error perspective, changes in setpoint for the fundamental are of most importance since they will have the largest magnitude. Therefore, during transients we are less concerned about optimizing harmonic performance and are more concerned about tracking the fundamental. To encapsulate this within the state penalty, Q, it is designed as an identity matrix with a weighting factor, ⋋^^1, added to bias tracking of the fundamental: The electrical grid is overwhelming inductive. Therefore, there are less concerns about injecting voltage harmonics as their order increases. This is reflected in the formulation of OPPs where the Fourier Coefficients of each harmonic are weighted by the square inverse of their order. The system model (1.3) does not embody a decreasing importance of higher order harmonics. Consequently, it is prudent to incorporate the above-mentioned knowledge within the LQR to penalise inputting lower order harmonics, as they are more apparent. To do so, the equilibrium point (3.1.3) is recalled but the resistance is neglected, since R<<ωL, and the grid voltage disturbance. Then, inspired by our LQR cost function (3.2.3), a quadratic term with a scalar penalty is created: Internal Use Extending (3.2.5) to all harmonics modelled, an analytical input penalty with an intuitive weighting factor, ⋋^^, added to tune the closed-loop bandwidth is yielded: Similar to OPPs, (3.2.6) intuitively biases input penalties towards lower order harmonics by their squared inverse. Suggestion for advised weighting factors are given below. Pulse Pattern QP Solver 34 Given a set of input harmonic commands ^^^^^^;ℎ(3.2.2), the objective of the optimized pulse pattern QP solver 34 may be to adjust a pre-computed optimized pulse pattern (3.1.6) to minimize the quadratic difference in each harmonic’s Fourier Coefficients. Firstly, a Park Transformation may be performed on the input commands ^^^^^^;^^of each harmonic. This transforms a rotating vector into two scalar quantities. After a simple re- alignment of the axes, these scalar quantities are the harmonic’s Fourier Coefficients, as detailed in the following. Then a small-angle approximation may be applied to linearise the Fourier Coefficients of the pre-computed pulse pattern (3.1.6). This may allow the nonlinear objective function for designing the optimized pulse patterns to be reformulated as a quadratic program for efficient solving, as detailed below. The QP’s optimization variable is ∆α, an adjustment to the pre-computed pulse pattern’s switching angles. Fourier Coefficient Transformation Internal Use To design an optimized pulse pattern with the desired amplitude and phase for each harmonic, the Fourier Coefficients are needed: ^^^^(^^) = ^^^^(^^^^1^^) + ^^^^^^^^^^(^^^^1^^)= ^^^^cos (^^^^1^^ − ^^^^) (3.3.1)where ^^^^∠^^^^ = ^^^^ − ^^^^^^.Recalling the Control Law (3.2.2), the input command for each harmonic is given as a rotating vector, ^^^^^^;^^. To extract the direct and quadrature scalar amplitudes of the αβ components, a Park Transform can first be applied: where, The fundamental is accelerated, ^^^^1, so it is in synchronism with the harmonic, ^^^^. Similar to a PLL, their phase displacement, Δ^^^^, is then constant. Then, to complete the transformation into Fourier Coefficients, the quadrature component must be flipped to align it with bn from (3.3.1): In summary, to extract the input command’s Fourier Coefficients, ^^^^^^;^^, a Park Transformation is performed on each harmonic (3.3.2) and the quadrature component is then flipped (3.3.3). Function Given a set of Fourier Coefficients ^^^^^^;^^, the nonlinear objective function to optimize an equivalent optimized pulse pattern may be: subject where, Internal Use The squared inverse of the harmonic’s order may be included to bias a closerfit of 5 lower order harmonics. Using the switching angles from the pre-computed optimized pulse pattern (3.1.6), the nonlinear Fourier Coefficients can then be linearised by applying a small-angle approximation:10 For small switching angles adjustments, ∆α, these linearised Fourier Coefficients may be an approximation of their nonlinear equivalents, 15 (3.3.6) Substituting the linearised Fourier Coefficients (3.3.5) into the nonlinear objective function (3.3.4) now yields a weighted least squares (WLS) objective function:20 25 Suggestions for definitions of matrices C, d and W are given at the end of this description. Thefirst constraint may ensure that the adjusted switching angles do not overlap one another. Whereas the second constraint may introduce the parameter ∆αmax. This safeguards the Internal Use accuracy of our small-angle approximation by imposing a box constraint on the maximum permissible deviation from the pre-computed optimized pulse pattern. Model Predictive Control (MPC) demonstrates that Quadratic Programs (QPs) have the potential to be solved rapidly in real-time. To improve the technical feasibility of implementing LQG-SHC on commercial hardware, the WLS objective function (3.3.7) may be cast to a QP: The previous solution ∆α(k−1) may be added to the pre-computed optimized pulse pattern αLUT(k), thereby shifting the point of linearisation α¯LUT. Since two consecutive steps of ∆α = ∆αmaxcan now be made, the search space is effectively doubled. Thereby allowing larger switching angle adjustments without degrading the accuracy of our linearised Fourier Coefficients. To yield the optimal switching angles ^^ ^^^^^^ ^^,^^^^^^for the electrical converter 14, the solution of (3.3.8) may be added to the point of linearisation: The approach presented above is inspired by Sequential Quadratic Programming (SQP). By leveraging a pre-computed optimized pulse pattern, the nonlinear objective function (3.3.4) can be streamlined to a QP sub-problem (3.3.8). MPC exemplifies that QPs are particularly feasible for solving in real-time. In addition, as foretold, all of the pre-computed optimized pulse pattern’s constraints are implicitly satisfied. Aside from the simple box constraint on ∆αmax, no additional constraints are needed – irrespective of the harmonic objective. This is of particular importance when grid code constraints, such as IEEE-519, are introduced. As detailed at the end of this description, this imposes quadratic constraints, making the optimized pulse pattern’s objective function increasingly difficult to optimize. Internal Use Modulator A quantization error of the applied switching angles ^^ ^^^^^^ ^^,^^^^^^will degrade any optimized pulse pattern’s harmonic performance. Therefore, it should be sampled at the highest rate possible. This contrasts with the sample rate of an advanced digital control algorithm, such as the Harmonic Controller. As this should be executed at the lowest acceptable rate to reduce the computational burden and hence processing power needed by hardware for implementation. This juxtaposition between reducing quantization error and computational burden can be resolved by executing the modulator 36 independently from the harmonic controller 24 at a much higher rate, as exemplarily given further below. Fig. 3 shows a block diagram of the harmonic observer 22 of the converter system 10 according to figure 1. The harmonic observer 22 comprises a first Kalman filter 40 and a second Kalman filter 42. Each of the Kalman filters 40, 42 may be a Steady-State Kalman Filter (SSKF). Alternatively, the grid voltage harmonics may be determined without, in other words independent from the optimized pulse pattern ^^ ^^^^^^ ^^,^^^^^^. The first Kalman filter 40 may be configured for estimating the grid voltage harmonics from the grid voltage signal, the grid current signal, and the optimized pulse pattern ^^ ^^^^^^ ^^,^^^^^^. The second Kalman filter 42 may be configured for estimating the grid current harmonics ^^^̂^,^^^^;ℎfrom the grid current signal, the switching angles and the grid voltage harmonics ^^^^,^^^^;ℎ. Preceding this, a concise background on the SSKFs 40, 42 is given and the notion of residual harmonics is introduced in the following. Steady-State Kalman Filtering To decompose a periodic signal into its Fourier Coefficients, a Discrete Fast Fourier Transform (DFFT) is typically used. However, this method requires large sampling windows of time-domain data and would introduce a destabilizing delay to a high-bandwidth control loop. A Sliding Discrete Fourier Transform (SDFT) uses a smaller sliding window to marginally reduce the delay. Another approach to extract the harmonics of a signal is to use resonators, however, thesefilters quickly become cumbersome as one must be tuned for each Internal Use harmonic. LQG-SHC may use SSKFs. Compared to DFFTs, SDFTs and resonators, a SSKF can rapidly decompose a signal into estimates of many harmonics with negligible delay. A common assumption within optimal linear estimation is that modelling and measurement errors corrupt a LTI system with white gaussian process and output noise: ^^(^^ + 1) = ^^^^(^^) + ^^^^(^^) + ^^(^^) ^^(^^)~^^(0, ^^^^)^^(^^) = ^^^^(^^) + ^^(^^) , ^^(^^)~^^(0, ^^^^) (4.1.1)The covariance of the process and output noise is Qf and Rf, respectively. In practice, the process covariance is difficult to quantify and is treated as a tuning parameter, whereas the output covariance can be measured directly from the output sensors. To estimate the states of this noisy LTI system (4.1.1), a Luenberger Observer may be used: ^̂^(^^ + 1) = ^^^̂^(^^) + ^^^^(^^) + ^^(^^(^^) − ^^^̂^(^^)) (4.1.2)This estimation law (4.1.2) is coincidentally a combination of the prediction and update steps of a Kalman Filter. In the steady state, this recursive algorithm converges to an optimal estimation gain, L. Since the system model (4.1.1) is LTI, a SSKF can be designed offline by solving L for its steady-state value. To do so, we first recall the duality between control and estimation: Control → Estimation ^^ → ^^^^^^ → ^^^^ (4.1.3)^^ → ^^^^We then design the covariance matrices Rf and Qf. The former is the covariance of the output sensors, this can be measured. The latter is an estimate that encapsulates any process error, such as parameter variations or unmodelled dynamics, that corrupt a system model. An intuitive perception of Qf is its positively correlated to the estimation gain, L. As the elements of Qf → 0, the SSKF is biased towards predictions from our model. Internal Use Whereas when elements of Qf→ ^ it instead prefers our measurements by increasing the corresponding elements of the estimation gain, L. Upon performing the substitutions from (4.1.3) into the DARE, similar to an LQR, we then solve it to instead yield the optimal estimation gain: ^^ = (^^^^^^^^) ∙ (^^^^ + ^^^^^^^^−1 ) (4.1.4) Residual Harmonics Recalling the concept of a Fourier Series, an infinite number of harmonics can be summated to construct any periodic signal. However, if this Fourier Series is truncated, the signal is partially reconstructed and incomplete. For a SSKF, this implies that any unmodelled harmonics will truncate the Fourier Series and manifest a perpetual output estimation error. Fortunately, there is a simple and elegant remedy to a signal’s Fourier Series. The residual harmonics are those leftover when a complete signal is subtracted by its selected harmonics hsel. An intuitive interpretation of this notion is the addition of a frequency bin state for the harmonics from nsel < n < ∞. As will be shown for each of the SSKFs 40, 42, a single residual harmonic state can be appended to their models of selected harmonics to then yield a complete model for all harmonics. Second SSKF 42 Input harmonics To transform the applied optimized pulse pattern’s switching angles, ^^ ^^^^^^ ^^,^^^^^^, into inputs for each selected harmonic, ^^^^^^;ℎ, the Fourier Coefficients are reconstructed for an optimized HW pulse pattern: Then, up to nsel, each harmonic’s Fourier Coefficients are transformed into rotating vectors in the αβ frame: Internal Use This procedure is identical to the approach presented above with respect to the harmonic setpoints, exceptLUT is used instead of α . The notion of residual harmonics is then applied to yield remaining input harmonic setpoints ^^^^^^;ℎ^^^^^^. This is the differencebetween the complete input, ^^^^^^ = ^^^^^^ ∙ ^^^^,^^^^^^, and the selected input harmonic setpoints, System Model for second SSKF 42 A state-space representation of a LTI system is needed to design a SSKF. However, the system model (1.3) includes an input disturbance, i.e. the grid voltage harmonics ^^^^,^^^^;ℎ. In essence, a disturbance is just an additional input, so it can be augmented with them: Then, the residual harmonics state can be appended to yield a complete system model of all grid current harmonics ^^^̂^,^^^^;ℎ: where the system’s output is decomposed into a complete Fourier Series: Internal Use Note that (4.3.6) is not truncated to nsel, unlike (1.3b). By applying the notion of residualharmonics, a single additional pair of states, ^^^^,^^^^;^^^^^^^^(^^), ensures that ^^^^,^^^^^^ ^^^^^^(^^) is always satisfied, irrespective of the selected harmonics hsel. Process Covariance with respect to the second SSKF 42 From a sample of grid current higher order harmonics and their ripple are increasingly attenuated. This notion may be encapsulated within the process covariance estimate by weighting the harmonics with the squared inverse of their order: ^^^^,^^ = ^^^^^^^^ (^^^^,^^ [^^,1 1 1 52^^, 72, ⋯ ,^^^^^^^^2^^] , ^^^^,^^,^^^^^^^^) (4.3.7)Two tuning parameters, qf,iand qf,i;res, are introduced to bias the SSKFitowards predictions or measurements. As already stated above, suggestions for advised weighting factors are given below. First SSKF 40 For state-feedback controllers, the Internal Model Principle (IMP) may be satisfied by simply negating input disturbances within the control law. Recalling (3.2.2), this may be achieved by the inclusion of input setpoints (3.1.3) that encapsulate the input disturbance. To estimate the grid voltage harmonics ^̂^^^,^^^^;ℎ, the first SSKF 40 may be designed as a disturbance observer. System Model for first SSKF 40 The input disturbances are modelled as an nthgrid voltage harmonic in the αβ frame: The ± depends on whether the non-triplen odd harmonic is of positive- or negative- sequence, as defined in (1.2). This simple disturbance model for grid voltage harmonics can then be extrapolated to model all selected harmonics, with a residual state appended to Internal Use accumulate the remaining harmonics. These many disturbance states can then be augmented with a model that has a single αβ state for the grid current: Comparing (4.4.2) to (1.3), the input disturbance is decomposed into a complete summation of its harmonics. The selection of hresis not important, as the process covariance can simply be adjusted so it accumulates the remaining harmonics. Note that in other possible embodiments, the grid current state in (4.4.2) can be omitted to yield a system model with no input, as mentioned above. Process Covariance with respect to the first SSKF 40 The harmonic weights of (4.3.7) may be removed since inductive networks may not attenuate grid voltage harmonics: Similar to the second SSKF 42, two tuning parameters, qf,v and qf,v;res, may be introduced to bias to the first SSKF 40 towards predictions or measurements. Advised weighting factors are given further below. The first identity matrix of (4.4.3) encapsulates the process covariance for the grid current model, by adjusting both tuning parameters, it can be biased accordingly. Compensating Optimized Pulse Patterns for Grid Voltage Harmonics At present, all commercially used optimized pulse patterns are designed assuming an ideal grid voltage. Whilst naive, this assumption is fair when one considers the stochastic Internal Use nature of grid voltage harmonics. It is not feasible to pre-compute optimized pulse patterns that are compensated for grid voltage harmonics, as the possible combinations of their magnitudes and phase are seemingly infinite. Consequently, existing approaches for designing optimized pulse patterns unfortunately exhibit zero input disturbance rejection to grid voltage harmonics. As outlined further below, compensating optimized pulse patterns for grid voltage harmonics has the potential to further reduce THDi and ensure robust conformance to grid codes under realistic conditions – a distorted grid voltage ^^^^,^^^^^^. Generally, the magnitude and phase of grid voltage harmonics evolve slowly when compared to the sample-rate of a control algorithm. This may afford the time needed to estimate and then optimize a new optimized pulse pattern ^^ online that is compensated for them. Since LQG-SHC intrinsically estimates the grid voltage harmonics ^^^^,^^^^;ℎ, it is well- poised to optimize and regulate the optimized pulse patterns online to reject these input disturbances. An independent thread may perform this less time-constrained task and then feed the newly optimized pulse pattern to the LQG-SHC thread for regulating. Selected Harmonics A sensible upper bound on the selected harmonics nsel may be the number of switching angles ^^ ^^^^^^ ^^,^^^^^^selected for optimized the pulse pattern’s quarter-cycle k. This may ensure that the optimized pulse pattern QP solver 34 has a sufficient number of degrees of freedom to optimize each harmonic’s Fourier Coefficients. Courtesy of the residual harmonics hsel, the harmonic observer 22 may always model all harmonics. Therefore, the number of harmonics selected for controlling may be independent from the accuracy of their estimations. Weighting Factors By adopting a controller as the Linear Quadratic Gaussian calculator LQG the tuning is intuitive and familiar for those well versed in their design. A good baseline for LQG-SHC is setting λ1= λu= qf,I= qf,v= qf,I;res= 1 and qf,v;res= 100. The process covariance for the residual grid voltage harmonic state is intentionally larger, as we’d like it to accumulate the Internal Use remaining harmonics of different frequencies. Sample Rates To alleviate an algorithm from being encumbered by its single most complex task, the sample rates may be decoupled. This may allow the most demanding portions to be executed the slowest, whilst other simpler portions are free to execute faster. In addition, decoupling sample rates presents an exciting opportunity to parallelize an algorithm for efficient implementation. Of the entire LQG-SHC control algorithm presented herewith, the optimized pulse pattern QP solver may have the highest computational burden. Consequently, to permit implementation on feasible and inexpensive hardware, it may be executed at the lowest sample rate possible. Whereas other functions, such as the harmonic observer 22 and / or the modulator 36, may be simple and may be executed at higher sample rates. For example, for k = 5, good and technically feasible samples rates for the harmonic controller 22 and of the harmonic observer (optionally incl. a modulator) may be 10kHz and 100kHz, respectively. To ensure the higher order selected harmonics can be controlled and estimated, all sample rates must also satisfy Nyquist’s Criterion. Optimized Pulse Patterns for Distorted Grids with Constraints (OPP-HW-DG+C) An objective function for optimizing new half-wave (HW) optimized pulse patterns ^^ that are compensated for the grid voltage harmonics and constrained to the limits of the grid current harmonics ^^^̂^,^^^^;ℎmay be: where, Internal Use Examining (A.1) and (A.1a), ∆an and ∆bn encapsulate the difference between the input and grid voltage Fourier Coefficients. Any mismatch between them is penalised by the familiar 1 / n2weighting since an RL output impedance 20 is assumed. Whereas the constraint limits a magnitude Ig;nof each of the grid current harmonics ^^^̂^,^^^^;ℎ, to apercentage of the fundamental load current ^^^^ = ^^^∗^;1, wherein Vi;n is again the difference between the input and grid voltage harmonic Fourier Coefficients, as this is the voltage impressed across an output admittance To(s). The likelihood offinding a feasible solution to (A.1) is primarily impacted by the number k of switching angles , the outputfilter’s frequency response and how stringent the grid current harmonic limits are. Appropriate limits may be derived from IEEE-519. So, in the steady-state, a new approach for designing optimized pulse patterns that are robust to distorted grid voltages is proposed. Denoted OPP-HW-DG+C, it incorporates the grid voltage harmonics ^^^^,^^^^;ℎ, such as those estimated by the first SSKF 40, into the objective function. This empowers the new optimized pulse pattern ^^ ^^^^^^ ^^,^^^^^^with input disturbance rejection. Linear Weighted Least Squares Matrices The parameters for the linear weighed least squares objective function from (3.3.7) may be: Internal Use

[0002] While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive; the invention is not limited to the disclosed embodiments. Other variations to the disclosed embodiments can be understood and effected by those skilled in the art and practising the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single processor or controller or other unit may fulfil the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. Any reference signs in the claims should not be construed as limiting the scope. Internal Use LIST OF REFERENCE SYMBOLS 10 converter system 12 control unit 14 electrical power converter system 16 electrical converter 18 AC grid voltage 20 RL output impedance 22 harmonic observer 24 harmonic controller 26 external unit 30 harmonic setpoint generator 34 pulse pattern QP solver 36 modulator 40 first Kalman filter 42 second Kalman filter LQR Linear Quadratic Regulator ^^^^,^^^^^^grid current ^^^^,^^^^^^grid voltage ^^^̂^,^^^^;ℎgrid current harmonics ^^^^,^^^^;ℎgrid voltage harmonics ^^ ^^^^^^ ^^,^^^^^^optimized pulse pattern ^^ ^^^^^^ ^^,^^^^^^switching angles ^^^∗^,^^^^;ℎstate harmonic setpoints ^^^∗^^^;ℎinput harmonic setpoints ^^^∗^,^^^^^^;1fundamental grid current setpoint modulation index ^^^^^^^^switching angles from a lookup-table ^^^^^^;ℎinput harmonic commands Internal Use

Claims

CLAIMS 1. A method for controlling an electrical converter (16), the electrical converter (16) being coupled to a DC energy source and to an electrical grid and being configured for converting a DC voltage from the DC energy source into an AC voltage and to feed the AC voltage into the electrical grid, the method comprising the steps of: receiving a grid current signal being representative for a grid current (^^^^,^^^^^^) of the grid and a grid voltage signal being representative for a grid voltage (^^^^,^^^^^^) of the grid; determining grid current harmonicsthe grid current (^^^^,^^^^^^) and grid voltage harmonics (^^^^,^^^^;ℎ) of the grid voltage (^^^^,^^^^^^) from the grid voltage signal and the grid current signal; determining an optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^) for driving the electrical converter (16) from the determined grid current harmonicsthe determined grid voltage harmonics (^^^^,^^^^;ℎ), and a given fundamental grid current setpoint (^^^∗^,^^^^^^;1), wherein the optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^) comprises switching anglesfor the electrical converter (16) over a next modulation period of the electrical converter (16); and applying at least the next switching angledetermined from the optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^) to the electrical converter (16).

2. Method in accordance with claim 1, wherein the optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^) is determined from the determined grid current harmonicsthe determined grid voltage harmonics (^^^^,^^^^;ℎ), and a given fundamental grid current setpoint (^^^∗^,^^^^^^;1) by determining state harmonic setpointsand input harmonic setpoints (^^∗^^^^;ℎ) from the determined grid voltage harmonics (^^^^,^^^^;ℎ) and the given fundamental grid current setpoint (^^^∗^,^^^^^^;1) and by determining the optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^) from the determined state harmonic setpoints (^^^∗, the determined input harmonic setpoints (^^∗^^^^;ℎ) and the grid current harmonics3. Method in accordance with claim 2, wherein Internal Usethe state harmonic setpoints and the input harmonic setpoints are determined from the determined grid voltage harmonics (^^^^,^^^^;ℎ) and the given fundamental grid current setpoint by d∗etermining a modulation index ^^1from the determined grid voltage harmonics (^^^^,^^^^;ℎ) and the given fundamental grid current setpointby determining switching angles ^^^^^^^^of a predetermined optimized pulse pattern stored in a lookup-table depending on the modulation index ^^1∗and by determining the state harmonic setpointsthe input harmonic setpoints (^^∗^^^^;ℎ) from the determined switching angles ^^^^^^^^.

4. Method in accordance with claim 3, wherein the state harmonic setpoints∗and the input harmonic setpoints (^^^^^^;ℎ) are determined from the determined switching angles ^^^^^^^^by determining Fourier Coefficients ^^∗^^, ^^^∗^from the determined switching angles ^^^^^^^^, by determining an amplitudeand a phase ^^^∗^of the corresponding harmonics from the determined Fourier Coefficients ^^∗^^, ^^^∗^, and by determining the input harmonic setpointsfrom the amplitudeand the phase ^^^∗^and by determining the state harmonic setpoints (^^^∗^,^^^^;ℎ) from the input harmonic setpoints (^^^∗^^^;ℎ) and the grid voltage harmonics (^^^^,^^^^;ℎ).

5. Method in accordance with one of claims 2 to 4, wherein the optimized pulse patternis determined from the determined state harmonic setpoints the determined input harmonic setpoints (^^∗^^^^;ℎ) and the grid current harmonics (^^^̂^,^^^^;ℎ) by determining input harmonic commands (^^^^^^;ℎ) for the electrical converter (16) and by determining the optimized pulse patternfrom the determined input harmonic commands (^^^^^^;ℎ).

6. Method in accordance with claim 5, wherein The optimized pulse patternis determined from the determined harmonic commands (^^^^^^;ℎ) by determining the switching anglesof the optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^) from the determined input harmonic commands (^^^^^^;ℎ). Internal Use7. Method in accordance with one of the preceding claims, wherein the grid voltage harmonics (^^^^,^^^^;ℎ) are determined from the grid voltage signal, the grid current signal, and the optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^), and / or the grid current harmonics (^^^̂^,^^^^;ℎ) are determined from the grid current signal, the switching anglesgrid voltage harmonics (^^^^,^^^^;ℎ).

8. Method in accordance with claim 7, wherein the grid voltage harmonics (^^^^,^^^^;ℎ) are estimated by a first Kalman filter (40); and / or the grid current harmonics (^^^̂^,^^^^;ℎ) are estimated by a second Kalman filter (42).

9. Control unit (12) for controlling an electrical converter (16), wherein an electrical converter (16) is coupled to a DC energy source and to an electrical grid and being configured for converting a DC voltage from the DC energy source into an AC voltage and to feed the AC voltage into the electrical grid, the control unit (12) comprising: a harmonic observer (22) being electrically coupled to the electrical grid and being configured for receiving a grid current signal being representative for a grid current (^^^^,^^^^^^) of the electrical grid and a grid voltage signal being representative for a grid voltage (^^^^,^^^^^^) of the electrical grid and for determining grid current harmonics (^^^̂^,^^^^;ℎ) of the grid current and grid voltage harmonics (^^^^,^^^^;ℎ) of the grid voltage (^^^^,^^^^^^) from the grid voltage signal and the grid current signal; and a harmonic controller (24) being electrically coupled to harmonic observer (22) and to the electrical grid, and being configured for determining an optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^) for driving the electrical converter (16) from the determined grid current harmonics the determined grid voltage harmonics (^^^^,^^^^;ℎ), and a given fundamental grid current setpoint (^^∗), wherein the optimized pul ^^^^^^ ^^,^^^^^^;1se pattern (^^^^,^^^^^^) comprises switching angleselectrical converter (16) over a next modulation period of the electrical converter (16), and for applying at least the next switching angledetermined from the optimized pulse patternto the electrical converter (16).

10. Control unit (12) according to claim 9, wherein Internal Usethe harmonic controller (24) comprises a harmonic setpoint generator (30) for determining state harmonic setpoints and input harmonic setpoints (^^∗^^^^;ℎ) from a given fundamental grid current setpoint (^^^∗^,^^^^^^;1) and determined grid voltage harmonics (^^^^,^^^^;ℎ).

11. Control unit (12) according to claim 9, wherein the harmonic controller (24) comprises a Linear Quadratic Regulator (LQR) coupled to the harmonic controller (24) and being configured for determining input harmonic commands (^^^^^^;ℎ) for the electrical converter (16) from the state harmonic setpointsthe input harmonic setpointsand the grid current harmonics 12. Control unit (12) according to claim 11, wherein the harmonic controller (24) comprises an optimized pulse pattern QP solver (34) coupled to the Linear Quadratic Gaussian Regulator (LQR) and being configured for determining the switching angles of the o ^^^^^^ptimized pulse pattern (^^^^,^^^^^^) from the input harmonic commands (^^^^^^;ℎ).

13. Control unit (12) according to claim 12, wherein the harmonic controller (24) comprises a modulator (36) coupled to the optimized pulse pattern QP solver (34) and being configured to apply the optimized pulse pattern (^^ ^^^^^^ ) determined from the switching anglesto the electrical converter (16) 14. Control unit (12) according to one of claims 9 to 13, wherein the harmonic observer (22) comprises: a first Kalman filter (40) configured for estimating the grid voltage harmonics (^^^^,^^^^;ℎ) from the grid voltage signal, the grid current signal, and the optimized pulse pattern (^^ ^^^^^^ ^^,^^^^^^); and / or Internal Usea second Kalman filter (42) configured for estimating the grid current harmonics from the grid current signal, the switching anglesvoltage harmonics (^^^^,^^^^;ℎ).

15. A converter system (10), comprising: an electrical converter (16) being coupled to a DC energy source and to an electrical grid and being configured for converting a DC voltage from the DC energy source into an AC voltage and to feed the AC voltage into the electrical grid; and a control unit (12) according to one of claims 9 to 14 being coupled to the electrical converter (16) and being configured for controlling the electrical converter (16) in accordance with the method according to claims 1 to 8. Internal Use