Docsity

Simulation and Analysis Toolbox for Power Systems, Notas de estudo de Engenharia Elétrica

Toggle sidebar
bg1
A Simulation and Analysis Toolbox for Power Systems
and Genetic Algorithm Based Damping Controller Design
by
Amer Hasanovi´c
Thesis submitted to the
College of Engineering and Mineral Resources
at West Virginia University
in partial fulfillment of the requirements
for the degree of
Master of Science
in
Electrical Engineering
Powsiri Klinkhachorn, Ph.D.
Bojan ˇ
Cuki´c, Ph.D.
Ali Feliachi, Ph.D., Chair
Lane Department of Computer Science and Electrical Engineering
Morgantown, West Virginia
2001
Keywords:
power systems simulation, PAT, power analysis toolbox, transient stability, genetic
algorithm
Copyright 2001 Amer Hasanovi´c
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51

Pré-visualização parcial do texto

Baixe Simulation and Analysis Toolbox for Power Systems e outras Notas de estudo em PDF para Engenharia Elétrica, somente na Docsity!

A Simulation and Analysis Toolbox for Power Systems and Genetic Algorithm Based Damping Controller Design

by

Amer Hasanovi´c

Thesis submitted to the College of Engineering and Mineral Resources at West Virginia University in partial fulfillment of the requirements for the degree of

Master of Science in Electrical Engineering

Powsiri Klinkhachorn, Ph.D. Bojan Cuki´ˇ c, Ph.D. Ali Feliachi, Ph.D., Chair

Lane Department of Computer Science and Electrical Engineering

Morgantown, West Virginia 2001

Keywords: power systems simulation, PAT, power analysis toolbox, transient stability, genetic algorithm

Copyright 2001 Amer Hasanovi´c

Abstract

A Simulation and Analysis Toolbox for Power Systems and Genetic Algorithm Based Damping Controller Design by Amer Hasanovi´c Master of Science in Electrical Engineering West Virginia University Ali Feliachi, Ph.D., Chair

Due to the recent deregulation, difficulty in acquiring rights-of-way to build new transmis- sion lines, and steady increase in power demand, maintaining power system stability becomes evermore difficult and very challenging problem. Implementation of new equipment based on the latest technologies and proper controller design become essential for improvement of transient and oscillatory stability margins. To be able to develop and test these new devices and their controls it is necessary to have simulation package that allows accurate modeling of all power system components. Simulation environment has to be modular enough to allow frequent additions of new components without compromising overall speed of simulation and its accuracy. It should also support simulation of soft computing technologies e.g. Neural Networks, Fuzzy Logic, Genetic Algorithms, etc., since these technologies are increasingly being used to answer control challenges. The objectives of this thesis are: (1) development of a new power system simulation package within MATLAB/Simulink environment, and (2) application of genetic algorithms to coordination of power system damping controllers. The developed Power Analysis Toolbox (PAT) is a very flexible and modular tool for load flow, transient and small signal analysis of electric power systems. Standard power system component models and a wide range of FACTS devices are implemented within PAT. This toolbox allows automatic generation of linearized models, addition of new components by using Simulinks GUI, and a simple interface with other MATLAB toolboxes. The proposed scheme for coordination of power system damping controllers, based on genetic algorithms, is tested on the small and mid-sized power systems to prove its effectiveness.

iv

Contents

