A Method for Designing and Optimizing the Electrical Parameters of Dynamic Tuning Passive Filter

: Power electronics-based apparatuses absorb non-sinusoidal currents. These are considered non-linear and non-symmetrical loads for the power grid, and they generate a harmonic current. The dynamic tuning passive ﬁlter (DTPF) is one of the best solutions for improving power quality and ﬁltering out harmonic currents to get a symmetrical current waveform. The electrical parameters of DTPF can inﬂuence its absorbing harmonic current, tuning performance, and cost. In this paper, a method for designing and optimizing the electrical parameters of dynamic tuning passive ﬁlter is proposed in order to improve the effectiveness of DTPF and the symmetry level of the power source. First, according to the characteristics of the harmonic source, the design technical indicators of DTPF, and its topology, the design procedure for the electrical parameters of DTPF is proposed. Second, based on detailed analysis of the test results, the range of the harmonic current absorption coefﬁcient is determined. Third, the range of the relationship coefﬁcient is determined by analyzing the impact of the ﬁlter capacitor’s capacity on the ﬁlter performance. Fourth, the calculation method for the electrical parameters of DTPF is devised. Finally, the validity of this method is veriﬁed by several engineering cases, and the electrical parameters of the ﬁlter capacitor and electromagnetic coupling reactance converter (ECRC) under the lowest total cost are simulated and optimized. Our approach can optimize the electrical parameters of DTPF and improve the harmonic suppression effectiveness, thus leading to a more symmetrical waveform and successfully avoiding power grid problems. The research results of this study not only provide a basis for the design of ECRC, but also lay a foundation for the machining DTPF.


