A Finite-Time Control Design for the Discrete-Time Chaotic Logistic Equations

: Finite-time control theory has been widely used as a mathematical tool to design robust controllers. By manipulating the finite-time convergence proof of this theory, we developed a new control design appropriately tuned for the finite-time control of the chaotic logistics system. In this experimental setup, the logistic equation is programmed into a PIC microcontroller


Introduction
Finite-time control theory is a well-established method used to develop robust controllers applied to dynamical systems [1,2].An important feature of the finite-time control approach is its ability to guarantee the existence of a finite time within which the trajectories of the closed-loop system reach an equilibrium point [3].This control approach was originally conceived in the continuous-time domain [1][2][3], although there are some contributions to the topic in the discrete-time domain [4,5].However, if we want to design a mixed combination of digital and analog controllers, we can use the continuous-time domain framework for control design and then translate it to the discrete-time frame.For instance, the forward Euler method links both domains, the discrete and the continuous.We follow this idea to develop a mixed analog-discrete and finite-time controller for the chaotic logistic equation.In experimentation, the chaotic logistic system is implemented into a PIC microcontroller, the PIC16F84A.This microcontroller has been used for a long time.It may sometimes be considered obsolete, but it is still useful.We invoke the chaotic logistic equation because it is a good reference for control design of chaotic systems and their applications [6,7].Furthermore, the control of chaotic systems is an important research topic due to its possible applications, such as the synchronization of chaotic systems and the control of nonlinear systems in chaotic behavior, etc. [8][9][10].This is because chaotic systems are nonlinear deterministic systems that exhibit complex and unpredictable behavior.Therefore, our main objective and contribution is the design of a new finite-time controller for the chaotic logistic equation using analog and discrete-time algorithms, including experimentation by utilizing a low-cost microcontroller unit and analog electronics.This we carried out to validate our main contribution.To the best of the authors' knowledge, this type of electronic control and instrumentation design is novel.Lyapunov's theory is employed to confirm our closed-loop stability in finite time.Pulse-width modulation (PWM) is employed as a digital-to-analog conversion element.
The rest of this document is structured as follows.Section 2 describes our main results of the finite-time stability of continuous systems.Our main contribution to control design is also given.Section 3 is briefly describes the chaotic logistic equation.Sections 4 and 5 show the designed experimental platform and realization of control, and the experimental results are shown.Finally, Section 6 gives our closing remarks.

