Intelligent control schemes applied to Automatic Generation Control

Integrating ever increasing amount of renewable generating resources to interconnected power systems has created new challenges to the safety and reliability of today‟s power grids and posed new questions to be answered in the power system modeling, analysis and control. Automatic Generation Control (AGC) must be extended to be able to accommodate the control of renewable generating assets. In addition, AGC is mandated to operate in accordance with the NERC‟s Control Performance Standard (CPS) criteria, which represent a greater flexibility in relaxing the control of generating resources and yet assuring the stability and reliability of interconnected power systems when each balancing authority operates in full compliance. Enhancements in several aspects to the traditional AGC must be made in order to meet the aforementioned challenges. It is the intention of this paper to provide a systematic, mathematical formulation for AGC as a first attempt in the context of meeting the NERC CPS requirements and integrating renewable generating assets, which has not been seen reported in the literature to the best knowledge of the authors. Furthermore, this paper proposes neural network based predictive control schemes for AGC. The proposed controller is capable of handling complicated nonlinear dynamics in comparison with the conventional Proportional Integral (PI) controller which is typically most effective to handle linear dynamics. The neural controller is designed in such a way that it has the capability of controlling the system generation in the relaxed manner so the ACE is controlled to a desired range instead of driving it to zero which would otherwise increase the control effort and cost; and most importantly the resulting system control performance meets the NERC CPS requirements and/or the NERC Balancing Authority‟s ACE Limit (BAAL) compliance requirements whichever are applicable.


Introduction
Recent years have witnessed the rapid development of smart grid technologies and remarkable progresses in their deployment to cope with the integration of distributed, renewable generating assets in fast growing quantities, which nowadays represent a significant amount of generating capacity of the entire system.It is a common consensus that the trend to integrate more and more renewable generation will continue in the foreseeable future.Accordingly, the challenges that come along with this exciting process are extraordinary and require systematic power system engineering and coordination of various system components (e.g.Transmission Net Application, Automatic Generation Control, and Wind Power Dispatch).The intermittent nature of renewable energy resources being integrated into the power grids causes significant uncertainties to be introduced to the power grids, and therefore make power system planning and operations even more challenging [1][2][3][4][5][6].
It should be noted that integration of renewable generating resources bears impacts on the system frequency response.Typically wind turbines and solar photovoltaic (PV) units do not provide inertia, and do not have primary controllers (governors).Some wind units and solar PV units are neither controllable nor dispatchable.Therefore, increasing wind and solar penetrations requires some conventional generators to shut down, and therefore reduces the system inertia, reduce the system"s frequency response to frequency deviations, and make it more difficult to stabilize the system frequency.
Random changes in load and generation occur in the power system causing changes in system frequency.Occasionally the frequency deviations are so significant that the system frequency stability is greatly marginalized or even in immediate jeopardy.Maintaining interconnection system frequency within a desired range is one of the main objectives of Automatic Generation Control (AGC) for each Balancing Authority (BA).Indeed power imbalance/rebalancing and frequency control occur over different time domains.Of interest in the AGC context are typically three tiers of frequency control: Primary frequency control; secondary frequency control; and tertiary frequency control.
 Primary control, also known as frequency response, occurs in the time scale of seconds following a change in system frequency to stabilize the system frequency.The primary control is accomplished by the governor action to adjust the energy input into the generator"s prime mover.It should be noted that primary control is not intended to restore system frequency to its nominal value, but stabilize it. Secondary frequency control, used to restore the system frequency, is typically provided by AGC, which periodically executes every few seconds to compute area control error (ACE) based on the system frequency, actual net interchange, and scheduled net interchange; and determines the system"s energy balance with its interconnection.As such, AGC helps regulate the interconnection frequency and net interchanges with its neighboring control areas.Secondary frequency control must comply with the NERC standards [7]: CPS1, CPS2, DCS, BAAL compliance, and any others applicable.
 Tertiary frequency control, used to economically dispatch system generation and deploy reserve for future contingencies, is typically fulfilled by Economic Dispatch, another important function provided in the AGC.