Introduction
To date, power electronics have been extensively applied to numerous fields, such as industrial manufacturing, microgrids, transportation systems, distributed generation interfacing converters, and handheld devices. Power electronics-based apparatuses absorb non-sinusoidal currents. These are considered non-linear and non-symmetrical loads for the power grid, and they generate harmonic current, which is of vital significance for the improvement of the power quality in contemporary society. Its occurrence may result in conductor overheating, voltage distortion, transformer malfunctions, unnecessary protection device trips, and interference in the telecommunication network [1][2][3][4][5][6][7].
Recent years have witnessed in-depth investigation of the causes, hazards, inhibition strategies, and related technologies concerning harmonics. One of the best solutions for improving power quality and compensating harmonic currents to get a symmetrical waveform is to install a power filter at the point closest to the harmonic source. In order to eliminate the harmonic disturbance, three kinds of filters were researched, including passive power filter (PPF), active power filter (APF), and hybrid active power filter (HAPF). Each of them has their own advantages and disadvantages, and are all suitable for different occasions.
The passive power filter (PPF) is, in comparison to other techniques, the most popular method for harmonic limination, due to its robust, simple design, low cost, and maintenancefree operation. PPF can also act as reactive power compensation to the system, thereby being capable of improving the power factor and reducing losses, simultaneously. However, parameter variation brought about by aging or temperature could deteriorate the filtering features of PPF. Moreover, the design of its parameters is a nonlinear mixed integer programming problem with various constraints. Conventionally, its key parameters are determined by experience, based on a single technical index or economic index. This inevitably elicits heavy dependence on subjective experience, thus making it difficult to satisfy a number of requirements. The results are affected by the power source impedance, which tends to trigger series resonance and parallel resonance [8]. Inspired by the nature of PPF, many researchers have explored effective ways to solve relevant problems, including the enhanced bacterial foraging optimization (EBFO) algorithm [9], fractional-order quaternion-valued neural networks with neutral delays and external disturbance [10], a differential evolution algorithm [11], an analytical method for calculation [12], and a multi-objective optimization algorithm [13,14]. In particular, the conservative power theory has been proposed to evaluate parameters associating with product quality, aiming to obtain subsidies for the design of tuned passive filters through focusing on the reduction of harmonic distortion indices regarding voltage and current. It can also contribute to the reactive compensation of the electrical system under research. Nevertheless, engineers might face some challenges while designing PPF, as various measurements, conditions, and practical standards need to be be taken into careful account. Inconvenience will emerge when these issues make PPF unable to maintain the system's operation within acceptable power quality for which a solution must be put forward [15][16][17][18].
PPF (e.g., single-tuned) should be tuned to a frequency slightly lower than that of the harmonic to be eliminated because the aging of their elements (LC), atmospheric conditions, or fault can cause a change in the initial tuning frequency of the PPF. This tuning frequency should be chosen in consideration of the equivalent harmonic impedance of the power grid to be eliminated, which should be smaller than that of the PPF [19]. The harmonic to be eliminated should be a specific load characteristic harmonic (or electrical system characteristic harmonic) after the fundamental harmonic. A bad choice in the PPF resonance frequency can cause the amplification of harmonics at the electrical grid side and filter terminals [20].
The defects of PPF have urged researchers to seek other alternatives, among which APF has obtained wide attention as a type of power electronic that can suppress harmonics dynamically. However, its application in harmonic suppression of large capacity fields is limited because its direct carrying of the power fundamental voltage and current requires a larger capacity converter [21,22]. In view of this drawback, HAPF was devised, based on PPF and APF [23]. However, in terms of the entire filter system, which employs either a merely passive power filter or hybrid power filter, it is of vital significance to reasonably design the parameters of the PPF [24].
Could the strengths of PPF and APF be combined? A theoretical and experimental comparison between the different THD indexes were presented [25]. The controlled modulate power filters (MPF) were introduced inside a microgrid. It has the advantages of adjusting the voltage distribution, having proficient energy use, upgrading the control scheme, and improving the power quality [9]. The dynamic tuning passive filter (DTPF) was accordingly proposed by the authors [26][27][28][29][30][31]. Its principle is based on a novel electromagnetic coupling reactance converter (ECRC). The primary reactance winding of the ECRC is connected in series with a filter capacitor, and the secondary winding of the ECRC is connected a power electronic impedance converter (PEIC). The developed ECRC is featured by electromagnetic coupling and adjustable inductance, which facilitate the realization of continuous parameter adjustment and dynamic DTPF tuning. DTPF is characterized by the strengths of its harmonic suppression and energy saving quality. With the minimum offset of a certain fundamental harmonic current as the control target, the inductance of ECRC is adjusted for the resonance branch to constantly satisfy the resonance condition and absorb the harmonic current to a given value. DTPF, featured by high reliability, a simple structure, large capacity, and low cost, is capable of meeting new requirements for power quality, and thus, is widely utilized in industry and transportation.
ECRC electrical parameters mainly include the inductance (L n1 ), the rated current (I Ln1 ) and apparent power (S N ) of the ECRC primary reactance winding. The electrical parameter of the filter capacitor is its capacity (Q Cs ). In this study, it is found that these electrical parameters of DTPF mainly affected the absorbing harmonic current (I f ), tuning performance and cost of DTPF. The larger the I f , the larger the Q Cs of the filter capacitor; the larger the S N , the higher the cost of DTPF. Based on the resonance condition, L n1 under main frequency f h of harmonic current is calculated. Furthermore, the inductance adjustment range of the ECRC affects the tuning performance of DTPF; the larger the value, the better the tuning performance. In addition, the electrical parameters corresponding to the lowest total cost are the basis of the machining ECRC.
Therefore, a method for designing and optimizing the electrical parameters of dynamic tuning passive filter is proposed in this paper. The major contributions of the current study lie in (1) the design procedure for the electrical parameters of the DTPF, (2) the design method and optimization of filter capacitor's capacity and rated parameters of ECRC to comply with their technical indicators, and (3) the investigation on the best electrical parameter. The rest of the paper is presented in the following order. The topological structure of a DTPF, filter performance evaluation indices, and implementation procedures are considered in Section 2. In Section 3, based on detailed analysis of the test results, the range of the harmonic current absorption coefficient is determined. The range of the relationship coefficient is also determined by analyzing the impact of the filter capacitor capacity on the DTPF performance. Section 4 advances the implementation of the design method for the electrical parameters of DTPF. Section 5 proposes a genetic optimizing method of the electrical parameters of DTPF and develops a genetic optimization simulation system. Section 6 verifies the effectiveness and the symmetry level of the proposed design method by several engineering cases. The relationship model between electrical parameters and harmonic current is also built in this section, based on which the cost and parameters of DTPF can be estimated rapidly. Finally, the discussion and suggestions for future studies are presented.

