1 Introduction

The primary application of static var compensators (SVCs) in a power system is to maintain bus voltages and provide reactive power support. An SVC is a fast acting power controller device, which also can introduce new flexibility into the operations of a power system. For example, an SVC can improve angular stability with a damping controller installed [1]. This extra flexibility permits the SVC to enhance varying operational conditions and improve the use of existing installations. This paper aims at optimizing the controller parameters of SVCs to mitigate fault induced delayed voltage recovery (FIDVR) issues and, simultaneously, to improve angular stability when subjecting to a severe disturbance.

Several papers have studied the optimal allocation of dynamic var sources such as SVCs and static synchronous compensator (STATCOMs) to addressing FIDVR issues in [2,3,4,5,6,7,8,9,10,11,12,13,14]. References [2,3,4,5,6] mainly focus on the placement of dynamic var sources considering short-term instability. References [7,8,9,10,11,12,13,14] optimize the sizes of the dynamic var sources at predetermined locations.

Similarly, many papers have been published in the field of designing dynamic var source controllers for power system stability improvements [15,16,17,18,19,20,21,22,23]. References [15,16,17,18,19,20] require linearization of the system as they are based on small disturbance analysis or optimize the SVC parameters with linearized model and check with dynamic simulation once merely for verification. References [21,22,23] consider the dynamics of generator speeds that capture complex dynamics of system, especially during major disturbance.

Most of existing methods proposed in the aforementioned references optimize the allocation and settings of SVCs to improve either post-fault dynamic voltage recovery or angular stability. Few methods have been proposed to optimize SVCs addressing the dynamic recoveries of both bus voltages and generator speeds following a fault.

The main difficulties of the optimal controller parameters of dynamic var sources considering power system dynamics lie in two aspects. First, the problem of the optimization of controller parameters is a nonlinear, non-convex optimization problem under high dimensional computation complex. Second, checking the constraints on FIDVR and generator speeds requires the post-fault power system trajectories, which can only be obtained from accurate power system differential-algebraic equation (DAE) models by, e.g., a power system time-domain simulation. Thus, both a nonlinear optimization solver and a power system DAE solver are needed and should be integrated by an efficient interfacing algorithm.

In order to tackle this problem at a large scale, one solution is the blackbox optimization, which makes the simulation and constraints checking be a blackbox providing an output for any specified value of system inputs, i.e. the controller parameters of dynamic var sources for this case. The mesh adaptive direct search (MADS) algorithm is one of useful blackbox optimization algorithms [24, 25]. The MADS algorithm is a frame-based and derivative-free method under general nonlinear constraints. The MADS algorithm performs well on optimizations based on the result of expensive computer simulations in which the gradient information may not be available, contaminated noise can exist, or feasible solutions are not easy to find. The MADS algorithm has been proved effective in solving some power system optimization problems involving DAEs in recent studies: for example, the optimal PMU placement for power system dynamic state estimation based on empirical observability gramian [26], the optimal placement of dynamic var sources based on empirical controllability covariance [6], and the optimal sizes of dynamic var sources addressing FIDVR issue [27].

In this paper, five parameters of the leading-lag controllers with SVCs are optimized by an MADS-based method. Unlike [27], the SVCs are assumed to be placed at predetermined locations and have predetermined sizes to ensure post-fault fast voltage recovery. The optimization on the SVC control settings in this paper will aim at improving angular stability while still avoiding FIDVR issues. Adding angular stability improvement to the objective function will largely increase the computational complex of the optimization problem since the parameters of the SVC controller will need to be optimized. Also, simulated waveforms of generator speeds need to be recorded to check for damping ratios in addition to all existing constraints for the FIDVR issues in [27].

The optimization is conducted by integrating a power system time-domain simulation tool with an MADS solver under the framework of blackbox optimization [27]. The proposed approach is validated on the NPCC system representing the northeast region of the U.S. Eastern Interconnection. The five controller parameters of three SVCs planned in the NPCC are optimized for mitigating FIDVR issues as well as improving angular stability under given critical contingencies. The proposed approach can quickly converge to the optimal solution after a small number of iterative evaluations.