As an active research area, the stabilization of interconnected power systems following large disturbances (e.g.three-phase short circuit occurring at the terminals of a large generator) has been extensively studied in the past.This so-called transient frequency stability must be addressed by taking immediate remedial control actions to conduct the post-fault system to a region of stability.Transient frequency stability is on the time scale of a fraction of a second.Apparently it is not within the time scope of AGC, and therefore AGC is not capable of controlling system frequency for transient frequency stability.When transient frequency instability occurs, the stabilization of the interconnected power system after the severe fault condition is detected and cleared, requires rapid control actions by, for instance, fast-acting circuit breakers along with the energizing of flexible AC transmission systems (FACTS) devices to arrest the growth of rotor angles of the synchronous machines.
On the other hand, the frequency control of power systems beyond the transient frequency dynamics is within the time scope of the AGC, which is typically referred to as the load frequency control.There have been a number of research efforts in the literature [8-29 and references therein] that are intended to address the load frequency control problem.The efforts can be classified into several categories: (1) Prior to the adoption of the NERC Control Performance Standard (CPS) and Disturbance Control Standard (DCS), power utilities in the Northern America were required to comply with NERC Control Performance Criteria (CPC) and driving ACE to 0 was a main objective of the then EMS AGC [14][15][16]19].Also discussed in [16] was the superconducting magnetic energy storage system capable of providing power at a fast speed for area regulation need.The non-conforming load (NCL) was filtered to extract a proper amount to compensate ACE and reduce unit control effort [19].(2) Few endeavors have explicitly been directed in discussing the NERC CPS and DCS standard [20,25,26] and how they affect the design of AGC controllers [22] even though the controller design thereof is a heuristic approach.Clock-minute ACE decomposition was studied in [25,26,29] to identify the regulation amount associated with non-conforming loads.(3) Several research efforts were focused on make some extensions on AGC for its operation in the deregulated power system [17,23].The control of HVDC is studied in [17] for better ramping of power as exchanged between two neighboring control areas through a HVDC interchange tie whilst an overly simplified multi-control area case is analyzed in [23] where all the generators in a control area are aggregated and treated as one equivalent generator.(4) Several different control approaches were applied in addressing the AGC control problem [10][11][12][13]18,21,27,28].Some of them involve conventional proportional-integral (PI) control, fuzzy logic, neural network approaches dealing with the area control; others involve dynamic identification of control area"s frequency bias and generating unit model.
With the recognition of the contributions of the several interesting approaches proposed in the above, however, there are several important issues these studies have overlooked:  With NERC CPS1, CPS2, DCS and BAAL standards, the control objective of AGC is no longer drive ACE to 0. The very reason to adopt these NERC standards is to relax the control of generating units, which will prolong the life expectancy of generators and improve system production cost statistics.All these referenced studies [10][11][12][13][14][15][16][17]23] have designed AGC controllers based on the objective of controlling ACE to 0, which impose overly tight control of generators, and therefore shorten the life span of generators. The control cycle of AGC is on the scale of seconds.Typical settings are 2 seconds, 4 seconds, 6 seconds with 4-second AGC control being the most popular choice.Some of the referenced studies intend to simulate AGC in tenths or hundredths of a second, which is not meaningful and practical in the context of AGC control. A control area typically contains different kinds of generators such as thermal generators, hydro generators, nuclear generators, wind turbines, solar units, and storage and battery units.
The objectives of this paper are: (1) address the insufficiencies listed in the above with the previous research work; (2) provide a rigorous mathematical formulation of the AGC control problem that takes into account the practical control area generation modeling, incorporates the NERC CPS/DCS/BAAL standards, and include integration of renewable generating assets; (3) design neural network based controllers to achieve desired control performance and meet the NERC compliance requirements.
This paper is organized as follows: In section 2, the smart AGC framework is presented with each of the components in the framework responsible for dedicated tasks in achieving the balancing authority"s objectives: power balancing, maintaining system frequency, managing tie interchange flows, economics, and sufficient reserves.Put in this context and with a dedicated focus are the control challenges facing AGC.In Section 3, the AGC control problem is mathematically formulated with a system representation, a control objective, and various constraints.The innovative neural network based control approach is presented in Section 4. Some simulation results along with some observations and comments are provided in Section 5. Finally the concluding remarks are drawn in Section 6.

