Modelling and predictive control of an olive oil mill
Abstract
This paper describes the modelling and predictive control of the extraction process in an olive oil mill. The work is focused on the thermal part of the process, where the raw material is prepared for the mechanical separation. The paper shows the development of a model based upon Orst principles combined with experimental results and validated with real data. Different control strategies have been tested under simulation, showing that good performance can be obtained by the use of a predictive controller that takes into account the measurable disturbances that appear in the process. Constraints in actuators are also included in the control strateg
Full text
" $ & ( * & , - / 0 " 2 " 4 5 7 9 Escuela Superior de Ingenieros. Universidad de Sevilla Camino de los Descubrimientos s/n, 41092-Sevilla (Spain) Phone: +34 954487348, Fax: +34 954487340 e-mail: {bordons,cueli}@cartuja.us.es : < = ? A B D F H Process Control, Predictive Control, Industrial Processes, Factory Modelling and Simulation, Agricultural Processes I K - L ( M N L This paper describes the modelling and predictive control of the extraction process in an olive oil mill. The work is focused on the thermal part of the process, where the raw material is prepared for the mechanical separation. The paper shows the development of a model based upon O rst principles combined with experimental results and validated with real data. Different control strategies have been tested under simulation, showing that good performance can be obtained by the use of a predictive controller that takes into account the measurable disturbances that appear in the process. Constraints in actuators are also included in the control strategy. P R , L ( & * 4 N L 9 & , The automatic control of the extraction of oil out of olives is still an open O eld, since many installations are usually operated in manual mode. As olive oil mills are becoming bigger the chances for automation are increasing, therefore it is important to acquire the necessary knowledge of the process behaviour in order to design the appropriate control strategies. The process is composed of several operations: reception of raw material (olives), washing, preparation, extraction, and storage of the produced oil [3]. Figure 1 shows the most important phases of the process: preparation and extraction. The preparation phase is crucial for the whole process T it consists of two subprocesses. The O rst one is olive crushing by an especial mill, whose objective is to destroy the olive cells where oil is stored. The second one aims at homogenizing the paste by revolving it while its temperature is kept constant at a speci O ed value (around 35 U C). This is performed in a machine called V W Y [ ] ^ ] _ ` Y [ , which homogenizes the three phases of the paste (oil, water and by-product) while exchanges energy with surrounding pipes of hot water. This is done in order to facilitate oil extraction in the following process: mechanical separation in the a Y b c e V Y [ . This paper is focused on V W Y [ ] ^ ] _ ` Y [ control since homogenization is really important in the whole process, because bad operation conditions in the V W Y [ ] ^ ] _ ` Y [ can dramatically reduce the quality and quantity of the O nal product. Heating water Addition water Mill Termo-mixer g h j k l m o p m Decanter (two phases) Addition water q r s t u w s r Alpeorujo (to dryer) Oleaginous phase Filter Centrifugal pump x x x x y x y x y x x x x x x x x x Water Olives Figure 1: Process Therefore the predictive controller is used in this part of the process. The discontinuous way of feeding the paste is the main difO culty that appears when trying to maintain the optimal operating conditions in the V W Y [ ] ^ ] _ ` Y [ . These changes introduce continuous variations in the level and therefore changes in temperature since the quantity of product inside the machine varies. As level can be easily measured, it can be considered as a measurable disturbance and hence can be taken into account by the predictive algorithm as a z Y Y a z ^ [ | c [ a action. The control strategy will also consider the existence of constraints. There exist physical limitations to the heating power and also operating limitations since temperature must be kept inside a range, out of which the quality of the product is drastically reduced. The paper is organized as follows. In section 2 a description of the process is presented, whose model is obtained in section 3 using nonlinear differential equations. This model is validated with real data obtained from the process. The control strategy that is used is described in section 4. The simulated results obtained when applying the predictive controller are described in section 5 and O nally the major conclusions to be drawn are given. Proceedings of the European Control Conference 2001 2291 *4#/ &VSPQFBO$POUSPM$POGFSFODF&$$ 1PSUP1PSUVHBM4FQUFNCFS
The system considered corresponds to a " % & , whose main objective is to homogenize the three phases of the paste (oil, water and by-product) and keep it at a certain temperature in order to facilitate oil extraction. Heating of the paste is achieved by means of hot water circulating through a jacket. The machine is divided into different (usually three or four) tanks or ) " + % - , each one with revolving blades to facilitate homogenizing. The bodies are composed of semi-cylinders about 3 metres long with a diameter of 1 metre. Paste is dropped over one side of the . rst body and pushed by the revolving blades, which make the paste fall down to the second body through the over / ow and so on. The existence of several bodies allows a gradual temperature increment along the " % & , since abrupt changes in paste temperature would affect the quality of the end product. 1 3 4 5 6 7 8 : ; 6 To decanter Q Q Q < 6 8 ; 4 = > ? 8 ; 6 @ Figure 2: Thermomixer bodies. The paste is heated in order to facilitate mixing since the paste turns more / uenty when temperature rises. However, there exists an upper temperature limit behind which olive oil loses quality ( / avour, fragrance, etc.) due to the oxidation process and the loss of volatile components. Another important fact to be considered is the mixing time (residence time), whose optimal value is around one and a half hours. A shorter time drives to incomplete mixing and a longer one can give rise to emulsions, which interfere with the extraction process. The feeding of the machine with the paste coming from the crushing mill is done by an on-off level controller that turns the feeding pump on when the level is low and turns it off when it reaches a maximum. Therefore the evolution of the level resembles a kind of saw-teeth wave, which has a great in / uence on temperature, constituting an important disturbance. Another disturbance that appears in this process is the temperature of the heating water. It comes from a boiler that supplies hot wa0 1 2 3 4 5 70 75 80 85 90 95 100 Measured levels in the three bodies Third body Second body First body 0 1 2 3 4 5 50 55 60 65 70 75 80 Measured inlet water temperature Time(hours) Figure 3: Disturbances: levels and water temperature ter to several processes in the factory, so it is affected by load changes. Therefore, the outlet temperature presents oscillations at the frequency of level variations with changes produced by heating water variation. The controller must be able to reduce the effect of these disturbances as much as possible. Level and water temperature can easily be measured and level evolution can be predicted as shown later. Figure 3 shows level evolutions in the three bodies (the solid one is the last body) and also the random variation of temperature. A E G H I K L M O P M Q R S U P V V Q S Q M Y P R O Q Z [ R Y P L M ^ The plant can be modelled as a thermodynamic process where both mass and energy balances can be used for modelling. The model is obtained by applying the following balance equations [10] to each body (energy balance): _ ` a c d e f d h c i _ j k m n d e f d h n p m r d e f d h (1) s t p t v w s t z _ ` a | d e f } d h | i _ j k m | d e f } d ` h n } p h | i p t p t v t k d d ` h p h i t v w k v w d ` h p h i Inlet / ow in each body is not known, it must be calculated from the available measures: levels and outlet paste / ow, using the following equation : _ ` d d i _ j k m n p m r (2) where: Proceedings of the European Control Conference 2001 2292
Mass of paste and water in the heating jacket Speci c heat of paste and water Paste and water temperature Inlet paste and water temperature Inlet and outlet paste ow Environment temperature Water ow Exchanged heat Loss heat Friction heat Heat transfer coef cient Loss factor " # Cross section of the body $ Measured level % Paste density The model takes the form: Non linear model Outlet paste flow Third body level Heating water temperature Inlet paste temperature Heating water flow Outlet paste temperature Physical parameters Figure 4: Simpli ed model of the thermo-mixer This model includes a loss factor that describes the heat exchanged with the environment and a constant factor to model the heat generated by friction. The complete model is obtained assembling the body models, taking into account that: - Paste inlet temperature and ow of body i equal outlet temperature and ow of body i-1, except the rst body, whose temperature is measured and whose ow is estimated from level measures. - Flow and temperature of the heating water is the same for the three bodies, since they are in parallel. The outlet temperature is the arithmetic mean of the three bodies. & ( ) + - / 0 2 4 5 2 7 / 5 ; 7 - = This model has been validated using real data obtained from an olive-oil mill located in Málaga (Spain). Data was obtained from a series of tests performed in the plant during this year’s campaign. This data was used to estimate many of the parameters that appear in the model which are not perfectly known, since they depend on several circumstances: kind and moisture of olives, dirt in the heating circuit, etc. Figures 5 and 6 show a comparison of real (the bold one) and simulated output obtained with real input data. The error can 68 69 70 71 72 73 74 25 30 35 40 45 Time (hours) Real vs simulated output 3º body temperature (ºC) Figure 5: Measured and simulated temperature (I) be different depending on external factors and values that can change as inlet paste density (which is not homogeneous) or heat transfer coef cient. 86 87 88 89 90 91 92 25 30 35 40 45 Time (hours) Real vs sim ulated output 3º body temperature ( ºC) Figure 6: Measured and simulated temperature (II) & ( & > 7 = 0 5 @ A - / 0 2 A linear model has to be developed in order to design the predictive controller. It is obtained from step tests on the plant. In fact, it is dif cult to do step tests in the real plant, since it is not possible to maintain some variables in steady state while performing step tests in other. For instance, since feeding is done in an on-off way, level cannot be kept constant while a step in inlet temperature is performed. Therefore, the linear model is obtained from simulation using the nonlinear model. All manipulated variables can be changed independently to see their in uence on temperature behaviour. With the results obtained from simulations is it possible to nd linear models using simple identi cation techniques [9]. The models needed for control give the nal paste temperature (the paste that leaves the last body of the thermomixer) as function of ow and temperature of the heating water and level. After several simulations, the following models were obtained, in the form of a CARIMA description: Proceedings of the European Control Conference 2001 2293
(3) Numerical values for the model that gives temperature as a function of ow: # % & ( * + # % ( / 0 1 3 # % ( * # 7 3 # % # # * 9 (4) 3 # % # ( 0 * : 3 # % # # ; 3 # % # & > @ & # A & 3 ( % / 0 & % ; # @ 3 # % F & G Temperature with respect to level: 3 J % # # ( A J % # & 0 + (5) & 3 # % 0 ; ; And with respect to water temperature: # % # # > & A (6) & 3 # % 0 ; * 0 0.5 1 1.5 2 x 10 -3 Response to step in flow of heating water -6 -4 -2 0 2 Response to step in level 0 1 2 3 4 5 6 0 0.2 0.4 0.6 Time (hours) Response to step in water temperature Figure 7: Step responses The sampling time was chosen as 100 seconds according to the dynamics of the process. Step responses of the model are shown in K gure 7. It can be observed that temperature response with respect to a step in level shows an initial inverse behaviour. This is due to the fact that a sudden cold paste inlet increment reduces the temperature in the thermomixer until it recovers once the mixing process has taken place. L N P Q R S P T U R S V R W X Y The control objective is to maintain the operating conditions in the thermomixer, that is equivalent to keep the temperature of the last body as constant as possible in spite of disturbances (level and variations in hot water). The manipulated variable is the hot water ow. The process is characterized by the big deadtimes in temperature dynamics. What is more, the effect of disturbances on the controlled variable shows faster dynamics (mainly at high production rates) that the manipulated variable itself, which makes disturbance rejection more dif K cult by the controller. The control scheme is shown in K gure 8. Controller System Water flow Temperature Set point Measurable disturbances: level and water temperature Noise Figure 8: Control scheme Predictive Control can be an interesting candidate to control this system. There are many applications of several predictive controllers in industry [8] and the one chosen for this application is Dynamic Matrix Control, DMC [4]. This controller, as shown in [2], can easily deal with measurable disturbances. As was said before, the effect of the manipulated variable in the process output is slower than the effect of disturbances. This fact makes it interesting to include a prediction of the disturbances to improve the results. This is a slight change with respect to the standard DMC algorithm, which considers that disturbances are kept constant (and equal to their current value) in the future. The information that provides this future evolution is very important in this case, allowing the controller to anticipate its in uence on the process output. In this application, as the main disturbance acting on the output (level) exhibits a predictable behaviour, the control law is calculated considering an Auto-Regressive second order model [7] of disturbance. The control law that minimizes the general cost function: Z [ \ ^ _ ` a b d 3 f d g @ h i k _ ` a : b d g @ (7) is given by: p r p i t p r b u [ u w 3 f g (8) where - [ y z is the expectation operator Proceedings of the European Control Conference 2001 2294
- is the vector of future control action increments - is the calculated free response without disturbances - is the expected value of the free response due to measurable disturbances - is the reference trajectory The objective function can be expressed as # % ' (9) Note that the operator ) + , only applies to the - rst term of the functional. Remember that the predicted value for the output is the sum of two terms, the - rst one due to the control law and the other one due to measurable disturbances. The future values of the measurable disturbances are stochastic. The rest of variables are deterministic. Lets substitute the prediction of the output by . % in equation (9). The free response has two terms, due respectively to the past control law and to the measurable disturbances. So it can be expressed as 2 % . The result is: . % . % # % ' (10) . % 2 % . % 2 % # % ' Applying linearity to (10) and rearranging terms leads to (11) . . % ' 9 % : 2 % . % % 2 % 2 % # (11) And solving = = ? we can obtain the control law: : . . % ' 9 : . @ @ 2 B . . % ' 9 F G . @ 2 B . . % ' 9 F G . @ 2 B (12) That indicates that the best control law should include the best prediction for the future values of disturbances. The standard DMC algorithm makes the simplest assumption that disturbances will keep constant along the horizon. In this work, disturbance estimation is included. The expected value for the part of the free response due to measurable disturbances can be calculated as follows in equation (15). The expression for assumingatruncatedstepresponse model is (see for instance [2]): H J K L N G P Q S T P H W (13) where P Q S is the samples of the truncated step response and T P H is the increment of the disturbance signal in the instant H . The expression (13) can be separated in two terms, the - rst one containing past values of the measurable disturbance and the second one containing future values. H % Y [ F G K L N G P Q S T P H % Y W % J K L N [ P Q S T P H % Y W (14) Applying the expectation operator to the equation (14), we obtain the desired expression: @ H % Y B [ F G K L N G P Q S @ T P H % Y W B % % J K L N [ P Q S T P H % Y W (15) The expected value for the measurable disturbance can be easily calculated most cases with an optimal prediction. This can be done if the disturbance is a stationary or quasi-stationary signal, so it can be modelled as an AR process (as it has been done in this work). For the trivial case, in which the polynomial AR is equal to 1, we obtain the tipical assumption that considers future values of disturbance as constant. ^ ` a b c d e b This section presents the results obtained when applying the control strategy previously de - ned to the simulated model of the thermomixer. Notice that olive oil production is a highly seasonal process. Model validation was done with real data available this year and the controller will be tested in the real plant during next year’s campaign. The - rst graph shows the effect of disturbance estimation on the outlet temperature. Figure 9 shows the clear effect of including the AR model of level in the control algorithm. Notice the improvement of the output response when considering measurable disturbances. The dotted line is the simplest DMC algorithm, without considering measurable disturbances. The next approach (thin solid line) includes explicitly constant disturbances along the horizon and the next strategy (bold line) Proceedings of the European Control Conference 2001 2295
uses a second order AR model to estimate future evolution of disturbances. Notice that the control action in this case always goes before that calculated without considering measurable disturbances. Although the output has been simulated with the linear model of the plant, the tests have been done using values of level obtained from the real plant. 25 26 27 28 29 30 32 34 36 DMC applied to lineal simulator Third body temperature (ºC) No measurable disturbance Constant disturbance estimation AR model disturbance estimation Set point 25 26 27 28 29 -2 -1 0 1 2 3 x 10 4 Heating water flow (l/h) Time (hours) Figure 9: Results from linear simulator When testing the controllers on the nonlinear model, the behaviour deteriorates. Figure 10 shows the controllers in a nonlinear simulation. This is due to the fact that the manipulated variable saturates during the experiment, reaching its physical limits. Comparing the responses, it is clear that the proposed strategy behaves better than the other, although the difference is not as clear as in the linear case. For instance, values of IEA (Integral of Absolute Error) for the three cases are 0.64, 0.52 and 0.35. This gure also shows level evolution, which apart from being oscillatory, present sudden changes. These changes are due to stops in the feeding, which cause temperature to increase since there is no paste inside the machine. 15 16 17 18 19 20 21 32 34 36 38 Time (hours) Temperature (ºC) No measurable disturbances Constant disturbance estimation AR model for disturbances 15 16 17 18 19 20 21 0 2000 4000 6000 Time (hours) Heating water flow(l/h) 15 16 17 18 19 20 21 0 0.5 1 1.5 Level (m) Time (hours) Figure 10: Results from non linear simulator This work has presented the modelling and predictive control of an olive oil mill. The method was developed as a result of studies for the control of a real plant located in Spain, where real data has been taken for validating the model. The control strategy proposed will be tested there during the next campaign. Simulation results have shown that a DMC considering estimation of level variations and constraints in the manipulated variable can be a good solution for the problem that exists in the real plant. ! The authors would like to acknowledge E.F. Camacho, M.R. Arahal, D. Limón and D. Rodríguez for collaborating in the project and people from Sociedad Cooperativa Ntra. Sra. de los Remedios for their help in carrying out the tests. This work has been supported by EC under FEDER programme under grant 1FD97-0836. # $ & [1] K.J. Astrom and B. Wittenmark. "Computer Controlled Systems", ' ( * , . 0 1 * 3 5 7 8 8 (1984) [2] Camacho, E.F. and C.Bordons. "Model Predictive Control”, 9 : ( 0 , = * ( 3 ? * ( 8 7 = @ A C , E C , (1999) [3] Civantos, L. “Obtención del aceite de oliva virgen”, F E H I = ( J 1 C 8 7 F L : 7 N C 8 7 @ 9 H I @ P Q , 9 : 7 , 0 L U V (1999) [4] Cutler, C.R. and B.C. Ramaker. “Dynamic Matrix Control - A Computer Control Algorithm”, Q , I W . C X 7 . 0 1 Z C , 3 . ( C 8 Z C , ] * ( * , 1 * @ 9 7 , _ ( 7 , 1 0 L 1 C H (1980) [5] Ljung L. “ System Identi cation - Theory for the User”, ' ( * , . 0 1 * 5 7 8 8 @ F , = 8 * ` C C E Z 8 0 ] ] L @ b H c H (1987) [6] Ljung L. and T. Glad. "Modeling of Dynamic Systems", ' ( * , . 0 1 * 5 7 8 8 @ F , = 8 * ` C C E Z 8 0 ] ] L @ b H c H (1994) [7] Oppenheim J. and A.S. Willsky. “Signals and Systems”, ' ( * , . 0 1 * 5 7 8 8 @ F , = 8 * ` C C E Z 8 0 ] ] L @ b H c H (1985) [8] Qin, S.J. and T.A. Badgwell. "An overview of Industrial Model Predictive Control Technology." , Q , Z U * X 0 1 7 8 ' ( C 1 * L L Z C , . ( C 8 e I L L * L L X * , . 7 , E b * ` g 0 ( * 1 . C , L ] C ( h * 3 L * 7 ( 1 U H Q , I Q Z U F 9 l X : C L 0 W X 9 * ( 0 * L o p q @ r o H c * ] ] ( * l Z H s 7 , . C ( @ Z 7 ( 8 C L F H t 7 ( 1 J 7 7 , E w ( 0 1 * Z 7 ( , 7 U 7 , F E L H ' : e y o y 3 y z q H (1997) [9] Söderström T. and P. Stoica. “System Identi cation”, ' ( * , . 0 1 * 5 7 8 8 Q , . * ( , 7 . 0 C , 7 8 @ A C , E C , H (1989) [10] Thompson E.V. and W.H. Ceckler. “Introduction to Chemical Engineering”, { 1 H t ( 7 ` 3 5 0 8 8 H (1979) Proceedings of the European Control Conference 2001 2296