Abstract
Optimal power flow (OPF) problems play a central role in planning and operating a transmission power system in a reliable, flexible and secure manner. In this paper, a significant intelligent algorithm based on the Particle Swarm Optimization method is proposed for solving the optimal reactive power dispatch (ORPD) problem by adjusting equality and inequality constraints. The objective function which is considered for optimal active and reactive power dispatch is the minimization of transmission power losses. In order to solve ORPD problems, Particle Swarm Optimization (PSO) based on the Newton Raphson method is coded with MATLAB software and the results of the simulation are compared to the Interior Point method as the classical method for minimization transmission losses in the Nordic 44 system. The Nordic 44 system consists of three countries, including Norway, Finland, and Sweden, and has 44 buses, 67 branches and 61 generators. The results illustrate the effectiveness of the proposed algorithm compared to the other methods for the minimization of total power losses for Nordic 44. The simulation results of the proposed method for the Nordic 44 system are compared to the results of the PSO algorithm for the ORPD problem in several networks, including IEEE 14 buses, 30 buses, and 57 buses.
Keywords
Introduction
Optimal power flow is a nonlinear optimization problem, which focuses on the planning and operation of power systems [10]. Carpentrar was the first who introduced OPF problems in 1960s [4]. The main goal of OPF is the optimal operation of electrical power systems by minimizing the objective function through optimal settings of control variables [2]. The constraints of ORPF are classified as equality and inequality constraints, in which equality constraints are power flow equations, and inequality constraints of a power system are specified by upper and lower voltage limits, reactive power outputs of sources, shunt capacitor banks and transformer tapping [4].
Optimal power flow problems can be divided into two main groups; active power dispatch and reactive power dispatch [10]. Active power is defined as the energy consumed or lost, while reactive power is the energy circulated through all the network [7]. Reactive power dispatch plays the vital role of transferring real power throughout the circuit by enhancing the voltage stability and reliability of the power system [7]. Subsequently, the ORPD problem of improving the operation and planning of a power system has been the center of attention for many researchers. Control variables of ORPD are transformer tap settings, real power generated and generator bus voltages, which should be located on their boundaries, as well as the voltage magnitude of generators, etc. [10]. The main objectives of the reactive power dispatch problem are to reduce real power losses, improvement of the voltage profile and voltage stability of the power system, as well as to minimize system costs [10]. Throughout the last two decades, various techniques based on computer algorithms and mathematical formulation have been proposed for finding the optimal reactive power dispatch [4]. The techniques are classified based on conventional and intelligent methods. Some of the conventional techniques that are most commonly used in research papers are linear programming, nonlinear programming, the gradient method, the Interior Point method, and quadratic programming. The recently proposed intelligent methods are Genetic Algorithm, Particle Swarm Optimization, Ant Colony Algorithm, Imperialist Competitive Algorithm, Cuckoo Search Space Algorithm, and Whale Optimization Algorithm [3]. Because of the disadvantages of classical methods like slow running, non-convergence, the immense time of mathematical calculation, and only a single optimization solution per single simulation run, intelligent methods have been employed in many research papers in order to solve optimal reactive power dispatch problems [1].
In previous works on solving optimal active and reactive power dispatch problems, researchers have opted for different methods with consideration to a single objective function or multi-objective functions in real power networks, as follows; Goya and Mehta solved the OPF problem with a new intelligent algorithm called Cuckoo Search Method by optimal adjustment of control variables. Two separate objective functions, which have been considered for solving optimal active and reactive power dispatches, are minimization of the fuel cost of generation and of power losses. The proposed method was evaluated on IEEE 30 buses with MATLAB-2013 software. The results of the simulation illustrate the effectiveness of the proposed algorithm for the reduction of power losses and the fuel cost of generators compared other solutions [4].
Bhesdadiya and Parmar introduced a new intelligent algorithm that they named Whale Optimization Algorithm (WOA) for the optimization of OPF problems on the IEEE 30 buses system. WOA is inspired by the hunting strategy of humpback whales. Fuel cost reduction, active power minimization, and reactive power minimization are three objective functions, which are considered to solve optimal active and reactive power dispatches. The results of the WOA simulation are compared with other algorithms such as Flower Pollination Algorithm (FPA) and Particle Swarm Optimization (PSO). The results of the simulations illustrate the effectiveness of WOA compared to the other methods due to better optimization values, fast convergence and less computational time [1].
Nowadays, there are several effective methods introduced to solve ORPD problems in electrical power networks. Because the PSO algorithm offers more advantages compared the other intelligent algorithms, it was selected as the best one for solving the ORPD problem in widespread networks. In the present work, an intelligent optimization algorithm named Particle Swarm Optimization (PSO) is used to solve the ORPD problem of minimizing both real and reactive power losses in the electrical power system between Norway, Finland, Sweden and Denmark. The PSO algorithm is inspired by the social life of groups of animals like bird flocks or fish groups [6]. The advantages of using PSO are fast convergence, few control parameters, and its suitability for optimization multi-space for both integer and discrete optimization problems [6]. The proposed method is applied to the Nordic 44 electrical power system, which consists of 61 generators, 44 buses, 67 branches and 12 transformers. Two objective functions are introduced for solving the problem for the Nordic 44 system, including minimization of active and reactive power losses with PSO algorithm. The proposed method illustrates the high effectiveness and better optimization values to reduce power losses in large electrical power systems by increasing the number of buses and generators like Nordic 44, which is a widespread network between Norway, Finland, Sweden and Denmark.
This paper is organized as follows: Section 2 presents the description of optimal reactive power flow, the problem formulation, and two categories of optimal reactive power flow dispatch. Section 3 describes the Particle Swarm Optimization algorithm. Section 4 describes the implementation steps of the PSO algorithm in optimal reactive power flow. Section 5 illustrates the MATLAB-2015 simulation results with several tables and figures, and finally, Section 6 expresses the conclusions.
Optimal reactive power dispatch
For many researchers and planners today, OPF has become one of the most important challenges in planning and operating an electrical power system [10]. Generally, the problem of OPF can be divided into two main groups, namely, optimal active power dispatch and optimal reactive power dispatch [7]. Nowadays, optimal reactive power plays a central role in the reliable and flexible operation of a power system aiming for voltage stability, improvement of the voltage profile, fuel cost reduction, minimization of active and reactive power losses in the transmission network, and minimization of harmful environmental effects of the power systems [3]. Furthermore, optimization of reactive power dispatch can be divided into two main groups, namely single reactive optimization problems and multi-reactive optimization problems with the adjustment of control variables including active and reactive power generation, bus voltage magnitude and tap of transformers in their limitations between lower bound and upper bound [7,10]. The description of both single and multi-optimization problems can be described as follows; a single reactive optimization problem solves a single objective function like minimization transmission losses, improvement of the voltage stability, or minimization of the fuel cost of generators [7]. The mathematical formulation of single objective functions can be defined as follows [10]:
Problem formulation
The objective of optimal reactive power dispatch is to identify control variables that minimize the objective functions. Examples of such control variables include voltages of generators, tap of transformers, active power of generators, and voltages of each of the buses that are considered between lower bound and upper bound [4]. The single objective function considered in this paper is defined as minimization of transmission power losses. In most research papers, the formulation of the minimization of transmission power losses is expressed as equation (7) [4]:
Equality constraints are power flow equations, which are included in the active and reactive power equations, with
Inequality constraints are defined as generator active power output, generator reactive power output, tap of transformers, and voltage of generators between their lower and upper bounds [8]. Equations (10) to (13) illustrate the control variables [4]:
Particle Swarm Optimization
Kennedy and Eberhard introduced the Particle Swarm Optimization algorithm based on the behavior of populations for solving optimal power flow problems in 1995 [6]. The PSO algorithm is inspired by the behavior of social groups of animals like birds, fishes, or insects within a group [5]. The PSO algorithm is modelled according to the movement of each particle in random search space. Each particle flows in random search space to find optimal solution for the operation of power systems. A collection of particles is called swarm [5].
In the basic description of the PSO algorithm, a group of birds located randomly, searching for a piece of food. None of the birds has a knowledge of the exact location of the food, but they have information about their distance to it. Each particle in the swarm flies to search for the optimum solution based on the velocity, their own experience and the experience of their neighbors [6]. One of the best strategies is following a bird that is nearer to the food. Figure 1 illustrates the random search space and the movement of each particle towards the best solution.
Each particle can find the optimal solution according to the three main items; best personal experience, global best experience, and velocity vector. Figure 2 illustrates the movement of each particle to the optimum solution [5].
The velocity and position for the next generation can be formulated as formulation (14) and (15) [6]:
W: Inertial coefficient.