Smart automatic generation control framework
As proposed in [30] and as shown in Figure 1, Smart AGC is composed of three core functional groups: applications for smart prediction, applications for smart dispatch, and applications for smart control.
As important as load forecast for generation scheduling and dispatch, generation forecast for renewable generating resources is helpful for AGC to determine how much generation will be required ahead of time to meet the projected load with the consideration of how much generation the renewable generating resources will provide in the next several minutes to half an hour.Smart prediction is just such an application group, responsible for providing very short term load predictions [31] (e.g.minute-by-minute load predictions for the next 15 minutes used by the predictive economic dispatch (PED)) by employing neural network technologies.In addition, the wind generation forecast for each wind farm or groups of wind farms would give the system operators the information about the total wind generation that can be expected for both planning and real time operation purposes.The hierarchical neural network approaches are useful for wind generation forecast [33].Not all generating units are capable of regulating.In addition, participation in regulation causes the generating unit to move up and down frequently, shortening the generating unit"s life span.There is a need to place generating units at sustained generation levels whenever possible and minimize the amount of regulation to be placed on regulating units, which will not only reduce generation production cost and also prolong the unit"s life span.Smart dispatch is just such an application group, responsible for cyclically computing area"s total generation to be dispatched based on area total desired generation and area total regulation, and assign an economic base-point to each economically dispatchable generating unit to minimize the overall system production cost.This is exactly what traditional ED does.System reserve requirements may also be well incorporated into the optimization process.When there is a need to consider network flow constraints, security constrained economic dispatch (SCED) is tool to derive the best economically sound base-points to also reduce or remove the overloading of transmission branches and/or corridors.There is a need to move slow units up well ahead of time to provide sufficient generation for system peak load.Similarly slow units need to be moved down well ahead of time to provide minimum generation when the system load reaches its minimum around midnight.Predictive economic dispatch [32] is the tool to incorporate unit"s ramp rate limits and yet take into account of the projected system load, system reserve requirements and network security constraints over a consecutive number of time intervals for the near future.For systems that have a large quantity of renewable energy, and these renewable energy resources may be connected to the power grid in the distribution network, some specialized study may be mandatory to determine the maximum generation level that can be integrated from them.This is taken care of by Renewable Power Dispatch.
Once load and generation forecast information is available, interchange and unit schedules are typically also available, with the real time measurement information of actual tie flow, unit power output, and frequency, AGC must consider the characteristics of generating units, the control area"s frequency response, and determine the control area"s total desired generation to balance system load and maintain the system"s frequency within a desired range.Smart control is just such an application group, responsible for cyclically computing area total desired generation based on ACE and CPS control targets, determining the area regulation obligation, and allocating the regulation to regulating units.The adaptive control scheme computes 1-minute ACE average target for the current clock-minute and 10-minute ACE average target for the current clock 10-minute period in order to achieve the desired CPS1 and CPS2 compliance targets that must be identical to or higher than NERC requires to avoid penalties.This ensures that the unit desired generation as computed as the sum of unit"s base-point and regulation will be able to achieve the desired control performance.On the other hand, the generating units must be able to follow these instructions as quickly as possible and as closely as possible.Setpoint units are relatively more convenient to tune for best control performance.Raise/lower units are more challenging due to the facts that some thermal units are sluggish and do not respond to the control command regularly and that some power utilities would like to see units ramping towards their ramp targets as quickly as possible with some overshooting or undershooting better than closer but slow tracking.This involves a desired unit model that the operator can designate the desired unit behavior and unit tuning.This is useful particularly when a large amount of renewable generation integrated into the power grid and when there is a significant drop/increase in this type of generation, the regular generation can be well planned to be moved up/down based on the unit ramping behavior for significant system load pick-up/drop.
The smart control as a main focal point is to be studied in depth in this paper.The establishment of a unified system model and innovative control schemes are to be revealed in later sections.It is worth pointing out that in the smart control functional group, traditional generating unit types as well as renewable generating unit types are supported.As a special case, the modeling of a HVDC interchange tie for the AGC purpose is carried out in a way similar to a generating unit so it can be treated and controlled in a way similar to a generating unit with an only exception that the flow of a HVDC interchange tie may be import or export and the setpoint sent out to control the HVDC can be negative or positive depending on the flow direction.Another remark to be made here is that the non-conforming load is supported and is fed to a dedicated filtering logic to figure out the impacts to the interchange and to the frequency respectively.These impacts are assessed in the determination of the final NCL ACE component, which is further used in deriving the desired system generation and regulation.
The applications as illustrated in Figure 1 can be made into shared components by utilizing the Siemens components and integration technologies to be able to work in multiple different system platforms.The Siemens components and integration technologies reduces risks associated with large-scale application software development, functionality change and system maintenance, and enables efficient on-site delivery of functionality as a service on the Web.With the employment of Siemens components and integration technologies, application core implementation can be made totally separate from interfaces.Core implementation can be changed or improved without affecting clients that use the component.

