1 Introduction

As the transmission network is expanded and reinforced with load increase and more power generation integrations, it is difficult to maintain the nodal voltage magnitude in allowable ranges under all operational conditions. For example, it is a newborn problem that transmission systems in China are facing serious high voltage limit violations during light-load periods, such as festivals and holidays. The massive gap between the peak and valley load power, the widespread use of long-distance and large-section transmission lines, and inadequate inductive reactive power reserves are the three key factors that result in the voltage violation problem. Even if synchronous generators operate in the leading-phase state and shunt reactors are all switched on, the capacitive reactive power is still excessive, because of which the voltage magnitudes violate the upper limits for some buses.

Because switching transmission lines can change the network topology and consequently alter the distribution of power flows, switching out some transmission lines can be an alternative voltage control method. Switching out transmission lines can physically remove the equivalent shunt capacitors of the lines. In addition, switching out lines will lead to the power flow increases of other lines indirectly, and thereby increase the consumption of reactive power. Some power system operators in different regions of China have chosen to switch out some transmission lines to relieve the voltage violations during spring festivals in recent years. However, the system operators usually make the transmission line switching decisions on the basis of their experience. The choices of the transmission lines to be switched out and the coordination with other voltage control measures are actually a type of optimal transmission switching (TS) problem. An appropriate mathematical model and method for the solution should be developed to provide an optimal TS scheme for the system operators.

For more flexible and smarter power systems, TS is a relatively advanced and valuable method for researchers and operators, which contributes to better operational objectives by reconfiguring the topologies of power systems. TS was developed to solve different types of problems such as unit commitment involving transmission congestion management [1,2,3,4,5,6]. In [1, 2], contingencies are considered to examine the reliability of the topologies after TS. In [3] voltage security is considered in economic dispatch problem. Islanding prevention and node-breaker modeling are respectively considered in [4, 5]. In [6], the performances of TS in the Central Western European market prove significant cost savings. Furthermore, TS is also adopted as a measure of contingency precaution and recovery for security enhancement of system operation [7,8,9].

However, the voltage control and reactive power optimization problems should be based on the AC power flow models. Therefore, with the binary variables corresponding to the on/off states of transmission lines, this type of TS problem can be formulated as mixed-integer nonconvex and nonlinear problems, which are quite difficult to solve. Thus, computational complexity is one of the main challenges [10]. Researchers have made many attempts to find effective methods to solve AC optimal TS (ACOTS) problems. In [11,12,13,14,15], linearization methods are used to deal with loss reduction or voltage violation problems. The best switching actions are determined iteratively using sensitivities or by formulating a linear programming model. Reference [14] adopts the fast decoupled power flow and voltage distribution factors to find the best lines and bus-bars of transformer substations to switch in order to relieve overloads and voltage violations. In [15], a linearization method suitable for the light-load state is proposed to analyze the reactive power and voltage magnitude.

In [16,17,18], the ACOTS problems are formulated as semi-definite programming (SDP) and second-order cone programming (SOCP) models by AC power flow relaxation. However, these models cannot ensure AC power flow feasibility and only provide lower bounds for the original problems [17], which is not adequate for the practical operation problem. In [18], a two-level iterative approach is developed to check the feasibility of the SOCP results. The additional constraints of switched-out line combinations are formulated by the lower-level problem when the AC feasibility check fails.

Heuristic algorithms are also used in solving the ACOTS problems [19, 20]. In [19], the accuracies of ACOTS and DC optimal TS (DCOTS) are compared using heuristic algorithms. The results show that DCOTS model may be inaccurate and performs poorly in several cases. In [20], the DCOTS approximation model, the SDP and SOCP relaxation methods, and the original AC model solved by heuristic algorithms are compared. The results demonstrate that the DC power flow model is not reliable for obtaining optimal line switching results, while the heuristic algorithms can be valuable for finding AC feasible solutions, and the relaxation method is instrumental in guaranteeing the optimization objective. Benders decomposition approach divides the original problem into a master and a slave problem to reduce the constraints of the original problem [21,22,23]. In [3], a Benders decomposition algorithm is also used to solve the TS problem and the slave problem is used to check AC feasibility and N-1 security criteria.

In this paper, we study the optimal TS problem with AC power flow to eliminate the voltage violation during the light-load periods. The voltage security constraints and AC feasibility are guaranteed in the model, which avoids the aforementioned shortcomings of DCOTS [11,12,13,14,15]. A decomposition approach is used to decompose the original problem into a mixed-integer linear programming master problem and an AC optimal power flow (ACOPF) slave problem. Prevention of islanding is also taken into consideration in this method. The main contributions of the paper are as follows:

  1. 1)

    The model solving the voltage violation problems by optimal TS is built in ACOTS formulation.

  2. 2)

    A decomposition method is employed to decompose the ACOTS model into solvable master and slave problems, which can be solved efficiently by iteration.

  3. 3)

    The ACOPF slave problem is solved by interior point method and the Jacobian and Hessian matrices are derived considering the change of the power network topology, which can also be used in other optimal TS problems.

The rest of the paper is organized as follows. Section 2 introduces the formulation of the ACOTS model and the linearization procedure for the model. Section 3 describes the solution method for the ACOTS model based on a decomposition approach. Section 4 presents simulation results using the proposed method on two test systems. Section 5 concludes the paper.

2 ACOTS formulation and linearization for light-load state

2.1 Formulation of ACOTS model

