Nonlinear Electrical Circuit Oscillator Control Based on Backstepping Method : A Genetic Algorithm Approach

This paper investigated study of dynamics of nonlinear electrical circuit by means of modern nonlinear techniques and the control of a class of chaotic system by using backstepping method based on Lyapunov function. The behavior of such nonlinear system when they are under the influence of external sinusoidal disturbances with unknown amplitudes has been considered. The objective is to analyze the performance of this system at different amplitudes of disturbances. We illustrate the proposed approach for controlling duffing oscillator problem to stabilize this system at the equilibrium point. Also Genetic Algorithm method GA for computing the parameters of controller has been used. GA can be successfully applied to achieve a better controller. Simulation results have shown the effectiveness of the proposed method.


Introduction
During the past years, many people have assigned a lot of endeavor in both theoretical research and implementation techniques fields to study nonlinear control problems.The chaotic dynamic systems can be observed in many nonlinear circuits and mechanical systems.Recently, more knowledge is obtained about the nature of chaos and number of possible applications of chaotic system increases, and scientific interests are directed to problem of controlling a chaotic system 1, 2 .Control of the chaotic dynamical systems has been a significant research topic in physics, mathematics, and engineering communities 3-8 ; however, some of them cannot gain desirable control performance, and some of them need consumedly complex design methods.The backstepping method is a technique for stabilizing control of a special class of nonlinear dynamical systems that has been developed in 1990 by Petar V. Kokotovie and others.Lyapunov techniques have been proven to be the most efficient for investigating stability of equilibrium point.Asymptotic stability can be also used to show boundedness of the solutions even when the system has no equilibrium point.In this paper, a combination of the backstepping method and Lyapunov-based techniques is presented to yield a flexible controller.
In recent years, an optimization method called Genetic Algorithm has been introduced, due to the flexibility, versatility, and robustness in solving optimization problems.The main advantages of Genetic Algorithm are i fast convergence to near global optimum, ii super global searching capability in complicated search space, and iii applicability even when gradient information is not readily achievable 9 .In this work the Genetic Algorithms are applied to determine the optimal values of the parameters of the controller.
The organization of paper is as follows: in Section 2, the mathematical model of Duffing oscillator is presented.In Section 3, a flexible controller is designed that can be tailored to serve slightly target.In Section 4, Genetic Algorithm is used to give the best controller's parameters that need to be carefully chosen for obtaining the best performance.Finally, conclusions are presented in Section 5.

Mathematical Model of Electrical Circuit
A nonlinear electric circuit is shown in Figure 1 derived by a sinusoidal voltage source.The Duffing electrical oscillator consists of the linear resistor, in series with a sinusoidal source, and both of them are connected in parallel with a capacitor and a nonlinear inductor.According to 10 the nonlinear inductor has ferromagnetic core, which can be modeled, if an abstraction of the hysteresis phenomenon is made, by using i-ϕ nonlinear characteristic.Nonlinear inductance characteristics described by the following relation: where a 1 and a 3 are constants that depend on the type of the inductor 11 , and ϕ is the flux over inductor.The nonlinear differential equation of the circuit is given by where i r and i c are, respectively, the currents of the resistor and capacitor, and the voltage of the resistance and the inductor V R and V L is:

2.3
By substituting 2.1 and 2.3 in 2.2 , the following differential equation can be obtained: By setting t ω e τ, ϕ ϕ 0 x, ε 1/RCω e , ω 2 e a 1 /C, b 2 a 3 ϕ 2 0 /Cω e , u E 0 /Ra 1 ϕ 0 cos ωt, electrical circuit is described by the following equation: The following control law, u f x 1 , x 2 is proposed, where f is a nonlinear function that shall be found to stabilize the closed-loop system.The state space formulation is as follows:

2.6
And equilibrium points are, x 1 0, 1/b and x 2 0. The system dynamics near equilibrium points by using linearization techniques 12 are given by

