- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents

The Scientific World Journal

Volume 2013 (2013), Article ID 306237, 9 pages

http://dx.doi.org/10.1155/2013/306237

## Numerical Solution of Some Types of Fractional Optimal Control Problems

^{1}Department of Mathematics, Faculty of Science, Cairo University, Giza 12613, Egypt^{2}Institute of Mathematics, University of Augsburg, 86159 Augsburg, Germany^{3}Department of Mathematics, University of Houston, Houston, TX 77204-3008, USA

Received 11 September 2013; Accepted 30 September 2013

Academic Editors: C. Li, F. Liu, R. Magin, A. Sikorskii, and S. B. Yuste

Copyright © 2013 Nasser Hassan Sweilam et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

We present two different approaches for the numerical solution of fractional optimal control problems (FOCPs) based on a spectral method using Chebyshev polynomials. The fractional derivative is described in the Caputo sense. The first approach follows the paradigm “optimize first, then discretize” and relies on the approximation of the necessary optimality conditions in terms of the associated Hamiltonian. In the second approach, the state equation is discretized first using the Clenshaw and Curtis scheme for the numerical integration of nonsingular functions followed by the Rayleigh-Ritz method to evaluate both the state and control variables. Two illustrative examples are included to demonstrate the validity and applicability of the suggested approaches.

#### 1. Introduction

FOCP refers to the minimization of an objective functional subject to dynamical constraints on the state and the control which have fractional order models. Fractional order models are sometimes more appropriate than conventional integer order models to describe physical systems [1–4]. For example, it has been shown that materials with memory and hereditary effects and dynamical processes including gas diffusion and heat conduction in fractal porous media can be more adequately modeled by fractional order models [5]. Numerical methods for solving FOCPs have been suggested in [6–9].

This paper presents two numerical methods for solving some types of FOCPs where fractional derivatives are introduced in the Caputo sense. These numerical methods rely on the spectral method where Chebyshev polynomials are used to approximate the unknown functions. Chebyshev polynomials are widely used in numerical computation [10, 11].

For the first numerical method, we follow the approach “optimize first, then discretize” and derive the necessary optimality conditions in terms of the associated Hamiltonian. The necessary optimality conditions give rise to fractional boundary value problems that have left Caputo and right Riemann-Liouville fractional derivatives. We construct an approximation of the right Riemann-Liouville fractional derivatives and solve the fractional boundary value problems by the spectral method. The second method relies on the strategy “discretize first, then optimize.” The Clenshaw and Curtis scheme [12] is used for the discretization of the state equation and the objective functional. The Rayleigh-Ritz method provides the optimality conditions in the discrete regime.

The paper is organized as follows: in Section 2, some basic notations and preliminaries as well as properties of the shifted Chebyshev polynomials are introduced. Section 3 contains the necessary optimality conditions of the FOCP model. Section 4 is devoted to the approximations of the fractional derivatives. In Section 5, we develop two numerical schemes and present two illustrative examples to demonstrate the validity and applicability of the suggested approaches. Finally, in Section 6, we provide a brief conclusion and some final remarks.

#### 2. Basic Notations and Preliminaries

##### 2.1. Fractional Derivatives and Integrals

*Definition 1. *Let be a function, let be a real number, and let , where denotes the smallest integer greater than or equal to . The left (left RLFI) and right (right RLFI) Riemann-Liouville fractional integrals are defined by

The left (left RLFD) and right (right RLFD) Riemann-Liouville fractional derivatives are given according to Moreover, the left (left CFD) and right (right CFD) Caputo fractional derivatives are defined by means of The relation between the right RLFD and the right CFD is as follows [13]: Further, it holds where . We recall that, for , the Caputo differential operator coincides with the usual differential operator of integer order. For more details on the fractional derivatives definitions and their properties, we refer the reader to [3, 8, 14, 15].

##### 2.2. Shifted Chebyshev Polynomials