In this section, the ACOTS problem is formulated as a mixed-integer nonlinear program (MINLP) problem:

$$\hbox{min} \;\left( {\sum\limits_{i = 1}^{{n_{b} }} {\beta_{i} \nu_{i}^{{\text{low}}} } + \sum\limits_{i = 1}^{{n_{b} }} {\chi_{i} \nu_{i}^{{\text{up}}} } { + }\delta \sum\limits_{i = 1}^{{n_{g} }} {C_{i} P_{Gi} } } \right)\;$$
(1)
$$\begin{aligned} &\text{s.t.} \hfill \\ &V_{i}^{\hbox{min} } - \nu_{i}^{{\text{low}}} \le V_{i} \le V_{i}^{\hbox{max} } + \nu_{i}^{{\text{up}}} \hfill \\ \end{aligned}$$
(2)
$$\left\{ \begin{aligned}& \nu_{i}^{{\text{low}}} \ge 0 \hfill \\ &\nu_{i}^{{\text{up}}} \ge 0 \hfill \\ \end{aligned} \right.\;$$
(3)
$$P_{Gi} - P_{Di} = V_{i} \sum\limits_{j \in i} {V_{j} (z_{ij} G_{ij} \cos \theta_{ij} } + z_{ij} B_{ij} \sin \theta_{ij} )$$
(4)
$$P_{Gi}^{\hbox{min} } \le P_{Gi} \le P_{Gi}^{\hbox{max} }$$
(5)
$$\begin{aligned} Q_{Gi} - Q_{Di} = &V_{i} \sum\limits_{j \in i,j \ne i} {V_{j} (z_{ij} G_{ij} \sin \theta_{ij} - z_{ij} B_{ij} \cos \theta_{ij} )} \hfill \\ &- V_{i}^{2} [B_{ii} - B_{ij}^{C} (1 - z_{ij} )/2] \hfill \\ \end{aligned}$$
(6)
$$Q_{Gi}^{\hbox{min} } \le Q_{Gi} \le Q_{Gi}^{\hbox{max} }$$
(7)
$$S_{ij} = \sqrt {P_{ij}^{2} + Q_{ij}^{2} }$$
(8)
$$z_{ij} S_{ij}^{\hbox{min} } \le S_{ij} \le z_{ij} S_{ij}^{\hbox{max} }$$
(9)
$$\sum\limits_{(i,j) \in L} {(1 - z_{ij} )} \le N_{S}$$
(10)

where \(n_{b}\), \(n_{g}\) are the total number of buses and generators, respectively; \(\delta\) is the weighting factor of generation costs; \(\beta_{i}\) and \(\chi_{i}\) are weighting factors; \(V_{i}\), \(V_{j}\) are voltage magnitudes at Bus i and Bus j; \(\nu_{i}^{{\text{low}}}\), \(\nu_{i}^{{\text{up}}}\) are the lower and upper slack quantities of voltage magnitude limit; \(P_{Gi}\), \(Q_{Gi}\) are active and reactive power generation at Bus i; \(P_{Di}\), \(Q_{Di}\) are active and reactive power demands at Bus i; \(\theta_{ij}\) is voltage phase angle difference between Bus i and Bus j; \(z_{ij}\) is the binary variable representing the switching state of Line (i, j) (0: open, 1: closed); \(P_{ij}\), \(Q_{ij}\) and \(S_{ij}\) are active power, reactive power and apparent power flow of Line (i, j); \(G_{ij}\), \(B_{ij}\) are elements of the conductance matrix and susceptance matrix; \(B_{ij}^{C}\) is susceptance of charging capacitor of Line (i, j); superscripts min and max represent minimum and maximum values for corresponding variables; L is the set of transmission lines; \(N_{S}\) is the maximum number of switched-out lines.

The objective is to minimize the sum of the slack quantities of the voltage magnitude violations and the generation costs in the system. The slack quantities reflect the extent of the nodal voltage violation, while the corresponding weighting factors \(\beta_{i}\) and \(\chi_{i}\) can be set as same, or determined by considering other factors.

The values of the slack quantities of the voltage magnitude limit, which are defined in (2), are nonnegative as shown in (3). Equations (4) and (6) are the AC power flow constraints with the binary variables of the line switching state. Equations (5) and (7) are the constraints of the lower and upper limits for power generation. Equation (9) denotes the power flow limits on the lines. Equation (10) is the limit of the total number of lines that can be switched out.

This optimization problem determines the lines to be switched out and the dispatch of generators’ reactive and active power for the purpose of relieving voltage violations. Actually, different load levels are not considered in this model. The TS optimal results are determined on the day ahead based on the average load level of the next day with the solutions of the model proposed.

2.2 ACOTS linearization for light-load state

The aforementioned ACOTS model is an MINLP problem. Available solvers for MINLP problems are not effective for this ACOTS model. A linearization method proposed in [15] is adopted in this part, which is useful for the light-load operational state.

For the large-scale transmission system operating in a light-load condition, the constraints involving the active power, i.e., constraints (4), (6), (8), and (9), can be ignored for the voltage magnitude optimization, which are considered in the slave problem.

The reactive power on a line can be quantified using (11) and (12). The line is modeled in the form of π equivalence. Equation (11) represents the reactive power flow on the connected Line (i, j). Equation (12) is the charging reactive power of the line to Bus i.

$$Q_{ij} = V_{i}^{2} B_{ij} { + }V_{i} V_{j} G_{ij} \sin \theta_{ij} - V_{i} V_{j} B_{ij} \cos \theta_{ij}$$
(11)
$$Q_{ij - i}^{C} = \frac{{B_{ij}^{C} }}{2}V_{i}^{2}$$
(12)

Because the active power flow is not heavy during the light-load period, the \(\cos \theta_{ij}\) term in (11) can be approximated as 1.0. Similarly, \(\sin \theta_{ij}\) and \(G_{ij}\) are both small. Thus, the second term of the right side of (11) can be omitted.

Because the voltage magnitude is close to 1.0 p.u., the Taylor expansion can be used to approximate the quadratic term as follows:

$$V_{i}^{2} = 2V_{i} - 1$$
(13)
$$V_{i} V_{j} = V_{i} + V_{j} - 1$$
(14)

Thus, (11) and (12) can be derived as follows:

$$Q_{ij} = (V_{i} - V_{j} )B_{ij} z_{ij}$$
(15)
$$Q_{ij - i}^{C} = \frac{{B_{ij}^{C} }}{2}(2V_{i} - 1)z_{ij}$$
(16)

Actually, (15) and (16) are quadratic constraints, because \(V_{i}\) and \(z_{ij}\) are both variables. Therefore, \(W_{k}\) is introduced to replace the product of \(V_{i}\) and \(z_{ij}\), which is defined by (17) and (18). Add constraints (17) and (18) into the model, and then the quadratic terms can be eliminated.

$$V_{i}^{\hbox{min} } z_{ij} \le W_{k} \le V_{i}^{\hbox{max} } z_{ij}$$
(17)
$$0 \le V_{i} - W_{k} \le (1 - z_{ij} )V_{i}^{\hbox{max} }$$
(18)

Now, the ACOTS problem can be linearized as a mixed-integer linear programming problem, which is formulated in detail in Sect. 3 as the master problem for the decomposition approach.

3 Solution method based on a decomposition approach

3.1 Model based on a decomposition approach

During light-load periods, the ACOTS problem can be divided into a traditional active power DCOPF model and a reactive power OPF model.

The main purpose of this paper is to deal with voltage security problem. Therefore, we get the economic dispatch result first with the active power DCOPF model without switching lines. The result is used to determine the active power outputs used in the mathematic formulation of this work. In practice, the active power outputs can be determined by operation schedule.

As for the reactive power OPF model, TS is used to eliminate voltage violations. Hence, the model can be formulated as a mixed-integer linear program with the linearization method described in Sect. 2, which can be solved easily using off-the-shelf software such as CPLEX Solver [24].

However, according to our simulation tests, the results obtained with the linearization model may be infeasible for AC power flow equations, and the reactive power error between the AC and the linearized power flow models cannot be ignored in many cases. Therefore, an ACOPF slave problem is proposed in this paper in order to check the AC feasibility of the results of linearized model and obtain a local optimal solution based on the TS results.

A decomposition approach used in this paper is a suitable method to solve the whole problem, which is similar to but different from standard Benders decomposition approach. The differences include that the master problem is a simplified form of the slave problem and the aims of the master and slave problems are different. The additional constraints are formulated by the slave problem just as the Benders decomposition approach. Thus, the constraints are also called “Benders cuts” in this paper, which are useful to determine the solving direction and guarantee the solving efficiency of the problem with large numbers of integer variables. They are formed and added to the linearized problem if the result cannot pass the AC feasibility check. Similar idea is used in [25]. The applicability and robust features of the decomposition approach are discussed in Sect. 3.2.

  1. 1)

    Master problem