The rest of this paper is organized as follows. Section 2 discusses the formulation of the problem. Section 3 introduces the MADS algorithm. Section 4 proposes an MADS based approach to optimize controller parameters of SVCs. Then in Section 5, the proposed approach is validated on the NPCC 140-bus system. Finally, the conclusion is drawn in Section 6.

2 Formulation of the problem

Assume that the buses to install SVCs and their sizes have been determined by power system planners using an optimal allocation approach as well as engineering judgement-giving considerations to factors on power system operations. The aim of the optimization problem in present paper is to minimize the average of absolute speed deviations of all generators (whose index set is denoted by IG) in order to improve angular stability in the system from the time of fault clearing tcl to the end of simulation tend. At the same time, the system should satisfy the system dynamic constraints for K selected contingencies, i.e., no FIDVR issue. This optimization problem can be formulated as (1)–(8), where the physical meaning of the objective function is a weighted average of generator speed deviations over the concerned post-fault period.

$$\hbox{min} \;J = \frac{\Delta t}{{K\left| {I_{\text{G}} } \right|(t_{end} - t_{cl} )}}\sum\limits_{k = 1}^{K} {\sum\limits_{i = 1}^{{\left| {I_{\text{G}} } \right|}} {\sum\limits_{{t = t_{cl} }}^{{t_{end} }} {\left| {\Delta \omega_{k,i} (t,\varvec{Y})} \right|} \Delta t} }$$
(1)

s.t.

$$\varvec{Y}_{{^{\text{L}} }} \le \varvec{Y} \le \varvec{Y}_{{^{\text{U}} }}$$
(2)
$$\dot{\varvec{x}} = \varvec{f} (\varvec{x}{\mathbf{,}}\varvec{V}{\mathbf{,}}\varvec{Y} )$$
(3)
$${\mathbf{0}} = \varvec{g} (\varvec{x}{\mathbf{,}}\varvec{V}{\mathbf{,}}\varvec{Y} )$$
(4)
$$\left| {\frac{{V_{{I_{\text{G}} ,k}} (t,\varvec{Y}) - V_{{I_{\text{G}} , {\text{init}}}} }}{{V_{{I_{\text{G}} , {\text{init}}}} }}} \right| \le S_{1} \;\;\;\;\;\;\;t \in [t_{cl} ,t_{s} ]$$
(5)
$$\left| {\frac{{V_{{I_{\text{L}} ,k}} (t,\varvec{Y}) - V_{{I_{\text{L}} , {\text{init}}}} }}{{V_{{I_{\text{L}} , {\text{init}}}} }}} \right| \le S_{2} \;\;\;\;\;\;\;t \in [t_{cl} ,t_{s} ]$$
(6)
$$\left| {\frac{{V_{{I_{\text{L}} ,k}} (t,\varvec{Y}) - V_{{I_{\text{L}} , {\text{init}}}} }}{{V_{{I_{\text{L}} , {\text{init}}}} }}} \right| \ge S_{3}\;\;\;\;\;\;\;t \in [t_{cl} ,t_{s} ]$$
(7)
$$\left| {\frac{{V_{N,k} (t,\varvec{Y}) - V_{{N , {\text{init}}}} }}{{V_{{N , {\text{init}}}} }}} \right| \le S_{4} \;\;\;\;\;\;\;\;t \in [t_{s} ,t_{end} ]$$
(8)

where ∆ωk,i(t,Y) is the speed deviation of the ith generator under kth contingency for controller parameters Y of SVCs at time t; Y = [Y1, Y2, …, YR]T is a column vector about the rth dynamic var controller parameters, whose upper and lower limits are respectively in vectors YL and YU. Equations (3) and (4) represent the DAEs for post-fault power system trajectories, x is the state vector, and V is a vector of all voltage magnitudes. Equations (5)–(8) represent the dynamic constraints about post-fault voltage recovery performances. IG indicates generator buses, IL indicates load buses, N indicates the total number of all buses in a system, \(V_{{I_{\text{G}} ,k}} (t,\varvec{Y})\) is the voltage of generator bus under kth contingency at time t for the controller parameters Y, Tmax is the maximum time duration, S1 to S4 are the voltage deviation percentages, ts is the end time of the transient period, and Δt is simulation time step.