Topological structure of a DTPF
As the key component of DTPF, ECRC is a reactor with variable impedance and adjustable inductance. The primary reactance winding of the ECRC is connected in series with a filter capacitor bank (FCB), while its secondary winding is connected to a power electronic impedance converter (PEIC). Taking a single DTPF as an instance, its photograph, block diagram, and simplified topology are shown in Figure 1. UCs In Figure 1, Q s is a circuit breaker, KM 1 -KM n are AC contactors, C s is the equivalent capacitance value of FCB, L n1 is the equivalent inductance of ECRC, L n1 and C s form a series resonance branch, and U s , U Ln1 , and U Cs are the voltage of power supply, the terminal voltage of ECRC, and the terminal voltage of FCB, respectively. In addition, NL is a nonlinear load and also a harmonic source. PEIC is the power electronic impedance converter. The mechanism and control structure of DTPF are illustrated in [26,27].

Main circuit
The systematic structure of DTPF is comprised of two parts, namely, a control system and a main circuit, which consists primarily of Q s , ECRC, FCB and KM 1 -KM n . The PEIC is composed of the reactance control winding as well as six thyristors from V1 to V6 driven through phase control. In accordance with the control principle of the power electronic conversion technology, A-B, A-C, B-C, B-A, C-A and C-B correspond to thyristors V 1 , V 3 , V 5 , V 4 , V 6 and V 2 , respectively. For the purpose of achieving the impedance transformation of the three-phase high impedance inverter, a pair of thyristors needs to be triggered every 60 degrees.
The control system includes a harmonic sensor (SP), a controller, a thyristor pulse trigger board (PTB), a touch screen (TS), a D/A converter (D/A), a digital input and output (I/O), etc. Information related to harmonics is gathered by the system through SP; control decisions, including data processing and filtering algorithm optimization, are made by the controller. There are two ways to output the results. The first is D/A, which controls the PEIC through PTB achieves the transformation and continuous control of the electromagnetic parameters of the ECRC. The second is I/O, which controls the dynamic switching of the FCB in the main circuit. These are the two methods used by the controller to control the signal output for the purpose of tuning and filtering the harmonic current.

Filter Performance Evaluation Indices
The performance evaluation indices of DTPF are presented to evaluate its filtering performance, efficiency, and energy-saving effect.
Let I s0 , I h0 and cos θ 0 represent the current RMS, the h-th harmonic current, and power factor at the test point of harmonic source without DTPF, respectively, whereas I s1 , I h1 and cos θ 1 represent the current RMS, the h-th harmonic current and power factor at the test point of the harmonic source with DTPF. I SD denotes the design value of the harmonic current absorbed by DTPF.

•
Harmonic current absorption rate: The harmonic current absorption rate of DTPF equals the ratio of I h0 − I h1 to I h0 . It can be expressed as follows: This rate reflects the impact of DTPF on filtering the harmonic current, and the filtering performance can be improved with the increase in its value.

•
Filter efficiency: The filter efficiency equals the ratio of I h0 − I h1 to I SD . It can be expressed as follows: The filter efficiency signifies the degree to which DTPF reaches the design value, and a larger value is more conducive to the filter efficiency.
• Current RMS decrease rate and power factor increase rate: The current RMS decrease rate equals the ratio of I s0 − I s1 to I s0 . It can be expressed as follows: The power factor increase rate equals the ratio of cos θ 1 − cos θ 0 to cos θ 0 . It can be expressed as follows: The above two rates reflect the energy-saving effect of DTPF with larger rates generating a better energy-saving effect.

Implementation Procedures of Design Method
In the design of DTPF, the problem of the harmonic current absorption coefficient (K sh ) must be considered, which is directly related to the selection of the filter capacitor value. A higher K sh requires a greater capacitor value. So, K sh is one of the design technical indicators of DTPF.
Definition: The h-th harmonic current absorption coefficient K sh of DTPF equals the ratio of the h-th harmonic current absorbed by DTPF (I f ) to the h-th harmonic current of the harmonic source ( I h0 ). K sh can represent and verify the design ability of DTPF to absorb harmonic currents and is a prerequisite for designing the electrical parameters of the DTPF. Its value can be calculated by the following: Definition: The relationship coefficient is defined as the ratio of the filter capacitor's capacity Q Cs to I f , denoted by K s , and its value can be calculated by the following: K s represents the quantitative correlation between the harmonic current absorption value and the capacity of the filter capacitor.
According to the characteristics of the harmonic source, the design technical indicators of DTPF include the current, voltage and the harmonic order of the harmonic source, K sh and K s . The design method for the electrical parameters of DTPF is proposed in this paper, and its implementation procedures are as follows: • Step 1: By analyzing the expression of the h-th harmonic current absorption coefficient, the value range of K sh is determined;