List of Figures vi

  • 1 Introduction List of Tables viii
  • 2 Literature Survey
    • 2.1 Work related to power systems simulation
    • 2.2 Work related to robust damping controller design
  • 3 PAT Simulation Environment
    • 3.1 Power System Stability Techniques
      • 3.1.1 Transient stability and load flow
      • 3.1.2 Small signal stability
    • 3.2 Software Overview
      • 3.2.1 Preprocessor
      • 3.2.2 PAT Data Structure
      • 3.2.3 Load Flow Module
      • 3.2.4 Transient Stability Analysis Module
      • 3.2.5 Small Signal Analysis Module
  • 4 PAT Performance
    • 4.1 New England/New York System
    • 4.2 Performance Evaluation
  • 5 Electro-Mechanical Oscillations Damping
    • 5.1 Supplementary Damping Sources
      • 5.1.1 Power System Stabilizer
      • 5.1.2 Static Var Compensator
    • 5.2 Genetic Algorithms
      • 5.2.1 Introduction
      • 5.2.2 Implementation Details
    • 5.3 Controller Design CONTENTS v
  • 6 Case Studies
    • 6.1 Two area power system
      • 6.1.1 System Controlled by two PSSs
      • 6.1.2 System Controlled by a single multiple input PSS
      • 6.1.3 System Controlled by a single input SVC damping controller
      • 6.1.4 System Controlled by a multiple input SVC damping controller
    • 6.2 New England/New York power system
  • 7 Conclusion
  • A Data files
  • B Simulink models
  • References
  • 3.1 PAT modules List of Figures
  • 3.2 PAT data structure
  • 4.1 New England/New York interconnected system
  • 4.2 Power system model in Simulink
  • 4.3 Power system and UPFCs modeled in Simulink
    • UPFC; dashed - system w/o UPFCs) 4.4 Comparing speed of generator closest to the fault location (solid - system with
    • UPFCs 4.5 Comparing bus voltages close to fault location with (solid) and w/o (dashed)
  • 4.6 Comparing eigenvalues with (o) and w/o (x) UPFCs
  • 5.1 Block diagram of a conventional power system stabilizer.
  • 5.2 One-line diagram of static var compensator.
  • 5.3 Genetic Algorithms flowchart
  • 5.4 One-point crossover example
  • 5.5 Mutation example
  • 6.1 Two-area system one-line diagram
  • 6.2 Relative angle between two areas. No damping control
  • 6.3 Relative angle between two areas. System with PSSs on generators 2 and
    • generator 6.4 Relative angle between two areas. System with a multiple input PSS on
    • on bus 6.5 Relative angle between two areas. System with a single input SVC controller
    • troller on bus 6.6 Relative angle between two areas. System with a multiple input SVC con-
  • 6.7 Dominant eigenvalues of uncontrolled system in five operating conditions
  • 6.8 Relative angle between generators 1 and 9 without the damping controllers
  • 6.9 Objective function optimization trace
  • 6.10 Dominant eigenvalues of controlled system in five operating conditions
  • 6.11 Relative angle between generators 1 and 9 with the damping controllers
  • B.1 Models for the Two-area and NE/NY systems controlled by PSSs LIST OF FIGURES vii
  • B.2 Models for the Two-area system controlled by a single PSS
  • B.3 Models for the Two-area system controlled by a single input SVC
  • B.4 Models for the Two-area system controlled by a multiple input SVC

viii

List of Tables

4.1 Simulation time for PST and PAT w/o UPFCs for a transient period of 10s. 25 4.2 Simulation time PAT w/ UPFCs for a transient period of 10s......... 25 6.1 GA optimization properties........................... 37 6.2 Dominant modes for the system without any control.............. 39 6.3 Dominant modes for the system with PSSs on generators 2 and 3...... 43 6.4 Dominant modes for the system with a multiple input PSS on generator 2. 45 6.5 Dominant modes for the system with a single input SVC controller on bus 101 46 6.6 Dominant modes for the system with a multiple input SVC controller on bus 101........................................ 48 6.7 Obtained controller parameters......................... 53

CHAPTER 1. INTRODUCTION 2

soft computing technologies are increasingly being used to answer control challenges. Be- fore implementing any novel technology, it is essential to validate these new control schemas through simulation within an environment that allows accurate modeling of all power sys- tem components. Moreover, this environment has to be modular enough to allow frequent additions of new components without compromising the overall speed of simulation or its accuracy. In the last decade MATLAB ©r^ [1] became, de facto, the standard tool for flexible technical computing. MATLAB incorporates a large number of domain specific toolboxes such as Fuzzy Logic Toolbox, Neural Network Toolbox, Control Toolbox, Real-Time Workshop, etc., and Simulink ©r^ [2], an interactive tool for modeling, simulating, and analyzing dynamic systems. Simulink offers a set of tools that can be used to build systems from the library of built-in blocks. It also allows creation of custom blocks that can incorporate C/C++, Fortran or MATLAB code. These features make MATLAB-Simulink an attractive choice for power systems related research. The contribution made by this thesis is twofold: First, the Power Analysis Toolbox (PAT), a MATLAB-Simulink based tool for power system simulation, was developed. The second contribution is the application of genetic algorithms to coordination of power system controllers for robust damping of electromechanical oscillations. The thesis will be organized as follows. A literature survey is given in Chapter 2. The PAT software package is presented in Chapter 3. The ability to analyze mid-size power system is demonstrated on the New England/New York power system in Chapter 4. Chapters 5 and 6 focus on the tuning of the power system damping controllers. Implementation of a new tuning procedure based on genetic algorithms is described and illustrated using two test systems, a two-area-four generator benchmark model and a 16-generator-68-bus model of the New York New England system. Conclusion and recommendations are in Chapter 7.

Chapter 2

Literature Survey

In this chapter a literature survey of topics related to power system simulation and power system damping control design will be given.

2.1 Work related to power systems simulation

Traditional tools for power system simulation such as PSS/E [6], Eurostag [7] and PSAPAC (Power System Analysis Package) [5] are well established and have been in use since the early 70s. These tools have a structure that consists of a number of computer programs that work together to provide the following basic types of power system analysis:

  • Load Flow
  • Dynamic Simulation
  • Small Signal Stability
  • Voltage Stability In addition, basic graphic user interface that allows changes of power system load flow models in the form of a single line diagram is also available for mentioned simulation en- vironments. Since these tools are usually built around highly optimized Fortran libraries for numerical computing, they can simulate large power systems with high computational efficiency.

CHAPTER 2. LITERATURE SURVEY 5

ObjectStab a Dymola component library for power system simulation was described in [12]. Dymola is a general-purpose simulation tool based on the Modelica language [4]. Mod- elica is designed to allow component-oriented modeling of complex physical systems. It supports noncausal modeling, meaning that the models terminals do not have to be assigned an input or output role. This feature allows very flexible addition of new components to the current ObjecStab library. The parameters for power system models can be specified in the Dymola GUI environment that offers interface similar to single line diagram. Dymola transforms a power system model specified in the form of a single line diagram into a sys- tem of differential algebraic equations (DAE). Using symbolic analysis simple equations are then eliminated reducing the overall size of the system so that efficient simulation can be performed. Although, Dymola incorporates a set of advanced solvers that can handle the simulation of hybrid systems, significant problems arise during the initialization of systems of differential algebraic equations that describe power systems. This is a well known prob- lem of finding the set of consistent steady state conditions which is solved by the load flow procedure in conventional power simulation packages. In the case of ObjectStab, a guess, relatively close to the true initial value for every unknown variable must be specified in order to successfully initialize the dynamic simulation. This is often very difficult, sometimes im- possible especially for larger systems. Additionally, Dymola’s solvers do not support sparse matrix computation, which causes significant decrease in simulation speed with the increase in the system size. Due to the fact that in the last decade MATLAB became the standard computing envi- ronment for engineers from different fields of science, a number of researchers addressed the issue of power system simulation in MATLAB-Simulink. Following similar approach to that used in ObjectStab, in [13], Hiskens and Sokolowski described symbolically assisted modeling and simulation of power system in MATLAB. The power system is described in the form of differential, switched algebraic and state-reset (DSAR) equations. The DSAR system is solved iterativelly in every time step. Although, this approach offers high modularity it suffers from similar problems described for Dymola environment. Additionally, no tool is provided to automatically eliminate redundant equa- tions in the DSAR system that arise due to interconnections between model components. This causes unnecessary increase in the number of equations to be solved in every iteration.

CHAPTER 2. LITERATURE SURVEY 6

Using the Real-Time Workshop, Hiyama and Ueno [14] have demonstrated real time simulation of a four-machine power system in the Simulink environment. Mahseredjian and Alvarado have developed MatEMTP [16], a set of m-files that can perform Electromagnetic Transient Program (EMTP) type simulations in the MATLAB environment. In [15], Allen et al. described an object oriented approach to power system modeling in Simulink. The problem with the implementation of this approach is that Simulink was not designed to handle non-causal modeling, i.e., model ports in Simulink must have either output or input role specified. If these ports are connected in an object-oriented fashion, algebraic loops are created within the model. The current Simulink solvers resolve algebraic loops iterativelly, decreasing the speed of simulation while having a negative impact on simulation stability. These limitations make this approach impractical for larger systems. There exist two commercial toolboxes that allow power system simulation in MATLAB, namely the Power System Toolbox [8] (PST) and Power System Blockset [9]. The latter targets the three-phase power system simulation and, therefore, is not appropriate for large- scale transient stability analysis. The PST is a set of MATLAB m-files that can be used to perform power flow and stability studies. PST does not offer graphical user interface (GUI) and cannot be used within the Simulink environment; addition of new components is time consuming and requires good understanding of toolbox’s internal structure. PST provides a single predictor-corrector solver that supports vectorized computation.

Because of the drawbacks of the mentioned environments and lack of some features that were required for an ongoing research conducted at West Virginia University’s Advanced Power Engineering Research Center (APERC), a Power Analysis Toolbox (PAT) was de- veloped. PAT incorporates most features and dynamic models that are provided by PST. Additionally, PAT includes some FACTS device models that are not part of PST distribution. Significant improvements in terms of speed and modularity were obtained by extensively uti- lizing features that were introduced in Simulink V4.1, such as complex number and matrix signal propagation. PAT’s main features are:

  • Fast transient simulations
  • Automatic generation of linearized models

CHAPTER 2. LITERATURE SURVEY 8

the method was limited to systems with up to 700 states [19]. Also, the described method could only be used to obtain the gain parameter while the time constants for stabilizers (i.e. phase compensation) still had to be set manually. Various constrained optimization techniques were applied to the problem of coordinated tuning of different power system damping controllers. In [20], an application of nonlinear constrained optimization to PSS tuning was described. The modal performance index used, was based on the energy contained under the envelopes of sinusoidal output signal responses, starting from given initial conditions. The optimization was performed with respect to model uncertainties and noise rejections. The method was tested on a four-machine power system. Potential drawback of this method is that the nonlinear solvers have a limited search space. Therefore, optimal solution obtained by this method depends on the initial parameter guess, which is used to initialize the nonlinear optimization. In [21], [22] and [23], PSS tuning by means of Genetic Algorithms (GA) was described. These papers investigated the use of genetic algorithms for the simultaneous stabilization of multimachine power systems over a wide range of operating conditions via power system stabilizers that have fixed parameters. In [23], simultaneous tuning of nine PSSs in fourteen operating conditions for the New England power system was performed. The objective function used for GA optimization was set to maximize the sum of eigenvalue dampings for all operating conditions. Two additional objective functions that allowed some eigenvalues to be shifted to the left-hand side of the vertical line in the complex plane or to a wedge-shape sector in the complex plane were further investigated in [22]. The results obtained in these papers proved that GA could be a powerful tool for robust PSS damping controller design. The latest advances in the telecommunication industry have induced an increasing inter- est in technologies, such as phasor measurement unit (PMU), that would provide a reliable source of wide-area measurements of the dynamic state of power system. Many researchers are investigating the proper usage of this information in the various areas of power system dynamic performance. In [26], Kamwa et al., described a hierarchical two level controller design. Where the designed PSSs had a speed sensitive local loop operating in the usual way, and a wide-area measurement based global loop which involved a single differential frequency signal between two suitably selected areas [26]. PSSs were tuned via a nonlinear constrained optimization where performance index was a modal based function similar to that described

CHAPTER 2. LITERATURE SURVEY 9

in [20]. The design was tested on the Hydro-Qu´ebec system. In similar way, Chow et al. investigated a possibility of controlling a five-machine Brazilian system via a single PSS with two inputs [24]. Also, the impact of a TCSC (thyristor-controlled series-compensation) damping controller, using two machine speed measurements as the input signal, was tested on a 24-generator power system. In both cases the remote signal information provided to the damping controller proved to be sufficient for the damping of interarea modes. Controllers were designed by means of low order LMI (linear matrix inequalities) design. Nonlinear simulation was not performed to confirm the results obtained by linear analysis.

Building on the initial effort described in [23] and [22], in the second part of this thesis, an application of a GA technique is demonstrated on:

  • robust tuning of multiple input PSS and SVC damping controllers using remote mea- surements,
  • robust coordination of PSS and SVC damping controllers using local measurements.

Controller designs will be tested on two power systems.

CHAPTER 3. PAT SIMULATION ENVIRONMENT 11

devices can be expressed in the following form:

x˙d = fd(xd, Vd) (3.1) Id = gd(xd, Vd) (3.2)

where: xd — state vector of individual device Id — real and imaginary components of device network current injections Vd — real and imaginary components of bus voltage

Equations 3.1 and 3.2, constitute a system of differential algebraic equations (DAE). DAE systems in general are very hard to solve. Especially difficult task is to initialize the DAE system with the consistent set of initial conditions. In the power system simulation tools this problem is usually solved by calculating the power flows and voltages of a transmission network for specified terminal or bus conditions. Associated with each bus are four quantities that constitute the bus conditions: active power P , reactive power Q, voltage magnitude V and voltage angle Θ. Specifying two out of the above four quantities, network buses can be classified into the following types:

  • Voltage-controlled (P V ) bus: Active power and voltage magnitude are known. In addition, reactive power limits are specified according to the characteristics of the individual devices.
  • Load (P Q) bus: Active and reactive power are specified. Usually, loads are assumed to have constant power.
  • Slack bus: Voltage magnitude and angle are specified. At least one bus must have unspecified P and Q, to compensate the power losses which are unknown before the load flow procedure is performed. Since power flow equations are nonlinear, an iterative technique such as Gauss-Seidel or Newton-Rhapson method [31] must be used to solve the power flow equations. After the load flow solution is obtained, transient simulation can be performed.

CHAPTER 3. PAT SIMULATION ENVIRONMENT 12

The overall power system equations, including the differential equations for all devices (3.1) and algebraic equations for all devices and the network (3.2) can be written in the following form: x˙ = f (x, V ) (3.3) I(x, V ) = YN V (3.4)

with a set of initial conditions (x 0 , V 0 ) that are computed by the load flow procedure, where: x — state vector of the system V — bus voltage vector I — current injection vector YN — network admittance matrix [31]

Equations 3.3 and 3.4, can be solved in various ways. In [31], two most frequently used approaches: partitioned solution with explicit integration and simultaneous solution with implicit integration, are described in details.

3.1.2 Small signal stability

Since the early 1970s, linear analysis techniques have been used to study the dynamic behavior of power systems. These techniques can provide valuable insights into the dynamic characteristics of a power system, which are not easily attainable from time domain simu- lations alone. In order for these techniques to be applicable to damping controller design, a linearized power system model must be extracted from the nonlinear DAE power system model described by Equations 3.3 and 3.4. Basic terms and definitions related to linear system analysis together with the procedure for linearizing a nonlinear system of differential equations will be described in this section. Using the vector-matrix notation a general nonlinear system of differential equations can be written in the following form:

x˙ = f (x, u) (3.5) y = g(x, u) (3.6)