Research Journal of Applied Sciences

Year: 2010
Volume: 5
Issue: 4
Page No. 274 - 282

Computed Multi-Variable Control Applied on Viscosity Control by Means of In-line Mixing Control Using Neural Networks

Authors : Ramon Ferreiro Garcia, Alberto DeMiguel Catoira and Jose Luis Calvo Rolle

Abstract: Model-based functional approximation techniques are being used on in-line mixing processes affected by controlled variables which depend strongly on complementary physical variables. The aim for such type of nonlinear control problems is to compute the proportions of input product flow rates yielding a final product thus satisfying as much physical properties as manipulated input flow rates exists. The core of the contribution is based on functional approximation implemented by means of backpropagation neural networks associated to the computed multivariable control strategy on a viscosity control problem.

How to cite this article:

Ramon Ferreiro Garcia, Alberto DeMiguel Catoira and Jose Luis Calvo Rolle, 2010. Computed Multi-Variable Control Applied on Viscosity Control by Means of In-line Mixing Control Using Neural Networks. Research Journal of Applied Sciences, 5: 274-282.

INTRODUCTION

An important particularly aspect of conventional control was the idea of controlling the variables that are of real interest by computing its values from other measurements (Luyben, 1990). Conventionally, some mixing problems were solved successfully by means of conventional computational methods and means. With the help of modern computational methods, much more complex types of computed variables can now be calculated. Several variables of a process can be measured and all the other variables can be calculated from a rigorous model of the process or from virtual sensors based on soft-computing techniques. For instance, the nearness of flooding in distillation columns can be calculated from heat input, feed flow rate and temperature and pressure data. Another application is the calculation of product purities in a distillation column from measurements of several tray temperatures and flow rates by the use of mass and energy balances, physical property data and vapour-liquid equilibrium information.

The use of available and sophisticated computational methods made these rigorous estimators feasible. It opens up a number of interesting possibilities in the control field without limitations in applying such powerful methods even with the scarcity of engineers who understand both control and chemical engineering processes well enough to apply them effectively.

A typical class of mixing problems involve linear models such the problem of thermal mixing where the problem is to control the temperature of an output flow from a tank by proportioning the input flow into the tank or the problem of concentration mixing where two fluids of different concentrations are mixed to produce a desired concentration by varying the input flow rate. In both cases, the material-balance and energy-balance equations are the basis of process modelling.

Some other mixing problems are not linear such those problems involving temperature, pressure, viscosity, conductivity, pH (Mahuli et al., 1992) composition, etc. For instance, the liquids used in hydraulic systems generally exhibit large changes in viscosity with relativity small changes in temperature. The relative changes in viscosity per degree is called the temperature coefficient of viscosity CT and is expressed as:

(1)

Where:

T = The actual temperature
μ = The absolute viscosity

Pressurized liquids tend to increase viscosity where this phenomenon is particular evident in oils. At low or moderate pressure this increase is relatively small but at high pressures, the viscosity increases quite rapidly (Stern et al., 1958). The exponential relationship between viscosity and pressure is given by the expression:

(2)

Where:

α = The pressure coefficient of viscosity
μ0 = The viscosity at atmospheric pressure
μ = The viscosity at pressure P

Equation 2 is actually only a rough approximation, since the pressure coefficient α is not a constant but is dependent on pressure, temperature and type of liquid (liquid components). Because of this rough approximation, precision control problems require another alternative modelling method.

The continuous mixing control problem: In the implementation of composition control systems in-line mixers are often considered. Properly applied, these devices are effective but careful attention to the following design criteria is required: reagent delivery hysteresis, loop gain and neutralization stage interaction (Hoyle and McMillan, 1995). An in-line mixer can be a dynamic mixer such as a centrifugal pump or a baffled section of pipe called a static mixer as shown in Fig. 1. The static mixer provides radial mixing but little backmixing. It can be considered to be a plug flow process dominated by dead time. Disturbances and noise pass through the mixer unattenuated. With such a mixer, the best controller response to fast disturbance and noise is no response at all because any corrective action will arrive too late and will create yet another disturbance. The advantages of in-line mixers are its small dead time, loop period and recovery time. Conventionally, control structures based in the combination of feedback, feedforwared, cascade and ratio control are used.