The well-known Chebyshev polynomials are defined on the interval and can be determined by the following recurrence formula [16]: The analytic form of the Chebyshev polynomials of degree is as follows: where denotes the biggest integer less than or equal to . The orthogonality condition reads In order to use these polynomials on the interval , we use the so-called shifted Chebyshev polynomials by introducing the change of variable . The shifted Chebyshev polynomials are defined according to Their analytic form is given by We note that (10) implies that , . Further, it is easy to see that the orthogonality condition reads with the weight function ,,,, for .

A function can be expressed in terms of shifted Chebyshev polynomials as where the coefficients are given by

#### 3. Necessary Optimality Conditions

Let and let be two differentiable functions. We consider the following FOCP [8]: subject to the dynamical system where ,,, and are fixed real numbers.

Theorem 2 (see [8]). *If is a minimizer of (14a)–(14c), then there exists an adjoint state for which the triple satisfies the optimality conditions**for all , where the Hamiltonian is defined by
*

*Remark 3. *Under some additional assumptions on the objective functional and the right-hand side , for example, convexity of and linearity of in and , the optimality conditions (15a)–(15c) are also sufficient.

#### 4. Numerical Approximations

In this section, we provide numerical approximations of the left CFD and the right RLFD using Chebyshev polynomials. We choose the grid points to be the Chebyshev-Gauss-Lobatto points associated with the interval ; that is,

Clenshaw and Curtis [12] introduced an approximation of the function . We reformulate it to be used with respect to the shifted Chebyshev polynomials as follows: Here, the summation symbol with double primes denotes a sum with both first and last terms halved.

##### 4.1. Approximation of the Left CFD

In the sequel, some basic results for the approximation of the fractional derivative are given.

Theorem 4 (see [17]). *An approximation of the fractional derivative of order in the Caputo sense of the function at is given by
**
where**where, with , for all .*

An upper bound for the error in the approximation of the fractional derivative of the function is given as follows.

Theorem 5 (see [18]). *Let be the approximation of the fractional derivative of the function as given by (19). Then, it holds that
**
where
*

##### 4.2. Approximation of the Right RLFD

Let be a sufficiently smooth function in and let be defined as follows: From (3) and (4), we deduce that We approximate ,, by a sum of shifted Chebyshev polynomials according to where,, and obtain

Lemma 6. *Let be the polynomial of degree as given by (25). Then, there exists a polynomial of degree such that
*

*Proof. *Let be expanded in a Taylor series at :
Then,
The assertion follows, if we choose
with an arbitrary constant .

In view of (27), we have Moreover, can be approximated by means of We express in (31) by a sum of Chebyshev polynomials and provide the recurrence relation satisfied by the Chebyshev coefficients. Differentiating both sides of (27) with respect to yields whence To evaluate in (31), we expand in terms of the shifted Chebyshev polynomials as where the summation symbol with one prime denotes a sum with the first term halved. Integrating both sides of (35) gives where . On the other hand, we have By using the relation and (35), it follows that where . Let Inserting and as given by (36) and (38) into (34) and taking (39) into account, we get

The Chebyshev coefficients of as given by (39) can be evaluated by integrating (39) and comparing it with (25): with starting values , where are the Chebyshev coefficients of .

#### 5. Numerical Results

In this section, we develop two algorithms (Algorithms and ) for the numerical solution of FOCPs and apply them to two illustrative examples.

*Example 1. *We consider the following FOCP from [8]:
subject to the dynamical system
and the boundary conditions
The exact solution is given by

*Algorithm A*. The first algorithm for the solution of (42a)–(42c) follows the “optimize first, then discretize” approach. It is based on the necessary optimality conditions from Theorem 2 and implements the following steps.

*Step *1*.* Compute the Hamiltonian

*Step *2*.* Derive the necessary optimality conditions from Theorem 2: Use (45c) in (45a) and (45b) to obtain

*Step *3*.* By using Chebyshev expansion, get an approximate solution of the coupled system (46a), (46b) under the boundary conditions (42c).