The master problem of the decomposition is the linearized models of the ACOTS problem. The traditional active power DCOPF model is omitted in this paper. The objective function of reactive power OPF model is defined as (19), whose constraints contain (2), (3), (7), (10), (15), (16), (20)–(22).

$$\hbox{min} \left( {\sum\limits_{i = 1}^{{n_{b} }} {\beta_{i} \nu_{i}^{{\text{low}}} } + \sum\limits_{i = 1}^{{n_{b} }} {\chi_{i} \nu_{i}^{{\text{up}}} } } \right)$$
(19)
$$Q_{Ci,n} = [(2V_{i} - 1)b_{Ci} ]z_{Ci,n}$$
(20)
$$Q_{Li,n} = - [(2V_{i} - 1)b_{Li} ]z_{Li,n}$$
(21)
$$ Q_{Gi} + \sum\limits_{i} {Q_{ij - i}^{C} } + \sum\limits_{n = 1}^{{n_{Ci} }} {Q_{Ci,n} } + \sum\limits_{n = 1}^{{n_{Li} }} {Q_{Li,n} } - \left( {Q_{Di} + \sum\limits_{i} {Q_{ij} } } \right) = 0 $$
(22)

where \(b_{Ci}^{{}}\), \(b_{Li}^{{}}\) are admittance values of the capacitors and inductors of Bus i; \(z_{Ci,n}\), \(z_{Li,n}\) are the binary variables representing the switching state of the shunt capacitors and inductors (0: open, 1: closed); \(Q_{Ci,n}\), \(Q_{Li,n}\) are reactive power of the shunt capacitors and inductors; \(n_{Ci}\) and \(n_{Li}\) are the total number of the shunt capacitors and inductors.

