Output functions' parameters of the optimized fuzzy controller
Growing demands for comfort, reliability, accuracy, energy conservation, safety and economy have fueled interest in proposals that can contribute to facilitate high performance control systems design. In terms of vibrations active control, it may represent, for example, a good relationship between the maximum reduction in vibrations transmission between two systems and the minimum energy expended in order to accomplish this reduction .
The use of more than one controller to provide higher performance for complex systems has attracted interest because in each operation condition, their combination can take advantage of each controller’s characteristics. To take advantage of controllers’ combination, a supervisor can make a hierarchical classification of controllers’ signals, according to the identified operational condition.
Advances in artificial intelligence, processing power and data storage, allowed the development of intelligent methods for different characteristics controllers’ fusion. The use of intelligent methods allows to the controlled system: adaptability to various operational situations and proper performance, even in the presence of significant uncertainties. Intelligent supervisors are ease to maintain, to reconfigure and could have optimality during its operation according to the learning mechanism.
This chapter describes a methodology for controllers' combination called controllers hierarchical fusion. In this methodology, a supervisor system is used to obtain a single control signal from the control signals generated simultaneously by two or more controllers. A hierarchical controller's example compounded by one robust controller, one fuzzy controller and one fuzzy supervisor is applied for mechanical vibrations isolation and reference tracking using an electromechanical system proposed in . This controller is called hierarchical fuzzy controller (HFC).
This electromechanical system can be used to eliminate vibrations in the camera of unmanned vehicles and also to position this camera. It can also be used in manned vehicles for drivers' seat positioning and to eliminate vibrations on it, as shown in Figure 1.
Digital simulations are employed in two case studies and the results are compared. On the first case study, the fuzzy controller and the fuzzy supervisor are tuned manually. Genetic algorithms (GA) are used on those systems tuning, in the second case study. Genetic algorithms usage facilitates designer's task and allows tuning parameters' optimization.
Next session describes the electromechanical system used and presents its models developed in . The nonlinear model is used to validate the hierarchical fuzzy controller and in its fuzzy components' tuning, while the linearized model is used for robust control design. Performance criteria’s are established at the end of this section.
2. Electromechanical system
Figure 2 details the electromechanical system used for vibration suppression and reference tracking. It consists on an
The vertical position control of bar's center is made by a servo actuator. This actuator consists of a DC servo motor whose axis is directly coupled to a spindle. The propeller's spindle step is given by
The servo actuator varies the vertical position of bar's center depending on the measured displacements on bar's free end. This is done to isolate the payload from vibrations originated at the base.
A sensor that converts movements into voltage is used to measure vibrations on the payload. Those voltages feed servo motor, thus closing the control loop. Controllers are used to improve control efficiency, reaching thus performance specifications previously determined. This subsystem composed by one (or more) sensors, controllers and a servo-actuator, is called control system.
The nonlinear model used was developed in . For the lever system it was given by:
The equation that describes servo actuator dynamics is given by:
For robust control project it was used the linearized model founded in .
The system states are:
The coefficients and are given by:
Nonlinear system response to a step reference and for a step disturb was used to determine the performance criteria.
Figure 3 shows the nonlinear system in closed loop, without controllers, step response. This response is characterized by the influence of two vibrations modes: one slower and overdamped and the other faster and oscillating. It practically has no overshoot. The settling time, considering an accommodation range of ± 5% of the reference signal amplitude, is more than 12.5s. The rise time from 0 to100% of the reference signal amplitude is greater than 19s. This large difference between the rise time and the settling time highlights the influence of the overdamped mode .
Figure 4 shows the non-controlled system response to a disturbance.
With the reference fixed at zero, when a 0.01m amplitude step disturbance is injected into the system without the controller, its output goes upper than one and a half the amplitude of the injected disturbance. The non-controlled system needs about 12.8s to reject this disturbance on the mentioned condition, considering that the disturbance is sufficiently rejected when the response amplitude is reduced to a range of ± 5% of the injected disturbance amplitude, around zero. Figure 4 shows this response.
Thus, the performance specifications that characterize a satisfactory response to the nonlinear system are: A step reference signal must be tracked without regime error; the rise time should be reduced to at most 10% of the time obtained by the non-controlled system; The settling time should be reduced to at most 20% of the time obtained with the non-controlled system; The overshoot should be less than 10%; The time required for the controlled system to reject a step disturbance, must be reduced by at least 95%; Furthermore, the response signal may not exceed 40% of disturbance's amplitude; Finally, the control signal generated must respect the servo-actuator saturation limits, that, in this case, is ± 15V.
Those specifications were achieved through the use of the hierarchical fuzzy controller. Each controller design aimed to meet some performance specifications. In that way, conflicting specifications were separately addressed, instead of trying, in each project, to get a fit to satisfy conflicting specifications, relaxing those specifications. So the hierarchical fuzzy controller should take the best features of each controller, to meet all the specifications described in this section.
3. Robust control
In vibration control, as well as in several other applications, it is desired that the control system presents robustness to the effects of factors such as: modeling errors, variations in the parameters of the system being controlled, noise and disturbances. There are at least two reasons why the robustness is a desirable feature in the control systems: the need of control systems that operates satisfactorily, even in operating conditions different from the ones considered in the model design; and the possibility to adopt an intentionally simplified project model, to reduce: the time spent in the modeling stage and the resulting controller complexity .
Among the main techniques for robust controllers synthesis can be cited: The Linear Quadratic Gaussian / Loop Transfer Recovery (LQG/LTR), H2 and H∞ optimizations, methods based on Lyapunov functions, minmax optimization and Quantitative Feedback Theory (QFT).
The LQG/LTR controller designed in  was used to allow a better comparison between the optimized hierarchical fuzzy controller implemented and the non-optimized developed in . Furthermore the LQG/LTR technique has a simple and systematic design procedure, the controller robustness is ensured by this procedure, even in a broad class modeling errors presence and also the number of design parameters is relatively small .
This procedure has two steps: initially the target filter loop (TFL) must be projected. It must meet the performance specifications previously established. Once obtained an appropriate TFL, its characteristics are recovered for the transfer function of the loop formed by the controller and the nominal model.
The LTR procedure, initially proposed in , suggests that the TFL is achieved through the design of a Linear Quadratic Regulator (LQR) and then recovered by adjusting a Kalman filter. Another way to do it is to set a Kalman filter, to obtain a satisfactory target filter loop, and then project an optimal state feedback, type LQR, to recover the TFL .
Given the linearized model in form:
The Kalman's filter design begins with the solution of the following algebraic Riccati equation:
In  it was used:
Where corresponds to the first column of the B matrix and is the project's free parameter. This choice was made because the first attempt to select the W matrix must be the matrix related with the control input . As could be seen in , this choice proved satisfactory.
In  were also used: to obtain the TFL and to recover the TFL, resulting in a LQG/LTR robust controller with the following desired characteristics: good speed in test model controlled response accommodation, when tracking a reference, and principally a good rejection of disturbances. Figure 5 illustrates the TFL obtained and recovered for these values of and.
As mentioned earlier, this LQG/LTR controller was used to allow a better comparison between the optimized hierarchical fuzzy controller implemented and the non-optimized developed in .
With the system controlled only by this robust controller, a step reference with 0.1m amplitude, was tracked without regime error; the rise time from 0 to 100% of the reference, in disturbance absence, was about 0.03s which corresponds to 0.16% of the rise time obtained by the non-controlled system; the settling time for (± 5%) was 0.17s, so, it was reduced to 1.36% of the time obtained with the non-controlled system; the overshoot was 22.4% and the control signal generated to track this reference signal, surpassed the actuator saturation levels. Therefore, with respect to the reference tracking, the controller could not satisfy two performance criteria established, because the overshoot was higher than 10% of the reference signal and some control signals produced, extrapolates the servo actuator saturation levels. Figures 6 and 7 show the system response when controlled only by this LQG/LTR robust controller.
With a null reference, a 0,01m step disturbance was injected in the system. The time required for the system to reject this disturbance using only the robust controller, was approximately 0.17s; what represents a 98.67% time reduction when compared to non-controlled system exposed to the same situation; The response signal maximum amplitude was 17.89% of the disturbance amplitude; the control signal varied within the levels of the servo actuator saturation. So in disturbance rejection, with null reference, the robust controller met all performance requirements described, as could be seen on figures 8 and 9.
It was also evaluated the system response, only with the robust controller, to a square wave reference with 0.1m peak to peak, 0.015Hz frequency and 100s duration. The system tracked this reference without regime error, the rise time and the settling time satisfied the performance specifications, but, again, as was expected, the control signal exceeded the actuator saturation limits and the overshoot exceeded the maximum stated in performance criteria, as could be seen on figures 10 and 11.
Finally, the system, only with the robust controller, was tested on tracking a step reference in the presence of uniformly distributed white noise with 0.02m peak to peak. Figures 12 and 13 show the system response and the control signal applied to the plant in this situation.
Comparing those results with the first shown, it is concluded that the rise time and the settling time were the same for both situations. In the white noise presence, the system showed a slightly higher overshoot, 23.4%, what is unsatisfactory according to the performance criteria, as well as the control signal applied that extrapolates the actuator saturation limits. So, as expected, in both cases the same performance requirements were not satisfied.
Therefore, those requirements should be met by the fuzzy controller and the supervisor must properly combine those two controllers to meet all performance criteria.
4. Fuzzy control
Fuzzy controllers are those that make use of fuzzy logic, which is based on the fuzzy sets' theory. This theory was developed by Zadeh in 1965 , to deal with the vague aspect of information through the mathematical representation of expressions commonly used by humans, also called linguistic variables, which give a not exact value to a variable characteristic of the object under observation.
Fuzzy logic attaches to a statement, not the value 'true' or 'false', but a veracity degree within a numeric range.
Due to its ability to handle uncertainty and imprecision, fuzzy logic has been characterized as one of the current technologies for the successful development of systems to control sophisticated processes, enabling the use of simple controllers to satisfy complex design requirements, even when the model of the system to be controlled has uncertainties [8-14].
The greatest difficulty in creating fuzzy systems is the definition of linguistic terms and rules. One way to solve this problem is to use hybrid approaches as models called neuro-fuzzy. In a neuro-fuzzy system those parameters are learned with the presentation of training pairs (input, desired output) to a neural network whose nodes basically computes intersection and union operators [15-18]. Another hybrid approach that allows the parameters tuning for fuzzy systems, consists in the use of genetic algorithms .
A satisfactory definition of the number of membership functions and the degree of overlap between them is fundamental when implementing a fuzzy controller. It directly influences on the next stage, called inference .
The inference uses a set of rules that describe the dependence between the linguistic variables of input and output functions. This relationship is usually determined heuristically and consists of two steps: aggregation, when evaluating the ‘if’ part of each rule, through the operator "and fuzzy," and the composition stage, using the operator "or fuzzy" to considering the different conclusions of the active rules [20, 21].
After the inference from the action to be taken, the classical fuzzy models require a decoding of the linguistic value for the numeric variable output, called defuzzification. This output can represent functions such as adjusting the position of a button, or provide voltage to a particular motor.
The Takagi Sugeno fuzzy controllers do not need a defuzzification step, because they obtain this precise equivalence directly [9, 19]. Therefore they were used to compound the fuzzy hierarchical controller.
For the design and optimization of the fuzzy logic controller it was used the nonlinear model of the physical system, as this model provides a more accurate representation of it.
All available knowledge about the system being controlled is of fundamental importance for the initial stage of designing a fuzzy controller, therefore, knowing the geometrical characteristics, the dynamics and any system particularity, can significantly reduce the project effort . The fuzzy logic controller used has the following structure: Two inputs, which are: the tracking error (the difference between the reference and the system output) and its derivative; an output which is the control signal. For the output variable composition 25 first-order Sugeno functions are used; five linguistic variables were defined for each input variable: Negative Big, Negative Small, Zero, Positive Small and Positive Big; Triangular membership functions were chosen for the input variables; The probabilistic t-norm and t-conorm operators were chosen; The rule base is composed by 25 rules. For each rule there is a Sugeno output function; For the inference procedure, the Sugeno interpolation model was chosen.
The tuning of this fuzzy controller was made by a genetic algorithm. This algorithm is based on the laws of natural selection and evolution. It searches to an optimal solution in the space of solutions given by the designer, using probabilistic rules for combining solutions in order to improve their quality. It is therefore an efficient search strategy that can be used in optimization or classification problems [22-25].
In the fuzzy controller’s optimization, each individual is formed by 70 genes. The first 20 genes represent the input membership functions. The 50 subsequent genes describe the coefficients of the Sugeno output functions, and. Those functions are given by:
Where: is the error.
With the use of genetic algorithms for tuning of all parameters of fuzzy controller, the designer's task is to limit the search space of GA and find a good setting of its parameters, in order to obtain the desired results.
The determination of the limits of the search spaces for the fuzzy controller optimization was based on the results obtained in  and in several tests. The population size, the percentage of mutation and the stopping criteria were also determined from several tests.
To obtain the results that will be shown, a square wave was used as reference, allowing a good fit to the fuzzy controller for several references. The genetic algorithm configuration was: population of 30 individuals, all children were generated by recombination with mutation probability of 5% for each gene; the roulette method was used on selection step. The stopping criteria were: maximum number of iterations equal to 100, repeating the best individual for 25% of the generations’ maximum number, maintaining the average fitness of the population for 10% of the generations’ maximum number and mean square error of 10-5.
For the evaluation of each individual the control of the nonlinear system using only the fuzzy controller, was simulated during 100s. The evaluation function used for this controller tuning, was:
Where: the "
Higher weights were given to the mean square error and to the rise times because it was observed that they had a lower representation in the evaluation function, than the settling time and the peaks of the control signals above actuator's saturation. Thus allowing to the genetic algorithm, the search for a tune that provides not only short settling times through low control signals, but also small rise times, and that the system does not presents regime errors. Lower weights were given for the settling times and the overshoots, to allow the search for fuzzy controllers that give the system a higher speed.
Two search spaces were defined for output functions' coefficients determination: one from 0 to 100, for the coefficients of the functions associated with rules that involve in its antecedent the linguistic variables negative big or positive big, and another from 0 to 60 to the coefficients of the other functions. The independent terms of output functions were not optimized and were always made equal to zero. The output functions obtained after the tuning can be seen in Table 1.
|Function name||Parameters [t s]|
Table 2 shows the fuzzy controller rule base.
The control of the electromechanical system made only by the optimized fuzzy controller, presented a poor performance in tracking a 0.1m amplitude step reference, in disturbance absence. The overshoot presented was out of performance specifications (30.60%), and the settling time was almost equal to the uncontrolled system settling time (11.09s). However, the system showed no error at steady state, the rise time was satisfactory, 0.22 s, and the control signal produced was far below the actuator saturation, allowing the use of this controller in the hierarchical control scheme, as a supplier of control signals applicable in situations of great error, where the signals produced by the robust controller extrapolate the servo-actuator saturation. Those results are shown in figures 16 and 17.
In the rejection of a 0.01m amplitude step disturbance with the null reference, the system response with the fuzzy controller was also unsatisfactory, because its amplitude exceeded in 21% the disturbance amplitude, and it took about 2.01s to reject it, far above the 0.64s, established as a goal. Figures 18 and 19 show the system response and the control signal for this case.
It was also evaluated the system response on a square wave reference tracking in the absence of disturbances and using only the fuzzy controller. As can be seen in figures 20 and 21 the system tracked the reference without regime error, the rise times were acceptable, but the settling times were greater than desirable, moreover, the overshoot and the control signal extrapolated performance specifications. But the fuzzy controller's peak signal was much lower than the robust one.
From these results, it can be concluded that the function of the fuzzy controller is to bring the plant to a situation that favors the use of the robust controller, avoiding the extrapolation of control signal limits.
5. Fuzzy supervisor
The multiple controllers’ fusion seeks to achieve higher performance than those obtained using only one controller.
The supervisor's task is to find an ideal combination of control signals generated by the controllers designed, in such way that this combination compose the control signal which will effectively act on the plant. To do this, the supervisor evaluates the operating condition in each instant, and then determines an importance hierarchy of each control signal. Therefore, in addition to control signals generated by the controllers, the supervisor must also receive information that enables to evaluate the operating condition at all instants, and then, based on this evaluation, the supervisor will sort, hierarchically, the outputs of the controllers, compounding then the control signal that will act on the plant. This hierarchy is the level of importance associated by the supervisor to each controller in every operating condition. It defines the participation of each controller in the control signal that will be applied on the plant.
The fuzzy supervisor used was a Takagi-Sugeno system with: two inputs, which are the same used in the fuzzy controller; 3 linguistic variables (negative, zero and positive), which are represented by trapezoidal membership functions; two output functions, which are zero order functions.
Figure 22 illustrates the architecture used for the control signals fusion via hierarchical fuzzy supervisor.
From the difference between a reference signal, specified by the operator, and the vertical position of the bar's free end, measured by a sensor, it is produced an error signal. With this error signal, the robust controller determines its control action, trying to correct the vertical position of the bar's free end. The fuzzy controller also provides a control signal in an attempt to eliminate the tracking error; for this, it needs this error signal and its derivative. The control signal which actually will act on the plant will be the weighted sum of signals produced by the controllers. The degree of participation of each control action is determined by the supervisor, which uses as well as the fuzzy controller, the error information and its derivative. According to the control signal, the servo-actuator will provide vertical displacements to bar's center, to correct the tracking error.
|Function name||Parameters [e(t) de(t)/d(t) 1]x[t s 1]T|
|LTR||[0 0 0]|
|FUZ||[0 0 1]|
So, when supervisor output is null, only the robust controller will actuate on the plant, when supervisor output is equal to one, only the fuzzy controller will actuate, for intermediate outputs a combination of those controllers' signals will be applied on the plant.
The supervisor's input membership functions were tuned by a genetic algorithm using the square wave reference and the two controllers. Its evaluation function is given by:
There was no need to give greater weight to the mean square error and to the rise times, as was done for the tuning of the fuzzy controller, because from some tunings, the settling time and the overshoot became very small. The reduction of all performance descriptors along the supervisor tuning was so high that it was necessary to assign lower weights to control signals peaks above the saturation of the servo actuator, to avoid favoring a performance criterion and neglect others.
As mentioned the results obtained with the optimized hierarchical fuzzy controller will be compared with the ones obtained by the non-optimized one (presented in ). On tracking a 0.1m amplitude step reference, the optimized hierarchical fuzzy controller has satisfied all performance criteria established and presented a more rapid response than the system controlled by the non-optimized hierarchical fuzzy controller. The rise time from 0 to 100% of the reference was approximately 0.22s, which is half the one obtained in . The overshoot was 3.9% in  it was 7%. The settling time for (± 5%) was 0.22s, less than half that was obtained in . The control signal generated by the optimized hierarchical fuzzy controller to track this reference had lower levels than the ones generated by the non-optimized hierarchical fuzzy controller. The optimized hierarchical fuzzy controller has used the fuzzy controller for less time, it is because the optimized fuzzy controller provide a faster response than the designed in . Also the transition between controllers was softer with the optimized system. Figures 25, 26 and 27 shows the results obtained with those two structures on the reference tracking in disturbances absence.
The performance of the optimized HFC was tested on a step reference tracking, in the presence of white noise with 0.02m peak to peak. Figures 28 and 29 show, again, the best performance of the system controlled by the optimized HFC.
To finalize the comparisons, the system was tested on tracking a square wave reference. As expected, a better performance was obtained using the optimized HFC.
As could be seen on Figure 31, both hierarchical controllers extrapolated the actuator saturation limits, as it was punctual the use of a saturator may not affect the system performance.
Again the optimized supervisor has used less the fuzzy controller than the non-optimized supervisor.
One of the main advantages of hierarchical control is to combine different techniques. It allows the supervisor to take the best of each technique.
The results showed the advantages of using genetic algorithms, such as: making automatic tuning of fuzzy components of the HFC, greatly simplifying the design and allowing the obtaining of optimal controllers and supervisors, which is impossible via manual tuning.
As can be seen, the controllers were designed, relaxing some conflicting performance criteria: on the robust controller design the efforts were concentrated to obtain a rapid response and a rapid accommodation, in tracking references and in disturbance rejection, not worrying about the control signal amplitude, for references tracking. In fuzzy controller design the efforts were concentrated to obtain a rapid response and smaller control signals, but no major requirements for rapid accommodation, which had already been achieved by the robust controller; this way all performance requirements were satisfied through the use of the hierarchical fuzzy controller.
With the use of hierarchical control, the controller design becomes simpler because they are more specific, they do not have to meet conflicting performance criteria.
As a suggestion for future projects can be verified: other control techniques for vibration suppression and tracking reference; new ways to optimize the components of HFC; using more controllers in the composition of HFC; other methods for supervisor project; a better configuration of the proposed genetic algorithms.