(A) Initial population of animals. (B) The movement of each particle towards the best solution according to the velocity vector.

The diagram of searching point based on PSO.
The proposed algorithm has several advantages like fast convergence and reducing the time of calculation for solving optimal reactive power dispatch problems [9]. Our objective function is to minimize transmission power losses, including active and reactive power losses, by considering equality and non-equality constraints. The control variables are considered on the limitation of their boundary values of generator power (except slack generators), generator voltages and transformer taps. The steps for implementing the PSO algorithm in ORPD are described as follows [9]:
Producing the initial population by entering the input parameters of the systems between lower bound and upper bound, including ( Calculate the fitness function (minimization of transmission losses). In the first iteration, identify Initialize Modify the velocity and position of each particle according to the formulation (5) and (6) for producing the new population. Compare Finding the new Update the next iteration by Checking the stopping criteria (Max iteration, time, convergence According to the objective functions, in the last iteration, the particle of the lowest amount of
Simulation study and results
To verify the effectiveness of the proposed algorithm in the electrical power network for solving optimal reactive power dispatch problems, simulations are run on the Nordic 44 system and the results of the simulations will be compared to several standard IEEE systems, including IEEE 14 buses, 30 buses and 44 buses. Nordic 44 is a newly developed model, which connects several parts of European countries together, including Norway, Sweden and Finland. The system consists of 44 buses, 67 branches and 61 generators, 43 loads and 12 transformers. It consists of 33 generators in Norway, 26 in Sweden and 18 in Finland. Generally, Nordic 44 is developed to match a simplified model of the Nordic power system to the historical model of Nord Pool Spot. A single diagram of Nordic 44 with Modelica software is shown in the Fig. 3 [11].

Single diagram of Nordic 44 with Modelica software.
The system data of Nordic 44 such as generator data, bus data and load data are represented in Tables 1 and 2 respectively. Bus-9 is considered as slack bus.
Bus data of Nordic 44 system
Generator data of Nordic 44
To demonstrate the effectiveness of the PSO algorithm in an OPF problem, reducing transmission power losses is considered and implemented for the Nordic 44 system. Results of programming with MATLAB for Nordic 44 are shown below. The proposed algorithm is run with the objective function of minimization of transmission power losses for solving the optimal reactive power dispatch problem. In the simulation of Nordic 44, the Base MVA is defined as 1000 MVA, and control variables are voltage, bus of generators, and tap of transformers that are varied in their range (0.9–1.1). The convergence characteristic of the PSO algorithm for reducing power losses is shown in Fig. 3. According to the results of the simulation, power losses before implementing the PSO algorithm with the Interior Point method as OPF analysis are calculated as 358.606 MW, while after using the PSO algorithm, it reaches only 345.77 MW. Figures 4 and 5 illustrate the results of programming the PSO algorithm with MATLAB programming.

Graph of minimization of active power losses by iteration with PSO algorithm for Nordic 44.

The results of MATLAB programming for reducing power losses with the PSO algorithm based on the Newton Raphson method.
The results of PSO for Nordic 44 are compared with other classical methods like Newton Raphson and the Interior Point method with the objective function of the reduction of transmission power losses in the Table 3.
Table 4 illustrates the comparison of the objective function for reducing transmission losses with a PSO algorithm for several networks including Nordic 44, IEEE 14 buses and IEEE 30 buses and IEEE 57 buses. The data for IEEE standard systems are selected from the math power box in MATLAB.
Comparison of different methods for minimization of transmission power losses
In this paper, Particle Swarm Optimization algorithm implemented for the Nordic 44 electrical power network, based on MATAB-2015 software, successfully solved the problem of optimal reactive power dispatch with the objective function of minimization of total power losses. Particle Swarm Optimization was introduced as one of the best heuristic algorithms, with several advantages like convergence, flexibility, reliability, and few control variables compared to other intelligent algorithms for solving OPF problems. The proposed method is examined on the Nordic 44 system and compared to different standard IEEE systems. The results of the simulation illustrate the reduction of power losses for Nordic 44 from 358 to 338 MW, which shows the effectiveness and robustness of the proposed algorithm for solving the problem of optimal reactive power dispatch.
Implementation of PSO algorithm for minimization of transmission power losses on different electrical power networks