2.7
Eigenvalue of resulting A is Since ε < 2, the origin equilibrium point will have complex conjugate eigenvalue with negative real parts indicating stable focus.The objective of this paper is to design a control law such that the origin is a globally stable equilibrium point and to force the system to approach the origin from any initial condition while exhibiting a satisfactory transient performance.In the following section, we introduce a strategy to design a nonlinear recursive control law.

Preliminary Controller Design
In this paper, the backstepping method is used such that the closed-loop system is stabilized in the origin.The second state of the system 2.6 x 2 is used as a virtual control signal for the system output x 1 .The following nonlinear dynamics will be considered for the desired virtual control signal 13 : where C 1 and C 2 are design parameters that must be carefully selected such that closed-loop system is stable.The nonlinear term C 2 introduces a nonlinear spring-like action.It should be chosen such that little effect for small output deviation, and a considerable effect when the deviation from the origin is large.The signal x 2d acts as a reference model for the system state x 2 , the difference between them will be derived to zero in a finite time.The virtual error is given by

3.2
By substituting 3.1 and 3.2 in 2.6 , new state-space presentation of system will be ẋ1 ė

3.3
The stability is investigated by using the Lyapunov second method.By introducing the following positive definite Lyapunov function as

3.5
If we have where C 3 is a design parameter, and the control law u is selected such that V is ensured to be negative definite.By using 3.2 and 3.7 , we have This can be rewritten in the following form: 3.9 The following control law is chosen

3.10
Because of the special dynamical structure of the system, the designed control u is causal and can be easily executed by careful choose of the design parameters.
The resulting closed-loop system by using this controller is given by

3.11
By substituting e ẏ C 1 y C 2 y 3 , ė −y − C 3 e in 3.11 , the output dynamics is

Choosing the Controller Parameters
With reference to 3.12 , there are no constraints on choosing the proposed design parameters C i > 0, i 1, 2, and 3.This lets us more flexibile in design criteria in transient behavior of the system for satisfying a certain performance criterion for the closed-loop system.However, when choosing the best values for the parameters, we should also consider the nonlinearities of the system that has been studied and the maximum control effort that can be used to avoid having a poor performance.To show this idea, a linear reference model is used by letting C 2 0 the closed-loop system can be made linear, but this will be on the expense of losing the useful cubic nonlinearity in 3.1 , which can be made a standard linear second-order system whose performance is characterized by two parameters: damping ratio ξ and natural damping frequency ω n .So we have Hence, there are more constraints on the choice of the remaining control parameters, C 1 and C 3 , depending on the required values of both ξ and ω n .Practical and simple solution to this problem is to try to pattern the behavior of the well-known PID controllers.Since the required equilibrium point is the origin, a PD controller is sufficient.By using 2.6 , 3.7 , and 3.10 , an explicit form for the control law is given by where u PD is the linear PD controller with K P x 1 −C 1 C 3 , and K D −C 1 − C 3 ε .u NL , is the nonlinear term that has a little effect provided that x i ≤ 1, i 1 and 2. For a given region of initial conditions, the control parameters can be chosen such that u PD will always dominate u NL , thus ensuring a self-corrective action that will add robustness to the control law design when the system dynamics are partially known.This will indeed be the case when the system operates near the origin, and the control law is smooth enough so not to inject sharp incursions in the system states 13 .