Mathematical formulation of the advanced control problem
The AGC control system, on the high level, consists of two levels of control mechanisms: on the control area level, AGC collects the frequency deviation, tie interchange deviation, time error, and any other relevant information like energy payback, meter error, etc., short-term and long-term control performance statistics, short-term and long-term control targets, and computes the desired generation changes for the entire control area and determines the desired generation for each AGC-controllable generating unit; on the generating unit level, AGC determines the control setpoint for each AGC-controllable generating unit based on the instruction from the control area level and unit"s actual response performance.
The typical mathematical model for describing generator dynamics for transient frequency stability is given by the swing equations [33,34]: where i  designates the rotor angle (rad) of the i th synchronous machine; i  the rotor speed (p.u.); b  the synchronous speed as base (rad/sec); r  the rotor speed of the reference synchronous machine; mi P the mechanical power (p.u.); ei P the electrical power (p.u.); i M the machine inertia; i D the damping factor.
In the context of AGC control study, quasi-steady state or steady state is applicable whereas transient frequency stability is not of concern, nor is rotor angle stability an interest to AGC.For AGC study, the rotor speed dynamics in the above can be linearized with the employment of small signal analysis.This, along with governor dynamics, turbine dynamics, and reheater related dynamics for thermal generators can be illustrated in Figure 2. In the diagram, each of the sections has the corresponding gain and time constant; and i R designates the generator"s droop characteristics, and f  the frequency deviation, which is applied throughout the same control area.The dynamics on the generator level may be given by the following: For hydro units, the reheater section is not applicable, or simply treated as a unity gain block, which implies ti ri x x  .Nuclear units are typically set to be base loaded and their physical settings change very infrequently, and therefore they do not participate in regulation control and economic dispatch.For renewable generating resources, they are neither controllable nor dispatchable.
For transient frequency study, the frequency of each generator is different prior to the system steady state.However, for AGC purpose, the quasi-steady state or steady state frequency is concerned.The average frequency dynamics for a control area can be derived from the linearized version of the above mentioned swing equation for each generator in the control area.With some algebraic manipulations, the relationship between the frequency deviation and the sum of generation change, load change, and tie flow change may be given by: where Area K and Area T are the gain and time constant with a given control area, which are different from control area to control area; these two parameters are computed from synchronous machine"s inertia values and damping factors.
On the control area level, AGC computes frequency deviation, interchange deviation and ACE, and based on their historical values calculates clock-minute ACE averages, clock-minute frequency deviation averages, real-time CPS1 performance, CPS2 performance, and NERC mandated overall CPS1 performance, CPS2 performance, and BAAL compliance.Some or all of them may be used to derive control area"s desired generation and regulation depending on individual control schemes being developed and applied.For instance, the conventional PI controller only makes use of ACE and applies proportional integral control.More advanced control approaches like the one proposed in this paper with details revealed later utilize not just ACE, but also real-time and overall control performance statistics of the control area.This is shown in Figure 3. Several quantities are given as follows: where B designates the control area"s frequency bias, I  the area"s net interchange deviation as the difference between the area"s actual net interchange and its scheduled net interchange.The NERC required CPS2, denoted as 2 CPS , is based on the total number of clock ten-minutes periods in the month and the number of clock ten-minutes periods in which It is noteworthy that even though the BAAL performance standard is an alternative (or ultimately a replacement) of CPS2 performance standard, power utilities have their control practice flexible to embrace both options with the understanding that both options cannot be applied simultaneously.As important ACE limits, the BAAL limits are computed as follows: where A F designates the measured frequency, S F the scheduled frequency, Low FTL the low frequency trigger limit, High FTL the high frequency trigger limit.
The BAAL limits are used to check if clock-minute ACE is in any violation of these limits.The BAAL standard requires that the number of consecutive clock-minute violations v BAAL should be less than 30 in order to be BAAL compliant.That is, While the tertiary control relates to co-optimize the base-points of dispatchable generating units and unit reserves, these have been studied separately in great details previously [9,11], and can be readily included in the formulation of the AGC control problem.
With all the key technical elements of AGC discussed in the above, the AGC problem with the focus on the load frequency control and control performance requirements may be now formally presented in the following: With the generating unit dynamics described for a set of equation groups like (2), control area frequency response given by (3), find the desired generation changes Ri P  (or equivalently desired generation Ri P ) for each AGC controllable generating unit i for each AGC cycle such that the inequalities ( 6) and ( 7) (or alternatively ( 6) and ( 9)) hold at the end of each calendar month subject to the unit"s regulating limits and response rate limits.
To also include the reserve requirements and economic dispatch objective, the control area"s total desired generation needs to be economically allocated among all the dispatchable generating units with unit reserve contributions optimized simultaneously.
To also include the renewable generating units, since they are neither controllable nor dispatchable, they are basically placed in a mode following the generation forecast of respective renewable, and the disparity between the actual generation and forecasted generation will need to be absorbed by other conventional generation units like gas turbines that can provide fast regulation.This will be further addressed in the neural network based generation controller design.

