#### Abstract

For long time the optimization of controller parameters uses the well-known classical method such as the Ziegler-Nichols and the Cohen-Coon tuning techniques. Despite its effectiveness, these off-line tuning techniques can be time consuming especially for a case of complex nonlinear system. This paper attempts to show a great deal on how Metamodeling techniques can be utilized to tune the PID controller parameters quickly. Note that the plant use in this study is the cruise control system with 2 different models, which are the linear model and the nonlinear model. The difference between both models is that the disturbances were taken into consideration for the nonlinear model, but in the linear model the disturbances were assumed as zero. The Radial Basis Function Neural Network Metamodel is able to prove that it can minimize the time in tuning process as it is able to give a good approximation to the optimum controller parameters in both models of this system.

#### 1. Introduction

It is crucial to tune the controller parameters wisely for any control system in order to obtain the optimum results for its output. That is, the system output response should be as similar as possible due to the corresponding reference.

There were several techniques that commonly used to tune the controller parameters. For example, the Ziegler-Nichols tuning technique, the Cohen-Coon tuning technique, the tuning based on process response, the Damped Oscillation tuning method and so on. Each technique has its own pros and cons. But, for sure these conventional techniques consume lot of time as the tuning process need to be tuned again and again until the best response is met.

Usually, computer simulation is used to model the real complicated system to save cost and time. In spite of the advances in computer technology, the required time to simulate the actual model might still be long and thus it becomes impractical to rely exclusively on simulation for the purpose of design optimization. To overcome this timing issue, the Metamodeling techniques offer good approximation to the actual model due to the usage of simpler model, added on with less computation algorithms.

This paper illustrates how to optimize the PID controller parameters for both models (linear and nonlinear) of the cruise control system.

#### 2. Metamodeling Review

Metamodeling or sometimes called as βmodel of the modelβ has been used extensively in many fields to give simpler model of the input and output function that approximates the relationship between system performances and controller parameters of a system. The required significant set of data for each PID controller parameter that fit the actual set of data will give the best results of approximation.

Recently, as studied in [1], Metamodeling had been used to optimize various type of system, included the nonlinear system. Some of the system that were successfully optimized using the Metamodeling technique are the fluid mixing system, the Cartesian coordinates control of hovercraft system and the flexible robot manipulator. Through their study, they also had proved that the Metamodeling technique can optimize various types of controller parameters, for example, the fuzzy logic controller and the PID controller.

In another example, in a test Metamodeling for optimization problem in Rashid [2], training a Fuzzy-Neuro Metamodel on 130 measurement data and the search for its global minimum took only 5.62 minutes of execution time using a Pentium based PC. Hence, although the output of the Metamodel is only an approximate of the actual measurement of the complex model, evaluation of this output value is fast and it usually provides enough information especially during the design phase of a project.

#### 3. Radial Basis Function Neural Network

The RBFs were first used to design Artificial Neural Networks in 1988 by Broomhead and Lowe [3]. Past works reported that the roots of RBF are entrenched in much older pattern recognition techniques as for example potential functions, clustering, functional approximation, spline interpolation and mixture model [4].

In this study, it was used as the Metamodel for matching process between the input-output of the cruise control system. The architecture of the RBF-NN used in this study is illustrated in Figure 1.

The network consists of three layers: an input layer, a hidden layer and an output layer. Here, *R *denotes the number of inputs while the number of outputs. Equation (1) is used to calculate the output of the RBF NN for ,

where is an input vector, is a basis function, denotes the Euclidean norm, are the weights in the output layer, is the number of neurons (and centers) in the hidden layer and are the RBF centers in the input vector space. Equation (1) can also be written as,

where:

where is the spread parameter of the RBF. For training, the least squares formula was used to find the second layer weights while the centers are set using the available data samples.

RBF NN offer several advantages compared to the Multilayer Perceptrons. RBF-NN has also been successfully applied to a large diversity of applications including interpolation [3, 5], chaotic time series modeling [6], system identification, control engineering [7], electronic device parameter modeling, channel equalization [8β10], speech recognition [8, 11], image restoration [12], shape from shading [13], 3-D object modeling [5, 14], motion estimation and moving object segmentation [15], data fusion [16], and so forth, The advantages of RBF are they can be trained using fast two stages training algorithm without the need for time consuming nonlinear optimization techniques and an ANN RBF possesses the property of βbest approximationβ [17]. In Metamodeling, RBF NN has also been successfully used, as reported by [18, 19].

#### 4. Cruise Control System

This section presents the mathematical equation that represents both linear and nonlinear model of the cruise control system.