•
Step 2: Through experimental research, the relationship between the current absorbed by DTPF and the filter capacitor's capacity is analyzed, and then the value range of the relationship coefficient K s can be determined; • Step 3: The design method of the filter capacitor's capacity is proposed. According to the design value of the h-th harmonic current absorbed by DTPF (I SD ), the harmonic current absorbed by DTPF (I f ) is determined; then the filter capacitor's capacity is designed, based on the relationship coefficient K s ; • Step 4: The design method of the rated parameters of ECRC is proposed. The inductance of the ECRC is calculated based on the resonance conditions and the engineering adjustment range. According to the harmonic current absorbed by DTPF (I f ) and considering the engineering application requirements, the rated current and rated capacity of the ECRC are calculated.

Range of Absorption Coefficient
The filter system consists of a power transformer (PT), the DTPF, and the nonlinear load (NL). Its equivalent circuit is shown in Figure 2.

W1
NL W2 Based on Figure 2, the steady-state harmonic model of the alternating current system can be obtained, as shown in Figure 3. In Figures 2 and 3, Z j and Z f are, respectively, the equivalent impedance of the secondary side of PT and DTPF;İ h0 ,İ f andİ j are the h-th harmonic current of the harmonic source, the harmonic current absorbed by DTPF, and the harmonic current flowing into the secondary side of PT, respectively. The RMSs are expressed as follows: The absorption coefficient of the h-th harmonic current obtained by Equation (8) is the following: where The conclusions drawn from Equations (7) and (8) are as follows: 1.
By adjusting K sh , the value of the h-th harmonic current absorbed (filtered) by DTPF can be altered. The larger the K sh , the larger the h-th harmonic current absorbed by DTPF, and the smaller the h-th harmonic current flowing into the power grid. By contrast, the smaller the K sh , the smaller the h-th harmonic current absorbed by DTPF, and the larger the h-th harmonic current injected into the power grid; 2.
When K sh = 1, the h-th harmonic current injected into the power grid is 0, realizing the full tuning of DTPF.
In practical applications, K sh cannot be exactly equal to 1. Instead, its value is within the range of 0 to 1. The major reasons for the variation in the value of K sh are as follows: • The frequency of the power supply varies with the fluctuation in the nonlinear load; • The inherent harmonics and converted harmonics of the nonlinear load; • The larger the K sh , the greater the investment and the higher the cost.
In summary, the DTPF can achieve full tuning filtering theoretically, but in practical applications, this is infeasible. According to engineering experience, K sh is generally reasonable in the range of 0.6 to 0.8.