Equations (20) and (21) represent the equality constraints of the reactive power of the shunt capacitors and inductors, in which the binary variables representing their switching state can also be optimized in this problem. Equation (22) represents the constraints of the reactive power balance on Bus i.

  1. 2)

    Slave problem

The slave problem is used to check the feasibility of the solution given by the master problem using the AC power flow model. The switching states of the candidate lines are set to the values determined in the master problem. The objective function of the slave problem is formulated as (23), whose constraints contain (7)–(9) and (24)–(31).

$$\hbox{min} \;\;\eta = \sum\limits_{i = 1}^{{n_{{\text{PQ}}} }} {(\nu_{{{\text{PQ}},i}}^{{\text{up}}} + \nu_{{{\text{PQ}},i}}^{{\text{low}}} )}$$
(23)
$$V_{{\text{PV}},i} = \hat{V}_{{\text{PV}},i} \leftrightarrow \lambda_{V_{_{{\text{PV}},i} } }$$
(24)
$$z_{ij} = \hat{z}_{ij} \leftrightarrow \lambda_{{z_{ij} }}$$
(25)
$$\hbox{max} (V_{{{\text{PV}},i}} (1 - \gamma ),V_{{{\text{PV}},i}}^{\hbox{min} } ) \le \bar{V}_{{{\text{PV}},i}} \le \hbox{min} (V_{{{\text{PV}},i}} (1 + \gamma ),V_{{{\text{PV}},i}}^{\hbox{max} } )$$
(26)
$$V_{{\text{PQ}},i}^{\hbox{min} } - \nu_{{\text{PQ}},i}^{\text{low}} \le \bar{V}_{{\text{PQ}},i} \le V_{{\text{PQ}},i}^{\hbox{max} } + \nu_{{\text{PQ}},i}^{\text{up}}$$
(27)
$$\left\{ \begin{aligned} \nu_{{{\text{PQ}},i}}^{{\text{low}}} \ge 0 \hfill \\ \nu_{{{\text{PQ}},i}}^{{\text{up}}} \ge 0 \hfill \\ \end{aligned} \right.\;$$
(28)
$$P_{Gi} - P_{Di} = \bar{V}_{i} \sum\limits_{j \in i} {\bar{V}_{j} (z_{ij} G_{ij} \cos \theta_{ij} { + }z_{ij} B_{ij} \sin \theta_{ij} )}$$
(29)
$$\hbox{max} (\hat{P}_{Gi} (1 - \varepsilon ),P_{Gi}^{\hbox{min} } ) \le P_{Gi} \le \hbox{min} (\hat{P}_{Gi} (1 + \varepsilon ),P_{Gi}^{\hbox{max} } )$$
(30)
$$\begin{aligned} Q_{Gi} - Q_{Di} = &\bar{V}_{i} \sum\limits_{j \in i,j \ne i} {\bar{V}_{j} (z_{ij} G_{ij} \sin \theta_{ij} - z_{ij} B_{ij} \cos \theta_{ij} )} \hfill \\ &- \bar{V}_{i}^{2} [B_{ii} - B_{ij}^{C} (1 - z_{ij} )/2] \hfill \\ \end{aligned}$$
(31)

where \(n_{{\text{PQ}}}\) is the total number of the PQ buses; \(\hat{V}_{{{\text{PV}},i}}\) and \(\hat{z}_{ij}\) are the values of the voltage magnitudes of the PV buses and the switching states determined in the master problem, respectively; \(\lambda_{{V_{{_{{{\text{PV}},i}} }} }}\), \(\lambda_{{z_{ij} }}\) are respectively the Lagrangian coefficients of the corresponding equality constraints; \(\varepsilon\) is the factor of active power generation adjustment; \(\gamma\) is the factor of voltage magnitude adjustment of PV buses from master problem to slave problem; \(\bar{V}_{{{\text{PV}},i}}\) represents the voltage magnitude of the PV buses of the AC power flow constraints, which can be adjusted from \(V_{{{\text{PV}},i}}\) by \(\gamma\); \(\bar{V}_{{{\text{PQ}},i}}\) is the voltage magnitude of the PQ buses of the AC power flow equations; \(\bar{V}_{i}\) and \(\bar{V}_{j}\) are voltage magnitudes omitting the type of buses; \(\hat{P}_{Gi}\) is the value of the active power outputs of generators determined in the omitted active power DCOPF model.

The objective function (23) is the sum of the slack quantities of the voltage magnitude limits of the PQ buses. The objective function here reflects not only the extent of voltage violations but also the AC feasibility of the optimization results, so the weighting factors of the slack quantities are no longer considered. If the objective is smaller than a predefined positive number, the slave problem is considered to be feasible, the iterative procedure ends, and the TS solutions are obtained. In (24) and (25), \(V_{{{\text{PV}},i}}\) and \(z_{ij}\) are set equal to the value determined in the master problem. The Lagrangian coefficients of the equations are used in the Benders cuts formulation. Equation (26) gives the ranges of the voltage magnitude constraints of the PV buses. Equation (27) defines the slack quantities of the voltage magnitude limits of the PQ buses. Equation (30) limits the ranges of the active power generation that can be adjusted for voltage security. It is assumed that the active power outputs of the generators can be changed in a small range, around the economic dispatch results, defined by \(\varepsilon\), which is a small positive number adjusted by the user. Equations (29) and (31) are the AC power flow constraints in the slave problem.

  1. 3)

    Benders cut

The Benders cut can be formed on the basis of the optimization results of the slave problem as follows:

$$\eta + \sum\limits_{{\left( {i,\;j} \right) \in L}}^{{}} {\lambda_{{z_{ij} }} (z_{ij} - z_{ij}^{k - 1} )} + \sum\limits_{i = 1}^{{n_{{\text{PV}}} }} {\lambda_{{V_{{_{{{\text{PV}},i}} }} }} (V_{{{\text{PV}},i}} - V_{{_{{{\text{PV}},i}} }}^{k - 1} )} \le 0$$
(32)

where \(z_{ij}^{k - 1}\) and \(V_{{{\text{PV}},i}}^{k - 1}\) represent the optimization results of the switching states and the voltage magnitudes of the PV buses at iteration k − 1, respectively. The Benders cut is added to the master problem in each iteration k. The Lagrangian coefficients in (32) denote the influence of the change of \(z_{ij}\) and \(V_{{{\text{PV}},i}}\) on the objective function value of the slave problem, which gives the adjustment direction of the variables. Thus, the Benders cuts couple the master and the slave problems in order to remove the AC-infeasible region of the master problem until the optimization results satisfy all the required constraints.

  1. 4)

    Procedure of decomposition approach

The algorithm is processed as follows:

Step 1: Solve the master problem, and pass the switching states of candidate lines and voltage magnitudes of the PV buses to the slave problem.

Step 2: Solve the slave problem, and check the objective value. If it is smaller than the predefined small value, the problem is solved; otherwise, go to Step 3. If the slave problem cannot get feasible solutions, go to Step 4.

Step 3: Form the new constraint cut on the basis of the optimization results of the slave problem and add it to the master problem as a new constraint. Go back to Step 1.

Step 4: Unsolvable slave problem means that the switching decision is infeasible. Formulate the constraint (33) that the lines in the set cannot be switched out at the same time to the master problem, and go back to Step 1.

$$\sum\limits_{{m \in L_{k} }} {z_{m} } \ge 1$$
(33)

where \(L_{k}\) is the switched-out line set determined by the master problem in the kth iteration time.

3.2 Applicability analysis of decomposition approach

The above slave problem with AC power flow constraints is non-convex. It is possible that the global optimal solution is eliminated by Benders cuts. We can partially resolve the problem by finding multiple solutions [25]. After finding a feasible solution, the solving process can be executed again by excluding the TS results found in the preceding iterations. In this way, multiple solutions can be found and compared from different perspectives, such as the switched-out costs of different transmission lines. Even if the voltage violations cannot be eliminated thoroughly, the TS schemes and reactive power dispatch results can be obtained optimally, which are useful for real application.

3.3 Derivation of matrix used in primal–dual interior point method

The slave problem is a nonlinear programming model without integer variables, which can be effectively solved by the primal–dual interior point method [26, 27]. The MATPOWER toolbox, an open-source MATLAB-based package introduced in [28], is employed. In MATPOWER, the primal–dual interior point method is used to solve the ACOPF problem. Although the line switching states are determined in the master problem and fixed in the slave problem, they must be treated as variables, because the corresponding Lagrangian coefficients of constraints (24) and (25) should be calculated. To calculate the Lagrangian coefficients of the Benders cuts, the Jacobian matrix and Hessian matrix of all the variables including the binary variables of the line switching states need to be calculated in each iteration.

However, the binary variables of the line switching states are quite different from other variables in the structures of power flow equations. Therefore, the corresponding matrices should be derived for the OPF problem taking the topological change into consideration.

The AC power flow equality constraints can be defined as follows in the form of complex matrices, which are also presented in the MATPOWER OPF solver:

$$\Delta \varvec{S = }\text{diag(}\varvec{V}\text{)(}\varvec{YV}^{*} )^{*} - \varvec{S}$$
(34)

where \(\varvec{Y}\) is the \(n_{b} \times n_{b}\) complex admittance matrix; \(\varvec{S}\) is the \(n_{b} \times 1\) vector of nodal power injections; \(\Delta \varvec{S}\) is the \(n_{b} \times 1\) vector of mismatch of bus power injections; \(\varvec{V}\) is the \(n_{b} \times 1\) vector of complex bus voltages; \(\text{diag(}\varvec{V}\text{)}\) is the \(n_{b} \times n_{b}\) diagonal matrix whose diagonal elements are the elements of vector \(\varvec{V}\).

The switching of branches will change the admittance matrix, which can be denoted as follows:

$$\begin{aligned} \varvec{X} &= \varvec{M}_{bl} \text{diag(}\varvec{y}\text{)diag(}\varvec{z}\text{)}\varvec{M}_{bl}^{\text{T}} \hfill \\ &\;\;\;\;\;\;\text{ + diag}\left( {\text{abs}(\varvec{M}_{bl} )\text{diag(}\varvec{z}\text{)}(\varvec{B}_{c} /2)} \right) \hfill \\ \end{aligned}$$
(35)

where \(\varvec{y}\) is the \(n_{l} \times 1\) vector of complex admittance of lines; \(\varvec{z}\) is the \(n_{l} \times 1\) vector of switching states of lines; \(\varvec{M}_{bl}\) is the \(n_{b} \times n_{l}\) bus-to-line incidence matrix, which reflects the relationship connecting buses and lines; \(\text{abs}(\varvec{M}_{bl} )\) is the matrix with absolute value of \(\varvec{M}_{bl}\); \(\varvec{B}_{c} /2\) represents the elements in the vector of the charging susceptance divided by 2.