The mixer exhibits certain pure time delay due to the inherent transport lag. This time lag D is described as the linear function of fluid flow rate q, the net cross section of the pipe A and the length of pipe L from the control valves to the end of mixer which in time domain yields:

(3)

So that the inherent time lag is e-DS

Fig. 1: Continuous mixer structure

The aim of this analysis obeys to two main reasons:

Avoid the effect of time lags on feedback control which suppose an important disturbance on mixing control loop
Simplify mentioned conventional control structures. In order to achieve such topics, model based computing variable control methods are proposed

The proposed multivariable control strategies consists of two open loop control schemes:

Computed variable Feedforward-Cascade Contro (FCC) l: Consists in compute the manipulated variables as function of the desired controlled variables and input process variables.

Computed variable Estimated Feedback Contro (EFC) l: Consists in compute the process variables as function of manipulated variables and process characteristics.

MODELLING THE PROPOSED IN-LINE MIXER PROCESSES

When analytical models based in physical laws (first principles) such as energy or material balances does not provide an acceptable or satisfactory solution, model based functional approximation is proposed. In-line mixing processes affected by controlled variables such as conductivity, pH, viscosity which depends strongly on complementary physical variables such as temperature and pressure variations are appropriate candidates to be solved using functional approximation.

For instance, the fact of mixing two products of known characteristics such as flow rate, pressure, temperature and viscosity denoted as (q1, p1, T1, μ1) and (q2, p2, T2, μ2), yields a final product (q, p, T, μ). By the fact of acting on the input flow rates (two variables) it is not possible to control the output product whose composition depends on four variables. For this type of nonlinear control problem, the aim is to compute the proportions of input product flow rates to achieve a final product satisfying as much physical properties as manipulated input flow rates exists using some innovative methodologies.

Functional approximation implemented on the basis of backpropagation neural networks associated to the described control strategies (FCC and EFC), conforms the core of the contribution.

Using conductivities on concentration mixing problem: The conductivity of a mixed fluid can be a measure of the concentration. In fact, the mixture of two fluids of different conductivities where the individual conductivities are function of its respective temperatures can be expressed as:

(4)

The two modes of computed variable control are:

(5)

For the nonlinear mixing process described by Eq. 4 some functional dependences from physical properties are estimated as:

(6)

The open loop control problem by computed variable control strategies consists in computing the setpoints of a number of manipulated variables (flow rates) to satisfy the required values of a number less or equal of controlled variables.

It means to compute q1(SP), q2(SP) such that by means of an in-line mixing process, it will be possible to achieve a final product thus satisfying desired characteristics such as flow rate qD and conductivity CD or temperature and conductivity CD. According this definition, Eq. 18 for the case of two degrees of freedom, yields:

(7)

The definition and application of the appropriate inverse model when applicable because direct models are also useful provides a (Wachira et al., 2005) function suitable to specify the desired final product (qD, CD) as:

(8)

So that the functional approximators given by Eq. 6 and 7 can be implemented on the basis of backpropagation neural networks as shown in Fig. 2. Figure 3 shows the computed variable control strategy for both computed variable by FCC and computed variable by EFC.

Viscosity mixing problem under variable temperatures: The problem of mixing two fluids of different viscosities and temperatures is described by direct model:

Fig. 2: Computed variable control algorithm based on functional approximation applied to an In-line mixer. (a) Algorithm for FCC (b) Algorithm for EFC

Fig. 3: Computed variable control strategy based on functional approximation applied to an In-line mixer. (a) Computed variable by FCC (b) Computed variable by EFC

(9)

Proceeding according last mixing problem they are achieved both control algorithms by means of an inverse model: computed variable by FCC and computed variable by EFC as:

(10)

(11)

Viscosity mixing control problem under variable temperature and pressure: The problem of mixing two fluids of different viscosities, different temperatures and pressure variations is described by a direct model as:

(12)

This mixing control problem is solved as in the last case through an inverse model but the function must include the variable pressure yielding:

(13)

(14)

APPLICATION ON DIESEL ENGINE SPEED CONTROL