Based on industry practices, NERC/WECC standards [28] are considered in (5)–(8) for N−1 cases: S1 = 30%, S2 = 25%, S3 = 20%, S4 = 5%, and Tmax = 20 cycles; ts is 3 s after the tcl. For load buses (whose index set is denoted by IL), the post-fault voltage dynamic constraints are illustrated in (6)–(8), where (6) limits the maximum transient voltage overshoot or dip; (7) is about the duration of a transient voltage sag; (8) concerns voltage deviations in the post-transient period. To largely ensure effectiveness and robustness of controller parameters, additional N−1 or N−1−1 contingencies in the system as well as different operating conditions could be considered in (3)–(8).

The optimization is coupled with resolution of power system DAEs in (3), (4) as well as dynamic constraints in (5)–(8), which dramatically increase the computational complexities and make the feasible solutions of the nonlinear optimization problem nonconvex. In addition, no gradient information can easily be obtained and used. Therefore, an idea to deal with this complex problem is to use black optimization, which takes the simulation tool, checking of post-fault voltage recovery constraints, obtaining speed deviations of generators, and calculating the objective function as a black box.

The blackbox optimization approach to solve this problem is illustrated in Fig. 1. The blackbox utilizes a power system simulator to obtain the post-fault trajectories of V and ω under contingency k, makes use a verification model to check all criteria for V, and evaluates the objective function J. The input of the blackbox is Y, and the output is the objective function value J(Y). Based on the outputs from the blackbox, the optimization algorithm iteratively updates the input Y of the blackbox until a stopping criterion is satisfied.

Fig. 1
figure 1

Schematic procedure of blackbox optimization for dynamic var controller parameters setting problem

To deal with simulation based derivative-free blackbox function, the MADS algorithm is targeted as the optimization algorithm in this paper. In the following two sections, the MADS algorithm is introduced by illustrating an optimization on a two-dimensional non-convex function, and then, an MADS algorithm based approach is proposed to solve the problem of optimal controller parameters for SVCs.

3 Introduction of MADS algorithm

The MADS algorithm is an effective iterative optimization in dealing with general nonlinear nonsmooth constraints, such as a simulation based blackbox functions [28]. Meanwhile, it aims at converging to the best solution with a small number of evaluation at some trial points.

Here, a two-dimensional non-convex nonlinear McCormick function is illustrated how a derivative-free function converges to optimum by the MADS algorithm. The McCormick is often used as a benchmark problem for testing the performances of optimization problems [28], which has two local minima. In Fig. 2, the global optimum solution of McCormick function is marked by a four-point star and the smaller the objective function, the colder the color.

Fig. 2
figure 2

MADS algorithm based blackbox optimization

In each iteration, the MADS conducts three steps, i.e. poll, search, and update. As shown in Fig. 2a for iteration b, first, it evaluates the blackbox function at trial point ob. Then, in the search step, it generates thin lines representing the mesh with size \(\Delta_{b}^{m}\). After that, it conducts polls step on a mesh by thick lines with size \(\Delta_{b}^{p}\), where \(\Delta_{b}^{p}\) is equal to \(\Delta_{b}^{m}\) in this iteration, and evaluates all the polls, i.e. a1, a2, and a3. When the three trial points fail to find a better solution comparing to the point ob, ob+1 stays at ob and all visited points (a1, a2, and a3) are updated in a set which avoids duplicated trial points in iterations.