Therefore, the AC power flow equality constraints with switching variables can be defined as follows:

$$\Delta \varvec{S = }\text{diag(}\varvec{V}\text{)(}\varvec{XV}^{*} )^{*} - \varvec{S}$$
(36)

The main submatrices of the Jacobian matrix can be derived as follows:

$$\frac{{{\partial }\Delta \varvec{S}}}{{\partial \varvec{V}_{m} }} = \text{diag(}\varvec{V}\text{)}\left( {\text{diag(}\varvec{I}^{*} \text{)} + \varvec{X}^{*} \text{diag(}\varvec{V}^{*} \text{)}} \right)\text{diag(}\varvec{V}_{m} \text{)}$$
(37)
$$\frac{{\partial}\Delta \varvec{S}}{\partial\varvec{\theta}} = {\text{jdiag}}(\varvec{V})\left( {{\text{diag}}(\varvec{I}^{*}) - \varvec{X}^{*} {\text{diag}}(\varvec{V}^{*})} \right)$$
(38)
$$\varvec{I} = \varvec{XV}$$
(39)

where \(\varvec{I}\) is the \(n_{b} \times 1\) vector of complex current injections; \(\varvec{V}_{m}\) is the \(n_{b} \times 1\) vector of voltage magnitudes; \({{{\partial }\Delta \varvec{S}} \mathord{\left/ {\vphantom {{{\partial }\Delta \varvec{S}} {\partial \varvec{V}_{m} }}} \right. \kern-0pt} {\partial \varvec{V}_{m} }}\) is the \(n_{b} \times n_{b}\) Jacobian submatrix comprising derivatives between the mismatches of the bus complex power injection and the voltage magnitudes; \({{{\partial }\Delta \varvec{S}} \mathord{\left/ {\vphantom {{{\partial }\Delta \varvec{S}} {\partial\varvec{\theta}}}} \right. \kern-0pt} {\partial\varvec{\theta}}}\) is the \(n_{b} \times n_{b}\) Jacobian submatrix comprising derivatives between the mismatches of the bus complex power injection and the voltage magnitudes phase angle.

$$\begin{aligned} \frac{{{\partial }\Delta \varvec{S}}}{{\partial \varvec{z}}} = & \text{diag(}\varvec{V}\text{)}\varvec{M}_{Sz} \text{diag(}\varvec{y}^{*} \text{)} \\ & \text{ + diag(}\varvec{V}_{m}^{2} \text{)abs(}\varvec{M}_{bl} \text{)diag(}\varvec{B}_{c}^{*} \text{/2)} \\ \end{aligned}$$
(40)
$$\varvec{M}_{Sz} = \left[ {\varvec{M}_{bl} (:,1)\varvec{M}_{bl}^{\text{T}} (:,1)\varvec{V}^{*} \; \ldots \;\;\varvec{M}_{bl} (:,n_{l} )\varvec{M}_{bl}^{\text{T}} (:,n_{l} )\varvec{V}^{*} } \right]$$
(41)

where \({{{\partial }\Delta \varvec{S}} \mathord{\left/ {\vphantom {{{\partial }\Delta \varvec{S}} {\partial \varvec{z}}}} \right. \kern-0pt} {\partial \varvec{z}}}\) is the \(n_{b} \times n_{l}\) Jacobian submatrix comprising the derivatives between the mismatches of the bus complex power injection and the switching variables; \(M_{Sz}\) is the \(n_{b} \times n_{l}\) matrix, the ith column of which is the \(n_{b} \times 1\) vector \(\varvec{M}_{bl} (:,i)\varvec{M}_{bl}^{\text{T}} (:,i)\varvec{V}^{*}\).

In addition, the Hessian matrix, which is composed of the second derivative of \(\Delta \varvec{S}^{\text{T}}\varvec{\lambda}\) with respect to its variables, needs to be derived, where \(\varvec{\lambda}\) is the \(n_{b} \times 1\) vector of Lagrangian coefficients. The Hessian submatrices with the switching variables are derived as follows:

$$\frac{{{\partial }^{2} (\Delta \varvec{S}^{\text{T}}\varvec{\lambda}\text{)}}}{{\partial \varvec{z}^{2} }} = {\mathbf{0}}$$
(42)
$$\begin{aligned} \frac{{{\partial }^{2} (\Delta \varvec{S}^{\text{T}}\varvec{\lambda}\text{)}}}{{\partial \varvec{z}\partial \varvec{V}_{m} }} &= 2\text{diag(}\varvec{y}^{*} \text{)real}\left( {\varvec{M}_{Szv} \text{diag(}\varvec{\lambda}\text{)diag(}\varvec{V}^{*} \text{)diag(}\varvec{V}_{m} \text{)}^{ - 1} \text{)}} \right) \\ &\quad + 2\text{diag(}\varvec{B}_{c}^{*} \text{/2)abs(}\varvec{M}_{bl}^{\text{T}} \text{)diag(}\varvec{V}_{m} \text{)diag(}\varvec{\lambda}\text{)} \hfill \\ \end{aligned}$$
(43)
$$\frac{{{\partial }^{2} (\Delta \varvec{S}^{\text{T}}\varvec{\lambda}\text{)}}}{{\partial \varvec{z}\partial\varvec{\theta}}} =2\text{diag(}\varvec{y}^{*} \text{)}{\text{imag}}\left( {\varvec{M}_{Szv} \text{diag(}\varvec{\lambda}\text{)diag(}\varvec{V}^{ *} \text{)}} \right)$$
(44)
$$\varvec{M}_{Szv} = \left[ {\begin{array}{*{20}c} {\varvec{V}^{\text{T}} \varvec{M}_{bl} (:,1)\varvec{M}_{bl}^{\text{T}} (:,1)} \\ \vdots \\ {\varvec{V}^{\text{T}} \varvec{M}_{bl} (:,n_{l} )\varvec{M}_{bl}^{\text{T}} (:,n_{l} )} \\ \end{array} } \right]$$
(45)