Range of Relationship Coefficient
In this study, the range of the relationship coefficient (K s ) is determined by analyzing the impact of the filter capacitor's capacity on the filter performance. On this basis, the capacity parameters of filter capacitor are designed.
For the purpose of testing the impact of the filter capacitor's capacity on the filter performance, a DTPF test platform is constructed, according to Figure 1. The platform consists of a three-phase power supply system, a DTPF, and a harmonic generator. The schematic diagram of its composition is shown in Figure 4. The harmonic generator is modified by an active power harmonic filter. It is mainly used to simulate harmonic sources to inject harmonic currents of different frequencies and magnitudes into the power grid. The DTPF is developed, according to the test requirements.
It is found from the field test that the 5-th harmonic current component generated by the common frequency converter and DC converter account for 70% of the whole harmonic current component. Hence, this current is determined as the object of harmonic filtering.
The following tests are performed on the DTPF test platform: • Test (I): The harmonic generator is used to inject 5-th harmonic currents of different magnitudes into the power grid with the capacity of the filter capacitor remaining unchanged. Then, the amount of the 5-th harmonic current absorbed by the DTPF is obtained through testing.
In this test, the capacity of the filter capacitor is set to 10 kVar, and four groups of 5-th harmonic currents (I h0 ) with magnitudes of 7.07 A, 10.6 A, 12.73 A, and 17.68 A are injected into the power grid of the test platform through the harmonic generator. Then, tests are conducted on DTPF to obtain the 5-th harmonic currents (I f ) absorbed by the DTPF. The test results obtained from Test (I) are listed in Table 1. In Table 1, I j represents the remaining 5-th harmonic current in the grid after filtering. Theoretically, the sum of the 5-th harmonic current (I f ) absorbed by the DTPF and I j should be the 5-th harmonic current (I h0 ) that flows into the grid through the harmonic generator. Nevertheless, due to the influence of grid fluctuations or background harmonic currents, the sum of I f and I j is not equal to I h0 in the test, and there is a small deviation. From Table 1, the broken lines of I h0 and I f in the above four cases are obtained as shown in Figure 5. Result analysis of Test (I): 1.
Judging from Figure 5, under constant capacity of the filter capacitor, with the gradual increase in the 5-th harmonic current injected into the power grid, the 5-th harmonic current absorbed by the DTPF tends to be saturated (the 5-th harmonic current that the DTPF absorbed in this test is up to about 6.5 A); 2.
For the same DTPF, under the condition that the harmonic frequency and the capacity of the filter capacitor stays constant, the amount of harmonic current absorbed by the DTPF basically remains unchanged.
• Test (II): The harmonic generator is utilized to inject the 5-th harmonic currents of the same magnitude into the power grid, after which the capacity of the filter capacitor is altered, so the magnitude of the 5-th harmonic current absorbed by the DTPF is obtained through test.
In this test, the capacity of the filter capacitor is set to 10 kVar, 15 kVar, 20 kVar and 25 kVar, respectively. The harmonic generator is used to inject the 5-th harmonic current with an magnitude of 17.68 A into the power grid, and then the capacity of the filter capacitor is changed to measure the 5-th harmonic current absorbed by DTPF.
The results obtained from Test (II) are given in Table 2. By analyzing the test data in Table 2, the correlation between Q Cs and I f can be obtained as shown in Figure 6. The results of Test (II) show that under the condition that the harmonic current of the harmonic source remain unchanged, and the 5-th harmonic current absorbed by the DTPF increases with the rising capacity of the filter capacitor Q Cs , thus generally showing a linear relationship. The corresponding relationship coefficient K s about 5-th harmonic currents (I f ) is approximately 1.57.

Design of Filter Capacitor Parameters
According to the conclusions of Tests (I) and (II), it is very important to determine the filter capacitor's capacity reasonably, and its capacity directly affects the magnitude of harmonic current absorbed by DTPF.
The calculation procedures of the filter capacitor's capacity is as follows: Step 1: According to K sh (generally 0.6-0.8) and the harmonic source current (I h0 ), the design value (I SD ) of the harmonic current absorbed by DTPF is determined. Its calculation equation is as follows: Step 2: With the relationship coefficient K s (usually 1.2-2.2) and I SD , the filter capacitor's capacitance Q Cs is determined, and the filter capacitor C s is calculated.
The capacity of the filter capacitor Q Cs under the rated operational voltage U Cs is calculated by the following: where ±∆Q is a fine adjustment of the filter capacitor. It ranges from 1 to 5 kVar, so that the value of Q Cs is an integer multiple of 5, which is consistent with the rated parameters of the filter capacitors on the market. C s is the capacitor (uF) at the main frequency ( f h ) of the harmonic current.
The filter capacitor bank (FCB) is usually composed of several capacitors. For example, the capacities of low-voltage capacitors are generally 5 kVar, 10 kVar, 15 kVar, 20 kVar and 30 kVar, which can be connected in parallel to obtain a larger capacity.

Design of ECRC Parameters
ECRC parameters mainly include the inductance (L n1 ), the rated current (I Ln1 ), and the rated apparent power (S NLn1 ) of the ECRC primary reactance winding.
Based on the resonance condition X n1 = X Cs and considering the engineering adjustment range, the inductance L n1 under main frequency ( f h ) of harmonic current are calculated as follows: where L s is the filter inductance that meets the series resonance , and K 1 is the selection coefficient. According to practical engineering experience, the value of K 1 ranges from 1.5 to 2.0. Therefore, in accordance with the engineering application requirements and the design value of the h-th harmonic current absorbed by DTPF (I SD ) that was determined by Equation (10), the rated current of the ECRC primary reactance winding is calculated by the following: where K 2 is the absorption current coefficient of the ECRC primary reactance winding. According to practical engineering experience, the value of K 2 ranges from 1.8 to 2.2. The rated apparent power(S NLn1 ) is calculated by the following:

Genetic Optimizing Method and Simulation System
Based on the global optimization capability of the genetic algorithm, a genetic optimizing method of the electrical parameters of DTPF is proposed, a genetic optimization simulation system is developed, and the main electrical parameters of the filter capacitor and ECRC are designed.
The genetic algorithm (GA) is a parallel, random and adaptive search algorithm developed from the natural selection and evolution mechanism of the biological world. Compared with the traditional search and optimization algorithm, the search points are parallel rather than single points, and only the objective function and the relative fitness function are needed without auxiliary information. At present, genetic algorithm is widely used in function optimization, combinatorial optimization, production scheduling, automatic control, image processing and other fields. However, there is still no effective quantitative analysis method in terms of algorithm accuracy and reliability. In addition, there are also shortcomings, such as inaccuracy of coding representation and premature convergence.
The DTPF parameter is optimized by the genetic algorithm because the initial investment cost of DTPF is nonlinear and nonconvex. The genetic algorithm is used to optimize the relationship coefficient K s (which is needed for calculating the capacity of the filter capacitor), as well as the selection coefficient K 1 and the absorption current coefficient K 2 (which are necessary for calculating the inductance and rated current of ECRC). Then, such parameters as Q Cs , L n1 and I Ln1 which corresponded to the lowest cost are obtained.
The genetic optimizing method in this paper is used for parameter optimization, which belongs to real number field, and the linear combination or convex combinationin [32,33] is used during recombination. The proposed procedure is convergent.

Optimization of Objective Function
The initial investment cost of DTPF is mainly composed of core components (filter capacitors and an ECRC), a cabinet, a control system, and auxiliary materials. The DTPF parameters are optimized by the core component cost F cc , and its minimum value is the optimization goal. F cc can be calculated by the following: where S NLn1 and k L are the apparent power (kVA) and unit price factor of the ECRC, respectively; Q Cs and k c are the capacity (kVar) and unit price factor of the filter capacitor bank, respectively; and F max is the upper limit of the initial investment cost.

Optimization Steps of Electrical Parameters
The MATLAB genetic algorithm toolbox of Sheffield University is used to optimize the design of the electrical parameters of DTPF. The optimization design flow chart of the DTPF electrical parameters is shown in Figure 7.
The genetic optimization steps of DTPF parameters are as follows: Step 1: Initialization Parameters, such as the number of individuals (NIND), the maximum number of genetic generations (MAXGEN), the number of variables (NVAR), the precision of variables (PRECI), the generation gap (GGAP), the crossover rate (COP), and the mutation probability (MUP) are set. The generation counter is reset.
Step 2: Creation of initial population According to MAXGEN, NVAR and PRECI, the "crtbp" function is called to create an initial population, Chrom, whose element is a random number. The size y s of Chrom is as follows: where y n , y w and y b are the number of individuals, the dimension of the variable, and the precision of variables, respectively.
Step 3: Creation of decoding area The decoding are consist of the upper and lower limits of the relationship coefficient K s , the upper and lower limits of the selection coefficient K 1 , and the upper and lower limits of the absorption current coefficient K 2 . The decoding area Field D = [Len; Lb; Ub; Codescale] is created by setting the length Len of the binary string, the lower limit Lb and upper limit Ub of the variables [K s ; K 1 ; K 2 ], and the "rep" function is called to set the decoding rules of the variables [K s ; K 1 ; K 2 ].
Step 4: Binary string decoding The "bs2rv" function is called to decode the initial population Chrom so as to obtain the binary string "evlautestrum" of the initial population.
Step 5: Calculation of initial objective function value First, the evaluation function "evlatuefuntion" is constructed, according to the objective function Equation (15). Subsequently, the "evlautestrum" and the parameters required for the objective function computation are substituted into the "evlatuefuntion" function to calculate the value (ObjV) of the initial objective function.
Step 6: Iterative optimization parameters • Reset the algebraic counter. • Judge whether the termination condition is satisfied. If the termination condition is satisfied, output the results and end. Otherwise, perform the following steps.
• Call "ranking (ObjV)" function, and sort the target values of individuals from small to large to obtain the fitness value FitnV. • Call "select (sus, Chrom, FitnV, GGAP)" function, select excellent individuals from the population Chrom and store them into the new population SelCh-select, with GGAP as the generation gap. • Iterate the operations of selection, recombination, mutation, calculation of the objective function value of the child, reinserting the child into the parent to obtain a new generation until the number of iterations reaches the maximum number of genetic generations.
Step 7: Result output The parameters corresponding to the lowest cost F cc , such as K s , U Cs , Q Cs , C s , k 1 , k 2 , L n1 , I Ln1 and S N , are obtained by outputting the optimal target value.

