The present invention relates to systems and methods of process or system modeling and control and, specifically, process modeling and control using a calculated confidence in the system model.
In a conventional fossil fuel-fired power plant or generating unit, a fossil fuel/air mixture is ignited in a boiler. Large volumes of water are pumped through tubes inside the boiler, and the intense heat from the burning fuel turns the water in the boiler tubes into high-pressure steam. In an electric power generating application, the high-pressure steam from the boiler passes into a turbine comprised of a plurality of turbine blades. Once the steam hits the turbine blades, it causes the turbine to spin rapidly. The shaft of the spinning turbine is linked to the shaft of a generator, and the rotating shaft within the generator may be used to create an electric potential.
As used herein, the term “power generating plant” refers to one or more power generating units. Each power generating unit may drive one or more turbines used for generating electricity. A power generating unit is typically powered by fossil fuels (including but not limited to, coal, natural gas or oil), and includes a boiler for producing high temperature steam; air pollution control (APC) devices for removal of pollutants from flue gas; a stack for release of flue gas; and a water cooling system for condensing the high temperature steam. A typical power generating unit will be described in detail below in relation to
As will be appreciated, boiler combustion or other characteristics of a fossil fuel-fired power generating unit are influenced by dynamically varying parameters of the power generating unit, including, but not limited to, air-to-fuel ratios, operating conditions, boiler configuration, slag/soot deposits, load profile, fuel quality and ambient conditions. Changes to the business and regulatory environments have increased the importance of dynamic factors such as fuel variations, performance criteria, emissions control, operating flexibility and market driven objectives (e.g., fuel prices, cost of emissions credits, cost of electricity, etc.).
Further, about one half of the electric power generated in the United States is generated using coal-fired power generating units. Coal-fired power generating units used in power plants typically have an assortment of air pollution control (APC) devices installed for reducing nitrogen oxides (NOx), sulfur oxides (SOx), and particulate emissions. In this regard, selective catalytic reduction (SCR) systems are used for NOx reductions. Spray dry absorbers (SDA) and wet flue gas desulfurization (FGD) systems are used for SOx reductions. Electro-static precipitators (ESPs) and fabric filters (FF) are used for reducing particulate emissions.
Over the past two decades, combustion optimization systems have been implemented for advanced control of the combustion process within the furnace. Typically, combustion optimization systems interface with the distributed control system (DCS) of a power generating unit. Based upon the current operating conditions of the power generating unit, as well as a set of operator specified goals and constraints, the combustion optimization system is used to compute the optimal fuel-to-air staging within the furnace to achieve the desire goals and constraints.
Combustion optimization systems were originally implemented to reduce nitrogen oxides (NOx) produced in the furnace and emitted to the atmosphere via the stack. For example, U.S. Pat. No. 5,280,756 teaches a method and system for controlling and providing guidance in reducing NOx emissions based upon controllable combustion parameters and model calculations while maintaining satisfactory plant performance. U.S. Pat. No. 5,386,373 teaches the use of a predictive model of emissions, including NOx, in conjunction with a control system, while U.S. Pat. No. 6,381,504 describes a method for optimally determining the distribution of air and fuel within a boiler by aggregating the distributions of air and fuel into two common variables, performing an optimization, and then computing the optimal distribution of fuel and air based upon the optimal values of the aggregated variables. U.S. Pat. No. 6,712,604 describes a system for controlling the combustion of fuel and air in a boiler such that the distributions of NOx and CO are maintained to average less than the maximum permitted levels.
In addition, combustion optimization approaches have been used to control boiler parameters in addition to NOx, including unit heat rate, boiler efficiency, and mercury emissions. For example, U.S. Pat. No. 7,398,652 teaches an approach to modeling controllable losses in a power generating unit and a method for optimizing the combustion process based upon these controllable losses. U.S. Pat. No. 8,644,961 teaches a method for reducing mercury emissions from a coal-fired power plant while observing limits on the amount of carbon in the fly ash produced. U.S. Pat. No. 7,522,963 teaches a controller for directing operation of an air pollution control system, such as an FGD or SCR, such that a predefined optimization objective is minimized. Optimization techniques have also been used to control the removal of soot within a boiler. For example, U.S. Pat. No. 6,736,089 teaches a method for removal of soot based upon optimizing a set of boiler performance parameters using a model of the cleanliness factors of heat transfer surfaces. Optimization has also been extended beyond specific components within a power generating unit, such as the boiler, FGD and SCR. As provided in U.S. Pat. No. 7,844,351, which is hereby incorporated herein in its entirety, an approach to optimization of multiple components, within a single power generating unit or multiple power generating units, is described.
Neural networks have been used to both predict and optimize industrial systems. For example, U.S. Pat. No. 5,167,009 teaches a method for predicting output data of a process using a neural network and subsequently using the prediction in a control or optimization system. As another example, U.S. Pat. No. 7,123,971 teaches an approach to training neural network models to predict the change in the output based upon the change in the inputs. Using this approach, referred to as disturbance rejection based training, the model is trained to learn the cause of the change in an output rather than simply learning the correlation structure of the data which results in a significant improvement in optimization results. In addition, U.S. Pat. No. 6,725,208 teaches the use of a Bayesian training technique of combining multiple weighted neural network models to form a model used in optimization of a process. This type of model can be used to estimate the uncertainty in the predicted output, though these capabilities are limited.
Thus, the prior art describes methods and systems for using models, including neural network models, to optimize industrial systems and processes. In addition, disturbance rejection based training has been found to provide more accurate neural network models for use in process optimization. The prior art, however, does not describe a disturbance rejection based neural network training method for predicting change in the output due to change in the inputs along with an estimate of the uncertainty in the predicted change in the output nor does it describe how such a neural network model could be used to improve optimization. The present invention provides systems and methods that overcome the abovementioned shortcomings of the prior art, and provide advantages over conventional approaches to control and optimization industries such as power generation.
The present application thus describes a method or system for training a disturbance rejection model that is configured to model an operation of a system so to calculate a predicted value for a system output at a future time. The disturbance rejection model may include a network for mapping system inputs to the system output, the network including a weight vector and a feedback coefficient. The method may include the steps of: obtaining a training dataset, the training dataset including a time series dataset of actual values for the system inputs and the system output as determined from measurements taken of the operation of the system during a historical operating period and training the disturbance rejection model pursuant to the training dataset. The training may include calculating updated values for each of the weight vector and the feedback coefficient of the network by minimizing an error function that include a first hyperparameter and a second hyperparameter. The first hyperparameter may include a vector for penalizing the weight vector and the second hyperparameter may include a scalar.
These and other features of the present application will become apparent upon review of the following detailed description of the preferred embodiments when taken in conjunction with the drawings and the appended claims.
These and other features of this invention will be more completely understood and appreciated by careful study of the following more detailed description of exemplary embodiments of the invention taken in conjunction with the accompanying drawings, in which:
The main components of a typical fossil fuel power generating unit 200 will now be described with reference to
A “boiler” includes, but is not limited to, burners 222, furnace 224, drum 226, superheater, superheater spray unit, reheater, reheater spray unit, mills 214, and a boiler economizer (not shown). The boiler economizer recovers “waste heat” from the boiler's hot stack gas and transfers this heat to the boiler's feedwater.
Soot cleaning devices (not shown), include, but are not limited to, sootblowers, water lances, and water cannons or hydro-jets. Soot cleaning devices use steam, water or air to dislodge deposits, such as slag, and clean surfaces throughout various locations in the boiler. Soot cleaning is required to maintain performance and efficiency of power generating unit 200. The number of soot cleaning devices on a given power generating unit can range from several to over a hundred. Furthermore, the soot cleaning devices may be grouped together by location (e.g., zones in the boiler). Each group of soot cleaning devices may be comprised of one or more soot cleaning devices. For example, a boiler may have eight soot cleaning device groups, each group including five individual soot cleaning devices.
In addition, power generating unit 200 includes some form of post-combustion air pollution control (APC) equipment for removing pollutants from the flue gas. The APC equipment may include, but is not limited to, a selective catalytic reactor (SCR) 206, an electro-static precipitator (ESP) 270, a fabric filter (FF) 272, a spray dry absorber (SDA) 274, and a wet flue gas desulfurization (FGD) system 276.
A selective catalytic reactor (SCR) is used to remove nitrogen oxides (NOx) from the flue gas. Dirty flue gas leaves the boiler and enters the selective catalytic reduction (SCR) system. Prior to entering the SCR, NOx in the inlet flue gas is measured with one or more analyzers. In addition, prior to entering the SCR, the flue gas passes through an ammonia (NH3) injection grid (not shown) located in the ductwork. Ammonia that has been mixed with dilution air is dosed into the flue gas by the injection grid. The NOx laden flue gas, ammonia and dilution air pass into the SCR reactor and over the SCR catalyst. The SCR catalyst promotes the reduction of NOx with ammonia to nitrogen and water. NOx “free” flue gas leaves the SCR reactor and exits the power generating unit via potentially other APC subsystems and the stack.
Additional NOx analyzers are located in the NOx “free” flue gas stream exiting the SCR system or in the stack. The measured NOx outlet value and the measured NOx inlet value are used to calculate a NOx removal efficiency. NOx removal efficiency is defined as the percentage of inlet NOx removed from the flue gas.
In addition, a small amount of unreacted ammonia (i.e., “ammonia slip”) is exhausted from the SCR. This ammonia slip can react with other components of the flue gas to form salts that can be deposited, and subsequently foul other system components, such as the air preheater. Thus, to prevent fouling of components, the level of ammonia slip is often constrained.
As the amount of ammonia injected into the flue gas increases, the removal efficiency improves while the ammonia slip increases. Thus, a constraint on ammonia slip indirectly constrains the removal efficiency of the SCR. Because ammonia slip is often not directly measured on-line in real-time, it is typically indirectly controlled by limiting the removal efficiency of the SCR.
An electro-static precipitator (ESP) is the most common approach to removal of particulate matter from the flue gas steam of a power generating unit. In an ESP, particles suspended in the flue gas are electrically charged. An electric field then forces the charged particles to an electrode where they are collected. A rapping system is used to remove the particles from the electrode. The removed particles fall into an ash handle system which is used to dispose of the ash. Using this approach, ESPs can typically achieve 90%-99.5% removal rates of particulate matter.
An ESP is typically comprised of a series of electrical plates with wires between the plates. The wires are used to charge the particles using corona discharge. An electric field for driving the particles is established between the wire and plates. The flue gas flows through a series of electrically separated fields of plates and wires. Each of these fields may be separately powered. The primary motivation for using separate fields is to provide redundancy in the system.
A wet flue gas desulfurization (FGD) is the most common approach to removal of significant amounts of SO2 from the flue gas of power generating units. In a power generating unit, dirty, SO2 laden flue gas is exhausted from a boiler. The SO2 laden flue gas is input into an absorber tower, which is the primary component in an FGD.
The SO2 in the flue gas has a high acid concentration. Accordingly, the absorber tower operates to place the SO2 laden flue gas in contact with a liquid slurry having a higher pH level than that of the flue gas. This is accomplished by spraying the liquid slurry in countercurrent to the flue gas in the absorber tower.
During processing in the countercurrent absorber tower, the SO2 in the flue gas will react with a calcium carbonate-rich slurry (limestone and water) to form calcium sulfite, which is basically a salt and thereby removing the SO2 from the flue gas. The spray, including the SO2 in the form of calcium sulfite, falls into a large tank at the bottom of the absorber. The SO2-cleaned flue gas is exhausted from the absorber tower, either to an exhaust stack or to downstream processing equipment. A blower pressurizes ambient air to create oxidation air within the absorber tank. The oxidation air is mixed with the slurry in the tank to oxidize the calcium sulfite to calcium sulfate. Each molecule of calcium sulfate binds with two molecules of water to form a compound that is commonly referred to as gypsum. The gypsum is removed from the wet FGD processing unit and sold to, for example, manufacturers of construction grade wallboard. In order to sell the gypsum, it must be of an acceptable purity. The purity is affected by the pH which also affects the removal efficiency.
In
It should be apparent that a typical power generating unit also includes additional components well known to those skilled in the art, including, but not limited to, tubes for carrying fluids, valves, dampers, windbox, sensing devices for sensing a wide variety of system parameters (e.g., temperature, pressure, flow rate, and flue gas components), and actuators for actuating components such as valves and dampers.
Plant 170 may include one or more power generating units 200. Each power generating unit 200 may include a plurality of actuators 205 and sensors 215. Actuators 205 may include devices for actuating components such as valves and dampers. Sensors 215 may include devices for sensing various system parameters (e.g., temperature, pressure, flow rate, and flue gas components).
As will be appreciated, model 120 is used to represent the relationship between (a) manipulated variables (also “MV”) and disturbance variables (also “DV”) and (b) controlled variables (also “CV”). Manipulated variables (MVs) represent those variables that may be changed by the operator or optimization system 100 to affect the controlled variables. The MVs typically include a subset of the following variables: over-fired air damper position, tilt and yaw biases, secondary air damper position biases, fuel mill speed biases, primary air biases, O2 bias, master burner tilt, windbox to furnace bias and other variables in the boiler that may affect the CVs. As used herein, disturbance variables refer to variables (associated with power generating unit 200) that affect the controlled variables, but cannot be manipulated or controlled by an operator (e.g., ambient conditions, characteristics of the coal, load, etc.). As will be appreciated, optimizer 110 may function by determining an optimal set of setpoint values for the manipulated variables given (1) a desired goal associated with operation of the power generating unit (e.g., minimizing NOx production) and (2) constraints associated with operation of the power generating unit (e.g., limits on emissions of NOx, SO2, CO2, CO, mercury, ammonia slip and particulate matter).
At a predetermined frequency, optimization system 100 may obtain the current values of manipulated variables, controlled variables and disturbance variables from DCS 150. An “optimization cycle” commences each time the current values for the manipulated variables, controlled variables and disturbance variables are read out from DCS 150. As will be described in further detail below, optimization system 100 may use model 120 to determine an optimal set of setpoint values for the manipulated variables based upon current conditions of power generating unit 200. The optimal set of setpoint values may then be sent to DCS 150. An operator of plant 170 has the option of using the optimal set of setpoint values for the manipulated variables. In most cases, the operator allows the computed optimal set of setpoint values for the manipulated variables to be used as setpoints values for control loops. Optimization system 100 runs in a closed loop adjusting the setpoints values of the manipulated variables at a predetermined frequency (e.g., as frequently as every 10 seconds or as infrequently as every half hour) depending upon current operating conditions of power generating unit 200.
The model of 120 may be developed based upon 1) known first principle equations describing the system, 2) data, resulting in an empirical model, or 3) a combination of known first principle equations and data. In developing models for NOx and CO in a power plant, the first principles equations are not easily derived—computational fluid dynamics must be used. For this reason, it is preferred to build empirical model based upon data collected from the plant. Furthermore, since the MVs may have been kept constant in the past or moved to control the unit, it is typical necessary to perform a “Design of Experiments” to collect the data required to build an empirical model.
To perform an appropriate Design of Experiments, the MVs may be moved independently such that the moves are uncorrelated over time. It will be appreciated that the goal of the Design of Experiments is to collect sufficient data to develop the model, which then can be used for optimization. As shown in
The sampled points shown in
As will be further appreciated, the model of
The model of
U.S. Pat. No. 6,725,208, which is incorporated herein by reference in its entirety, introduces the use of a probabilistic model for use in an optimization system. A probabilistic model may be provided that is based upon Bayesian techniques for the model “M” shown in
In this section, a training algorithm for probabilistic neural networks with disturbance rejection will be discuss that accords with exemplary embodiments of the present invention. First, with reference to U.S. Pat. No. 7,123,971, a review of a training algorithm for deterministic neural networks with disturbance rejection is provided. Following that, an algorithm for the calculation of the second derivative of an error function with respect to the weights is provided. Then, the Bayesian approach to the neural network model in
The disturbance rejection algorithm, which may be used to train the neural network model in
mt=NN(xt−1,w) Equation 1
where m=[m1 m2 . . . m . . . mT]T refers to the predicted output vector from the model. The predicted output at time (t), yt, may be defined as:
yt=mt+k(dt−1−mt−1) Equation 2
The vector y=[y1 y2 . . . yt . . . yT]T is the predicted output over the dataset. Using a neural network as the model results in the following equation representing the model shown in
yt=NN(xt−1,w)+k(dt−1−NN(xt−2,w)) Equation 3
Accordingly, as used herein, the following definitions are provided:
To find the weight vector w of the neural network, the following error function may be minimized:
where the hyperparameter α is a penalty on the size of the weights in the weight vector w.
Alternatively, using:
ϵt=yt−dt Equation 5
the error function can be written as:
Given the definitions above, the disturbance rejection algorithm of U.S. Pat. No. 7,123,971 is provided below. As will be appreciated, this algorithm is based on a gradient descent approach or a modified version of backpropagation. With reference again to U.S. Pat. No. 7,123,971, the disturbance rejection algorithm may include the following steps and may be employed to update the weights of the model at each training iteration:
For convenience in deriving the second derivative of the disturbance rejection model in
It should be noted that these matrices may be implemented using sparse matrices methods to allow efficient storage and calculation with them. Using these definitions of C and K, the forward propagation equation of the disturbance rejection algorithm, Equation 7, can be rewritten in matrix form as:
y=C(m+K(d−m)) Equation 15
where:
m=[NN(x0,w)NN(x1,w), . . . ,NN(xT−1,w)]T Equation 16
Given ϵ=[ϵ1 ϵ2 . . . ϵt . . . ϵT]T, the error function can be written as:
Then, the derivative of the error with respect to the weights, given by Equation 8, can be rewritten as:
where
is a T×N matrix, and T is the number of samples in the dataset, and N is the number of weights, and I is the identity matrix of size T×T.
Similarly, the derivatives of the error with respect to the feedback coefficient of Equation 9 may be given by:
where ϵ′=[ϵ1′ ϵ2′ . . . ϵt′ . . . ϵT′]T. Further, it can be shown that:
ϵ=C(I−K)ϵ′ Equation 20
Thus, the equations above may be rewritten as:
As will be appreciated, these equations are needed to compute the Hessian, which is described in the next section.
To implement the probabilistic version of the disturbance rejection algorithm, the data Hessian, which is the second derivative of the data component of the error with respect to the weights, may be required. The Hessian, H, may be defined as:
where the data component of the error is defined by:
ED=½ϵTCϵ Equation 24
Further, the Hessian may be computed using a modified version of the R-propagation algorithm. As will be appreciated, R-propagation is an efficient algorithm for multiplying a vector by the Hessian. The vector, v, may be defined as:
v=[v1v2 . . . vt . . . vN]T Equation 25
where N is the number of weights in the weight vector. Multiplying v by H gives:
which can be written as:
which can be rewritten to:
where R{ } is the R-propagation operator. The ith column of the Hessian can be computed by selecting the vector v to be a vector of length N composed of all zeros except the ith element which contains a 1. By extension, the Hessian can be computed using N vector multiples to derive the N columns of the Hessian.
To compute the R-propagation value, the forward propagation needs to be expressed through a neural network in matrix form. First, the weight matrices used in the matrix form is defined. The N×1 weight vector of the neural network and its components are defined as:
w=[w1b1w2b2]T Equation 29
where w1 are the weights in the first layer and given by:
w1=[w1,1w1,2 . . . w1,H] Equation 30
where w1,1 are the weights between the inputs and the first hidden unit and are given by:
w1,1=[w1,1,1w1,1,2 . . . w1,1,X] Equation 31
where w1,1,1 is a weight in the first layer between the first input and first hidden unit. The weight vector between the input layer and the Hth hidden unit is given by:
w1,H=[w1,H,1w1,H,2 . . . w1,H,X] Equation 32
where w1,H,N is the weight in the first layer between the Nth input and Hth hidden unit. (X is the number of inputs and H is the number of inputs.)
The biases in the first layer may be defined as:
b1=[b1,1b1,2 . . . b1,H] Equation 33
where b1,1 is the bias to the first hidden unit. The second layer weight vector may defined as:
w2=[w2,1w2,2 . . . w2,H] Equation 34
where w2,1 is the weight between the first hidden unit and the output. Finally, b2, is the bias of the output unit.
The input layer weight matrix may be defined as:
W1=[w1,1Tw1,2T . . . w1,HT] Equation 35
Finally, a flattening function which converts a matrix of weights in the first layer into a weight vector of the first layer may be defined as:
w1=F(W1) Equation 36
For convenience, a 1×N vector v is defined in a similar manner:
v=[v1p1v2p2]T Equation 37
where v1 has the same structure as the weights in the first layer and given by:
v1=[v1,1v1,2 . . . v1,H] Equation 38
where v1,1 is given by:
v1,1=[v1,1,1v1,1,2 . . . v1,1,X] Equation 39
and v1,H is:
v1,H=[v1,H,1v1,H,2 . . . v1,H,X] Equation 40
The vector p1 is given by:
p1=[p1,1p1,2 . . . p1,H] Equation 41
The v2 vector is:
v2=[v2,1v2,2 . . . v2,H] Equation 42
Finally, p2 is a scalar.
Furthermore, V1 is defined as:
V1=[v1,1Tv1,2T . . . v1,HT] Equation 43
To write the matrix formulation, the inputs in vector form may be defined as:
The matrix (or vector), Oj,k, may be defined to be composed of a matrix with j rows and k columns and that contains ones in all elements. The hidden unit outputs over the dataset may be computed using:
A=XW1+OT,1b1 Equation 45
and
Z=h(A) Equation 46
where h( ) is the hidden layer operator (typically the hyperbolic tangent) that operates on each element of the matrix, A. Thus, Z, contains the output of the hidden units across all samples in the dataset. The output of the neural network over the dataset may be given by:
m=Zw2T+OT,1b2 Equation 47
Finally, the last step of the forward propagation may be computing the output y which is given by Equation 15 and is shown again here for convenience:
y=C(m+K(d−m)) Equation 48
Now the R-propagation values for A, Z, and m are shown. Starting with A:
R{A}=XV1+OT,1p1 Equation 49
To compute the R-propagation values of Z and other R-propagated values, the first and second derivatives of activation layer of the neural network may be needed. For the first derivative, the interest is in the first derivative of the output activation with respect to the input of the activation layer for each data sample. The first derivative of the output activations with respect to the input activations over the dataset can be computed by:
Z′=OT,N+Z∘Z Equation 50
where Z∘Z represents the Hadamard product (element multiplication). Similarly, for the second derivative, the interest in the second derivative of the output activation with respect to the input of the activation layer for each data sample. The second derivative of the output activations with respect to the input activations over the dataset can be computed by:
Z″=−2Z∘Z′ Equation 51
The R-propagation value of Z is given by:
R{Z}=Z′∘R{A} Equation 52
and R{m} is given by:
R{m}=R{Z}w2T+Zv1+OT,1p2 Equation 53
The value for R{y} can computed based on the definition of y given by Equation 48,
R{y}=C(I−K)R{m} Equation 54
The next step is to define the backpropagation through the disturbance rejection layer into the neural network. Define u2 to be the derivative of error, E, with respect to the output of the neural network models, m. The vector u2 is the backpropagated error to the output of the neural models and can be found using Equation 18 to be:
u2=(I−K)TCϵ Equation 55
As seen previously, a modified version of the output error, ϵ, is backpropagated through the neural network. Now U1 can be defined as being the derivative of error, E, with respect to the first layer activations of the neural network models over the dataset, u2. The value of U1 is:
U1=Z′∘(u2w2) Equation 56
Given the backpropagation values, the R-propagation can be determined for u2 and U1. Using Equation 55, it is found:
R{u2}=(I−K)TCR{y} Equation 57
The value for R{U1} is given as:
R{U1}=Z″∘R{A}∘(u2w2)+Z′∘(u2v2)+Z′∘(R{u2}w2) Equation 58
The R-propagated values of the derivative of the error with respect to the weights are given by:
where each of the terms of the equation are given by the following:
where F( ) is the flattening function used to convert from a matrix to a vector. Thus, using Equation 28, it is found that:
where the terms of Equation 64 are defined by Equation 60-Equation 63. Once again, the full Hessian can be computed by doing N multiplication of vT H with the vector vT varying in each multiplication such that all elements are zero except for the ith element which is 1 in the ith multiplication.
Thus, as just provided, it has been shown how to compute the data component of the Hessian (the second derivative of the data component of the error with respect to the weights) given a weight vector w and a dataset d and X. As just discussed, the calculation may include Equations 44 through 63.
To use Bayesian techniques on the disturbance rejection model of
E=½αwTw+½ϵTCϵ Equation 65
where the hyperparameter, α, is a penalty on the weights. The hyperparameter, α, is typical found using cross-validation. A second hyperparameter, β, may be introduced in the error equation as follows:
E=½αwTw+½βϵTCϵ Equation 66
Again, the hyperparameters, α and β, can be found using cross-validation techniques.
Next, the weights may be penalized independently by using a vector, α, defined as:
α=[α1α2 . . . αt . . . αN] Equation 67
where N is the number of weights in the weight vector w. The error function with individual weight penalties then may be defined as:
E=½wT(Diag(α))w+½βϵTCϵ Equation 68
where Diag(α) is an N×N matrix with α on the diagonal and zeros in all other elements. From this definition, it can be observed that the first weight in vector w is penalized by α1, the second weight by α2, etc. Using Equation 18, the derivative of the error may be computed with respect to the weights to be:
Thus, instead of penalizing all weights independently, it may be preferable to introduce structure into the penalty. It may be preferable to penalize all weights in the first layer of the neural network from the same input equally. In addition, it may be preferable to penalize all biases in the first layer equally and all weights in the second layer together. The output bias may be individually penalized. Given these preferences, an α can be found with the following structure:
α=[αw1αw1 . . . αw1αb1αw2αb2] Equation 70
where αw1 is repeated H times (for the H hidden units) and is defined as:
αw1=[αw1,1αw1,2 . . . αw1,X] Equation 71
where αw1,1 is used to equally penalize the weight associated with the first input to all hidden layer units equally. Similarly, αb1 is used to penalize all biases in the first layer equally by αb1 and is defined by:
αb1=αb1O1,H Equation 72
And, similarly, αw2 is used to penalize all biases in the first layer equally by αw2 and is defined by:
αw2=αw2O1,H Equation 73
Finally, the scalar αb2 may be used to penalize the second layer bias of the neural network. Because the number of independent hyperparameters in α is equal to N+3, which is the number of inputs plus 3 and the number of inputs is typically greater than 10 in many real-world applications, cross validation typically is not practical for finding the values of α and β. The next section provides a method for finding the hyperparameters while also allowing us to calculate the variance of the output. Finally, the disturbance rejection algorithm in matrix form with additional hyperparameters is derived in this section. For convenience, the weights and feedback coefficient that minimize the error function found using this algorithm shall be denoted as wMAP and k*.
It may be desired to predict the probabilistic distribution of the generalized output, τt, given a model, set of input vectors, xt−1 and xt−2, and the output at time (t−1), dt−1. (It should be noted that these general variables representing the output and inputs vector at any arbitrary time rather than data specifically in a training dataset.) The Bayesian evidence framework may be used to derive the desired probabilistic distribution, as described below.
First, it may be assumed that the conditional distribution of the output with respect to the inputs, p(τt|xt−1,xt−2) is Gaussian with a mean dependent upon the output of disturbance rejection based model and the variance defined by the inverse variance of β:
p(τt|xt−1,xt−2,dt−1,w,β)=(τt|y(xt−1,xt−2,dt−1,w),β−1) Equation 74
where (τt|y(xt−1,xt−2,w),β−1) represents the normal distribution with mean y(xt−1,xt−2,w) and variance β−1. The normal distribution then may be defined as:
It is also desirous to define the prior distribution of the weights to be Gaussian and have the following form:
p(w|α)=(w|O,Diag(α−1)) Equation 76
Thus, the weights are zero mean with a variance defined by Diag(α−1).
Assuming a set of T independent identically distributed samples of dt, xt−1 and xt−2 defined by the dataset D={d2 . . . dT} and x1 . . . xT, the likelihood function is given by:
and the posterior distribution is given by:
p(w|D,α,β)=p(w|α)p(D|w,β) Equation 78
The weights associated with the maximum of the posterior distribution, wMAP, can found by maximizing the log of the posterior which is given by:
As will be appreciated, this is equivalent to:
ln p(w|D,α,β)=−½wT(Diag(α))w−½βϵTCϵ Equation 80
From the definition of the error function in Equation 68, it can be found that:
ln p(w|D,α,β)=−E Equation 81
Thus, minimizing the error function of Equation 68 is equivalent to maximizing the posterior distribution of Equation 78. Hence, the disturbance rejection algorithm given above can be used to find the set of weights that maximize the posterior, wMAP. The resulting feedback coefficient from the disturbance rejection algorithm is denoted as k*.
Given the weights that maximize the posterior, wMAP, the marginal probability of an output prediction may be determined by:
P(τt|D,xt−1,xt−2,dt−1,w,α,β)=(τt|y(xt−1,xt−2,dt−1,wMAP),σ2(xt−1,xt− Equation 82
Thus, the prediction is normally distributed around y(xt−1,xt−2,dt−1wMAP) with the variance defined as:
σ2(xt−1,xt−2,dt−1,wMAP)=β−1+gtTA−1gt Equation 83
where A is the second derivative of the output with respect to the weights and is given by:
A=Diag(α)I+βH Equation 84
where the R-propagation algorithm output in the previous section can be used to compute the Hessian, H. The vector, gt may be defined as:
which using Equation 3 can be written as:
Since the gradient of the output of neural network with respect to the weights can be computed by backpropagating a value of 1 into the network, the two partials of the equation above can be computed by backpropagating a 1 into the networks given by NN(xt−1,wMAP) and NN(xt−2,wMAP). Using the definition of the normal distribution in Equation 82, it is found that the output distribution is:
Given α,β and the training set, D, the disturbance rejection algorithm is used to find wMAP. Thus, given wMAP along with the hyperparameters α,β, the probability distribution for the model of
By starting with an initial guess for α and β, which is typically 1 for all values, the weights that maximize the posterior distribustion, wMAP, and the trained feedback coefficient, k*, can be determined using the disturbance rejection algorithm summarized above. Conventional methods provide algorithms for updating α and β given a dataset and wMAP in the case of a standard neural network. In the present application, these algorithms have been extended to the disturbance rejection based neural network model of
Before presenting the updated algorithm, the vector q(αw1,1) must first be defined as:
q(αw1,1)=[q1(αw1,1) . . . qi(αw1,1) . . . qN(αw1,1)] Equation 89
where αw1,1 is contained in the vector α as defined in Equation 70, N is the number of weights, and qi(αw1,1) is defined as:
where αi is the ith element of the vector α. Thus, the vector q(αw1,1) denotes with a 1 where αw1,1 appears in the vector α. Similarly, the vectors q(αw1,i), q(αw2), and q(αb2) can be defined to denote where (αw1,i), (αw2), and (αb2) appear in the vector α. For convenience, the set {q1, . . . , qi, . . . , qX, qX+1, qX+2, qX+3} is defined by the following:
q1=q(αw1,1) Equation 91
qi=q(αw1,i) Equation 92
qX=q(αw1,X) Equation 93
qX+1=q(αb1) Equation 94
qX+2=q(αw2) Equation 95
qX+3=q(αb2) Equation 96
where X is the number of inputs in the network. For convenience, the vector α is defined as:
α=[αw1,1 . . . αw1,i . . . αw1,Xαb1αw2αw2] Equation 97
Furthermore, the scalar γi may be defined as:
where qi,j is the jth element of the vector qi. Given the definition for the scalar γi, the vector γ is:
γ=[γ1 . . . γi . . . γX+3] Equation 99
The updated versions of the elements of the vector α are given by:
An updated version of all X+3 elements of the vector α can be computed and the resulting values can be used to update the values of the vector α.
The update equation then for β is given by:
Then, using Equation 100 and Equation 101, the hyperparameters α and β can be updated. It should be noted that the re-estimation given in Equation 100 and Equation 101 are often repeated Nb times in a row to re-estimated α and β where Nb is a user specified number, which was 3 in the prior exemplary implementation.
To use the algorithm of
Given the initial values, the Disturbance Rejection Algorithm is executed first as shown in
The algorithm shown in
Once the model is trained, the model of the form shown in
where the function sign( ) is used to compute the sign of the values.
The probability distribution above can be approximated by sampling the probability distribution over the training dataset. The probability sample for a given point in the dataset may computed as shown in
The area under the normal distribution can be computed using the error function. The integration of a Gaussian center at zero with a standard deviation of σ is given by:
where erf( ) is the Gaussian error function. Given the known output at time t−1 which is given by dt−1, the probability that the prediction of the output at time t which is given by Equation 82 has the correct sign is given by:
The equation above gives the sampled probability at one data point in the dataset. The overall sampled probability can be calculated by averaging over the dataset. Furthermore, for convenience, reference will be made to probability multiplying by 100% as the over model confidence. Thus, the overall confidence of the model, η, is defined as the mean of the confidence over a dataset (typically, the training set) and is given by:
where Ct,t is the tth element of the diagonal of the matrix C.
As will be appreciated, interest is not limited to overall confidence, but may also extends to the confidence associated with each of the inputs to the model, which is discussed in the following section. To computed the confidence associated with each input, the input matrix, X, is expanded such that it contains individual input moves per variable. First, all moves in the input matrix may be identified by defining the matrix, B, which is a T−1×T matrix given by:
Using matrix B, Ω may be defined, which is a T−1×X matrix of the difference in the inputs given by:
Ω=BX Equation 107
Thus, Ω, contains the changes in the inputs over the dataset. Furthermore, the matrix, δ, may be defined which is a T×X matrix with elements given by:
Thus, the matrix, δ, indicates where moves in the inputs have occurred in the dataset.
To compute the confidence per inputs, a new input matrix, Γ, needs to be defined as:
Furthermore, the vector, lj, needs to be defined as:
Finally, matrix, Λj, needs to be defined as:
Λj=[Γ1Γ2 . . . lj . . . ΓN] Equation 111
where Γi represents the ith column of matrix Γi. As will be appreciated, the matrix Λj contains the T-paired moves of the jth input while all other variables are held equal. This matrix can then be used to compute the confidence for the jth input, ψj, using
where Λji is the ith row of the matrix Λj. The confidence of each input is simply the average confidence of every move associate with the input in the dataset while holding all other inputs constant. The confidence vector of all N inputs can be defined as:
ψ=[ψ1 . . . ψj . . . ψN] Equation 113
As discussed in relation to
An extension to the method shown in
The flow diagram of
As shown in
Constraints may be placed upon both the inputs (MVs) and outputs (CVs) of the boiler at a future time. Typically, constraints that are consistent with limits associated with the DCS are placed upon the manipulated variables. Constraints on the outputs (CVs) are determined by the problem that is being solved.
A nonlinear model can be used to determine the relationship between the inputs and outputs of a boiler. Accordingly, a nonlinear programming optimizer is used to solve the optimization problem in accordance with this embodiment of the present invention. However, it should be understood that a number of different optimization techniques may be used depending on the form of the model and the costs and constraints. For example, it is contemplated that the present invention may be implemented by using, individually or in combination, a variety of different types of optimization approaches. These optimization approaches include, but not limited to, linear programming, quadratic programming, mixed integer non-linear programming (NLP), stochastic programming, global non-linear programming, genetic algorithms, and particle/swarm techniques. See R. Baldick, Applied Optimization: Formulation and Algorithms for Engineering Systems, Cambridge University Press, Cambridge, UK, 2009.
Given the cost function and constraints, a non-linear program (NLP) optimizer typically solves problems with 20 manipulated variables and 10 controlled variables in less than one second. This is sufficiently fast for most applications since the optimization cycle is typically in the range of anywhere from 20 seconds to 20 minutes. More details on the formulation of the cost function and constraints are provided in the reference S. Piche, B. Sayyar-Rodsari, D. Johnson and M. Gerules, “Nonlinear model predictive control using neural networks,” IEEE Control Systems Magazine, vol. 20, no. 2, pp. 53-62, 2000, which is fully incorporated herein by reference.
With reference now to
In this section, it is shown how a model of the form shown in
Without a loss of generality, the vector of MVs and DVs at time (t) can be represented by the vector xt. The optimizer will be used to determine the optimal values of the MVs, hence, only the terms of vector xt representing the MVs will be optimized while the other terms representing the DVs will be held constant.
As shown in
yt+1=mt+1+k(dt−mt) Equation 114
Substituting in a neural network with trained weights, wMAP, and feedback coefficient, k*, computed using the Bayesian Disturbance Rejection Algorithm (
yt+1=NN(xt,wMAP)+k*(dt−NN(xt−1,wMAP)) Equation 115
It may be desirous to predict the value of NOx at time (t+1). Using the training algorithms described above, an optimal set of weights to predict NOx, which are wMAP,NOx and the feedback coefficient, kNOx*, can be determine. The prediction of mean value of the NOx is given by:
yt+1,NOx=NN(xt,wMAP,NOx)+kNOx*(dt−NN(xt−1,wMAP,NOx)) Equation 116
Similarly, a prediction of CO could be defined as:
yt+1,CO=NN(xt,wMAP,CO)+kCO*(dt−NN(xt−1,wMAP,CO)) Equation 117
As shown above, optimization may be performed by defining a cost function and a set of constraints and then minimizing the cost function while observing the constraints. The cost function and constraints represent the problem that one desires to solve. In an exemplary case, it is desirable to minimize the NOx, maintain the CO below a certain level, minimize the change in the inputs (MVs), and maintain the inputs in a bounded region. The cost function is used to express the desire to minimize the NOx, maintain the CO below a certain level, and minimize the change in the inputs. Constraints are used to maintain the inputs in a bounded region.
An exemplary cost function to achieve these goals may be defined as:
where π1, π2, and π3 are tuning constants for the optimization problem and are set by the user to achieve an appropriate desired balance between the three goals in the cost function. The first term of the equation above is used to minimize NOx, the second term is used to penalize CO over the bound bco (s is used to scale the penalty), and the final term is used to penalize movement in the inputs. The constraints are implement by the following bounds on the inputs:
bx,−≤xt≤bx,+ Equation 119
where the vectors bx,− and bx,+ represent the lower and upper bounds respectively on the input at time t.
According to exemplary embodiments, a gradient descent optimizer may be used to determine the minimal value of J(xt) while observing the constraints on the inputs. To perform gradient descent, the gradient of the cost function with respect to the inputs at time (t) is needed:
Using Equation 116 and Equation 117, the previous equation can be written as:
As will be shown, the first term of the previous equation can be computed by backpropagating the value π1yt+1,NOx through the neural network represented NN(xt,wMAP,NOx) to the inputs. Similarly, the second term can be computed by backpropagating the value
through the neural network represented NN(xt,wMAP,CO) to the inputs. Thus, the derivative can be computed and steepest descent optimization may be performed to calculated the optimal value of xt. The resulting optimized value for xt is output to the DCS and held constant for 15 minutes at which point another optimization cycle is executed.
As will be appreciated, the previous section uses the mean value of the Bayesian disturbance rejection prediction calculation in the cost function of the optimization problem. In this section, the probabilistic form given by Equation 87 will be used in the cost function. The models used in this section were trained using the Bayesian disturbance rejection algorithm, of
The probability distribution of the NOx at time t+1 is defined as p(τt+1,NOx|DNOx,xt,xt−1,w,βNOx) is found using Bayesian Disturbance Rejection algorithm given a training dataset DNOx. The distribution is given by:
p(τt+1,NOx|DNOx,xt,xt−1,w,βNOx)=(τt+1|y(xt,xt−1,dt,NOx,kNOx*,wMAP,NOx),σNOx2(xt,xt−1,dt−1,NOx,kNOx*,wMAP,NOx Equation 122
where y(xt,xt−1,dt,NOx,wMAP,NOx) is given by Equation 116 and σNOx2(xt,xt−1,dt,NOx,wMAP,NOx) is given by:
σNOx2(xt,xt−1,dt,NOx,kNOx*,wMAP)=βNOx−1+gt+1,NOxTANOx−1gt+1,NOx Equation 123
where ANOx is the second derivative of the output with respect to the weights and is given by:
ANOx=Diag(αNOx)I+βNOxHNOx Equation 124
where the R-propagation algorithm given above can be used to compute the Hessian, H. The vector, gt+1, is defined as:
Since the only set of variables that will be optimized using the optimizer are the inputs at time (t), the mean and variance of Equation 123 may be written as:
yMAP,NOx(xt)=y(xt,xt−1,dt,NOx,kNOx*,wMAP,NOx) Equation 126
and:
σMAP,NOx2(xt)=σNOx2(xt,xt−1,dt,NOx,kNOx*,wMAP) Equation 127
Thus, the distribution for NOx is conveniently given by:
p(τt+1,NOx|DNOx,xt,xt−1,w,βNOx)=(τt+1|yMAP,NOx(xt),σMAP,NOx2(xt)) Equation 128
Similarly, the distribution for CO is given by:
p(τt+1,CO|DCO,xt,xt−1,w,βCO)=(τt+1|yMAP,CO(xt),σMAP,CO2(xt)) Equation 129
Once again, it may be desirous to minimize the NOx, maintain the CO below a certain level, minimize the change in the inputs and maintain the inputs in a bounded region. The cost function is used to express the desire to minimize the NOx, maintain the CO below a certain level, and minimize the change in the inputs. The constraints are used to maintain the inputs in a bounded region. Again, the optimization problem is defined by a cost function and constraints. The cost function can be defined as the following:
The constraints are implement by the following bounds on the inputs:
bx,−≤xt≤bx,+ Equation 131
As will be appreciated, the cost function and bound constraints are the same as those defined in Equation 118 and Equation 119 except for the first two terms of Equation 130 are the integral of the penalty over the distribution of the output. Substituting the normal distribution of Equation 128 and Equation 129 into the cost function of Equation 130, the following is shown:
An analytic solution to the cost function and the derivative of the function are not known. For this reason, an approximation to the cost function is used:
where the sum is equal to the integral as Δ goes to zero. To practically compute the summation, appropriate bounds for the summations and for Δ in the equation above must be selected. Because the normal distribution is essentially 0 three standard deviation from the mean, it is required only to sum around the mean value of the distribution within three standard deviations. Furthermore, the values for Δ in each of sums in the equation above can be defined based upon the standard deviations of the distribution. For this reason, ΔNOx may be selected to be:
Similar ΔCO can be defined for the CO variable. Given ΔNOx and ΔCO, Equation 133 may be reasonably approximate by:
As will be appreciated, the equation above provides a reasonable and practical approach to computing the cost function in real time. To solve for the gradient of the cost function with respect to the inputs at time (t), it is necessary to use an approximation. The easiest way to approximate the gradient is to use numerical differential. However, this approach is not computation efficient and a better approach is sought.
Alternatively, it is observed that the mean values used in the equation above for the cost function are significantly more affected by changes in the inputs than the variances. Thus, it is a reasonable approximation to assume the variances in the equation above are not affected by changes in the input. Assuming constant variances for σMAP,NOx2(xt) and σMAP,CO2(xt), the gradient of the cost function with respect to the inputs is approximated by:
Using Equation 116 and Equation 117, it is found that:
It should be noticed that the form of the previous equation is very similar to the deterministic cost function of Equation 121. Like Equation 121, the derivative of the first term in the equation above can be computed by backpropagating the value:
through the NOx neural network NN(xt,wMAP,NOx) to the inputs. Likewise, the second term can be computed by backpropagating the value:
through the CO neural network NN(xt,wMAP,CO) to the inputs. Thus, an efficient algorithm is available for the computation of both the cost function and the derivative of the cost function. Using these algorithms, a gradient based approach with bounded values is used to solve to the optimization problem with a probabilistic model. The resulting optimized input vector can be output to the DCS and subsequently used to control the plant to minimize NOx while maintaining CO below a threshold.
The above optimization problem shows one embodiment of the invention. However, there are many different approaches that could be used to include a probabilistic model in the optimization problem. In addition, the overall model confidence calculation and the confidence calculation per input could be included in an optimization problem. For example, in Equation 133, the overall model confidence of the NOx model could be multiplied by the first term and the overall model confidence of the CO model could be multiplied by the second term in the cost function. Thus, the model confidence could be used to adjust the cost function to emphasize components with more confident (accurate) models.
The preferred embodiment of the invention is to use the training algorithm in
In the preferred embodiment, the models are retrained once a day using the algorithm shown in
The preferred embodiment described above is used to control a set of MVs to reduce NOx emissions from a coal-fired power plant while maintaining CO below a limit. It should be noted that alternate embodiments of this invention exist for use in a power generation plant. For example, the invention may be used to optimize the removal of soot in a boiler by controlling the time and execution of sootblowers. The Bayesian Disturbance Rejection algorithm may be used to train models that predict the effects of sootblower activations (MVs) on heating surface cleanliness, temperature changes and heat duties. Given models of the effect of sootblower activations, an optimization problem could be created that is used to maximize the cleaning effects while observing constraints on the blower activations. Thus, the invention could be used for sootblower optimization at a power generation unit.
As will be appreciated, the invention described herein may be useful in applications beyond the power generation industry. For example, and without limitation, the invention may be used in the following industries: refining, chemicals, pulp and paper, pharmaceuticals, mining and manufacturing, and the food industries.
Yet another embodiment of the current invention includes its use for dynamic optimization rather than steady state optimization. Dynamic optimization is described in detail in S. Piche, B. Sayyar-Rodsari, D. Johnson and M. Gerules, “Nonlinear model predictive control using neural networks,” IEEE Control Systems Magazine, vol. 20, no. 2, pp. 53-62, 2000, which is fully incorporated herein by reference. As will be appreciated, dynamic optimization relies on the use of a dynamic model. In Equation 1, the model is defined as:
mt=NN(xt−1,w) Equation 138
Alternatively, the model could be defined as:
mt=NN(xt−1,w1)+NN(xt−2,w2)+ . . . +NN(xt−M,wM) Equation 139
where M is the number of neural network models. If the sample period of the model of the equation above is significantly less than the steady state response period, typically 1/10th of the steady state response, this type of model forms a finite impulse response model and can be used to predict dynamics of the process. By extension, a Bayesian Disturbance Rejection algorithm can be used for training the M models of the previous equation. Once trained, these models could be used in a multi-step ahead optimization scheme. Thus, the neural model could be used for trajectory based model optimization. For example, models could be used to predict over the horizon from time (t+1) to t+M and then the inputs could be optimized over the horizon from (t) to t+M−1 given the appropriate cost function and constraints. In the preferred embodiment, the case was shown where M=1, but all results and conclusions provided here can be extended to cases where M>1.
A neural network based model is used in the preferred embodiment for mt. According to other possible embodiments, other empirical model forms may be used including, for example, a linear model, polynomial curve fit, a least squares support vector machine, a support vector machine, and kernel methods including Gaussian Processes.
Thus, exemplary embodiments of the present invention include a method and/or system for training a disturbance rejection model that is configured to model an operation of a system so to calculate a predicted value for a system output at a future time. The disturbance rejection model may include a network for mapping system inputs to the system output, the network including a weight vector and a feedback coefficient. The method may include the steps of: obtaining a training dataset, the training dataset including a time series dataset of actual values for the system inputs and the system output as determined from measurements taken of the operation of the system during a historical operating period and training the disturbance rejection model pursuant to the training dataset. The training may include calculating updated values for each of the weight vector and the feedback coefficient of the network by minimizing an error function that include a first hyperparameter and a second hyperparameter. The first hyperparameter may include a vector for penalizing the weight vector and the second hyperparameter may include a scalar.
As described, the disturbance rejection model may include a disturbance rejection configuration in which the predicted value made by the disturbance rejection model for the system output at the future time is based upon: a predicted value made by the network for the system output at the future time and a value of a bias, the bias being based upon the feedback coefficient and an error. The bias may include the error multiplied by the feedback coefficient, The error includes a difference between: a predicted value made by the neural network of the system output at the previous time and an actual value of the system output at the previous time, The actual value is based upon a measurement taken by a sensor disposed in the system for measuring an operating parameter that relates to the system output.
Further, the network may be a neural network that includes multiple layers having nodes, the multiple layers including at least an input layer, an output layer, one or more hidden layers, and forward weight matrixes. The input layer may include a plurality of the nodes, the plurality of the nodes corresponding respectively to the system inputs. Each of the plurality of the nodes may be configured to receive an input signal relating to a value for a particular system input. The output layer may include at least one of the nodes, which corresponds to the system output. The one or more hidden layers may be disposed between the input layer and the output layer, each of the one or more hidden layers including a plurality of the nodes. The forward weight matrices may include connectors that connect the nodes of successive layers of the multiple layers of the neural network and a weight value for each of the connectors. The weight vector may define the weight values for the connectors of the forward weight matrices.
The training dataset may be generated via a design of experiment process. The design of experiment process may include the manipulated variables being moved independently such that moves resulting therefrom are uncorrelated over time. The training dataset may include T samples, the T samples taken at times=[1, 2, . . . , t, . . . , T], wherein time (t), time (t−1), time (t−2) denote generalized samples within the training dataset, where the time (t−2) occurs just prior to the time (t−1) and the time (t−1) occurs just prior to the time (t).
The system be a power generating unit that includes at least a steam turbine operably connected to a boiler. The system output may include a controlled variable, and the system inputs may include manipulated variables and disturbance variables. The manipulated variables may include any of the following: an over-fired air damper position, a tilt bias, a yaw bias, a secondary air damper position bias, a fuel mill speed bias, a primary air bias, an O2 bias, and a master burner tilt. The controlled variable may include an emission level for the power generating unit.
The training may include: a first step that is defined as the calculating of the updated values for the weight vector and the feedback coefficient by minimizing the error function; and a second step that may include calculating updated values for the first hyperparameter and the second hyperparameter based upon the updated values that are calculated in the first step for the weight vector and the feedback coefficient. The computing the updated values for each of the weight vector and the feedback coefficient may include a matrix version of the disturbance rejection model. The step of computing the updated values for the weight vector and the feedback coefficient that minimize the error function may include a first iterative process, each iteration thereof being inclusive of the following steps: using forward propagation to compute the vector y using the matrix version of the disturbance rejection model; using backward propagation on the disturbance rejection model to compute a derivative of the error function with respect to the weight vector and the feedback coefficient; and using a gradient based algorithm to compute a current iteration value for the weight vector while constraining a current iteration value of the feedback coefficient to values between 0.0 and 1.0. The gradient based algorithm may include a steepest descent algorithm.
The first iterative process for computing the updated values for the weight vector and the feedback coefficient may continue until an ultimate iteration is found that results in a change in the value of the error function from a preceding iteration to be less than a predefined threshold. The current iteration value for each of the weight vector and the feedback coefficient found in the ultimate iteration may be deemed to be the values of the weight vector and the feedback coefficient that minimize the error function and, thus, are designated as the updated values for the weight vector and the feedback coefficient.
The step of calculating the re-estimated value for the first hyperparameter and the second hyperparameter may include a second iterative process. A single iteration of the second iterative process may include the steps of: calculating of the updated values for the weight vector and the feedback coefficient given the re-estimated values of the first hyperparameter and the second hyperparameter as calculated in an iteration of the second iterative process that is previous to the single iteration; and calculating the re-estimated value for each of the first hyperparameter and the second hyperparameter given the updated values for the weight vector and the feedback coefficient as calculated within the single iteration. The second iterative process of the disturbance rejection training algorithm may continue until the re-estimated value for each of the first hyperparameter and the second hyperparameter converges to a value.
The present invention further describes a related system that includes a power generating unit and a control system operably connected to the power generating unit for controlling an operation thereof. The control system may include: a hardware processor; and a machine readable storage medium on which is stored the disturbance rejection model and instructions that cause the hardware processor to execute a process related to control of the power generating unit. The process may include: obtaining a training dataset; and training the disturbance rejection model pursuant to the training dataset. The training may include calculating updated values for each of the weight vector and the feedback coefficient of the neural network by minimizing an error function that includes a first hyperparameter and a second hyperparameter. The first hyperparameter may include a vector for penalizing the weight vector and the second hyperparameter may include a scalar.
According to another related exemplary embodiment, the present invention further describes a method for controlling an operation of a system that includes a disturbance rejection model that is configured for modeling the operation of the system so to generate a predicted value for a system output at a future time. The disturbance rejection model may include a neural network for mapping system inputs to the system output. The method may include the steps of: calculating a probabilistic distribution for the predicted value of the system output at the future time, where the calculating of the probabilistic distribution includes a Bayesian evidence framework without sampling; and controlling the operation of the system per the calculated probabilistic distribution.
The calculating of the probabilistic distribution may include calculating a mean (μ) and a variance (σ{circumflex over ( )}2) of a normal distribution (N). The mean (μ) may correspond to the predicted value made by the trained disturbance rejection model for the system output at the future time. The variance (σ{circumflex over ( )}2) may depend, at least in part, on a value of an inverse of the second hyperparameter.
The controlling the operation of the system may include optimizing the operation of the system. The system may include a power generating unit that includes at least a steam turbine operably connected to a boiler. The manipulated variables may include any of the following: an over-fired air damper position, a tilt bias, a yaw bias, a secondary air damper position bias, a fuel mill speed bias, a primary air bias, an O2 bias, a master burner tilt, a corner burner bias, and a windbox to furnace differential pressure bias. The controlled variable may include: an emission level for the power generating unit; a heat rate for the power generating unit; or a boiler efficiency for the power generating unit. Alternatively, the controlled variable may include at least one of: a reheat temperature level for the power generating unit; a superheat steam temperature level for the power generating unit; a reheat spray level for the power generating unit; and a superheat steam spray level for the power generating unit. The boiler may include a heat transfer device. In such cases, the manipulated variables may include a cumulative time since a last activation of a first or second soot blower. The controlled variable may also include one of the following aspects associated with the heat transfer device: a cleanliness factor; a heat transfer coefficient; and a heat duty. The controlled variable may also include a steam inlet and output temperature differential associated with a heat transfer device in the boiler of the power generating unit.
The optimizing the operation of the system may include the steps of: determining one or more operating goals associated with the operation of the power generating unit; determining one or more operating constraints associated with the operation of the power generating unit; and providing the one or more operating goals and the one or more operating constraints to an optimization system. The optimization system may include: the disturbance rejection model; an optimizer for determining optimal setpoint values for the manipulated variables associated with the control of the power generating unit, the optimal setpoint values determined in accordance with the one or more operating goals and the one or more operating constraints; and a communication link to a control system for communicating the optimal setpoint values thereto. The control system may be configured to provide closed-loop control for the operation of the power generating unit. The optimizing may further include the steps of: using the optimization system and the probabilistic distribution for the predicted value of the system output at the future time as calculated by the disturbance rejection model to calculate the optimal setpoint values for operating the power generating unit; and communicating via the communication link the optimal setpoint values to the control system of the power generating unit. The optimizer of the optimization system may be selected from a group consisting of: linear programming, quadratic programming, mixed integer non-linear programming, stochastic programming, global non-linear programming, genetic algorithms, and particle/swarm techniques.
The method may further include the step of receiving a cost function that defines costs associated with each of the one or more operating goals and the one or more operating constraints. The optimizer of the optimization system may be configured to determine the optimal setpoint values for the manipulated variables by accessing the disturbance rejection model to minimize the cost function. The method may further include instructing the control system to control the power generating unit in accordance with the optimal setpoints once the optimal setpoints are communicated thereto. At least one of the costs defined within the cost function may be configured to vary according to a value of an operating goal probability. The operating goal probability may define a probability as to whether a selected one of the one or more operating goals will be satisfied at the future time. The goal probability may be derived from the probabilistic distribution for the predicted value of the system output at the future time. The operating goals may include any of the following: an output level for the power generating unit; and a heat rate for the power generating unit. At least one of the costs defined within the cost function may be configured to vary according to a value of an operating constraint probability. The operating constraint probability may define a probability as to whether a selected one of the one or more operating constraints is violated. The operating constraint probability may be derived from the probabilistic distribution for the predicted value of the system output at the future time. The operating constraints may include any of the following: a limit on emissions of NOx a limit on emissions of SO2 a limit on emissions of CO2 and a limit on emissions of CO. The cost function may include a mathematical representation for evaluating the operation of the power generating unit relative to the one or more operating goals and the one or more operating constraints. The expression of the one or more operating goals in the cost function may include coefficients for establishing a relative weighting therebetween.
Another exemplary embodiment of the present invention includes a method for modeling an operation of a system that may include a disturbance rejection model that is configured to generate a predicted value for a system output at a future time. The disturbance rejection model may include a neural network for mapping system inputs to the system output. The method may include the steps of: training the disturbance rejection model per a training dataset; and calculating a confidence metric for the disturbance rejection model. As described herein, the confidence metric is configured to indicate a probability that a predicted sign of a gain in the system output at the future time made by the disturbance rejection model is correct. The confidence metric may be based on the probabilistic distribution discussed above.
The algorithm for calculating the confidence metric may be configured such that the confidence metric may include: a high probability that the predicted sign of the gain in the system output at the time (t) is correct when the variance of the probabilistic distribution is small compared to a difference between: the predicted value of the system output made by the trained disturbance rejection model at the time (t) and the system output (d_(t−1)) at the time (t−1); and a low probability that the predicted sign of the gain in the system output at the time (t) is correct when the variance of the probabilistic distribution is large compared to the difference between: the predicted value of the system output made by the trained disturbance rejection model at the time (t) and the system output (d_(t−1)) at the time (t−1).
The predicted sign of the gain in the system output is defined as a predicted sign of a value change for the system output between the time (t−1) and the time (t). The predicted sign may include: a positive value when the value change results in the predicted value for the system output at the time (t) increasing from the actual value of the system output (d_(t−1)) at the time (t−1); and a negative value when the value change results in the predicted value for the system output at the time (t) decreasing from the actual value of the system output (d_(t−1)) at the time (t−1).
The calculation of a confidence score based on the confidence metric for the disturbance rejection model may include: calculating the confidence metric for selected samples chosen from the T samples of the training dataset; calculating an average value for the confidence metric for the selected samples; and designating the calculated average value as the confidence score for the disturbance rejection model. The confidence score may include a percentage indicating a likelihood that the predicted sign of the gain in the system output at the future time made by the disturbance rejection model is correct based upon the performance of a whole of the disturbance rejection model over the selected samples from the training dataset. The future time may include a time that is subsequent to the historical operating period on which the training dataset is based. The confidence score may include a spectrum within which: a value of 100% indicates that the disturbance rejection model predicts the correct sign of the gain for 100% of the samples within the selected samples from the training dataset; and a value of 50% indicates that the disturbance rejection model has no confidence in predicting the correct sign of the gain for the selected samples from the training dataset.
The method may further include the step of recommending a modification to the disturbance rejection model based upon a comparison of the confidence score to a predetermined minimum threshold. The modification may relate to a need for augmenting the training dataset of the disturbance rejection model with additional data when the confidence score fails to satisfy the predetermined minimum threshold.
A related exemplary embodiment includes a method for modeling a system, the method including a disturbance rejection model configured for modeling an operation of the system so to generate a predicted value for a system output at a future time. The disturbance rejection model may include a neural network for mapping system inputs to the system output and input-output pairings, each of which represent a unique pairing of one of the system inputs with the system output. The method may include the steps of: calculating a confidence metric for a selected one of the input-output pairings of the disturbance rejection model; and recommending a modification be made to the disturbance rejection model based upon the confidence metric calculated for the selected one of the input-output pairing. The confidence metric may be configured to indicate a probability that a predicted sign of a gain in the system output at the future time made by the disturbance rejection model is correct when the system input of the selected one of the input-output pairings is varied.
In accordance with the present example, adjacent samples within the T samples of the training dataset are defined as paired samples that correspond to consecutively occurring times within the times=[1, 2, . . . , t, . . . , T]. Pertaining to the training dataset, a move is defined as a change to a system input setting that occurs between the consecutively occurring times of one of the adjacent samples. The training dataset may be configured such that each of the adjacent samples defined within the training dataset include no more than one of the moves. Alternatively, the training dataset may be configured such that most of the adjacent samples defined within the training dataset include more than one of the moves.
The confidence metric may be used to calculate a confidence score for the selected one of the input-output pairings. The calculation of the confidence score may include: determining a subset of samples from the T samples of the training dataset, the subset of samples may include only those adjacent samples in which the move involves the selected one of the input-output pairings; calculating the confidence metric for each of the samples within the subset of samples; calculating an average value for the confidence metric for the subset of samples; and designating the average value as the confidence score for the selected one of the input-output pairings. The confidence score determined for the selected one of the input-output pairings may be compared to a predetermined threshold. The recommended modification for the disturbance rejection model may be based on the comparison of the confidence score to the predetermined threshold. The recommended modification may relate to whether additional data should be obtained for the training dataset. The predetermined threshold may include a minimum threshold. The recommended modification for the disturbance rejection model may include at least one of the following: when the comparison shows that the confidence score fails to satisfy the minimum threshold, the recommended modification may include one regarding a high need for obtaining the additional data for training dataset; and when the comparison shows that the confidence score satisfies the minimum threshold, the recommended modification may include one regarding a low need for obtaining the additional data for training dataset. The recommended modification for the disturbance rejection model may include defining the additional data as data corresponding to the system input of the selected one of the input-output pairings.
The calculation of the confidence score may be repeated for at least one other of the input-output pairings such that the confidence score is determined for two or more of the input-output pairings. The confidence scores determined for the two or more of the input-output pairings are each compared against a predetermined threshold. The recommended modification for the disturbance rejection model may include one related to a need to obtain additional data for the training dataset based upon how each of the confidence scores compared to the predetermined threshold. Alternatively, the confidence scores determined for the two or more of the input-output pairings may be compared against each other so to determine at least a first input-output pairing that has a confidence score that is preferable compared to a second input-output pairing. The recommended modification for the disturbance rejection model may include one in which the need to obtain the additional data for the system input of the second input-output pairing is prioritized over the need to gather additional data for the system input of the first input-output pairing.
As one of ordinary skill in the art will appreciate, the many varying features and configurations described above in relation to the several exemplary embodiments may be further selectively applied to form the other possible embodiments of the present invention. For the sake of brevity and taking into account the abilities of one of ordinary skill in the art, all of the possible iterations is not provided or discussed in detail, though all combinations and possible embodiments embraced by the several claims below or otherwise are intended to be part of the instant application. In addition, from the above description of several exemplary embodiments of the invention, those skilled in the art will perceive improvements, changes and modifications. Such improvements, changes and modifications within the skill of the art are also intended to be covered by the appended claims. Further, it should be apparent that the foregoing relates only to the described embodiments of the present application and that numerous changes and modifications may be made herein without departing from the spirit and scope of the application as defined by the following claims and the equivalents thereof.
This application claims priority to U.S. Provisional Patent Application No. 62/366,248 entitled “PROCESS MODELING AND CONTROL USING MODELS WITH CALCULATED CONFIDENCE” filed on Jul. 25, 2016; which provisional application is incorporated herein by reference in its entirety; this application claims the benefit of the provisional's filing date under 35 U.S.C. 119(e).
Number | Name | Date | Kind |
---|---|---|---|
5167009 | Skeirik | Nov 1992 | A |
5280756 | Labbe | Jan 1994 | A |
5386373 | Keeler et al. | Jan 1995 | A |
5408406 | Mathur | Apr 1995 | A |
5640493 | Skeirik | Jun 1997 | A |
6047221 | Piche et al. | Apr 2000 | A |
6243696 | Keeler et al. | Jun 2001 | B1 |
6381504 | Havener et al. | Apr 2002 | B1 |
6438430 | Martin et al. | Aug 2002 | B1 |
6487459 | Martin et al. | Nov 2002 | B1 |
6493596 | Martin et al. | Dec 2002 | B1 |
6712604 | Havlena | Mar 2004 | B2 |
6725208 | Hartman et al. | Apr 2004 | B1 |
6736089 | Lefebvre et al. | May 2004 | B1 |
6985781 | Keeler | Jan 2006 | B2 |
7123971 | Piche | Oct 2006 | B2 |
7164954 | Lefebvre et al. | Jan 2007 | B2 |
7398652 | Kosvic et al. | Jul 2008 | B1 |
7522963 | Boyden et al. | Apr 2009 | B2 |
7698004 | Boyden et al. | Apr 2010 | B2 |
7844351 | Piche | Nov 2010 | B2 |
7966080 | Jia et al. | Jun 2011 | B2 |
8340824 | James et al. | Dec 2012 | B2 |
8527072 | Piche | Sep 2013 | B2 |
8644961 | Wroblewski et al. | Feb 2014 | B2 |
Number | Date | Country | |
---|---|---|---|
20180024512 A1 | Jan 2018 | US |
Number | Date | Country | |
---|---|---|---|
62366248 | Jul 2016 | US |