where real(·) and imag(·) represent the real and the imaginary parts of the matrices, respectively; \(\varvec{M}_{Szv}\) is an \(n_{l} \times n_{b}\) matrix, the ith row of which is the \(1 \times n_{b}\) vector \(\varvec{V}^{\text{T}} \varvec{M}_{bl} (:,i)\varvec{M}_{bl}^{\text{T}} (:,i)\).

The matrices derived above are necessary for the calculation process of the primal–dual interior point method to optimize the ACOPF problem with topological optimization.

3.4 Islanding prevention

Switching out transmission lines may lead to isolated buses. Therefore, islanding prevention measure is necessary for the optimization procedure.

First, on the basis of the bus-to-line incidence matrix, the buses that are connected by only one line are identified, and the lines connecting these buses cannot be switched out.

As for the islanding caused by multiple switching lines, the islanding prevention method is implemented as follows:

Step 1: Establish the bus-to-line incidence matrix on the basis of the original network and the set of the switched-out lines.

Step 2: From Bus 1, search the buses connected with Bus 1. For further search, find out the buses connected to the buses which are connected with Bus 1. Expand the search range gradually, and then determine the bus set Θ connected with Bus 1 directly or indirectly.

Step 3: Check whether Θ includes all the buses in the network. If yes, islanding has not been created; otherwise, islanding exists, and the switching decision is infeasible. Add the constraint as (33) that lines in the set cannot be switched out at the same time to the master problem.

3.5 Complete procedure of ACOTS problem

The complete procedure to solve the ACOTS problem is a two-level iterative optimization approach. The block diagram of the procedure is presented in Fig 1.

Fig. 1
figure 1

Flowchart of the proposed method to solve ACOTS problem

After the algorithm finds a feasible solution or doesn’t converge, the solving process can be executed again by excluding the TS results found in the preceding iterations. The complete procedure can be run a number of times, and multiple solutions can be found and compared.

4 Simulations and analysis

The proposed method is tested on the modified IEEE 39-bus and IEEE 57-bus systems to identify the optimal line switching scheme for solving the voltage violation problem. The proposed method was implemented on a personal computer with 2.6 GHz, 16 GB random access memory (RAM). Moreover, the solving time highly depends on system conditions and the initial values given for the optimization problem.

4.1 IEEE 39-bus test system

The IEEE 39-bus test system consists of 10 generators and 46 transmission lines. To make the power system operate in light-load condition with voltage violations, the total power load of the system is reduced by half to 3108.2 MW + j747.3 Mvar. In addition, the charging susceptance of each transmission line is doubled. In regard to the optimization parameters, in the slave problem, the voltage magnitude limits of the PQ buses are set as \(V_{{{\text{PQ}},i}}^{\hbox{min} } = 0.96\;{\text{p}}.{\text{u}}.\), \(V_{{{\text{PQ}},i}}^{\hbox{max} } = 1.04\;{\text{p}}.{\text{u}}.\).

In the linearized master problem, to ensure a suitable amount of voltage violation of the objective function, the voltage magnitudes of the PV buses are changed from 1.01 to 1.04 p.u., and their voltage magnitude limits are set a bit tighter than the limits of the slave problem, i.e., \(V_{i}^{\hbox{min} } { = 0} . 9 7\;{\text{p}}.{\text{u}}.\), \(V_{i}^{\hbox{max} } { = 1} . 0 3\;{\text{p}}.{\text{u}}.\).

The parameter of the voltage magnitude adjustment from the result of the master problem to the slave problem is set as \(\gamma = 2\%\). The parameter of the generator active power adjustment to the slave problem is set as \(\varepsilon = 10\%\). The maximum number of lines to be switched out is set as \(N_{S} = 3\). The convergence criterion is obtained by checking the objective value of the slave problem, which is set as \(\eta \le 0.001\).

The slave problem is first run to minimize the voltage violation quantity of the system without switching out lines. The objective function of the solution is \(\eta = 0.071\). The voltage magnitudes of the seven PQ buses violate the upper limits, whereas no lower limit is violated. The voltage magnitudes of the seven buses are presented in Table 1. The complete procedure to solve the ACOTS problem is then run for the IEEE 39-bus test system. The master problem is solved 28 times, which gives a line switching decision each time. Among them, only six topology results do not cause islanding, which are presented in Table 2. The total computation time is 194.7 s.

Table 1 Voltage magnitude violations of the 7 buses without TS
Table 2 Results of the 28 optimizations of master problem

For the six feasible topologies, the slave problems are solved, and Benders cuts are added to the master problem. The results of the slave problem are presented in the last column of Table 2. It can be seen that the objective function value of the master problem increased, while the value of the slave problem decreased monotonously until it became smaller than the convergence criterion 0.001, which is presented in Fig. 2.

