1. Field of the Invention
The present invention relates generally to power generation systems, and more specifically, to a neural network optimizing sliding mode controller having a control optimization feature that improves robustness in the responses of a single power generation system under a variety of operating conditions.
2. Description of the Related Art
In recent years, there has been an ongoing interest on the application of the sliding mode controller (SMC) to different engineering problems including power systems, aerospace, robotics, and many others. The SMC is essentially a switching feedback control where the gains in each feedback path switch between two values according to some rule. The switching feedback law drives the controlled system's state trajectory onto a specified surface called the sliding surface, which represents the desired dynamic behavior of the controlled system. The advantage of switching between different feedback structures is to combine the useful properties of each structure and to introduce new properties that are not present in any of the structures used. SMC design involves finding the switching vectors representing the sliding surface and the feedback gains.
The switching vectors are very important in improving the system dynamic performance. Selection of switching vectors can be done by pole placement or linear optimal control theory. Selection of feedback gains represents the second step in SMC design. The objective of this step is to find the appropriate feedback gains that will drive the system's state trajectory to the switching surface defined by the switching vectors. Recently, artificial intelligence (Al) algorithms have been used for the selection of SMC feedback gains. Among the different search optimization methods, Genetic Algorithms (GA) have been widely used in many engineering applications. The feedback gains selection of the SMC is normally based on one operating point which results in fixed SMC gains for the entire operating points. Therefore, the performance of the controller away from the design operating point is, of necessity, a compromise. The limitations imposed on the effectiveness of the SMC by different operating conditions can be overcome by using adaptive control techniques.
Thus, a neural network optimizing sliding mode controller solving the aforementioned problems is desired.
The neural network optimizing sliding mode controller includes an adaptive SMC that utilizes neural networks (NN) for on-line prediction of the optimal SMC gains when the operating point changes. The controller is illustrated by application to a power system stabilizer (PSS) of a single machine power system. Simulation results are included to demonstrate the performance of the controller scheme.
These and other features of the present invention will become readily apparent upon further review of the following specification and drawings.
Similar reference characters denote corresponding features consistently throughout the attached drawings.
The neural network optimizing sliding mode controller includes an adaptive SMC having neural networks for on-line prediction of the optimal SMC gains when the operating point of the system under control changes. The controller is illustrated by application to a power system stabilizer (PSS) of a single machine power system. Simulation results are included to demonstrate the performance of the controller.
It will be understood that the diagrams in the Figures depicting the neural network optimizing sliding mode controller are exemplary only, and may be embodied in a dedicated electronic device having a microprocessor, microcontroller, digital signal processor, application specific integrated circuit (ASIC), field programmable gate array, any combination of the aforementioned devices, or other device that combines the functionality of the neural network optimizing sliding mode controller onto a single chip or multiple chips programmed to carry out the method steps described herein, or may be embodied in a general purpose computer having the appropriate peripherals attached thereto and software stored on a computer readable media that can be loaded into main memory and executed by a processing unit to carry out the functionality of the controller as described herein.
The fundamental theory of SMC is well known to persons having ordinary skill in the art. Different control goals, such as stabilization, tracking, and regulation, can be achieved using SMC by the proper design of the sliding surface. The regulation problem is addressed, wherein the objective is to keep specified states as close to zero as possible. A block diagram of the SMC 100 for the regulation problem is shown in
{dot over (X)}(t)=AX(t)+BU(t) (1)
where
X(t) is an n-dimensional state vector;
U(t) is an m-dimensional control force vector;
A is an n×n system matrix, and
B is an n×m input matrix.
The SMC control laws for the system of (1) are given by
where the feedback gains are given as:
where Ci's are the switching vectors, which are selected by pole placement or linear optimal control theory.
The design procedure for selecting the constant switching vectors ci using pole placement includes a procedure that defines the coordinate transformation:
Y=MX (4)
such that:
where M is a nonsingular n×n matrix and B2 is a nonsingular m×m matrix. Then, from (4) and (5) calculating;
where A11, A12, A21, A22 are respectively (n−m)×(n−m), (n−m)×m, m×(n−m) and (m×m) submatrices. The first equation of (7) together with (3) specifies the motion of the system in the sliding mode, which is:
{dot over (Y)}
1
=A
11
Y
1
+A
12
Y
2 (8)
Σ(Y)=C11Y1+C12Y2 (9)
where C11 and C12 are m×(n−m) and (m×m) matrices, respectively, satisfying the relation
[C11C12]=CTM−1 (10)
Equations (8) and (9) uniquely determine the dynamics in the sliding mode over the intersection of the switching hyper-planes.
The subsystem described by (8) may be regarded as an open loop control system with state vector Y1 and control vector Y2 being determined by (9), that is
Y
2
=C
12
−1C11Y1 (11)
Consequently, the problem of designing a system with desirable properties in the sliding mode can be regarded as a linear feedback design problem. Therefore, it can be assumed, without loss of generality, that c12=an identity matrix of proper dimension. Next, equations (8) and (11) can be combined to obtain
{dot over (Y)}
1
=[A
11
−A
12
C
11
]Y
1 (12)
It is well know in the art that if the pair (A, B) is controllable, then the pair (A11,A12) is also controllable. If the pair (A11,A12) is controllable, then the eigenvalues of the matrix [A11−A12C11] in the sliding mode can be placed arbitrarily by suitable choice of C11. The feedback gains αij are usually determined by simulating the control system and trying different values until satisfactory performance is obtained.
The neural network optimizing SMC involves the following steps: (1) generating data for the SMC gains that correspond to different operating points using genetic algorithms; (2) training and testing of the neural network to perform the nonlinear mapping between the operating points and SMC feedback gains; and (3) online implementation of the SMC.
Genetic algorithms are directed random search techniques that can find the global optimal solution in complex multidimensional search spaces. GA employs different genetic operators to manipulate individuals in a population of solutions over several generations to improve their fitness gradually. Normally, the parameters to be optimized are represented in a binary string. To start the optimization, GA uses randomly produced initial solutions created by a random number generator. This method is preferred when a priori knowledge about the problem is not available.
The flowchart of a simple GA procedure 200 is shown in
The crossover operator works on pairs of selected solutions with certain crossover rate. The crossover rate is defined as the probability of applying crossover to a pair of selected solutions. There are many ways of defining this operator. The most common way is called the one-point crossover, which can be described as follows. Given two binary-coded solutions of certain bit length, a point is determined randomly in the two strings, and corresponding bits are swapped to generate two new solutions. Mutation is a random alteration with small probability of the binary value of a string position. This operation will prevent the GA from being trapped in a local minimum. The fitness evaluation unit in the flowchart acts as an interface between the GA and the optimization problem. Information generated by this unit about the quality of different solutions is used by the selection operation in the GA. The algorithm is repeated until a predefined number of generations have been produced.
The GA is used to generate SMC feedback gains for different operating points in the following manner: (1) generate randomly a set of possible feedback gains; (2) evaluate a performance index when the system is subjected to a change in the operating point for all possible feedback gains generated in step 1; (3) use genetic operators (selection, crossover, mutation) to produce a new generation of feedback gains; (4) evaluate the performance index in step 2 for the new generation of feedback gains. Stop if there is no more improvement in the value of the performance index, or if a certain predetermined number of generation has been used. Otherwise, go to step (3).
A multilayer neural network is a layered network consisting of an input layer, an output layer, and one or more hidden layers. Each layer includes a set of neurons, which are fully connected to the neurons in the next layer. The connections have multiplying weights associated with them. The number of neurons and hidden layers is problem-dependent. However, it has been proved that one hidden layer can perform any nonlinear mapping, and no more than two hidden layers are needed. As shown in
The connection weights between the neurons and thresholds are determined using the generalized delta rule. The process of determining the weights is called the training or learning process. The training process requires a set of input and output patterns. The patterns are fed into the neural networks. The neurons in the input layer receive input signals. Then, the resultant activation signals propagate forward through the hidden layer(s) to the output layer. The output layer then gives the desired output. The network learns by comparing its output of each input pattern with the actual output of that pattern. The error (the difference between the actual outputs and the predicted outputs of the network) is calculated and propagated backwards from the output to the hidden layer to the input. This is done by minimizing the error function:
where tk is the actual output and yk is the predicted output of the neural network. The inputs to the neural network used for the adaptive SMC corresponds to the system operating points, while the outputs generated by the NN represent the SMC feedback gains. The training of the NN is performed using the data generated by the GA. Normally, the data is divided into two parts; one for training and the other for testing.
As shown in
The neural network optimizing sliding mode controller is applied to the design of a power system stabilizer (PSS) of a single machine power system model 500, where the system model is a function of the operating point defined by active and reactive powers (P, Q). The need for adaptive SMC comes from the fact that the model 500 operates over a wide range of operating points, some of which are unstable. Thus, no single SMC with fixed feedback gains is sufficient for the entire operation. The system under control 500 is a linearized power system model for low-frequency oscillation studies. The dynamic model in state-variable form can be obtained from the transfer function model and is given as:
ω is the rotor speed (rad/sec), δ is the machine shaft angular displacement (degree), D is the damping coefficient, M is the inertia constant, eq′ is the voltage proportional to the field flux linkages of machine, efd is the generator field voltage, K1-K6 are constants of the linearized model, KA is the automatic voltage regulator gain, TA is the automatic voltage regulator time constant (sec), Tdo′ d-axis transient open circuit time constant. The control objective in the PSS problem is to keep the change in frequency (Δω) as close to zero as possible when the operating point changes by manipulating the input (u). For this plant, the pair (A, B) has been found to be controllable.
Following the aforementioned GA design procedure, crossover and mutation probabilities, as well as population size of 0.7, 0.001, and 35, are used to get the optimal SMC gains (α1 and α2) corresponding to different operating points in the range (P from 0.1 to 1 p.u and Q from −1 to 1 per/unit (p.u)). The performance index given by:
is minimized using GA. The minimization of this performance index keeps the change in frequency (Δω) as close to zero as possible, regardless of the operating point. The plot 600, shown in
The change has been made in steps of 0.1. In practice, any step change can take place. The neural network used has two inputs (P, Q), two outputs (α1 and α2), and 30 neurons in the hidden layer. The online implementation of the adaptive SMC is most clearly shown as system configuration 700 in
The results of training and testing the neural network are shown as plots 800 and 900 of
For the operating point of (P=0.1, Q=1.0), a fixed variable structure controller for the above system has been designed. To reduce the complexity of the SMC, the two states Act) and LIS are used for feedback. The switching vector used is:
C=[−30000 −97.2134 107.0026 1]T
and the feedback gains obtained using genetic algorithms are:
α1=18.5109 and α2=4.2116.
As shown in
A neural network optimizing sliding mode controller has been developed for a PSS of a single machine power system. The use of adaptive output feedback is motivated by the fact that the single machine power system operates over a wide range of operating conditions, and, hence, no single SMC gains are sufficient for the entire operation. The neural network is used to adaptively predict the suitable SMC gains for any operating point. The training data for the neural network has been generated using genetic algorithms. Simulation results indicate that the adaptive, neural network optimizing sliding mode controller greatly improves upon performance found in fixed sliding mode controllers.
It is to be understood that the present invention is not limited to the embodiment described above, but encompasses any and all embodiments within the scope of the following claims.