Determination of Optimization Results
According to the above optimization results of DTPF, the filter capacitor parameters, ECRC parameters, and the total cost are determined.

•
Determination of filter capacitor parameters: The voltage class and capacity of the filter capacitor can be obtained, according to the U Cs and Q Cs that correspond to the lowest total cost.

• Determination of ECRC parameters:
In order to design the machining parameters of ECRC, the technical indicators, such as the lower limit L n11 , upper limit L n12 , the rated current I Ln1 and the rated apparent power S N , are determined based on the optimized values of L n1 , I Ln1 and S NLn1 .
To satisfy the need of DTPF on dynamic tuning, the inductance of ECRC should be adjustable in a certain range. Thus, considering the machining error of the ECRC, L n11 and L n12 are determined based on engineering experience. They are given by the following: where K 31 is the lower limit adjustment coefficient, generally set as 0.92; K 32 is the upper limit adjustment coefficient, generally set as 1.15. The machining rated apparent power of the ECRC (S N ) is the average value of the capacities corresponding to the upper and lower limits of the inductance, namely, the following: • Determination of total cost: The prices are set, according to the filter capacitor purchased by and the ECRC developed by the author. The unit price of the capacitor is 90 CNY/kVar, and the unit price of the ECRC is 273 CNY/kVA. Therefore, based on the Q Cs and S N determined above, the total cost can be calculated by the following:

Optimization Simulation System
The genetic optimization simulation system for DTPF parameters is developed by-GUIDE tool in MATLAB 2019a. This optimization simulation system mainly consists of harmonic source, parameter settings (optimization parameters, GA parameters, and unit price), optimization results, optimal cost of each generation, and result output. Its main interface is shown in Figure 8.
In Figure 8, the designed "*.m" program is called by setting the CallBack function of the "button" to complete its design work. The specific steps are as follows: Step 1: Input the parameters of harmonic source (including the h-th harmonic current I h0 , voltage U s , harmonic order h, and harmonic absorption coefficient K sh ), and click the "Saving" button to call the corresponding callback program to save the harmonic source parameters.
Step 2: Complete parameter setting, including optimizing parameters, genetic algorithm (GA) parameters, and unit price.
Step 3: Click the "Optimizing" button to call the corresponding callback program so as to complete the electrical parameter optimization design of the DTPF.
Step 4: Click the "Plotting" button to call the corresponding callback program to display the optimal cost of each generation.
Step 5: Click the "Outputting" button to call the corresponding callback program to output the ECRC machining parameters.

Cases of Electrical Parameter Design
By setting the harmonic source parameters, the electrical parameters of the filter capacitor and ECRC under the lowest total cost can be designed and optimized.

Settings of Harmonic Source Parameters and Optimization Parameters
With the harmonic current to be suppressed in practical engineering applications as the object, the harmonic source parameters are set. The detailed parameter settings of harmonic source are shown in Table 3. The parameter optimization setting is as follows: • Optimization parameters: The relationship coefficient K s ranges from 1.2 to 2.2; the ECRC selection coefficient K 1 ranges from 1.5 to 2.0; the harmonic absorption coefficient K 2 ranges from 1.8 to 2.2.

• GA parameters
The number of individuals (NIND) is 200; the maximum number of genetic generations (MAXGEN) is 100; the precision of variables (PRECI) is 7; the number of the variable (NVAR) is 3; the generation gap (GGAP) is 0.9; the crossover rate (COP) is 0.7; and the mutation probability (MUP) is 0.01.

•
Unit prices: The unit price of the capacitor is 90 CNY/kVar, and the unit price of the ECRC is 273 CNY/kVA.