Simulation Results
In this section, we depict some simulation results by using different type of controllers in different disturbance conditions.
Figure 2 illustrates Duffing system without any disturbance.The origin has stable focus and the states after about 50 second converge to the zero with 2% tolerance.Now disturbance is applied to the system with amplitude 0.01, which is shown in Figure 3.  Phase portrait shows that the origin is stable focus, but the states have tolerance 4%.Then amplitude of disturbance increases to 0.1.Phase portrait has a little change to limit cycle, and we have periodical response, which is shown in Figure 4 simulations have been done for ε 0.18, b 1, initial conditions 1, 0 .Our controller has two sections, linear and nonlinear parts.The effect of disturbance and controller u PD , u NL is shown in Figure 5 for disturbance 0.1 when the controller     show the effects of nonlinear and linear controllers.Tolerance, settling time, rise time, and error have been decreased.Now, the amplitude of disturbance increases to 1, and the previous parameters of controller are applied to the system.This result is shown in Figure 6.This controller cannot force system's states to converge to origin and decrease tolerance.The result shows that the controller does not have a good ability to control disturbance with this parameters.We choose another parameters such that C 1 4, C 2 1, C 3 2.The result has been improved but is not satisfactory yet.This is shown in Figure 7.In the next section, we will see that the Genetic Algorithm can be employed for choosing appropriate parameters.

Genetic Algorithm
In this section, we propose a Genetic Algorithm optimization search to find the best parameters of controller.The terminology adopted in GAs contains many terms extracted from biology, suitably redefined to fit the algorithm context.Thus, GAs act on a set of artificial chromosomes, which are string of numbers, generally sequences of binary digits 0 and 1.If the objective function of the optimization has many arguments typically called control factors or decision variables , each string is partitioned in as many substrings of assigned lengths, one for each argument and correspondingly, we say that each chromosome is partitioned in artificial genes.The genes constitute the so-called genotype of chromosome, and the substrings, when decoded in real numbers, constitute its phenotype.
When the objective function is evaluated in a set of values of the control factors of chromosome, its value is called the fitness of chromosome.Thus, each chromosome gives rise to an exam solution to the problem in a set of values of its control factors.The GA search is done by constructing a consecutive of populations of chromosomes.The individuals of each population are the children of the previous population and the parents of the consecutive population.
The initial population is generated by randomly sampling the bits of all string.At each step, the new population gets by manipulating the strings of the old population in order to arrive at afresh population characterized by an increased mean fitness.This sequence continues until termination criterion is achieved.As for the natural selection, the string manipulation consists in selecting and mating pair of chromosomes in order to groom chromosomes of next population.This is done by repeatedly performing on the strings of the four fundamental operations of reproduction, crossover, replacement, and mutation, all based on random sampling 14 .
In this work, parameters of controller have been found by a Genetic Algorithm considers a population of 100 chromosomes.Each chromosome of the three genes, each coding one of the three parameters C 1 , C 2 , C 3 is made, and the fitness function is f 800 sum error 2 . 4.1 After optimization, the parameters of controller will be found as C 1 7.5209, C 2 1.6764, C 3 8.4173.Figure 8 shows the cost function after 10 iteration.Figure 9 shows that the results have been improved, and these parameters are the best one which there are to receive the goals.

Conclusion
Nonlinear control strategy was used for a nonlinear system which describes the dynamics of resistively Duffing oscillator.The study shows the effectiveness of the proposed technique for different amplitude of disturbance.The designed controller has two goals: first stabilizing the system and second decreasing the error.Usually a contradiction occurs if these two goals are to be achieved at the same time, but the designed controller resolves such contradiction by introducing a flexible set of controller parameters that adds more freedom in the design.
In absence of disturbance, the phase portrait is focus, then the amplitude of disturbance is increased, the phase portrait is converted to limit cycle, and the responses are periodic.
The controller includes two parts: linear and nonlinear.Pay attention that the nonlinear effect is weaker than linear effect, and when controller is used, there is tolerance 2%, and it runs to stability soon.

Figure 1 :
Figure 1: The electric circuit obeying to the Duffing equation.

Figure 6 : 2 .
Figure 6: The effects of linear, nonlinear, and disturbance with amplitude 1 a phase portrait, b states.
2 and 5 b-2 show the states with disturbance that causes increasing tolerance, and we have periodic response.Figures5 a- 3 and 5 b-2 show the states with nonlinear control.Unfortunately, it is seen that the nonlinear controller cannot decrease tolerance well, but it can decrease amplitude of tolerance.Figures5 a-