Abstract
This work introduces and studies the important properties of a special class of new symmetry-shifted olynomials (NSSG). Such polynomials have a symmetry property over the interval [−2, 0], with . An explicit formulation of an NSSG operational matrixwas constructed, which served as a powerful tool for obtaining the desired numerical solutions. Then, a modified direct computational algorithm was suggested for solving the controlled Duffing oscillator problem. The idea behind the proposed algorithm is based on using symmetry basis functions, which are important and have real-world applications in physics and engineering. The original controlled Duffing oscillator problem was transformed into a nonlinear quadratic programming problem. Finally, numerical experiments are presented to validate our theoretical results. The numerical results emphasize that the modified proposed approach reaches the desired value of the performance index, with a few computations and with the minimum order of the NSSG basis function when compared with the other existing method, which is an important factor to consider when choosing the appropriate method in other mathematical and engineering applications.
1. Introduction
Optimal control is a mathematically challenging and practically significant goal. They have been many successful practical applications in a wide range of disciplines, including engineering [1,2,3,4], physics [5,6] and fluid dynamics [7]. Recently, the controlled Duffing oscillator problem, which is known to describe many important oscillating phenomena in nonlinear engineering systems, has received considerable attention. The classical Duffing equation was introduced to study electronics [8], signal processing [9], fuzzy modeling and the adaptive control of uncertain chaotic systems [10,11]. Since most controlled Duffing oscillator problems cannot be solved explicitly, it is often necessary to resort to numerical techniques, which consist of appropriate combinations of numbers numerical and optimization techniques.
The study of numerical methods has provided an attractive field for researchers of the mathematical sciences. This field of study has seen the appearance of different numerical computational methods and efficient algorithms to solve the controlled Duffing oscillator problem, with each one having disadvantages and advantages. For example, a direct method in [12] was presented to treat the controlled Duffing oscillator numerically. This method requires that both the state control variables, the constraint dynamic system, the boundary conditions and the cost function value be expanded in a Chebyshev series with unknown coefficients. The unknowns that evolve from the Chebyshev series expansion of the cost function value have to be determined at each iteration step. As a result, a large complicated nonlinear system of equations must be solved to obtain an accuracy with a suitable order. A cell-averaging Chebyshev spectral method was presented in [13], and it is based on constructing an interpolation polynomial of the degree n using Chebyshev nodes to approximate both the state and control vectors. The integral and differential expressions that arise from the system dynamics and the cost function are transformed into a nonlinear programming problem, while the work presented in [14] contained a pseudospectral approximate numerical solution for Duffing oscillators that use a differential matrix for Chebyshev points in order to compare the boundary conditions over the interval [–1, 1]. The properties of hybrid functions [15], which consist of block-pulse functions plus Legendre polynomials, are studied in [16] for the numerical treatment of Duffing oscillators. The operation matrix of an integration matrix together with hybrid functions have been utilized to reduce the solution of a controlled Duffing oscillator to a solution of algebraic equations. Other numerical treatments for solving Duffing oscillators are as follows: the interpolating scaling functions method [17], the state parameterization based on a linear combination of Chebyshev polynomials [18] and the Chebyshev spectral method [19] together with control variables and state variables.
The base function mentioned may be polynomials or wavelets. Some examples of these wavelets and polynomials include the following: wavelet neural networks [20], shifted wavelets [21], Boubaker wavelets [22], Boubaker polynomials [23], power polynomials [24] and radial basis functions [25,26].
In this paper, we propose new symmetry-shifted polynomials (NSSP) as a base function. These novel polynomials are used to solve the controlled Duffing oscillator problem using a direct state parameterization technique. The idea of this method consists of reducing the controlled Duffing oscillator problem to an optimization problem by expanding the second derivative of the state vector as an NSSP that has unknown coefficients with the aid of an operation matrix of derivatives. The operational matrix of the product is introduced, and this matrix together with the operational matrix of derivatives are then used to transfer the original problem to an optimization one.
The paper is organized as follows: In Section 2, the definition of the new symmetry-shifted polynomial over the interval [a, b] is presented with some important properties. The NSSP main properties are adopted in Section 3. The controlled Duffing oscillator problem is presented in Section 4, while the proposed algorithm for solving such problem is illustrated in Section 5, where it is converted to a quadratic programming problem. In Section 6, approximated findings and a comparison are made with an existing method in the literature to demonstrate the efficiency and the accuracy of the proposed numerical scheme.
2. New Symmetry-Shifted Polynomial Over
The definition of the new symmetry-shifted polynomial over denoted by is stated below.
Definition 1.
Let be a linear polynomial . The symmetry-shifted polynomial over the interval is defined by the recurrence relation
with the initial conditions
It is mentioned here that, from the for special values of , one can obtain some of the well-known polynomials. Certain cases of these values are reported in Table 1.
Table 1.
Some special cases of .
Note that the NSSG polynomials with the values and will lead to the well-known Pell–Lucas polynomials [27,28].
with the initial conditions
The first of several are listed below
The leading coefficient of is equal to for as we can notice from the recursive formula shown above.
Moreover, the explicit analytical formula for can be obtained through the following expression:
The polynomials have orthogonal properties with respect to the following inner product:
where is the weight function.
Note that the general matrix form of can be written as below:
where , and is the triangle matrix in which entries can be evaluated as below:
3. The Properties of NSSG Polynomials
3.1. The Convergence Analysis
Theorem 1.
A function that is continuous on and satisfies the condition , where is a constant and may be defined by
where
and
will converge to function
Proof.
Let , where , then
where is defined in Equation (6). From Equation (7), one can obtain
This means that function is a convergence (since it is a Cauchy sequence in the complete Hilbert space ).
In order to prove that the series in Equation (6) converges to ,
Let
Hence,
Equation (10) leads to ,
As a result
This shows that is convergent.
From Equation (12), one can conclude that as and , which is the required result. □
3.2. The Operation NSSG Matrix of Products
The product of two NSSGs can be expressed in the following theorem.
Theorem 2.
The product of two NSSG polynomials satisfies the following relationship
Proof.
This theorem is proved by mathematical induction. Note that ; thus, it follows that
Therefore, Theorem 2 is valid when . Let Equation (13) be valid for all integers , that is,
Multiplying both sides of Equation (15) by yields
Then, from Equation (15) and with the use of Equation (1) one can obtain
and
Using Equation (15), yields
i.e., This is the required result. □
3.3. The Operation NSSG Matrix of Derivatives
In this part, the first derivative is determined in terms of itself. Based on that, the first derivative operational matrix of NSSG will be constructed.
Theorem 3.
For , the following relation can be employed to relate the original NSSG with their first derivative
where
Proof.
Consider the odd case, where the induction is proceeded on . For , the left-hand side is equal to . Assume that the relation in Equation (18) holds for , and odd.
The validity for will be proved.
If one differentiates Equation (1), the following is obtained:
where and
Appling the principle of induction on and gives
This will lead to
Now, using the identity below
as well as Equation (13) in Theorem 2,one can enable obtaining the following result:
After performing some manipulation, Equation (22) can be written as below:
This is equivalent to the result in Equation (18). In a similar way, one can prove the case for an even order.
On the other hand, the derivative of can be written in matrix form as illustrated in the following result: □
Corollary 1.
Let be the NSSG polynomial vector defined as below
Then, for , the derivative of can be explicitly constructed by
where is the , which is a lower triangular NSSG polynomial operational matrix of derivatives. For odd , the matrix is obtained as below
Meanwhile, for even , the last row of the matrix is constructed as below:
Moreover, the element of matrix can be obtained explicitly in the following form:
where
3.4. The Relation between NSSG Over and the Power Function
The first six NSSG polynomial over the interval [−2, 0] is given by
which can be rewritten in the following form
This means that the powers of can be expressed in terms of the NSSG polynomials of degrees up to . The general explicit formula is given by the following result.
Theorem 4.
For every integer power can be expanded in a unique way as a linear combination of as follows:
Proof.
Mathematical induction is used to prove Equation (23) for
; therefore, Equation (23) is true for Let Equation (23) be valid for , where . This means that
Multiplying both sides of Equation (24) by yields
Using Equation (24) yields
Hence, the required result can be obtained after using the following identities:
□
4. The NSSG Technique for Solving the Controlled Duffing Oscillator Problem
Consider the following controlled Duffing oscillator problem of a linear oscillator, as shown in [6]:
which is subject to
together with the conditions
The problem is in finding control vector , which minimizes (25) to be subject to (26) and (27). The exact solution of the controlled linear oscillator can be obtained by applying Pontryagin’s maximum principle:
where
Consider an approximation to state variable using NSSG polynomials with order as below:
The boundary conditions in Equation (27) must satisfy the approximate solution in Equation (28):
Then, control variable is obtained from Equation (26) as
Then, substituting Equation (33) into Equation (25) gives
As a result, the controlled Duffing oscillator problem (25)–(27) is transformed into a nonlinear quadratic programming problem, which can be stated as follows:
Let
then,
Is subject to the equality constraint
This is a nonlinear quadratic programming problem. The unknown parameters of vector have to be determined with the below:
The advantages of the proposed NSSG polynomial technique in terms of solving the controlled Duffing oscillator problem include the following points:
- (1)
- It can deal directly with the second-order derivative in the constrained differential equation, Equation (26), without reducing it to a first-order system. As a result, the number of unknown parameters will be reduced, unlike the technique in [25].
- (2)
- It can deal directly with interval while other methods must introduce a suitable transformation according to the base functions [18].
- (3)
- The problem is reduced to a quadratic programming problem, which is much easier than the numerical integration of a nonlinear TPBVP derived from Pontryagin’s maximum principle method [26].
5. Results and Discussion
Problems (25)–(27) can be solved in the standard case: , and . By performing Equations (28)–(35) with , one can obtain
These are subject to the constraints
which can be written as
This is subject to the equality constraints
where ,
When using Equation (31) to obtain the optimal unknown vector , we have
The NSSG polynomial coefficients for state function and control function are listed in Table 2 with different values of . In Table 3 and Table 4, the approximated values for the state and control functions are determined for different values of using different orders of the basis functions .
Table 2.
The optimal values of unknown parameters .
Table 3.
The approximate and exact values of .
Table 4.
The approximate and exact values of .
Also, these solutions were plotted according to same values illustrated in Figure 1.
Figure 1.
Graphs of the approximate solutions and using NSSGpolynomials and an exact solution with = 4, 5, 6 and 7.
As shown in Table 5, a comparison was made between the present method against the solution obtained by radial basis functions [25] for different values of . This method is based on radial basis functions to approximate the solution of the optimal control problem using the collocation method. Table 6 compares the values of and , which were obtained by our method with the existing findings in [25]. The results in [25] needed three numerical methods that will increase the computational time and effort.
Table 5.
Absolute and relative errors.
Table 6.
The approximate values of and .
As increases, the absolute errors and decrease significantly, and the results will rapidly tend to the exact values. This table illustrates that the NSSG polynomials have a good convergence rate.
The absolute errors and , as well as the relative errors and , are listed in Table 7 for , and they are also presented graphically in Figure 2.
Table 7.
The absolute and relative errors with .
Figure 2.
Graphs of the absolute errors for state and control with .
Figure 2 shows the decreasing absolute error by the NSSG polynomials with the state parameterization technique. Figure 3 is the last illustration that displays the graph of the absolute values of with different orders of the polynomials. All the tables and figures show that the suggested methodology is capable of providing numerical solutions for the controlled osculation problem with high accuracy. The solution obtained from the proposed approach is in good agreement with the existing results, thus demonstrating the reliability of the proposed schemes.
Figure 3.
Graph of the absolute error between the NSSG polynomial solution and the exact solution of with a different .
The above figures show the decreasing absolute error by the suggested algorithm based on NSSG polynomials. The optimal performance index value , which is obtained by the proposed method for , is a good approximation. The approximate state and control variables are, respectively, as below
6. Conclusions
A special optimal control problem called the controlled Duffing oscillator was treated numerically in the present work using NSSG polynomials. The suggested technique uses the constructed NSSG polynomial operational matrix of first-order derivatives in combination with an appropriate direct parameterization scheme. The controlled Duffing oscillator problem was treated approximately with special values of unknown parameters utilizing various orders of NSSG polynomials. The outcomes of the approximate solutions have demonstrated the simplicity and the accuracy of the presented direct technique. Additionally, the proposed methodology can be used in a number of applications to numerically treat different classes of the optimal control problem. The presented results prove and support the satisfactory accuracy and efficiency of the recommended method. It can deal directly with the highest-order derivatives in a constrained differential equation without reducing it to a first-order system. As a result, the number of the unknown parameters can be reduced. This fact was shown when applying the presented NSSG polynomials on the controlled Duffing oscillator. The suggested direct technique is much easier to use than the numerical integration of the nonlinear TPBVP derived from Pontryagin’s maximum principle method. The proposed method can be extended to the nonlinear calculus of variations and optimal control problems.
Author Contributions
Methodology, F.H.; validation, S.S.; formal analysis, F.H. and S.S.; resources, F.H.; supervision, S.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data are contained within the article.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Maawiya, O.S.; Rabie, Z.S.; Ahmed, O.A.; Hadi, O.A.; Sid, A.O. Optimal control problems governed by a class of nonlinear systems. AIMS Math. 2024, 9, 440–452. [Google Scholar] [CrossRef]
- Ahmed, A.K.; Al-Khazraji, H.; Raafat, S.M. Optimized PI-PD Control for Varying Time Delay Systems Based on Modified Smith Predictor. Int. J. Intell. Eng. Syst. 2024, 17, 331–342. [Google Scholar]
- Mahdi, S.M.; Lutfy, O.F. Control of a servo-hydraulic system utilizing an extended wavelet functional link neural network based on sine cosine algorithms. Indones. J. Electr. Eng. Comput. Sci. 2022, 25, 847–856. [Google Scholar] [CrossRef]
- Ramadhan, N.M.; Raafat, S.M.; Mahmood, A.M. Optimized Event-Based PID Control for Energy-Efficient Wireless Sensor Networks. Math. Model. Eng. Probl. 2024, 11, 63–74. [Google Scholar] [CrossRef]
- Steven, B.; David, A. Optimal control in stochastic thermodynamics. J. Phys. Commun. 2023, 7, 033001. [Google Scholar]
- Uriostegui, L.U.; Tututi, H.E. Master-slave synchronization in the Rayleigh and Duffing oscillators via elastic and dissipative couplings. Rev. De Cienc. Tecnológicas 2022, 5, 151–164. [Google Scholar] [CrossRef]
- Abergel, F.; Temam, R. On Some Optimal Control Problems in Fluid Mechanics. Theor. Comput. Fluid Mech. 1990, 1, 303–325. [Google Scholar] [CrossRef]
- Stokes, J.J. Nonlinear Vibrations; Intersciences: New York, NY, USA, 1950. [Google Scholar]
- Hu, N.; Wen, X.S. The application of Duffing oscillator in characteristic signal detection of early fault December. J. Sound Vib. 2003, 268, 917–931. [Google Scholar] [CrossRef]
- Bahraini, M.S.; Mahmoodabadi, M.J.; Lohse, N. Robust Adaptive Fuzzy Fractional Control for Nonlinear Chaotic Systems with Uncertainties. Fractal Fract. 2023, 7, 484. [Google Scholar] [CrossRef]
- Chen, T.; Cao, X.; Niu, D. Model modification and feature study of Duffing oscillator. J. Low Freq. Noise Vib. Act. Control 2022, 41, 230–243. [Google Scholar] [CrossRef]
- Van Dooren, R.; Vlassenbroeck, J. Chebyshev series solution of the controlled Duffing oscillator. J. Comput. Phys. 1982, 47, 321–329. [Google Scholar] [CrossRef]
- Elnagar, G.N.; Kazemi, M.A. A cell-averaging Chebyshev spectral method for the controlled Duffing oscillator. Appl. Numer. Math. 1995, 18, 461–471. [Google Scholar] [CrossRef]
- Razzaghi, M.; Elnagarj, G. Numerical solution of the controlled Duffing oscillator by the pseudospectral method. J. Comput. Appl. Math. 1994, 56, 253–261. [Google Scholar] [CrossRef][Green Version]
- Amer, Y.A.; El-Sayed, A.T.; Abd EL-Salam, M.N. Position and Velocity Time Delay for Suppression Vibrations of a Hybrid Ray-leigh-Van der Pol-Duffing Oscillator. Sound Vib. 2020, 54, 149–161. [Google Scholar]
- Marzban, H.R.; Razzaghi, M. Numerical solution of the controlled Duffing oscillator by hybrid functions. Appl. Math. Comput. 2003, 140, 179–190. [Google Scholar] [CrossRef]
- Shamsi, M.; Razzaghi, M. Numerical Solution of the Controlled Duffing Oscillator by the interpolating Scaling. J. Electromagn. Waves Appl. 2004, 18, 691–705. [Google Scholar] [CrossRef]
- Kafash, B.; Delavarkhalafi, A.; Karbassi, S.M. Application of Chebyshev polynomials to derive efficient algorithms for the solution of optimal control problems. Sci. Iran. 2012, 19, 795–805. [Google Scholar] [CrossRef]
- El-kady, M.; Elbarbary, E.M. A Chebyshev expansion method for solving nonlinear optimal control problems. Appl. Math. Comput. 2002, 129, 171–182. [Google Scholar] [CrossRef]
- Mahmood, T.S.; Lutfy, O.F. A Wavelet Neural Network-Based NARMA-L2 Feedforward Controller Using Genetic Algorithms to Control Nonlinear Systems. J. Eur. Des Syst. Autom. 2022, 55, 439–447. [Google Scholar] [CrossRef]
- Abbas, G.; Shihab, S. Operational Matrix of New Shifted Wavelet Functions for Solving Optimal Control Problem. Mathematics 2023, 11, 3040. [Google Scholar] [CrossRef]
- Eman, H.; Samaa, F.; Shihab, N. Boubaker Wavelets Functions: Properties and Applications. Baghdad Sci. J. 2021, 18, 1226–1233. [Google Scholar]
- Kafash, B.; Delavarkhalafi, A.; Karbassi, S.; Boubaker, M. A Numerical Approach for Solving Optimal Control Problems Using the Boubaker Polynomials Expansion Scheme. J. Interpolat. Approx. Sci. Comput. 2014, 3, 1–18. [Google Scholar] [CrossRef]
- Kafash, B.; Delavarkhalafi, A.; Karbassi, S.M. Numerical Solution of Nonlinear Optimal Control Problems Based on State Parameterization. Iran. J. Sci. Technol. 2012, 35, 331–340. [Google Scholar]
- Rad, J.A.; Kazem, S.; Parand, K. A numerical solution of the nonlinear controlled Duffing oscillator by radial basis functions. Comput. Math. Appl. 2012, 64, 2049–2065. [Google Scholar] [CrossRef]
- Rad, J.A.; Kazem, S.; Parand, K. Radial basis functions approach on optimal control problems: A numerical investigation. J. Vib. Control 2014, 20, 1394–1416. [Google Scholar] [CrossRef]
- El-Sayed, A.A. Pell-Lucas polynomials for numerical treatment of the nonlinear fractional-order Duffing equation. Demonstr. Math. 2023, 56, 20220220. [Google Scholar] [CrossRef]
- Khader, M.M.; Macías-Díaz, J.E.; Saad, K.M.; Hamanah, W.M. Vieta–Lucas Polynomials for the Brusselator System with the Rabotnov Fractional-Exponential Kernel Fractional Derivative. Symmetry 2023, 15, 1619. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).