*Step **.* In order to solve (46a) by the Chebyshev expansion method, use (18) to approximate . A collocation scheme is defined by substituting (18), (19), and (32) into (46a) and evaluating the results at the shifted Gauss-Lobatto nodes . This gives
, where is defined in (20). The system (47) represents algebraic equations which can be solved for the unknown coefficients . Consequently, it remains to compute the two unknowns ,. This can be done by using any two points which differ from the Gauss-Lobatto nodes and satisfy (46a). We end up with two equations in two unknowns:

*Step *3.2*.* In order to solve (46b) by the Chebyshev expansion method, we use (18) to approximate . A collocation scheme is defined by substituting (18), (19), and the computed into (46b) and evaluating the results at the shifted Gauss-Lobatto nodes . This results in
where and are defined in (20). By using the boundary conditions, we have and . The system (49) represents algebraic equations which can be solved for the unknown coefficients .

Figures 1, 2, 3, and 4 display the exact and approximate state and the exact and approximate control for and .

Table 1 contains the maximum errors in the state and in the control for ,, and .

*Algorithm B*. The second algorithm follows the “discretize first, then optimize” approach and proceeds according to the following steps.

*Step *1*.* Substitute (42b) into (42a) to obtain

*Step *2*.* Approximate using the Clenshaw and Curtis formula (18) and approximate the Caputo fractional derivative and using (19). Then, (50) takes the form
where is defined as in (20) replacing by .

*Step *3*.* Use to transform (51) to

*Step *4*.* Use the Clenshaw and Curtis formula [12]
where
to approximate the integral (52) as a finite sum of shifted Chebyshev polynomials as follows:

*Step *5*.* According to the Rayleigh-Ritz method, the critical points of the objective functional (42a) are given by
which leads to a system of nonlinear algebraic equations. Solve this system by Newton’s method to obtain and use the boundary conditions to get ,. Then, the pair which solves the FOCP has the form

Figures 5, 6, 7, and 8 display the exact and approximate state and the exact and approximate control for and .

Table 2 contains the maximum errors in the state and in the control for , , and .

A comparison of Tables 1 and 2 reveals that both algorithms yield comparable numerical results which are more accurate than those obtained by the algorithm used in [8].

*Example 2. *We consider the following linear-quadratic optimal control problem:
subject to the dynamical system
and the boundary conditions
The exact solution is given by
We note that, for Example 2, the optimality conditions stated in Theorem 2 are also sufficient (cf. Remark 3).

Table 3 contains a comparison between the maximum error in the state and in the control for Algorithms and .

As opposed to Example 1, in this case, Algorithm performs substantially better than Algorithm .

#### 6. Conclusions

In this paper, we have presented two algorithms for the numerical solution of a wide class of fractional optimal control problems, one based on the “optimize first, then discretize” approach and the other one on the “discretize first, then optimize” strategy. In both algorithms, the solution is approximated by -term truncated Chebyshev series. Numerical results for two illustrative examples show that the algorithms converge as the number of terms is increased and that the first algorithm is more accurate than the second one.

#### Acknowledgments

R. H. W. Hoppe has been supported by the DFG Priority Programs SPP 1253 and SPP 1506, by the NSF Grants DMS-0914788, DMS-1115658, and by the European Science Foundation within the Networking Programme “OPTPDE.”

#### References

