1. Introduction
Wavelet functions play an interesting role in areas of mathematics. These functions have been applied in the solution of approximation theory, differential equations and integral equations [
1,
2,
3,
4]. The study of optimal control problems is important in our life and their applications are found in different disciplines based on mathematical modeling, chemistry and physics. The solution of optimal control problem can be found approximately because of the complexity inmost applications. Numerous studies have focused on the approximate solutions of optimal control problems, which can be found in many fields [
5,
6,
7,
8,
9]. Different algorithms were used for solving optimal control problems, including the indirect modified pseudospectral method [
10], A direct Chebyshev cardinal functions method [
11], Cauchy discretization technique [
12], the synthesized optimal control technique [
13], Legendre functions method [
14], Evolutionary Algorithm-Control Input Range Estimation [
15]. See [
16,
17,
18,
19,
20] for some other articles exploring various optimal control problems. Wavelet functions have important parts in the approximation theory, special functions and for numerical analysis for solving optimal control problems. In particular the Chebyshev wavelets families are widely applied in contributions to the field of approximation theory. For example, the authors in [
21] employed the Boubaker wavelets together with the operation matrix of derivative to solve singular initial value problem. The collocation method is presented in [
22] based on the second kind Chebyshev wavelets for solving calculus of variation problems. The use of the operational matrices of derivatives and integrals has been highlighted in the field of numerical analysis [23–25]. This utilization gives special algorithms to obtain accurate approximate solutions of many types of differential and integral equations with flexible computations. To extract an operational matrix of derivatives is based on choosing suitable basis functions in terms of celebrated special functions and expressing the first derivative of these basis functions in terms of their original types. Motivated by the above discussion, we are mainly interested in presenting new shifted wavelet functions with some important properties. A novel iterative method is suggested in this work to solve optimal control problem. Such method is used together with NSW as a basis function to parameterize the states variables. The proposed technique is constructed to reach simultaneously the accuracy and efficiency. Hence the first goal of this work is to introduce NSW. Use the proposed new basis function to parameterize the system state variables to solve some problem in optimal control. The rest of the work is organized as follows: section two provides the definition of NSW. In Section three, the convergence of the NSW is studied. General exact formula of NSW differentiation operational matrix of is generated in section four, then the suggested algorithm to solve optimal control problem is illustrated in section five. Section six discusses the application of the NSW by considering various examples in optimal control. Simulation results are also given in section seven, followed by a conclusion remarks summarizes in section seven.
2. The New Shifted Wavelet Functions
Wavelet functions have been used successfully in scientific and engineering fields. The special new shifted wavelet functions can be defined as below
where
; k can be assumed to be any positive integer,
is the degree of the shifted polynomials and
denotes the time for
Note that a recursive relation that yields the
polynomials is:
with initial conditions:
where
,
,
3. Convergence Analysis of New Wavelet Functions
A function approximation
, with
,
may by expanded in terms of new shifted wavelets as below
where
In (5), the symbol
is denoted the inner product operator with respect to weighted function
on Hilbert space over the interval
If the infinite series in (4) is truncated, then the solution
can be rewritten in matrix form as below
where
, and
.
Note that, both and n are integer numbers, is the degree of shifted polynomials. Now, we state and prove a theorem to ensure the convergence of the new shifted wavelet expansion of a function.
Theorem 1.
Assume that a function where , with bounded second derivative , can be expanded as an infinite series of the new shifted wavelets (1), thenin (4) converges uniformly toi.e satisfy the inequality:
Proof. Let
It follows that for,
Using Eq. 1, one can get
If , by substituting
, ,
By using method of integration by parts, let
, , , ,
Using again the method of integration by parts, let
, , ,
We have,
Thus, we get
However
Hence
Since
Therefore; the wavelets expansion converges to uniformly.
Accuracy Analysis
If the function is expanded in terms of New Shifted Wavelet Functions as in Eqns. 3-4. That is
Then it is not possible to perform the computation of an infinite number of terms; therefore we must truncate the series as below
so that
where r(x) is the residual function defined by
We must select the coefficients such that is less than some convergence value , that is
for all M greater than some positive integer value .
The calculation of the accuracy of a numerical method is crucial to describe the applicability and performance to solve problems. Theorem 2 discusses the accuracy of the Chebyshev wavelets representation of a function.
Theorem 2. Let be a continuous function defined on the interval [0, 1) and , then the accuracy estimation is given by:
where
Proof. Since
Then
From the orthonormality criterion from , one can get
Using the findings from Eq. 7
or .
4. Operational Matrix of the NSW
The present section is built to derive an operational matrix of derivatives for the NSW. Based on the NSW vector mentioned in (1), it can be determined the operational matrix of integer derivative as below.
The following theorem is needed hereafter.
Theorem 3. Let be the NSW vector defined in (1). Then, the first derivative of the vector can be expressed as
where
is
square operation matrix of differentiation and is defined by
In which
D is a square matrix and their elements can be explicitly obtained as below
Proof. By using NSW, the element of vector can be rewritten in the following way
For
and
outside the interval
where
.
where
Differentiate Eq. 11 with respect to
, yields:
Hence the SSW expansion only has those elements in
that are non-zero in the interval
, that is:
This enables us to expand
in terms of the NSW in the form:
This implies that the operational matrix
is a block matrix as defined in Eq. 9 since
.
Then we have for ,
As a results, the elements of the first row of the matrix given in Eq. 10 are zeros.
Now, substitute
back into Eq. 13, gives
Expanding Eq. 15 in terms of SSW basis, to get
Choosing , such that
The equation is hold.
5. The NSW Algorithm for Solving Optimal Control Problem
In this section, the task of optimizing systems governed by ordinary differential equations which leads to the optimal control problems is investigated. They are arising in many applications in astronautics and aeronautics.
Consider the following process on fixed interval
:
Together with the conditions
where:
,
and the function
is assumed to be real valued continuously differentiable.
First, we assume the solution of the state variables
and
in terms of NSW respectively as below
where
unknown parameters vector.
The second step is to obtain the approximation for the control variable by substituting Eq. 19 and Eq. 20 into Eq. 17
Finally, the performance index value is obtained as a function of the unknown as below
The resulting quadratic mathematical programming problem can be simplified as below:
where ,
subject to
where
Using Lagrange multiplier technique to obtain the optimal values of the unknown parameters
6. Test Examples
In this section, the results for the numerical simulation of optimal control problems formulated based on the proposed new shifted wavelet method are presented. Different test cases for defined in the interval are considered with a single state function and a single control function. Note that the proposed method can be solved problems with multiple controls. The test problems are considered continuous optimal controls, and the analytic solution is known in order to allow the validation of the proposed algorithm, by comparing its result with the exact solution.
Example 1. In the following example, we have one state function , and one control function . This problem is concerned with minimization of
Subject to
with initial conditions
Table 1 shows the values of the coefficients,
Table 2 and
Table 3 give the values of the state and the control respectively.
Table 4 gives the absolute errors that NSW method might produce with the compression to the following methods:
Chebyshev method proposed in [
24].
The method existing in [
25].
Example 2. Consider the second test problem
The exact solution of (21) is , and
Table 5 shows the values of the coefficients,
Table 6 and
Table 7 give the values of the state and the control respectively, whereas
Table 8 lists the absolute errors that our method NSW might produce compares our technique to the method presented in [28]. From these tables, it can be seen that the state and the control variables are accurately approximated by the proposed method.
Table 8 illustrates the fast convergence rate of the proposed method since the errors decay rapidly by increasing the number of the NSW.
Example 3. Consider the third test problem
.
Table 10 and
Table 11 compare the exact solutions and the approximate solutions of
and
) respectively for
. The absolute errors of
for various values of
are listed in Table 12. From these results, it is worthwhile to note that the approximate solutions obtain by the proposed method completely coincide with the exact solutions.
Example 4. Consider the fourth test problem
The exact solution of (22) is: , , where and J = 0.8641644978.
Table 4 compares absolute errors of presented method wavelets and to existing method presented in the article [
25] with different values of
, see that the absolute errors of the presented method good result compare to existing other method and indicating a decrease in absolute errors with increase in the value of
It is clear that the approximate solution of the performance index when
is in very good agreement with the corresponding exact solution.
Table 13 reports the absolute errors of
obtained by the proposed method at
in comparison to the method in [
25] at
. The obtained results show that the approximate solutions are more accurate for the proposed method than the method in [
25]. In addition, the fast convergence rate of the proposed method is also illustrated from the absolute errors results since by increasing the number of the NSW, the errors decay rapidly.
7. Conclusions
The proposed new shifted wavelet functions method has been successfully applied in studying the approximate solution of OCP in combination with their differentiation operational matrix. The proposed algorithm converges well. A mathematical technique has been established for solving quadratic optimal control problem which is based on the NSW functions with the direct technique. Moreover, by applying both the convergence analysis and error analysis of the presented new shifted wavelets is worked out and it is illustrated to converge uniformly on it. The obtained NSW based approximate solutions have been compared with existing methods of solutions as well as the analytical solutions. The error analysis in the obtained solutions gives the consistency and competence of the suggested method.
References
- Suman, S.; Kumar, A.; Singh, G.K. A new closed form method for design of variable bandwidth linear phase FIR filter using Bernstein multiwavelets. International Journal of Electronics 2015, 102, 635–650. [Google Scholar] [CrossRef]
- Lutfy, O.F. A wavelet functional link neural network controller trained by a modified sine cosine algorithm using the feedback error learning strategy. Journal of Engineering Science and Technology 2020, 15, 709–727. [Google Scholar]
- Keshavarz, E.; Ordokhani, Y.; Razzaghi, M. The Taylor wavelets method for solving the initial and boundary value problems of Bratu-type equations. Appl. Numer. Math. 2018, 128, 205–216. [Google Scholar] [CrossRef]
- Akram, K.; Asadollah, M.; Sohrab, E. Solving Optimal Control Problem Using Hermite Wavelet, Numerical Algebra. Control and Optimization 2019, 9. [Google Scholar]
- Diveev, A.; Sofronova, E.; Konstantinov, S. Approaches to Numerical Solution of Optimal Control Problem Using Evolutionary Computations. Applied Sciences 2021, 11, 7096. [Google Scholar] [CrossRef]
- Zhaohua, G.; Chongyang, L.; Kok, L.; Song, W.; Yonghong, W. Numerical solution of free final time fractional optimal control problems. Applied Mathematics and Computation 2021, 405. [Google Scholar]
- Hans, G.; Christian, K.; Andreas, M.; Andreas, P. Numerical solution of optimal control problems with explicit and implicit switches. Optimization Methods and Software 2018, 33, 450–474. [Google Scholar]
- Wang, Z.; Li, Y. An Indirect Method for Inequality Constrained Optimal Control Problems. IFAC Papers On Line 2017, 50, 4070–4075. [Google Scholar] [CrossRef]
- Yang, C.; Fabien, B. An adaptive mesh refinement method for indirectly solving optimal control problems. Numer Algor 2022. [Google Scholar] [CrossRef]
- Mohammad, A. A modified pseudospectral method for indirect solving a class of switching optimal control problems. 2022, 234, 1531–1542.
- Mohammad, H. A new direct method based on the Chebyshev cardinal functions for variable-order fractional optimal control problems. Journal of the Franklin Institute 2018, 355, 12–4970. [Google Scholar]
- Mohamed, A.; Mohand, B.; Nacima, M.; Philippe, M. Direct method to solve linear-quadratic optimal control problems. AIMS 2021, 645–663. [Google Scholar]
- Askhat, D.; Elena, S.; Sergey, K. Approaches to Numerical Solution of Optimal Control Problem Using Evolutionary Computations. Appl. Sci. 2021, 11, 7096. [Google Scholar]
- Mirvakili, M.; Allahviranloo, T.; Soltanian, F. A numerical method for approximating the solution of fuzzy fractional optimal control problems in Caputo sense using Legendre functions. Journal of Intelligent and Fuzzy System 2022, 43, 3827–3858. [Google Scholar] [CrossRef]
- Viorel, M.; Iulian, A. Optimal Control Systems Using Evolutionary Algorithm-Control Input Range Estimation. Automation 2022, 3, 95–115. [Google Scholar]
- Khamis NSelamat, H.; Ismail, F.S.; Lutfy, O.F. Optimal exit configuration of factory layout for a safer emergency evacuation using crowd simulation model and multi-objective artificial bee colony optimization. International Journal of Integrated Engineering 2019, 11, 183–191. [Google Scholar]
- Behzad, K.; Delavarkhalafi, A.; Karbassi, M.; Boubaker, K. A Numerical Approach for Solving Optimal Control Problems Using the Boubaker Polynomials Expansion Scheme. Journal of Interpolation and Approximation in Scientific Computing 2014, 1–18. [Google Scholar]
- Ayat, O.; Mirkamal, M. Solving optimal control problems by using Hermite polynomials. Computational Methods for Differential Equations 2020, 8, 2–314. [Google Scholar]
- Abed, M.S.; Lutfy, O.F.; Al-Doori, Q.F. Online Path Planning of Mobile Robots Based on African Vultures Optimization Algorithm in Unknown Environments. Journal Europeen des Systemes Automatises 2022, 55, 405–412. [Google Scholar] [CrossRef]
- Sayevand, K.; Zarvan, Z.; Nikan, O. On Approximate Solution of Optimal Control Problems by Parabolic Equations. Int. J. Appl. Comput. Math 2022, 8, 248. [Google Scholar] [CrossRef]
- Rabiei, K.; Ordokhani, Y. A new operational matrix based on Boubaker wavelet for solving optimal control problems of arbitrary order. Transactions of the Institute of Measurement and Control 2020, 42, 858–1870. [Google Scholar] [CrossRef]
- Afari, H.; Nemati, S.; Ganji, R.M. Operational matrices based on the shifted fifth-kind Chebyshev polynomials for solving nonlinear variable order integro-differential equations. Adv Differ Equ. 2021, 1. [Google Scholar]
- Vellappandi, M.; Govindaraj, V. Operator theoretic approach to optimal control problems characterized by the Caputo fractional differential equations. Results in Control and Optimization 2023, 10. [Google Scholar] [CrossRef]
- Kafash, B.; Delavarkhalafi, A. Restarted State Parameterization Method for Optimal Control Problems. J. Math. Computer Sci. 2015, 14, 151–161. [Google Scholar] [CrossRef]
- Kafash, B.; Delavarkhalafi MKarbass, S. Application of Chebyshev polynomials to derive efficient algorithms for the solution of optimal control problems. Scientia Iranica 2012, 19, 795–805. [Google Scholar] [CrossRef]
Table 1.
The unknown coefficients of Example 1.
Table 1.
The unknown coefficients of Example 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 2.
Approximate and exact values of for Example 1.
Table 2.
Approximate and exact values of for Example 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 3.
Approximate and exact values of for Example 1.
Table 3.
Approximate and exact values of for Example 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 4.
A comparison of the results of Example 1.
Table 4.
A comparison of the results of Example 1.
|
|
Absolute Errors
|
|
|
Presented Method
|
Method in [29]
|
Method in [28]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 5.
The unknown coefficients of Example 2.
Table 5.
The unknown coefficients of Example 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 6.
Approximate and exact values of for Example 2.
Table 6.
Approximate and exact values of for Example 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 7.
Approximate and exact values of for Example 2.
Table 7.
Approximate and exact values of for Example 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0.0031331221 |
Table 8.
Estimated values of for for Example 2.
Table 8.
Estimated values of for for Example 2.
|
|
Absolute Errors |
|
Absolute Errors |
3 |
|
|
2.7977436 |
6.0e-03 |
4 |
|
|
2.79608386 |
4.4e-03 |
5 |
|
|
2.79608386 |
4.4e-03 |
Table 9.
The unknown coefficients of Example 3.
Table 9.
The unknown coefficients of Example 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 10.
Approximate and exact values of for Example 3.
Table 10.
Approximate and exact values of for Example 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 11.
Approximate and exact values of for Example 3.
Table 11.
Approximate and exact values of for Example 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 13.
Estimated values of for of Example 4.
Table 13.
Estimated values of for of Example 4.
|
|
Absolute Errors |
|
|
3 |
0.8647288093 |
|
2 |
0.8645390446 |
4 |
0.8642180723 |
|
3 |
0.8644550472 |
5 |
0.8641645689 |
|
4 |
0.8643546452 |
|
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. |
© 2023 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 (http://creativecommons.org/licenses/by/4.0/).