This application deals with the task of supplying the necessary Fuel Oil (F.O) to a Diesel engine to get the required power in terms of engine speed (rps). In order to supply a demanded fuel flow rate at a required viscosity without heating the fuel (that is at ambient temperature), two fuel lines at different viscosities (heavy F.O and light F.O) provides the required amount of fuel at the proper viscosity by means of an in-line mixer controlled on the basis of proposed control strategies.

So that Eq. 10 and 11 solves the problem of mixing control which is shown in Fig. 4 and 5, respectively. Figure 4 shows the computed variable control by feedforward-cascade strategy while in Fig. 5 it is shown the computed variable control by estimated feedback strategy.

Next step of design procedure deals with controller design, validation and implementation. As stated before, controller is implemented on the basis of functional approximation. The function approximators will be implemented by means of feedforward neural networks (Demuth and Beale, 2000; Hagan et al., 1996).

Neural network controller implementation: Feedforward networks are the most suitable architectures to be used as general functional approximators.

The basic Backpropagation training algorithm in which the weights are moved in the direction of the negative gradient is used as training algorithm for feedforward networks. The term Backpropagation refers to the manner in which the gradient is computed for nonlinear multilayer networks.

There are a number of variations on the basic algorithm that are based on other standard optimization techniques such as conjugate gradient and Newton methods.

Backpropagation was created by generalizing the Widrow-Hoff learning rule to multiple-layer networks and nonlinear differentiable transfer functions (Widrow and Hoff, 1960).

Input vectors and the corresponding target vectors are used to train a network until it can approximate a function, associate input vectors with specific output vectors or classify input vectors in an appropriate way as defined by you.

Fig. 4: Computed variable control by feedforward-cascade strategy on an in-line mixer to achieve a required viscosity and flow rate

Fig. 5: Computed variable control by estimated feedback strategy on an in-line mixer to achieve a required viscosity and flow rate

Properly trained Backpropagation networks tend to give reasonable answers when presented with inputs that they have never seen. Typically, a new input leads to an output similar to the correct output for input vectors used in training that are similar to the new input being presented.

This generalization property makes it possible to train a network on a representative set of input/target pairs and get good results without training the network on all possible input/output pairs. Generally, the four steps in the training process are:

Assemble the training data
Create the network object
Train the network
Simulate the network response to new inputs

Conjugate gradient algorithms: The basic backpropagation algorithm adjusts the weights in the steepest descent direction (negative of the gradient). In this direction the performance function decreases most rapidly. It must be noted that, although the function decreases most rapidly along the negative of the gradient, this does ensure the fastest convergence. In the conjugate gradient algorithms (Hagan and Menhaj, 1994), (Powell, 1977) a search is performed along conjugate directions which produces generally faster convergence than steepest descent directions. (Beale, 1972), (Charalambous, 1992).

In most of the training algorithms, a learning rate is used to determine the length of the weight update (step size). In most of the conjugate gradient algorithms, the step size is adjusted at each iteration (Moller, 1993). A search is made along the conjugate gradient direction to determine the step size which minimizes the performance function along that line (Andrasik et al., 2004).

Fletcher-reeves update (traincgf): All of the conjugate gradient algorithms start out by searching in the steepest descent direction (negative of the gradient) on the first iteration (Fletcher and Reeves, 1964).

(15)

A line search is then performed to determine the optimal distance to move along the current search direction:

(16)

Then the next search direction is determined so that it is conjugate to previous search directions. The general procedure for determining the new search direction is to combine the new steepest descent direction with the previous search direction:

(17)

The various versions of conjugate gradient are distinguished by the manner in which the constant is computed. For the Fletcher-Reeves update the procedure is:

(18)

This is the ratio of the norm squared of the current gradient to the norm squared of the previous gradient (Fletcher and Reeves, 1964; Hagan et al., 1996). The conjugate gradient algorithms are usually much faster than variable learning rate Backpropagation, although the results will vary from one problem to another. The conjugate gradient algorithms require only a little more storage than the simpler algorithms, so they are a good choice for networks with a large number of weights.

Achieving a representative database: The Number of Data Sets (NDS) has its origin in the general expression where RD1is the range division of each variable.

So that database focused on NN training is achieved using 256 datasets covering the ranges shown in Table 1 where NDS = = 4x4x4x4 = 256 datasets.