In this paper, all equations were modeled base on the block diagram given by Dorf and Bishop [20] as shown in Figure 2. The cruise control system properties and values used are given in Table 1.

The following equations model the plant dynamics of nonlinear system:

The nonlinear model includes the disturbances parameter into account, therefore all terms include the gravitational force () and the wind disturbance variable () were used in (4), (5), and (6). These disturbances are actually opposing forces that reduced the forward force that accelerates the car. Also note that in this paper, the wind gust was assumed to be in the front direction only. Hence, it was calculated into the error signal together with the output signal.

Take a glance at (5) above. There is squared terms in that equation. To eliminate the squared term in (5), equations (5) and (6) were differentiated both left and right sides to yield:

The inverse Laplace Transform will facilitate the solution of this plant to be modeled in SIMULINK model. Hence, taking the inverse Laplace Transform of (7) yields:

Lastly by equating all initial conditions for (8) to zero, the complete equation that model the nonlinear model become:

In contrast, the linear model did not consider all disturbances parameter into the equation. That is, all terms involving the disturbances parameter such as the gravitational force () and the wind disturbance variable () were eliminated. The following equations model the plant dynamics of linear system:

Same procedure as before, the nonlinearity functions need to be converted to the linear function. Therefore, (10) above were differentiated to obtain (11) as below:

Then, taking inverse Laplace Transform of (11):

By setting all initial conditions to zero, the transfer function is as follow:

The transfer function can be obtained by eliminating and solving above equations for the ratio of .

All mathematical equations for nonlinear model and linear model at which were obtained above were modeled in SIMULINK model. This can be illustrated by Figures 3 and 4, respectively.

Note that, the PID controller parameters used in this study are , , and and the performance measure that was used in this case was the Integral Square Error (ISE) given by:

where is the desired output speed (set point) while is the actual output speed.

#### 5. Simulation Results

The Taylor Series Expansion is utilized to check the systemβs stability. It should be done before the tuning process started. Referring to the eigenvalues obtained, it shows that the system is indeed stable and hence the control of the system should be possible.

The tuning procedures for Metamodeling technique are listed below:

(1)Define the input design space, , which consists of a set of initial values of the controller parameters.(2)Obtain the ISE for speed parameter for all the design space defined in 1.(3)Create the target data set, , which consists of the ISE for speed .(4)Fit the RBF NN using and .(5)Evaluate the RBF NN on a larger input space, .(6)Find the minimum of the RBF NN output (estimated ). The corresponding controller gains that minimized the RBF output will be the gains to be verified in actual model simulation.(7)Repeat step 1 to 6 should the controller parameter gains are not satisfactory.In this case, and are the sets of discrete values given in Table 2. The parameters for the RBF NN used to fit the data is summarized as:

The limitation of this study is the use of MATLAB on an INTEL PENTIUM M PC to simulate the whole process of optimization. For verification purpose, the actual simulation had been done on , which consist of 26691 data. The result of actual simulation is then compared with the Metamodeling techniques for each model as illustrated in Figures 5 and 6.

The best controller gain that minimized the error or noted as ISE for both approaches are given in Table 3. Meanwhile, the time taken to complete the tuning process is noted down as presented in Table 4.

Using the optimized PID gains obtained by Metamodeling technique, the results of the system output response are sketched in Figures 7 and 8.

#### 6. Discussion

Tables 5 and 6 show a comparison of the results in terms of system characteristics. From the results obtained, it can be observed that the adoption of PID controller using the Metamodeling tuning technique can give an almost similar and good response to the system. The effect of each controller , and on a closed-loop system will make that system more stable than the original one. For the case of nonlinear model, the optimized PID controller has proven it can attenuate the disturbances signal that appeared to its system.

As referred to Figures 5 and 6, the best controller gain that minimizes the ISE () for the actual simulation is given in Table 7. Meanwhile, the time taken to complete the actual process for each model is given in Table 8.

Next, the comparison of the minimum errors between the actual process and Metamodel is done and implied in Table 9. Although the results are slightly differed between each others, it can be observed that the Metamodel managed to approximate the global minimum of the error curve fairly well.

#### 7. Conclusion

In this study, the initial data set, was created based on the background knowledge of the problem. The data contained in the initial data set, need to be determined carefully, as the data that mismatch much points in the large space, will not run the Metamodeling process efficiently. Hence, there is a need of improvement for Metamodeling techniques. An investigation on the possible use of the Worst Case Approach [21] and the Cross Validation technique [22] in data sampling would seems be the appropriate next step forward. It can be simplified that more strategic data location will allow the creation of a more accurate Metamodel using less data, and therefore, less time is required to estimate the best controller parameters.