{'fraction_non_alphanumeric': 0.0253270015829376, 'fraction_numerical': 0.004332250270765642, 'mean_word_length': 4.993010484273589, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Performance Assessment of Fuzzy Logic Power System Stabilizer on North Benghazi Power Plant

Fuzzy logic design has been implemented online to tune the power system stabilizer gain (KPSS). To assess the performance of the proposed technique, Benghazi North Power Plant (BNPP), at eastern Libyan network, has been utilized as a power system stabilizer (PSS) benchmark. The design considers different operating conditions and large disturbance. A selection of fuzzy rules is derived by means of system output power to tune KPSS, whereas Particle Swarm Optimization technique (PSO) is exploited to calculate the PSS parameters offline according to real-time measurements of the considered plant. Several simulation scenarios have been conducted to show the effectiveness of the proposed PSS in damping of local and interarea modes of oscillation of one-machine infinite-bus system. The study also contains comparison between the proposed technique and conventional PSS (CPSS).


Introduction
Power systems are normally designed so that they can operate and survive large disturbances like storms, lightning strikes, equipment failures, and unpredictable fault locations. This usually means that even though some power system equipment will be separated or isolated as a result of automatic protection and control actions, power supply to customers will not be disrupted or, at least, that any such disruptions will be localized.
The phenomenon of electromechanical oscillations between interconnected synchronous generators in power systems is intensively discussed in the literature. Power system oscillations associated with a single generator are classified as local modes of oscillations. Local modes have typically frequencies in the range from 0.7 to 2.0 Hz [1]. Small signal instability occurs when a system perturbation, even a small one, excites a natural oscillatory mode of the power system. These oscillations are slow, usually under 1 Hz. The main method used today to guard against small signal instability is the offline tuning of power system stabilizers (PSS). These PSSs are local controllers on the generators. Thus local controllers are used to mitigate system oscillation modes. However, this procedure, in some circumstances, is recognized to have significant disadvantages [2].
The most commonly used PSS, referred to as conventional PSS (CPSS), is a fixed parameter analog-type device with lead-lag compensation, wash out, and amplifier gains, which are limited and may lose effective damping robustness for overall operation [3,4].
New controllers need to be developed that can exploit system-wide inputs (not necessarily more inputs per controller but input signals from further away). Such remote signal inputs will obviously require communication channels which could be dedicated or could use a more flexible communication mesh network. Another control concept is to adaptively change the PSS set points according to the power system operating conditions.

Conference Papers in Engineering
Adaptive control can change the controller parameters online based on the changes in system operating conditions. An adaptive controller responds to changes in system operating conditions by determining a new set of control parameters. A number of examples of development and successful implementation of adaptive PSSs (APSSs) based on artificial intelligent (AI) techniques are described in [2].
A self-learning fuzzy logic controller working as AI power system stabilizer is introduced in [5]. The inputs and outputs of the generator are measured; however, there is no need to determine the states of the synchronous generator. An adaptive neuro-fuzzy inference system-(ANFIS-)based PSS is developed [6], which uses the postdisturbance value of the electrical power and speed deviation (obtained online) as inputs. The ANFIS PSS utilizes a zero-order Sugenotype fuzzy logic controller whose membership functions and consequences are also tuned online by the back-propagation method.
Multiobjective design that implements hierarchical genetic algorithm (HGA) and parallel Micro-Genetic Algorithm (Micro-GA) is presented in [7]. The method translates the tuning problem into a multi-input multi-output (MIMO) control system problem, where multiple power system stabilizers (PSSs) in multimachine power systems are tuned simultaneously. A rule-based FPSS is designed, whereas the parameters are tuned by another fuzzy logic system; this makes it adaptable to changes in operating conditions [8,9]. The algorithm is then used to stabilize a synchronous machine, which is part of a multimachine power system.
Power system stabilizer (PSS) in BNPP has been considered for investigation because it has significant impact on dynamic stability of the Libyan power system network. In 1995, a fast static excitation system (PID-system) UNITROL D with supplementary feedback lead-lag PSS was installed by ABB in BNPP. This suggests that the PSS parameters should be retuned regularly in order to cope with the power system growth as well as to handle effectively the new power system structures. This paper recommends the design of fuzzy logic algorithm to tune PSS of the conventional lead-lag power system stabilizer online, whereas the stabilizer parameters were initially obtained offline using PSO which is explained in Section 4.

Fuzzy Logic Control (FLC)
FLC is a kind of a state variable controller governed by a family of rule and a fuzzy inference mechanism. The FLC algorithm can be implemented using heuristic strategies defined by linguistically describe statements [8]. The fuzzy logic controllers are mainly used for power system excitations. In conventional controller designs, a plant needs to be mathematically modeled and from the control law is derived based on the analysis of the mathematical model. The main advantage of fuzzy logic control design lies in the nonlinearity nature of fuzzy control rules that can manage a wide range of operating conditions. The main components in FLC, as shown in Figure 1, are the fuzzifier, rule base, the inference engine mapping, and defuzzifier The inference engine maps the input values into fuzzy values using normalized membership functions and input gains. The fuzzy-logic inference engine deduces the proper control action based on the available rule base. The fuzzy control action is then translated to the proper crisp value through the defuzzifier using normalized membership functions and the output gain. In this work, the output control signal from FLC is employed to optimize the gain of the PSS. The suggested design is introduced as supervisory fuzzy logic PSS (SFPSS). It is worth to note that the trapezoidal membership functions, as shown in Figure 2, are used in control law design.

The Proposed Power System Stabilizer (SFPSS)
Essentially, the PSS mechanism can be described as a supplementary control signal that is added to a generator excitation control unit or automatic voltage regulator (AVR). This can improve the overall power system dynamic stability, and particularly to address the control of electromechanical oscillations. Thus, the PSS uses feedback signals such as shaft speed, terminal frequency, active power, and acceleration power to change the summing element of the AVR. This is a very effective method of enhancing small-signal stability performance on a power system grid. Equation (1) describes the block diagram of CPSS at BNPP In (1), 1 to 4 denote PSS time constants, whereas represents the time constant of the washout stage filter. As illustrated in Figure 3, the proposed fuzzy logic power system stabilizer consists of a conventional lead-lag stabilizer and a fuzzy logic-based parameter tuner that adjusts the PSS gain ( PSS ) according to real-time operating points and knowledge from a rule base prepared offline. Δ and represent the rotor speed deviation and electrical power, respectively. The implemented rules in the fuzzy logic design are as follows.

Particle Swarm Optimization
Particle Swarm Optimization (PSO) is one of the optimization techniques that have emerged from the evolutionary computation algorithms [10,11].
The features of PSO are as follows.
(i) The method is based on searching for swarms such as fish schooling and bird flocking.
(ii) It can be easily implemented and has stable convergence, and the computation time is relatively short.
According to the research results for the bird flocking, birds find the foods by flocking not by each individual. Each particle keeps track of its coordinates in the space, which are associated with the best solution. This value is called pbest. Another best value that is tracked by the global version of the particle swarm optimizer is the overall best value, and its location obtained so far by any particle in the group is called gbest. The PSO concept is, at each time step, changing the velocity of each particle toward its pbest and gbest location. The modified velocity of each agent can be calculated using  the current velocity and the distance from pbest and gbest as shown below: where V is current velocity of particle at iteration , V +1 is modified velocity of particle , rand is random number between 0 and 1, is current position of particle at iteration , pbest is pbest of particle , gbest is gbest of particle , is weight function for velocity of agent , and is weight coefficient.
Using the above equation, a certain velocity that gradually gets close to pbest and gbest can be calculated. The current position (searching point in the solution space) can be modified by the following equation: (3) Figure 4 shows the concepts of modification of a searching point by PSO. Figure 5 shows a searching concept with agent in a solution space.
The Algorithm of PSO. The proposed algorithm of PSO for searching the optimal values of the PSS parameters is as follows.  (1) Initialize the swarm with random positions and velocities.
(2) Calculate the fitness function of each particle by where is actual speed and is desired speed.
(6) If the evaluation value of each particle is better than the previous pbest, the value is set to pbest. If the best pbest is better than gbest, the value is set to gbest.  (7) If the iteration number reaches the maximum iteration number, then go to step (8). Otherwise, go to step (2).
(8) Plot pbest, gbest, and compute (4) for the control candidates with optimal values of PSS parameters.

Simulation Results
The performance of SFPSS is evaluated by subjecting the system to a large disturbance in a form of a three-phase fault of one transmission line. The fault occurs at 1 sec. and cleared at 1.2 sec. A schematic diagram representation of one generator connected with SFPSS is shown in Figure 6. For comparison purpose, the system is configured to switch between two different control techniques, in order to show the advantages of the proposed SFPSS over CPSS. The suitability of the proposed technique is checked by the performance index ( ), which is calculated by (5)  CPSS. The simulation results have also displayed that the SFPSS algorithm can cope with large disturbance at different operating points and has a significant impact in overall power system stability. It is very important to note that PSS has a mild action, which means that it can be safely exploited. However, in several occasions it hits the saturation limits. In terms of statistics, Table 1 visibly shows that SFPSS is superior compared with CPSS; hence it can significantly minimize index.

Conclusion
In this study, fuzzy logic control is applied to tune pss online. PSO technique is implemented to find the parameters of PSS based on the offline measurements. The suggested design is tested on BNPP benchmark. The article reveals that the developed algorithm is straightforward and systematic to be implemented. The results have shown that the designed stabilizer has the capability to maintain the system to operate at the optimum response in the sense of transient condition, settling