Matlab-Simulink-Based Compound Model Reference Adaptive Control for DC Motor

The objective of this chapter is to develop a compoundModel Reference Adaptive Control (MRAC) of the dc motor by using the Matlab/Simulink software. The purpose of the chapter is to serve as a tutorial for the students or researchers in the field correlating step by step the presented theory with the Matlab/Simulink programming environment. The supraunitary relative degree model reference adaptive control is proposed as a solution to the parameters variation of the electric drives. The numerical simulation results confirm the robustness of the proposed solution at unmodelled dynamics or parameter variation of the process. The conventional control of the dc drive based on the cascaded loops is also treated in this chapter.


Introduction
The conventional control of the dc motor supposes the use of the modulus and symmetric criteria, adapted to the fast processes (Kessler variant), by the optimum choosing of the tuning parameters of the corresponding controllers. Therefore, the cascaded control loops are the most appropriate choice for the conventional dc drive system. The advantages of using the conventional drive are: the complex process is divided into simple subprocesses having only one significant time constant compensated by an independent controller; it assures the minimum time response; thanks to the feedback path of the control loop, the stability of the dc drive system is maintained; the null steady state error; the fast compensation of the dc drive perturbations.
The main disadvantage of the conventional control is its inadaptability to the parameters variations of the processes. Taking into account that the normal operation of the processes is assured through the electric motors, the values of the electric parameters are not constant. It is well-known that the parameters of the controllers depend on the parameters of the process. Therefore, a change of the process parameters conducts to the deterioration of the drive system performances. Moreover, the uncertainness of the parameters and the structural mismatch of the processes are the main barriers of avoiding the use of the conventional control. In these particular cases the conventional control, even the robust control is inefficient due to the invariance of the controller parameters. An adaptive control is desired in order to maintain the imposed performances on the electric drive. Consequently, an additional adaptive loop is inserted to the conventional feedback system. The purpose of inserting the adaptive loop is to update the controller parameters related to the parameter variations of the process or to the modified structure of the physical process. According to the exogenous variation (reference and perturbation), the adaptive mechanism of the regulation part is performed by the minimization of the specific performance criterion. The result of the designed regulation algorithm consists of a new set of the controller parameters. The closed loop adaptive systems (widely spread) assure the appropriate control correlation with the process uncertainness (modified parameters or structure). The adaptive loop delivers the real time control based on the designed on-line controller.
The signals in Figure 1 are defined as follows: r-the reference signal; y m -the output signal of the reference model; u-the adaptive control; y-the output of the process (the measurable signals); e 0 -the tracking error vector; θ pthe parameters of the process.
In this manner, the structural mismatch and the parametric uncertainness are compensated. In the mechatronic domain or the rolling mill the adaptive control is mandatory.
The name of the adaptive control structure comes from the use of the on-line parameters estimator. Based on it, the process parameters are provided by measuring the control, the process output and the tracking error. Taking into account the reference signal and the process parameters, the adaptive algorithm delivers the appropriate estimation of the control.
There are two types of the adaptive control structures [2]. The adaptive control can be in explicit (indirect) form or in implicit (direct) form. The indirect adaptive control delivers the estimation of the process parameters. The direct adaptive control delivers the estimation of the controller parameters.

Adaptive Robust Control Systems
In this chapter the adaptive control with supraunitary relative degree is introduced through the dc drive system.
The design procedure of the adaptive control is based on the strictly positive real (SPR) concept.
In order to attain the SPR condition, the equivalent transfer function should satisfy the following tasks: 1. strictly stable (the poles are situated in the left half plane of the complex space); 2. the relative degree must be 0 or 1;

3.
Re[H m (jω)] ≥ 0, for any ω > 0, i.e., the transfer function of the reference model, H m (s), should be minimum of phase (without dead time and zero situated in the right half plane).
The model reference adaptive control (MRAC) contains three aspects: 1. MRAC in simple form; 2. variable structure form; and 3. compound MRAC.
In order to obtain a perfect tracking, lim t!0 e 0 t ðÞ!0, the asymptotic limit of the tracking error vanishes, and the relative degree of the reference model should be greater or at least of the same order with the relative degree of the process:

Conventional dc drive system
In this Section the control methodology of the conventional dc drive system is presented.
The drive system consists of the full controlled dc motor connected to the load. At the high power, the controlled six pulses full bridge ac-dc power converter is involved; at the lowmedium power the full bridge dc-dc power converter connected in series with the uncontrolled ac-dc power rectifier is used. From the point of view of commutation, there is a substantial difference between the above presented solutions: while at low and medium power, the force commutation is used (based on the high frequency switching power transistors), at high power, the natural commutation is used (based on thyristors).
In order to design the conventional control for fast processes, the entire system should be modeled under certain assumptions:

Assumptions for mathematical modeling of the dc motor
The magnetizing flux is maintained at the rated value; the permeability of the ferromagnetic core is infinite; the unsaturated magnetic circuit is considered, a compensated dc motor is taken into consideration; there are auxiliaries poles; the brushes are situated on the neutral axis; and the brush droop voltage is neglected.

Assumptions for the ac-dc/dc-dc power converters
The uninterrupted conduction is taken into account (a high value for the additional armature inductance is designed), the conduction droop voltage on the power semiconductors and the switching time are negligible.

Assumptions for the load
The load torque is considered as mathematical model of the process, the load is reduced appropriately to the dc motor shaft (by using both equivalent inertia moment and reduced equivalent speed by taking into account the specific transmission ratio).

Assumption for the conventional control
Taking into account that the mathematical model of the dc motor is of the second order, the two state variables are deducted (armature current, i A , and the speed, ω m ). The mathematical model is characterized by two different time constants: T m >>T A (the electromechanical time constant, T m , is greater with one order than the electromagnetic ones, T A ). This conclusion leads to the cascaded control with two loops: the armature current loop (the inner loop), and the angular velocity (the outer loop). By considering that the angular velocity should be controlled and the armature current should be limited at the maximum value, the angular velocity is the dc motor output. Taking into account that the dc motor is supplied by the six pulses ac-dc full bridge power converter, the modulus criterion is applied for tuning inner loop, and the symmetrical optimum for the outer loop (Kessler variant). The adequate operational block diagram is deducted according to Figure 2.
The dc drive is constituted by two parts: the power and the control. A unified [0, 10]V voltage system is taken into account with respect to the control part. Therefore, for the maximum value of 10 V the maximum allowable speed at the rated flux is obtained (i.e., n* = 1,2 n r , by taken into consideration the 20% speed overshoot introduced by the Kessler criterion).
It is well-known that the symmetrical criterion supposes the ramp reference for the speed loop. In order to transform the step reference analogue signal from the potentiometer into ramp signal, an adequate filter has been designed with the following transfer function: Figure 2. The conventional control of the dc drive.

Adaptive Robust Control Systems
where T Fn is the time constant of the speed transducer.
The corresponding Simulink block diagram is shown below in Figure 3.
The control design procedure starts with the armature current loop design (inner loop). The imposed performances for the inner closed loop are: I. the steady state regime: a. null steady state error ε st =0; b. the rejection of the perturbation influence (load torque is the main perturbation).
II. the dynamic regime: a. current overshoot, σ = 4.3%; b. response time depends on the cutting frequency of the loop: t r = 2.35/ω cI ; c. phase margin of the current loop: γ =63 26 0 .
In order to satisfy the above mentioned performances the modulus criterion is used. The Kessler criterion guarantees of the above mentioned performances on condition that the open loop transfer function of the inner loop has the form: where, T ΣIthe parasitic time constant of the current loop is considerably lower than the armature time constant: in which T FI is the current filter time constant, and T TI is the current transducer time constant.
According to modulus criterion, the Proportional Integral (PI) controller is suitable to control the armature current: with the appropriately controller parameters: Eq. (8) contains the mathematical model of the dc-dc power converter: and the attenuation factor of the current transducer (obtained by imposing the time response of the current loop) has the form: The closed loop armature current transfer function is as follows: The equivalent block diagram of the dc drive system is shown in Figure 4.
Taking into account the reduced block diagram of the dc drive system (Figure 4), the symmetrical optimum criterion could be applied.
According to symmetrical optimum criterion, by using the following open loop transfer function (Kessler) the required performances of the closed loop system are attained:   (Figure 4) with the imposed open loop transfer function (11), the PI speed controller is obtained: Moreover, the following speed controller parameters are obtained: In order to well understand the tuning procedure of the speed controller, the additional parameters are provided: The numerical implementation of the dc drive system is based on the Simulink block diagram shown in Figure 5. By considering a dc motor with the following nameplate data: rated power P r =5.1kW ,the maximum armature voltage U r = 440 V, the nominal armature current I Ar =1 7 . 8A ,t h e reduced moment of inertia J =0 . 0 2k g m 2 ,t h ev i s c o u sf o r c eF v = 0.0006 Nms/rad, rated speed n r = 2700 rpm, the simulation results are obtained (Figure 6a-d). The motor data can be obtained based on the nameplate values by using the detailed Matlab software provided in [3].  Figure 6a contains the obtained armature voltage of the dc motor. The armature current varies according to Figure 6b, the speed varies as in Figure 6c under rated value of the load torque T l = 22.8 Nm (Figure 6d). The load torque is applied at t = 0.5 s.