Neural control approach for AGC
The fundamental question of the AGC on the area control level to be answered is "what is the best total area regulation?"Apparently, depending on the situation, the answer varies.When there is a DCS event, the control area must do what it can to reach a complete recovery within 15 minutes from the start of the disturbance, and therefore the control action must be most aggressive.Otherwise, the control area does what is most economical to comply with CPS1 and CPS2 or BAAL control performance standards.
A non-linear control strategy is proposed and applied before a neural control strategy is put in use: L , then there is no control.
 If overall CPS1 and CPS2 are compliant, and instantaneous CPS1 is compliant, but 10-minute ACE average is exceeding 10 L , then AGC takes action to bring ACE to where t designates the t th minute of the clock-10-minute time window.
This indicates the incremental control effort is .
 If overall CPS1 and the BAAL performance are compliant, but instantaneous CPS1 is not compliant, then AGC takes action to bring ACE to Apparently appropriate tunable gain factors may be imposed to speed up or slow down the correction process.Typically the corrective control effort u which may be termed area regulation is nonlinear function of several variables as mentioned in the above, and in the case of CPS1 and CPS2 control, may be represented by: ) Knowing the control area"s incremental control effort is restricted by the control area"s response capability, an additional term is introduced to reflect this: Note that all the items in the above equation are linked to the current time t , but for notational convenience, the current time t is dropped for brevity if no confusion arises.
Since the above equation is nonlinear and dynamical and the relationship varies depending on the system operating conditions, an explicit form of function f is unknown, a neural network based approach is a natural choice with various operation conditions are relevant control actions as deemed as desired are made available from historical data.The neural control is intended to approximate the function f and may be expressed as: Note that in the case of CPS1 and BAAL compliance, an equivalent of Equation ( 11) is given by ) , , , From Equation ( 11) or ( 12), it appears that a recurrent neural network [33] seems applicable.The main issue with the application of a recurrent neural network is that its training requires significant increase in training time which makes it not really appropriate for dynamic training and real time or near real time control.Alternatively, a feed-forward neural network is selected for training through batch-mode training.Such training involves the choice of number of layers in a neural network and number of neurons in the hidden layers.Many different neural network configurations are tested.And the common logistic sigmoidal function and tan-sigmoidal functions are used for simulations.
Once the number of layers is decided, determination of the number of neurons in the hidden layers is through trial and error, which is also affected by the number of training samples available.The available data samples are split into two sets, typically a larger set for training and the other smaller set for validation.
Power utilities like to have some cushions on CPS1 and CPS2 compliance, for instance, an internal CPS2 compliance target of 92% and an internal CPS1 compliance target 120%.Additional upper CPS1 and CPS2 compliance targets may be also applicable to give additional cushions on the control relaxation, for instance 135% for CPS1, and 95% for CPS2.With this in mind, a possible nine neural controllers are identified as shown in the Table 1.