Fig. 2
figure 2

Objective function values of master and slave problems of iterations

In regard to the final result, lines 16, 24 and 43 are switched out. The TS topology is illustrated in Fig. 3, in which the red lightning symbols denote the switched-out lines. It can be seen from the figure that the topology result may not meet the N − 1 security criteria. For example, removing the line between Bus 26 and Bus 29 may cause islanding. In a practical operation, the switched-out lines can be switched back timely to cope with the N − 1 contingencies. The voltage magnitudes and active power generation of the generators are also optimized, which are listed in Table 3. The voltage violation problem is solved.

Fig. 3
figure 3

Topology illustration of IEEE 39-bus system after TS

Table 3 Optimization results of generators of IEEE 39-bus system

4.2 IEEE 57-bus test system

The IEEE 57-bus test system consists of 7 generators and 80 transmission lines. To simulate the voltage violation conditions, the load power of the test system is reduced by half to a total load of 625.4 MW + j168.2 Mvar. The charging susceptances of the transmission lines are relatively low in the system, and therefore they are tripled for the simulation.

In regard to the optimization parameters, in the slave problem, voltage magnitude limits of the PQ buses of the slave problem are set as \(V_{{{\text{PQ}},i}}^{\hbox{min} } = 0.95\;{\text{p}} . {\text{u}} .\), \(V_{{{\text{PQ}},i}}^{\hbox{max} } = 1.05\;{\text{p}} . {\text{u}} .\). In the linearized master problem, the voltage magnitudes of the PV buses are allowed to vary from 0.98 p.u. to 1.05 p.u., and the voltage magnitude limits of the buses are set as \(V_{i}^{\hbox{min} } { = 0} . 9 6\;{\text{p}} . {\text{u}} .\), \(V_{i}^{\hbox{max} } { = 1} . 0 4\;{\text{p}} . {\text{u}} .\).

The parameters of the voltage magnitude adjustment and generator active power adjustment are set the same as those for the IEEE 39-bus test system. The convergence criterion is also set to be the same as the former simulation, which is \(\eta \le 0.001\). The maximum number of lines that can be switched out is set as \(N_{S} { = 5}\). The slave problem is run first to minimize the voltage violation quantity of the system without switching out lines. The objective function of the solution is \(\eta = 0.1447\).

The voltage magnitudes of the 16 PQ buses violate the upper limits, while no lower limit is violated. The voltage magnitudes of the 16 buses are presented in Table 4.

Table 4 Voltage magnitude violations of the 16 buses without TS

The complete procedure is then run, and the master problem is solved 10 times. Because this test system is quite strong, the network topologies are all feasible for the 10 iterations. The results of the 10 iterations are presented in Table 5. The total computation time is 324.7 s.

Table 5 Results of 10 iterations of the decomposition approach

From Table 5, it can be seen that the objective function value of the master problem increases, while the objective function value of the slave problem decreases monotonously. For the last iteration, the lines with numbers 12, 15, 18, 32, and 63 are switched out. The voltage magnitudes and active power generation of the generators are also optimized, and are presented in Table 6. The voltage violations are all eliminated.

Table 6 Optimization results of generators of IEEE 57-bus system

In consideration of the discussion in Sect. 3.2, the global optimal solution may be removed by the Benders cut formulated by the non-convex slave problem, and as a result the final solution may be just a local optimal solution. To obtain better solutions, the complete solution procedure presented in Sect. 3.5 can be executed iteratively by excluding the TS solutions found in the preceding iterations. Different sets of TS results can then be compared and selected.

After the first procedure converges, an optimal set of switching lines have been chosen. To get other feasible solutions, an additional constraint as (33) that the lines in the former set cannot be switched out at the same time is added. The procedure is run again with seven iterations, and the results are presented in Table 7. The total time for finding the second solution is 211.6 s. By switching out the lines with numbers 5, 21, 25, 63, and 73, voltage violations are eliminated.

Table 7 Results of 7 iterations of the second procedure

Repeat the above procedure and solve the problem for the third time. In this time, no feasible solutions can be obtained. Therefore, the two sets of switched-out lines with numbers 5, 21, 25, 63, 73 and 12, 15, 18, 32, 63 are both feasible TS results to eliminate voltage violations for this simulation case. The feasible TS results can be further compared from different perspectives, such as the switched-out costs of different transmission lines.

5 Conclusion

In this paper, TS is employed to eliminate voltage violations for transmission systems in lightly loaded conditions. The TS problem with AC power flow constraints is proposed as an MINLP problem. To solve this problem, the decomposition approach is used to decompose the original problem into a linearized master problem and an ACOPF slave problem. The master problem optimizes the switching scheme and voltage magnitudes under linearized constraints, and the slave problem is used to check the AC feasibility. To apply the interior point method for solving the slave problem, Jacobian and Hessian matrices of the AC power flow equations considering topological change are derived. In addition, a measure to prevent islanding is proposed. Simulation results on two test systems demonstrate the effectiveness of the proposed method.

From the simulation results, it can be seen that the proposed decomposition approach gives satisfactory convergence performance. Although the decomposition approach cannot guarantee global optimality, the complete procedure can be run several times to get different sets of feasible solutions which are acceptable for the purpose of eliminating voltage violations. The relatively optimal solutions can be determined by comparison from diverse perspectives. Future work will focus on the optimization method considering different load levels and operational conditions.