The MADS algorithm is continued at iteration b+1 in Fig. 2b. Search mesh size \(\Delta_{b + 1}^{m}\) is reduced to 1/4 and poll size \(\Delta_{b + 1}^{p}\) is reduced to 1/2 with trial points a4, a5, and a6. These trial points successfully find a better solution at a4, so at iteration b +2, \(\Delta_{b + 2}^{m}\) and \(\Delta_{b + 2}^{p}\) keep still, and the ob+2 moves to the a4 in Fig. 2c. Similarly, three trial points fail to find a better solution at a7, a8, a9, so \(\Delta_{b + 3}^{m}\) is reduced to 1/16 which is faster than the decrease of \(\Delta_{b + 3}^{p}\) = 1/4, and the number of candidate poll locations increases shown as Fig. 2d. Then, a better solution is successfully found among three trial points at α10, the poll and search size keep still in the next step. Iteratively, do the search and poll in the searching space by refining of meshes, the solution reaches to the optimal until meet the stop criterion.

In other words, for each iteration, if in the poll step, it fails to find an improved mesh point, ob+1 stays at previous, shrink the mesh \(\Delta_{b}^{m}\) and \(\Delta_{b}^{p}\); otherwise, ob+1 move to the new ob+1, \(\Delta_{b}^{p}\) and \(\Delta_{b}^{m}\) keep still. Finally, update the all evaluated points in the set.

4 Proposed MADS-based approach

The proposed MADS-based approach for optimizing the controller parameters of SVCs integrates power system simulation using (3) and (4), NERC/WECC voltage constraints checking modules for (5)–(8), and evaluation of objective function (1) in a blackbox. A power system DAE solver (e.g. PowerTech DSA tool TSAT) is interfaced with the MADS algorithm: DAEs (3) and (4) are solved to obtain the post-fault voltage responses of all buses V and speed responses of generators ω; the results of the checking of voltage criteria in constraints and objective function of speed deviations are sent to the MADS algorithm for a control strategy.

Specifically, the following steps are included:

  • Step 1: Predetermine the sites and sizes of SVCs, which are usually solved separately. First, the siting problem can be solved by calculating and comparing voltage sensitivity indices [7] or empirical controllability covariance [6] at candidate locations. Then, the sizes of SVCs can be optimized by heuristic searching algorithms interfacing with a power system simulator, such as Voronoi diagram method integrating linear programming in [29]. The factors considered in the siting and sizing optimization of SVCs can be land prices, installation fees, maintenance costs, and penalties of violation of voltage recovery criteria.

  • Step 2: Set initial controller parameters Y for SVCs and boundary of their upper and lower limits. Once the siting and sizing of SVCs are determined, initial controller parameters of SVCs could be from either default values [29] or random setting within the required range [30].

  • Step 3: Perform the search and poll steps of the MADS algorithm, and pass the Y to the blackbox.

  • Step 4: The blackbox receives Y from the MADS algorithm and uses Y as new controller parameters of SVCs to simulate the post-fault power system trajectories. Then, all voltage trajectories V are checked with the criteria (5)–(8), and the speed deviations of generators ω are recorded. Later, the objective function is evaluated by calculating ∆ω, and the results including J and constraints are feed back to the MADS algorithm.

  • Step 5: Determine the mesh point by considering the evaluated settings and objective functions in the MADS algorithm. If it fails to find an improved mesh point ob+1, stay with previous ob+1 = ob, shrink the mesh \(\Delta_{b + 1}^{m}\) and update \(\Delta_{b + 1}^{p}\); otherwise, jump to the new ob+1, stay with previous \(\Delta_{b + 1}^{p}\), \(\Delta_{b + 1}^{m}\). Then, update the previous evaluated setting in the set.

  • Step 6: Check the stopping criterion: the total number of iterations b exceeds a certain number or \(\Delta_{b + 1}^{p}\) is less than a certain value indicating a convergence of the tentative optimum. If it is met, stop the procedure; otherwise, go back to Step 3.

5 Case study