Adaptive control
There are three assumptions available [4,5]: the mathematical model of the process is linear, strictly proper and of minimum phase, having the supraunitary relative degree n * p =2n * p ¼ 2; the reference model has the relative degree greater than one (n * m = 2), is stable and of minimum phase; the reference signal should be bounded limit, being a continuous function. The second order mathematical model of the dc motor is used in this chapter. This supposes the transfer function of the process has the form:

Adaptive Robust Control Systems
At the same time, the pole excess is known: Taking into account that the relative degree of the process is supraunitary, the second order of the reference model is chosen, n* m = n* p .
Due to the supraunitary relative degree, the strictly real positive condition for the reference model cannot be accomplished. This condition that the tracking error differs from the identification error [2][3][4][5][6] implies, in this case, the use of the augmented error.
The augmented error depends on the gain factor knowing.

The case of knowing only the sign of k p factor
In order to obtain a stable system the following signals vector is inserted: The dynamic filters (Λ, h) are placed on the command v u and on the output of the process v yp : The solution of the dynamical filter is implemented in Matlab as in Figure 7 (applied only for the first equation).
The (Λ, h) pair is chosen in controllable canonical form, Λ ∈ ℜ (n p À 1) Â (n p À 1) , h ∈ ℜ n p , such that: in which: λ 1 (s) is an arbitrary Hurwitz polynomial having the degree [7]: , The v 1 , ξ 1 ∈ ℜ 2n p À 1 are defined as follows: The auxiliary error is computed on-line: where: ξ t ðÞ¼L À1 s ðÞv t ðÞ ½ : The augmented error is defined as: and the on-line gradient adjustable parameter K 1 depends only by the augmented error: 3.2. The parametric adjustment laws for the compound adaptive control

Deduction of the variable structure parameter θ v
The parameter θ v can be deducted by using the following [2]: The block diagram of obtaining the augmented error is depicted in Figure 8, in which Φ is the vector of the parameter estimation errors The vector of the parameter θ is obtained by using the compound structure: θ = θ g + θ v.
In the adaptive control, there is a commutation function; usually the signum function conducts toward a sliding mode regime such that the evolution to the equilibrium point is very fast. Therefore, the compound adaptive law is used: The adaptive control provides robust characteristics to external disturbances and to unmodelled dynamics.

The stability of the solution
The perturbation of the dc drive system can leads to the instability of the system. The signals in the variable structure law are bounded. Therefore, the adaptive control assures a global stability [4].

Numerical simulation results
Taken into account the dc machine from the conventional control, operating at the constant flux, a speed cycle is applied in order to test the compound adaptive control. The speed cycle contains the dynamic regimes (starting, braking, reversing) and the steady state regime (Figures 9-22).            . The adaptive mechanism of the parameter vector θ obtained by using the compound structure: θ pg gradientprocess output.

Conclusions
The conventional control and the compound adaptive control have been investigated by using a dc drive system. The complete methodology of tuning the controller parameters for the conventional control is provided. Under the assumptions mentioned in this chapter, the dc drive system has been implemented in Matlab-Simulink software. The adequate numerical simulation results have been obtained (Figure 6) for. Therefore, the regulation capability of the PI controller is tested under a variation of the load torque for a starting. Both, the dynamic and steady state regimes are investigated. In Figure 6b, the maximum load torque of the dc motor is used for a starting under the 70% load conditions. The maximum limit is maintained during the dynamic regime, the torque decreases in steady state due to the armature current decreasing. The constant parameter values have been considered. In case of the gradient and variable structure laws, the adaptive system is more robust to parameter uncertain or to unmodelled dynamics of the dc drive, and the increased regulation performances are obtained. The supraunitary relative degree model reference adaptive control has been considered.