Finite-Time Stability
Hereafter, we will concentrate our discussion on scalar non-linear and time-invariant systems.Global finite-time stability consists of any solution to the systems for x(0) ̸ = 0 and given by ( the dot notation means ( where f : R → R is a continuous function, and it is assumed that f (0) = 0 is the unique equilibrium point of the system, reaching its equilibrium point in finite-time [1].Therefore, a settling-time function depends on the system's initial condition [11].We then obtain the next result [11]: Theorem 1.Let the system's origin (1) be its unique equilibrium point.The origin is globally finite-time stable if for all x ∈ R \ {0}, we have x 2 is its Lyapunov function, and the corresponding settling-time function, T 0 (x), is given by T 0 (x) = The above Theorem is also true if v(x) < −a|v(t)| b ; a, b ∈ R >0 , and b ∈ (0, 1) [11].Using the above Theorem, we have our main contribution as a corollary to this theorem: Corollary 1.Let the system's origin (1) be its unique equilibrium point.The origin is globally finite-time stable if for all x ∈ R \ {0}, we have where v(x) is its Lyapunov function, and the corresponding settling-time function, T 0 (x), is given by T

Chaotic Logistic Equation
A one-dimensional chaotic logistic equation or chaotic logistic map can be represented as [7] where r is the system's parameter.Hereafter, we set r = 3.6.A sample of the chaotic trajectory using z(0) = 0.5 is shown in Figure 1, where a line joins each data point generated by the logistic map.Finally, we recall that the logistic system's discrete solution is inside the open interval between zero and one.

Control Design and Experimentation
This section is dedicated to obtaining a continuous-time dynamic model of the logistic map based on the forward Euler method.As an initial step, let us add the control input u(k) as follows: The above expression can be re-written as (h = 1): Then, and according to the Euler's forward method, we obtain where the parameter h is the step integration.We conclude that a feasible model for the control design of the logistic map may be Linearization of the above system around the origin equilibrium point of the nonactuated system yields Given the Lyapunov function v(x) = 1 2 x 2 , and using We obtain that v(t) = − √ 2v 1/2 (t).This concludes that the closed-loop linearized systems (7) and ( 8) are globally finite-time stable.Here, sgn(x) = 1 for x > 0, sgn(x) = −1 for x < 0, and sgn(x) = 0 for x = 0. Figure 2 shows a picture of the obtained control algorithm.On the other hand, if we select v From the above Corollary 1, we conclude that the closed-loop linearized system ( 7)-( 9) is globally finite-time stable too.We observe that both controllers ( 8) and ( 9) are too similar.
For chaotic logistic experimental realization, we will use PWM (pulse-width modulation).This is a technique for obtaining analog results with digital means.This is a well-known technique in electronics.However, a general description of a pulse-width modulation signal, a type of digital signal, can be summarized as follows.In a typical PWM signal, the base period (T) is fixed, while the pulse width (D) is manipulable by the user (see Figure 3).Hence, for example, a 50% duty cycle (D = 0.5) means that the PWM output is high for half the period and zero for the remaining part.Hence, D belongs to the open interval from zero to 1.If we want to implement the chaotic logistic map into a PIC microcontroller of 8 bits, e.g., the PIC16F84A microcontroller, the PWM duty cycle should be from "0" to "255" digital count.Hence, we are required to scale the logistic equation using the following scale transformation x(k) = K z(k), K ∈ R + , yielding Therefore, in our case, we have K = 255.After that, we have to add the control input: Hence, our PWM duty cycle will be x(k), and the PWM period will be the count of a value bigger than 255.In programming, we use 258.Additionally, x(k) ∈ [0, 255].As mentioned above, the duty cycle of PWM lies between the open range of zero to one.Because we are using an 8-bit microcontroller, this duty cycle is mapped to the open interval between zero and 256, see Chapter 6 in [12].This PMW signal is then sent out of the microcontroller unit followed by an RC low-pass filter (see Figure 4).The comparator used in the given circuit through an operational amplifier is an analog-to-digital conversion stage before feedback to the microcontroller.The reference of 2.5 V given by the trimmer P 1 is due to the logical threshold level between the 0 and 1 logical values corresponding to 0 V and 5 V, respectively.In this way, the average value at the output of this comparator corresponds to the analog value of V a := v a (t) ( the notations : and = mean defined as ) seen by the microcontroller.A photo of the experimental platform is shown in Figure 5.To conclude this section, and due to the used PMW format and the fact the initial and the solution to the chaotic map equation presents positive solutions, from the control law given (8) (or ( 9)), we can observe that this control action has a negative derivative for the system's output signal.Therefore, using digital programming in the microcontroller unit, u = u + 1 ( the programming line means that the content of register u is increased by one) or u = u − 1 ( the programming line means that the content of register u is decreased by one) means positive or negative control variation for the digital control signal to the logistic system, respectively, as shown in Figure 6.In this way, if the time activation of u + (u = u + 1) is less than the time activation of u − (u = u − 1), this indicates negative feedback and the asymptotic stability of the closed-loop system.Related to the programming setting u = u + 1 or u = u − 1, in mathematical format, these are equivalent to u(k + 1) = u(k) + 1 and u(k + 1) = u(k) − 1, respectively.

Experimental Results and Discussion
This section is dedicated to experimental results and discussions on the main contribution of this paper.Using the program displayed in Figure 6, Figure 7 shows the expected result.On the other hand, if the locations of u + and u − are exchanged, we expect the closed-loop system to be unstable.This is the case shown in Figure 8.On the other hand, the most obvious question is why u + = 0(u = 0) is not the case.This is the experimental result shown in Figure 9. Once again, if we exchange the control location as before, we expect that the closed-loop system will be unstable.This is shown in Figure 10.Closed−loop response V a (t) using an stable controller.The horizontal axis presents seconds.At point "A", the experimental platform is activated for the uncontrolled logistic map, and at point "B", the control algorithm is set to 'on'.Here, u + = 0, showing stability.
Figure 10.Closed-loop response V a (t) using an unstable controller.The horizontal axis presents seconds.At point "A", the experimental platform is activated for the uncontrolled logistic map, and at point "B", the control algorithm is set to 'on', as in Figure 8, but with u + = 0.
For the stable closed−loop system, it is observed that the finite-time convergence is about 2.5 s.Before the control action, we can see that the system response is bounded, as expected, as shown in Figures 7 and 9. On the other hand, realizing a chaotic system or enhancing it is a form of control design named "anti-control" or "chaotification" of dynamical systems [13].It is an important topic in secure communication based on chaotic signals [13].If we observe the unstable closed-loop system, as shown in Figures 8 and 10, it seems that the unstable control design of our system improves the chaoticity of the system.Therefore, our future work consists of improvement of the logistic map and achieving a secure communication system based on chaotic signals via the synchronization method.
Additionally, in comparison to the chaotic circuit using a microcontroller presented in [14], our design is simpler because we use a few microcontroller pins to produce an analogical chaotic signal.Finite-time convergence of controlled dynamical systems has been studied for several years.Recently, some new contributions have been made.For instance, by using the super-twisting algorithm [15] in combination with a proportionalintegral controller along with an exponent gain observer, a new sliding-mode control design for neutral-point-clamped power converters was proposed in [16].In [17], the authors designed a bilateral continuous finite-time adaptive terminal sliding-mode controller for a teleoperation system.In [18], a new finite-time sliding-mode control algorithm was reported.One way or another, in all the cited references, the signum function is presented in mathematical development to ensure finite-time convergence and the robustness of closed-loop systems.We have also used it.

Conclusions
This article presents some background on finite-time stability and the application of it to stabilize the chaotic logistic map.In our control realization, we have also developed a novel and low-cost experimental platform for practicing academic control theory and digital and analog electronics.Another important point to conclude is that when observing the behavior of the unstable system, it seems to present better random behavior than the uncontrolled case.Finally, to the best of the authors' knowledge, the control of logistics maps using analog electronics and nonlinear control design theory is a recent development.

Figure 1 .
Figure 1.A chaotic trajectory generated by the logistic map using lines to join adjacent chaotic data.

Figure 2 .
Figure 2. A plot of the control law (8).

Figure 3 .
Figure 3. Format of a PWM signal.

Figure 4 .
Figure 4. Electronic circuit of the experimental platform.A computer reads the voltage V a := V a (t) via a digital oscilloscope.This value corresponds to the analog version of x(k).The LED receives the microcontroller's clock operation and is used here to visualize that this unit is working.The switch SW is employed to reset the PIC unit.The entire system operates on a single supply voltage of 5 volts.SW is the reset switch of the microcontroller.Finally, the red arrows indicate the trajectory of the closed-loop system.

Figure 5 .
Figure 5.A photo of the experimental platform.

Figure 6 .
Figure 6.PIC program.The input feedback signal is at pin RA1.The value of 258 is to set the base period of the PWM signal.

Figure 7 .
Figure 7. Closed−loop response V a (t) using a stable controller.The horizontal axis presents seconds.At point "A", the experimental platform is activated for the uncontrolled logistic map, and at point "B", the control algorithm is activated.

Figure 8 .
Figure 8. Closed−loop response V a (t) using an unstable controller.The horizontal axis presents seconds.At point "A", the experimental platform is activated for the uncontrolled logistic map, and at point "B", the control algorithm is set to 'on'.Here, u + and u − are exchanged, showing instability.

Figure 9 .
Figure 9. Closed−loop response V a (t) using an stable controller.The horizontal axis presents seconds.At point "A", the experimental platform is activated for the uncontrolled logistic map, and at point "B", the control algorithm is set to 'on'.Here, u + = 0, showing stability.