The proposed approach is tested on the NPCC 48-machine 140-bus system, which represents a simplified equivalent of the northeast region of the Eastern Interconnection power grid in the U.S. and Canada, including control areas of six New England States, New York State, Ontario, Québec, New Brunswick, and Nova Scotia. Particularly, the power system of six New England states is the well-known IEEE 39-bus test system. The simulation period for each contingency is 5 s starting from the fault. The integration time step ∆t is 1/240 s. It is true that different time windows may result into different optimization results. For our problem, the first 1 to 3 swings are most critical to check criteria on bus voltages as well as speed deviations of generators, and for this system, the voltage and speed waveforms basically settle down in 5 s. If a longer time window is set, the proposed method can still work but the computation time for DAEs have to be longer. The power system DAE solver adopts software TSAT by Powertech Labs, and the MADS algorithm is implemented by the NOMAD (nonlinear optimization by MADS in MATLAB) solver [24].

5.1 SVC and load modeling

In time-domain simulation, dynamic load model is crucial to simulate the phenomena of FIDVR and SVC modelling is important for the performance of dynamic var support. In the case study, each load adopts the PSS/E CLODBL load model [29], which contains a large motor, a small motor, a lighting load, and a ZIP load. Each SVC adopts the CSVGN5 model of PSS/E. Main parameters of the SVC model in the case studies are listed in the Table 1 [30]. The second column of the table has suggested ranges of values from [30] and the third column gives the default settings used in our case studies, which are from [29]. Particularly, the lead-lag damping controller consists of 2 lead-lag compensators. The five parameters of the that controller, including four time constants TS1 to TS4 and one gain KSVS, are those to be optimized in this paper for mitigation of FIDVR issues and enhancement of angular stability. The optimized controller parameters aim to help control actual var outputs accurately at desired values with minimized delays or overshoots.

Table 1 Parameters for SVC model

5.2 NPCC system without SVCs

The NPCC 140-bus system is shown in Fig. 3. According to contingency analysis, a three-phase fault on bus 6, which is cleared by the line trip between bus 6 and bus 7 after 5 cycles, is identified to be the most severe one among all “N−1” contingencies. In the following, the SVC controllers will be optimized against this most severe contingency.

Fig. 3
figure 3

NPCC system and the most severe N−1 contingency and three candidate buses for SVCs with predetermined sizes

Figure 4 shows bus voltages from time domain simulation without SVCs, where FIDVR occurs due to these violations: (1) some load bus voltages are below 75% of the initial voltages; (2) some buses violate the constraint (7) because the durations of their voltage dips between 20% and 25% of initial voltages are more than 20 cycles; (3) several buses violate constraint (8) because their voltage deviations are higher than 5% of initial voltages in the post transient period.

Fig. 4
figure 4

Voltage responses without SVC support

Figure 5 shows the speeds of generators 47, 91, 130 and 139 in time domain simulation without SVCs. The average speed deviations of all generators is 0.0704 Hz. The system has significant oscillations; generator 139 is the most vulnerable one and may potentially go out of step from the other generators in the system.

Fig. 5
figure 5

Speeds of typical generators without SVC support

5.3 NPCC system with SVCs

In order to mitigate the above FIDVR issue, three SVCs of 400 Mvar, 400 Mvar, and 255 Mvar are installed at three predetermined buses 3, 6, and 34, respectively. The locations and sizes of SVCs are respectively optimized by the empirical controllability covariance based fault specified method in [6] and the Voronoi diagram based method in [29].

First, the damping controller parameters of the SVCs are set with default values as in [29], and the resulting voltages are shown in Fig. 6 without FIDVR. Although the post-fault voltage trajectory of a load bus is lower than 80% of its initial value, the duration between 75% and 80% is less than 10 cycles. With the default controller parameters, the objective function, i.e. the average speed deviation during the post-fault period for all generators in the system as (1) is reduced to 0.0452 Hz.

Fig. 6
figure 6

Voltage response with SVC support