These datasets were achieved by measuring the viscosities of both input fluids (light Diesel oil and heavy Diesel oil) at different temperatures and viscosities, yielding the necessary flows (q1 and q2) to achieve the desired viscosity μD and flow rate qD under the structure shown in Table 1. The ranges of mixing process input variables are shown in Table 2.

Training with matlab neural toolbox: Several feedforward NN structures has been tested against performance to solve the proposed problem.

Acceptable results were achieved using the neural networks structure shown in Table 3 where neural network toolbox of Matlab has been used. Table 3 shows also the specified training characteristics. Training results are shown in Fig. 6 and 7. Performances of 0.0015 and 0.007 are achieved with 300 epochs. Training characteristics were varied to test different NN architectures such as [8, 1], [10, 1], [6, 6, 1], [8, 8, 1] and finally [10, 10, 1] which is the one used in this research work.

Structure of the engine speed controller: The operating curves for an engine indicate that the output shaft speed ω is a nonlinear function of both the fuel flow rate Q and the load torque Torq.

Nevertheless, the fuel flow rate demand QD is determined by the required engine speed using a PID control loop where the in-line mixer control module is embedded in series with the PID feedback controller. Thus, the block diagram of the engine speed control loop is shown in Fig. 8. The forward path contains the in-line mixer FCC or EFC controller.

Validation by means of the in-line mixer simulation: In order to show the performance of the proposed feedforward-cascade strategy on the In-line mixer that means given the known variable values QD, μD, μ1, μ1, achieve q1 and q2 by applying functional approximation, a simulation block diagram has been constructed with the neural networks achieved by means of training algorithm (traincgf or the conjugate gradient Fletcher-Reeves) of Matlab.

Table 1: The partial 64 datasets of the database corresponding to μD = 4.5
The ranges of mixing process input variables are shown in Table 2. q1 = f1D, μ1, μ2, qD); q2 = f2D, μ1, μ2, qD)

Table 2: Ranges of variables for construct the training database

Table 3: Training characteristics

The Block diagram of simulation task is shown in Fig. 8. Signals QD, μD, μ1, μ1 enter both neural networks providing the fuel flow rate setpoints q1(SP) q1(SP) under the structure of Fig. 9.

Fig. 6: NN1 Training evolution for function 1

The inputs to the simulation task are variable to investigate the effect of disturbances due to the inputs. The viscosity setpoint remains in the nominal value which is 4.5 cts.

The blocks simulating the neural networks NN1_10-10-1 = f1 (qD μD μ1 μ2) and NN2_10-10-1= f2 (qD μD μ1 μ2) provides the setpoint flow rates q1(SP) and q2(SP).

Fig. 7: NN2 training evolution for function 2

Fig. 8: Engine speed feedback control associated to a nonlinear multivariable feedforward-cascade controller: the in-line mixer controller

Fig. 9: Simulink block diagram for In-line mixer controller simulation

Necessary to achieve the desired flow rate and viscosity at the In-line mixer output. The results are shown in Fig. 10 where the actual viscosity μ is illustrated in centistokes (cts). The value is into the range of 4.35-4.65 under changes in of input variables or disturbances along its full ranges.

Fig. 10: Input-output signals of In-line mixer controller simulation

CONCLUSION

Multi-variable control strategies to solve efficiently linear and nonlinear in-line mixing problems have been presented.

These contributions are based on two computed multi-variable control techniques: Computed multi-variable control using the developed FCC strategy Computed multi-variable control using the developed EFC strategy Model based functional approximation was implemented on the basis of feedforward neural networks trained by means of a Backpropagation training algorithm: the conjugate gradient of Fletcher-Reeves.

With regard to results, the value of viscosity achieved by the In-line mixer shown in Fig. 9 is into the range of acceptable and expected results. Extensive simulation tests on EFC strategy yields the same results as FCC which is shown.

With regard to performance, rapid response, precision and robustness under changes (disturbances) of input variables are the main topics. A relevant advantage that can be pointed out is the sake of the lack of a conventional mixing tank and the lack of feedback measuring devices due to proposed strategies, minimum time delay on the mixing process control is achieved.

Design and power by Medwell Web Development Team. © Medwell Publishing 2024 All Rights Reserved