NN
From the past 12 month worth of historical data for CPS1, CPS2, ACE, frequency deviation, clock-minute ACE and frequency deviation, clock-10-minute ACE, instantaneous CPS1, and area total regulation, collect the data values for neural controller 1 training over those time intervals where the (running) overall CPS1 is greater than 100% and the (running) overall CPS2 is more than 90%.Similarly the historical data for neural controllers 2, 3, 4 and till 9 can all be collected.In a similar manner, neural controllers can be trained in case CPS1 and BAAL standards are what AGC is controlling to comply with, as is shown in the following Table 2.In what follows, in the context of an AGC simulation environment, the simulated ACE samples along with frequency deviation samples, interchange errors samples are collected and used for training the neural network based AGC controller.A system has two control areas with one being of interest and the other being external control area.The test control area has 16 thermal units, 4 hydro units, 3 solar and 3 wind units.The generating capacity is 2500 MW, the load is 2000 MW, and the generating capacity contributed from the solar and wind generating units accounts for 100 MW.The sample clock-minute quantities are shown in the Figure 6, which constitute the basic information for the construction of neural controllers.The objective is to determine the area total regulation every AGC cycle.In an ideal environment, a 12-month worth of 4-second frequency deviation samples, ACE samples and area total regulation samples obtained from a production environment.For this simulation, a four-day worth of data are simulated and collected.The clock-minute quantities and running CPS1 and CPS2 values are calculated, for neural network training for respective neural network models 1, 3, 4, and 6 with 25 neurons in the first hidden layer activated by a logistic function and 25 neurons in the second hidden layer activated by a tan-sigmoidal function, an input layer taking 9 input values, and an output layer producing 1 output value.The appropriate input samples in the format as required by Equation ( 11) are fed to the neural network models 1, 3, 4 and 6; and the predicted area regulation values are generated from these four neural controllers.
For ease of data collection, fair comparison, and validation purpose, 4/5 of the amount of the simulated data is used for training and the remaining 1/5 is for validation purpose.The following Table 3 shows the training and prediction performance over the time periods.
Because of the way the data was collected, the training performance and prediction performance are close.It is interesting to note that neural controller 1"s training and control performance slightly better that the rest controllers as this controller exercises most relaxed control.Neural controller 4 exercises most tight control and exhibits relatively higher errors.It is noteworthy that the neural network based control provides a mechanism to tighten or loosen the control based on historical control performance whereas the traditional PI controller tends to control tight at times or needs to fight the drift problem, integration reset, and dynamic parameter tuning at other times.In addition, the power system nonlinearities complicate the situation where PI control is not sufficient.The best compromise seems to be that neural controllers are applied to bring the ACE back to a desired range; and if necessary then a PI controller is applied to bring ACE further closer to 0.
It is worth pointing out that the simulation presented serves the purpose of illustrating the control schemes proposed in this paper.Apparently real field data from production systems will enable more thorough testing of the proposal controller design.

Conclusions
With the reinforcement of NERC control performance standards CPS1, CPS2 and DCS, and the experimental practice of the BAAL standard, the traditional AGC must be renovated to relax the tight control of generating units for prolonging the life expectancy of these units and for better economics on one hand.On the other hand, the traditional AGC must be revamped to also be smart enough to be able to handle the uncertainties introduced by the ever increasing penetration of the renewable energy resources.
This paper starts with an analysis of frequency control, conducts an discussion about the NERC CPS standards and their implications on what AGC needs to be able to do to comply with those revised control performance standards, and then establishes a mathematical AGC problem formulation that incorporates the governor dynamics, turbine dynamics, frequency response, unit"s droop characteristics; unit"s regulating limits, unit"s response rate limits; and NERC CPS and BAAL standards.
With the new AGC control problem set up, the traditional PI control approach attempts to regulate ACE to zero, which exercises overly tight control and therefore is no longer an economic efficient.The proposed neural network based controller on the control area level makes use of current ACE, frequency deviation, the current clock-minute ACE value, clock-minute frequency deviation value, accumulative CPS1 value, accumulative CPS2 value, the number of consecutive clock-minutes of BAAL violation, the difference between actual generation total of the renewable energy resources and their scheduled generation total; and then determines the total desired generation.The rest is to economically distribute the regulation among dispatchable and controllable generation units.As such the control approach is able to meet the NERC CPS requirements and yet accommodate the additional uncertainties introduced by the renewable energy resources.
This paper has pointed out several issues existing in some of the literature, identifies the need to establish a mathematical formulation of the new AGC control problem, and comes up with an innovative neural network based control methodology to address the identified challenging issues associated with the AGC control in the smart grid.These contributions are conducive to improve the control performance of the control area which contains intermittent renewable energy resources.Future work includes more thorough testing of the proposed neural controllers using significantly more data and even better to do so using the field data; and in addition applying the neural controller to enhance the CPS1 and BAAL performance together.