Second, the same contingency is considered, and the five SVC controller parameters are optimized and applied to all three SVCs. The optimal parameters are [TS2, TS3, TS4, TS5, KSVS] = [0.17 s, 1.19 s, 0.17 s, 1.27 s, 1000] for buses 3, 6 and 34. The average speed deviation for all generators is reduced from 0.0452 Hz to 0.0418 Hz.

Finally, the controller parameters [TS2, TS3, TS4, TS5, KSVS] for three SVCs are respectively optimized, which turn out to be respectively equal to [0, 4.30 s, 0.11 s, 2.39 s, 1000] at bus 3, [0.51 s, 3.47 s, 0.06 s, 1.83 s, 951] at bus 6 and [1.90 s, 2.65 s, 0.47 s, 1.99 s, 988] at bus 34. From simulation, no FIDVR is observed and the average absolute speed deviation of all generators is further reduced to 0.0406 Hz.

5.4 Comparison results

Remarks

Tables 2 and 3 and Fig. 7, compare the above four scenarios named “No SVC”, “SVC-default”, “SVC-1 OPT”, and “SVC-3 OPT”, respectively for the scenario without SVCs, the scenario with 3 SVCs using the default parameters, the scenario with 3 SVCs using the same set of optimized controller parameters, and the scenario with 3 SVCs using respectively optimized controller parameters.

Table 2 Comparison of objective functions
Table 3 Comparison of damping ratios
Fig. 7
figure 7

Comparison of speed of typical generators

From Table 2, the objective function, i.e. the average absolute speed deviation of all generators, gradually decreases from “No SVC” to “SVC-3 OPT”, which is reflected from Fig. 7 by comparing the speeds of four representative generators at buses 47, 91, 130, and 139.

From Fig. 7, results of the scenarios using the default parameters, using one optimized set of parameters for all SVCs, and using three respectively optimized sets of parameters do not have huge differences. However, slight improvements in the post-contingency waveforms may still significantly reduce the variations in active power flows in the power network so as to bring economic benefits.

Oscillation modes and their corresponding damping ratios can be estimated from the waveforms of post-fault generator speeds. Based on the prony analysis, the dominant inter-area mode has frequency 0.573 Hz. The two groups of oscillating generators are colored differently in Fig. 3. The purple generators oscillate against the pink generators. The generators with high participant factors are indicated by brown arrows. Specifically, generators 22, 23, 24, and 25 are against generators 91, 92, 97 and 98. Without any SVC, the damping ratio of this mode is 3.229%. With three SVCs, its damping ratio is observed to increase to 6.703%, 8.406%, and 11.088% respectively for scenarios “SVC-default”, “SVC-1 OPT”, and “SVC-3 OPT”.

Besides the dominant mode at 0.573 Hz, Table 3 also compares other three modes for four scenarios. It can be observed that “SVC-3 OPT” results in the best damping ratios than any other scenarios and “SVC-1 OPT” is the second one. Most of damping ratios under the “SVC-default” scenario are better than those under the “No SVC” scenario except for that with 1.137 Hz mode, which is caused by the sacrifice of oscillation damping to support voltage responses. Increased damping ratios of the aforementioned four modes reflect the improvement of post-fault angular stability.

In summary, angular stability can significantly be improved, too, by the SVCs installed to prevent FIDVR issues using the SVC controller parameters optimized by the proposed method. Here, the angular stability mainly concerns the oscillation damping and speed deviations of the system following the most critical “N−1” contingency. The proposed method is capable of optimizing either one set of five controller parameters for all SVCs or respective sets of parameters for different SVCs.

6 Conclusion

This paper proposes an MADS-based blackbox optimization approach for the optimal control parameters of SVCs, which efficiently interfaces a power system DAE solver with the MADS algorithm. The proposed approach can assist power system planning engineers to optimize the control parameters of several installed SVCs, which not only mitigates FIDVR issues but also improves angular stability. This is an important and time-consuming task at many electric utilities, especially those concerning angular stability along with potential FIDVR issues. The proposed approach has been successfully validated on a detailed NPCC system model with realistic load models.