- P. J. Torvik and R. L. Bagley, “On the appearance of the fractional derivative in the behavior of real materials,”
*Journal of Applied Mechanics*, vol. 51, no. 2, pp. 294–298, 1984. View at Publisher · View at Google Scholar · View at Scopus - M. M. Khader, N. H. Sweilam, and A. M. S. Mahdy, “An efficient numerical method for solving the fractional diffusion equation,”
*Journal of Applied Mathematics and Bioinformatics*, vol. 1, no. 2, pp. 1–12, 2011. - A. Oustaloup, F. Levron, B. Mathieu, and F. M. Nanot, “Frequency-band complex noninteger differentiator: characterization and synthesis,”
*IEEE Transactions on Circuits and Systems I*, vol. 47, no. 1, pp. 25–39, 2000. View at Publisher · View at Google Scholar · View at Scopus - C. Tricaud and Y.-Q. Chen, “An approximate method for numerically solving fractional order optimal control problems of general form,”
*Computers and Mathematics with Applications*, vol. 59, no. 5, pp. 1644–1655, 2010. View at Publisher · View at Google Scholar · View at Scopus - M. Zamani, M. Karimi-Ghartemani, and N. Sadati, “FOPID controller design for robust performance using particle swarm optimization,”
*Journal of Fractional Calculus and Applied Analysis*, vol. 10, no. 2, pp. 169–188, 2007. - O. P. Agrawal, “A general formulation and solution scheme for fractional optimal control problems,”
*Nonlinear Dynamics*, vol. 38, no. 1–4, pp. 323–337, 2004. View at Publisher · View at Google Scholar · View at Scopus - M. M. Khader, N. H. Sweilam, and A. M. S. Mahdy, “Numerical study for the fractional differential equations generated by optimization problem using Chebyshev collocation method and FDM,”
*Applied Mathematics & Information Sciences*, vol. 7, no. 5, pp. 2011–2018, 2013. - S. Pooseh, R. Almeida, and D. F. M. Torres, “A numerical scheme to solve fractional optimal control problems,”
*Conference Papers in Mathematics*, vol. 2013, Article ID 165298, 10 pages, 2013. View at Publisher · View at Google Scholar - N. H. Sweilam, M. M. Khader, and A. M. S. Mahdy, “Computional methods for fractional differential equations generated by optimization problem,”
*Journal of Fractional Calculus and Applications*, vol. 3, pp. 1–12, 2012. - A. K. Khalifa, E. M. E. Elbarbary, and M. A. Abd Elrazek, “Chebyshev expansion method for solving second and fourth-order elliptic equations,”
*Applied Mathematics and Computation*, vol. 135, no. 2-3, pp. 307–318, 2003. View at Publisher · View at Google Scholar · View at Scopus - N. H. Sweilam and M. M. Khader, “A Chebyshev pseudo-spectral method for solving fractional order integro- differential equations,”
*ANZIAM Journal*, vol. 51, no. 4, pp. 464–475, 2010. View at Publisher · View at Google Scholar · View at Scopus - C. W. Clenshaw and A. R. Curtis, “A method for numerical integration on an automatic computer,”
*Numerische Mathematik*, vol. 2, no. 1, pp. 197–205, 1960. View at Publisher · View at Google Scholar · View at Scopus - R. Almeida and D. F. M. Torres, “Necessary and sufficient conditions for the fractional calculus of variations with Caputo derivatives,”
*Communications in Nonlinear Science and Numerical Simulation*, vol. 16, no. 3, pp. 1490–1500, 2011. View at Publisher · View at Google Scholar · View at Scopus - K. B. Oldham and J. Spanier,
*The Fractional Calculus*, Academic Press, New York, NY, USA, 1974. - S. Samko, A. Kilbas, and O. Marichev,
*Fractional Integrals and Derivatives: Theory and Applications*, Gordon and Breach, London, UK, 1993. - M. A. Snyder,
*Chebyshev Methods in Numerical Approximation*, Prentice Hall, Englewood Cliffs, NJ, USA, 1966. - M. M. Khader and A. S. Hendy, “Fractional Chebyshev finite difference method for solving the fractional BVPs,”
*Journal of Applied Mathematics & Informatics*, vol. 31, no. 1-2, pp. 299–309, 2012. - M. M. Khader and A. S. Hendy, “An efficient numerical scheme for solving fractional optimal control problems,”
*International Journal of Nonlinear Science*, vol. 14, no. 3, pp. 287–296, 2012.