1 ACE 1 f 1 CPS 1 CPS
designates the clock-minute ACE average,  the clock-minute frequency deviation average, and 10 ACE the clock ten-minute ACE average.The instantaneous mandated reporting CPS1, denoted as 1 CPS , is computed using the similar equation but all the quantities involved are clock-minute based and the 12-month rolling averages must be calculated to arrive at the final

Figure 6 .
Figure 6.Clock-minute ACE and frequency deviation samples.
Upon detection of a DCS event, AGC reacts to take immediate control actions to restore ACE to 0 if the pre-disturbance ACE is positive; or restore ACE to the pre-disturbance ACE if the pre-disturbance ACE is negative.This is straightforward.When there is no DCS event, what follows applies. Compute instantaneous ACE and frequency deviation, and instantaneous CPS1. Compute the current clock-minute ACE and clock-minute frequency deviation. Compute 1-minute ACE and frequency deviation values using the instantaneous ACE and frequency deviation values from one minute back till the current AGC cycle.To differ from the above clock-minute values, these two values are called the current 1-minute averages.
 Compute clock-10-minute ACE average and check against 10 L for any violation.Compute 12-month running cumulative CPS1 and current month cumulative CPS2.
If overall CPS1 and CPS2 are compliant, and 10-minute ACE average is exceeding 10 Compute instantaneous ACE and frequency deviation, and instantaneous CPS1. Compute the current clock-minute ACE and clock-minute frequency deviation. Compute 1-minute ACE and frequency deviation values using the instantaneous ACE and frequency deviation values from one minute back till the current AGC cycle.To differ from the above clock-minute values, these two values are called the current 1-minute averages.Compute 12-month running cumulative CPS1 and the number of the BAAL violations over consecutive minutes of time and check the BAAL violation numbers against a pre-designated value (less than 30 for some cushion). If either overall CPS1 or the BAAL performance is not compliant, then AGC takes immediate control action to bring ACE back to 0.  If overall CPS1 and the BAAL performance are compliant, and instantaneous CPS1 is also compliant, then there is no control. If overall CPS1 is compliant, but the BAAL violations exceeds a pre-designated threshold value,  Upon detection of a DCS event, AGC reacts to take immediate control actions to restore ACE to 0 if the pre-disturbance ACE is positive; or restore ACE to the pre-disturbance ACE if the pre-disturbance ACE is negative.This is straightforward.When there is no DCS event, what follows applies.

Table 2 . Neural controllers for CPS1 and BAAL compliance targets.
utilities, if the compliance is less than 70%, let alone 50%, a very aggressive control will be initiated.For this reason, the normalized ACE bounds and corresponding compliance percentage values that are above 50% are collected.Once the ACE bound is found, a control scheme as illustrated below can be applied.As noted in the above, there is no closed-form solution, and a neural network is applied to approximate the solution.With these data values collected, half of the data is used for training a neural network that is going to learn the relationship between the CPS2 compliance target and the normalized ACE bound; and half of the data is kept for validating the training neural network.Shown in Figure4is the training result, where the training performance of 1.2% Root-Mean-Square (RMS) error is achieved.The training error can be further reduced by means of additional training time, or applying multiple neural networks each responsible for a non-overlapping range of the compliance percentage.As is observed, the normalized ACE values become susceptible and go sharply higher as the compliance percentage goes close to 1.The neural network used has two hidden layers with 20 neurons in the first hidden layer activated by a logistic function and 21 neurons in the second hidden layer activated by a tan-sigmoidal function.