Parameter Optimization Results
According to the harmonic source parameters settings in Table 3 and the optimization parameters, the optimization results of DTPF electrical parameters are given in Table 4.

Output of Parameter Optimization Results
Based on the data presented in Table 4, the output of the parameter optimization results is obtained as shown in Table 5.

Rapid Estimation of Electrical Parameters
Based on the data in Tables 3-5, the relationship curves between the total cost, and electrical parameters and I SD are plotted by the data fitting method in Figure 9. Figure 9 shows the relationship curves of the design value of the h-th harmonic current absorbed by DTPF (I SD ) with the total cost (F cz ), the filter capacitor's capacitance (Q Cs ), and the machining rated apparent power (S N ), the lower limit of inductance (L n11 ), the upper limit of inductance (L n12 ), and the rated current (I Ln1 ) of ECRC.  Figure 9. Relationship curves between electrical parameters and absorbed current.
According to Figure 9, the relationship model between the total cost (F cz ), and electrical parameters (Q Cs , S N , L n11 L n12 , I Ln1 ) and the design value of harmonic current absorbed by the DTPF (I SD ) can be constructed as shown below: Furthermore, according to I SD , the total cost and electrical parameters can be estimated by Equation (20).

Verification and Application
The DTPF is installed at the front end of the harmonic source in the low voltage side of the workshop transformer in a textile mill. Figure 10 shows the U-phase current of the harmonic source and its harmonic spectrum. It is clearly proven that there is a significant distortion of the current, and that the total harmonic distortion (THD) is proportionally high as 21.7%. Figure 11 presents the U-phase current of the harmonic source and its harmonic spectrum with the DTPF, using the electrical parameters corresponding to Number 8 in Table 5. We can notice that the THD is reduced to 2.6%, all within the standard IEEE harmonics limits of 5%. It is observed that the source current with the DTPF is clearly sinusoidal and a symmetrical current waveform. Figure 10. U-phase current of the harmonic source and its harmonic spectrum without DTPF. Figure 11. U-phase current of the harmonic source and its harmonic spectrum with DTPF.

Conclusions
Aiming at exploring the influences of DTPF electrical parameters on absorbing harmonic current, the harmonic current absorption coefficient, tuning performance and cost, the optimization design of the DTPF electrical parameters is devised. In order to characterize the magnitude of the absorbing harmonic current harmonic current absorbed by DTPF, the value range of the harmonic current absorption coefficient is determined to be 0.6-0.8. Moreover, to characterize the quantitative relationship between the absorption value of the harmonic current and the filter capacitor's capacity, the relationship coefficient of DTPF is defined as the ratio of the absorbing harmonic current harmonic current absorbed (filtered) by DTPF to the capacity of the filter capacitor. For examining the impact of the filter capacitor's capacity on the filter performance, the optimal range of the relationship coefficient is determined to be 1.2-2.2. The design method of filter capacitor's capacity is also proposed. According to the harmonic absorption coefficient as well as the magnitude of harmonic source current, the absorbing harmonic current harmonic current absorbed by DTPF is determined, and then after considering the relationship coefficient, the capacity of the filter capacitor is achieved. In addition, the method for designing the rated parameters of the electromagnetic coupled reactance converter (ECRC) is presented. Considering the resonance conditions and the adjustment range in practical engineering projects, the induc-tance is calculated. Given the requirements in engineering applications, the rated current and capacity are calculated by the value of the absorbed harmonic current. With the genetic algorithm toolbox, a genetic optimization method for the DTPF electrical parameters is put forward. On this basis, a simulation system for optimizing the DTPF parameters is developed. Through this system, the capacitor capacitance, the inductance of ECRC, the current and other parameters corresponding to the lowest cost can be obtained and verified by examples. Based on the analysis of parameter optimization results, a relationship model is constructed by the data fitting methods, through which the cost and electrical parameters of the DTPF can be quickly estimated. The use of our approach can optimize the electrical parameters of DTPF, improve the harmonic suppression effectiveness and lead to a more symmetrical waveform, thus avoiding problems to the power grid. The research results of this study not only provide a basis for the design of ECRC, but also lay a foundation for the machining DTPF. The future development direction of DTPF will be to seek the development of core components, and try to replace filter capacitors with supercapacitors with enhanced electrochemical performance [34,35].