Volume 2013, Issue 1 535979
Research Article
Open Access

Robustness of Operational Matrices of Differentiation for Solving State-Space Analysis and Optimal Control Problems

Emran Tohidi

Emran Tohidi

Department of Mathematics, Islamic Azad University, Zahedan Branch, Zahedan, Iran iau.ac.ir

Search for more papers by this author
F. Soleymani

F. Soleymani

Department of Mathematics, Islamic Azad University, Zahedan Branch, Zahedan, Iran iau.ac.ir

Search for more papers by this author
Adem Kilicman

Corresponding Author

Adem Kilicman

Department of Mathematics, Universiti Putra Malaysia, 43400 Serdang, Malaysia upm.edu.my

Search for more papers by this author
First published: 04 April 2013
Citations: 15
Academic Editor: Mustafa Bayram

Abstract

The idea of approximation by monomials together with the collocation technique over a uniform mesh for solving state-space analysis and optimal control problems (OCPs) has been proposed in this paper. After imposing the Pontryagins maximum principle to the main OCPs, the problems reduce to a linear or nonlinear boundary value problem. In the linear case we propose a monomial collocation matrix approach, while in the nonlinear case, the general collocation method has been applied. We also show the efficiency of the operational matrices of differentiation with respect to the operational matrices of integration in our numerical examples. These matrices of integration are related to the Bessel, Walsh, Triangular, Laguerre, and Hermite functions.

1. Introduction

In the last four decades, numerical methods which are based on the operational matrices of integration (especially for orthogonal polynomials and functions) have received considerable attention for dealing with a huge size of applied mathematics problems such as state-space analysis and optimal control. The key idea of these methods is based on the integral expression
()
where Φ(t) = [Φ1(t), Φ2(t), …, ΦN(t)] is an arbitrary basis vector and P is a (N + 1)×(N + 1) constant matrix, called the operational matrix of integration. The matrix P has already been determined for many types of orthogonal (or nonorthogonal) bases such as Walsh functions [13], block-pulse functions [4], Laguerre polynomials [5], Chebyshev polynomials [6], Legendre polynomials [7], Hermite polynomials [8], Fourier series [9], Bernstein polynomials [10], and Bessel functions [11]. As a primary research work which was based on the operational matrices of integration, one can refer to the work of Corrington [1]. In [1], the author proposed a method of solving nonlinear differential and integral equations using a set of Walsh functions as the basis. His method is aimed at obtaining piecewise constant solutions of dynamic equations and requires previously prepared tables of coefficients for integrating Walsh functions. To alleviate the need for such tables, Chen and Hsiao [2, 3] introduced an operational matrix to perform integration of Walsh functions. This operational matrix approach has been applied to various problems such as time-domain analysis and synthesis of linear systems, and piecewise constant-feedback-gain determination for optimal control of linear systems and for inverting irrational Laplace transforms.
On the other hand, since the beginning of 1994, the Bernoulli, Chebyshev, Laguerre, Bernstein, Legendre, Taylor, Hermite, and Bessel matrix methods have been used in the works [1224] to solve high-order linear and nonlinear differential (including hyperbolic partial differential equations) Fredholm Volterra integrodifferential difference delay equations and their systems. The main characteristic of these approaches is based on the operational matrices of differentiation instead of integration. The best advantage of these techniques with respect to the integation methods is that, in the fundamental matrix relations, there is not any approximation symbol, meanwhile in the integration forms such as (1) the approximation symbol could be seen obviously. In other words
()
where B is the operational matrix of differentiation for any selected basis such as the previously mentioned polynomials, functions, and truncated series. The readers can see that there is no approximation symbol in (2), meanwhile this can be seen in (1) by using operational matrices of integration. For justifying this expression, one can refer to this subject that after differentiating an Nth degree polynomial we usually reach to a polynomial which has less than Nth degree. However, in the integration processes the degree of polynomials would be increased.
In this paper, we generalize a new collocation matrix method that was applied for solving a huge size of applied mathematics models (see for instance [16] and the references therein), to several special classes of systems of ordinary differential equations (ODEs). Two important classes of such systems of ODEs are
  • (i)

    State space analysis,

  • (ii)

    Hamiltonian system,

which are the necessary (and also are sufficient in several special cases) conditions for optimality of the solutions of OCPs, originate from the PMP, and have considerable importance in optimal control and calculus of variation.

We again emphasized that the methods that are based on the operational matrices of differentiation are more accurate and effective with regard to the integration ones. We illustrate this fact through several examples for dealing with the previously mentioned systems in the section of numerical examples. It should be noted that one of the best tools for the integration approaches is using high accurate Gauss quadrature rules such as the method of [25, 26]. However, more CPU times are required for using such quadrature rules, and also the matrix coefficient associated to these methods is ill-conditioned usually and should be preconditioned.

The remainder of this paper is organized as follows. In Section 2, the considered problems such as state-space analysis and Hamiltonian system are introduced. In Section 3, the fundamental matrix relations together with the method of obtaining approximate solutions are described. In Section 4, several numerical examples are provided for confirming high accuracy of the proposed method. The last Section is devoted to the conclusions.

2. Problems Statement

In this section two types of problems are considered. In the first subsection, we show that how the Hamiltonian systems can be obtained in both linear and nonlinear forms. In the second subsection, we introduce a general form of state-space analysis problems.

2.1. Hamiltonian Systems

2.1.1. Linear Quadratic Optimal Control Problems

In this part, we consider the following linear optimal control problem (OCP):
()
where xn, um, A(·) ∈ n×n and B(·) ∈ Rm×n. The control u(t) is an admissible control if it is piecewise continuous in t for t ∈ [t0, tf]. Its values belong to a given closed subset U of m. The input u(t) is derived by minimizing the quadratic performance index J, where Pn×n is positive semidefinite matrix and Rm×m is a positive definite matrix. We consider Hamiltonian for system (3) as
()
where λn is the costate vector.
According to the Pontryagin’s maximum principle, we have [27]
()
The optimal control is computed by [27]
()
where λ and x are the solution of the Hamiltonian system:
()

2.1.2. Nonlinear Quadratic Optimal Control Problems

Consider the nonlinear dynamical system
()
with x(t) ∈ n denoting the state variable, u(t) ∈   m the control variable, and x0 is the given initial state at t0. Moreover, f(t, x(t)) ∈ n and g(t, x(t)) ∈ n×m are two continuously differentiable functions in all arguments. Our aim is to minimize the quadratic objective functional
()
subject to the nonlinear system (8), for Qn×n, Rm×m positive semidefinite and positive definite matrices, respectively. Since the performance index (9) is convex, the following extreme necessary conditions are also sufficient for optimality [28]:
()
where H(x, u, λ) = (1/2)[xTQx + uTRu] + λT[f(t, x) + g(t, x)u] is referred to the Hamiltonian. Equivalently, (10) can be written in the form of
()
where λ(t) ∈ n is the costate vector with the ith component λi(t), i = 1, …, n and g(t, x) = [g1(t, x), …, gn(t, x)] T with gi(t, x) ∈ m,  i = 1, …, n.
Also the optimal control law is obtained by
()

For solving such a two-point boundary value problem (TPBVP) in (11), we apply a similar collocation method that was proposed in [29].

2.2. State Space Analysis Problems

In this part, we consider the following state space analysis problem:
()
where A(t) ∈ n×n, B(t) ∈ n, and u(t) ∈ are known, meanwhile x(t) ∈ n is unknown. The goal is to obtain the approximation of x(t) in (13). The previously mentioned system (13) is similar to Hamiltonian system (7) and the scheme of their solutions is the same.

Remark 1. We recall that the main goal of this paper is to approximate the solution of the systems (7), (11), and (13) by applying a new matrix method which is based on the operational matrix of differentiation and also the uniform collocation scheme in the parts of Hamiltonian systems and state space analysis problems.

3. Fundamental Matrix Relations and Method of the Solution

In this section, by using the collocation points and the matrix relations between the monomials {1, t, t2, …, tN} and their derivatives, we will find the approximate solution of the system (7) expressed in the truncated monomial series form (assuming that x(t) and λ(t) ∈ and also A(t) together with B(t) is independent of time t, that is, A = A(t) and B = B(t))
()
so that a1,n and a2,n; n = 0,1, 2, …, N are the unknown coefficients.
Let us consider the desired solutions x(t) and λ(t), of (7) defined by the truncated monomial series (14). We can write the approximate solutions, which are given in relation (14) in the matrix form
()
where X(t) = [1  t   ⋯   tN] and , i = 1,2.
The matrix form of the relation between the matrix X(t) and its kth derivative X(k)(t) is
()
so that
()
By using the relations (15) and (16), we have the following relations:
()
Thus, we can express the matrices y(t) and y(1)(t) as follows:
()
where
()
Now, we can restate the system (7) in the matrix form
()
where
()
Applying the following collocation points in (21):
()
yields to N + 1 equations as follows:
()
All of the these equations can be written in the following matrix form:
()
where
()
where ⊗ denotes the Kronecker product and I is the identity matrix of dimension N + 1.
With the aid of relation (19) and the collocation points (23), we gain
()
which can be written as
()
where
()
If the relation (28) is substituted into (25), the fundamental matrix equation is obtained as
()
Thus, the fundamental matrix equation (30) corresponding to (7) can be written in the form
()
which corresponds to a linear system of 2(N + 1) algebraic equations in 2(N + 1) the unknown monomial coefficients so that
()
By the aid of the relation (19), the matrix form for the boundary conditions which are given in (7) can be written as
()
Finally, by replacing the rows of the matrices by the last rows of the matrices [W; O], we obtain the new augmented matrix
()
The unknown monomials coefficients which exist in A are determined by solving this linear system, and hence ai,0,  ai,1, …,  ai,N, (i = 1,2) are substituted in (14). Therefore, we find the approximated solutions
()
We can easily check the accuracy of the method. Since the truncated monomial series (14) are the approximate solutions of (7), when the functions xN(t), λN(t) and their derivatives are substituted in (7), the resulting equation must be satisfied approximately; that is, for t = tq ∈ [t0, tf],  q = 0,1, 2, …
()
and , i = 1,2 (kq positive integer).

If (k positive integer) is prescribed, then the truncation limit N is increased until the difference Ei,N(tq) at each of the points becomes smaller than the prescribed 10k, see [24].

Remark 2. We must recall that a similar approach can be applied for the state space analysis problem (13). Moreover, as we say before, for solving a general nonlinear system of ODEs such as (11), we apply a generalization of the collocation method that was proposed in [29].

4. Numerical Examples

In this section, several numerical examples are given to illustrate the accuracy and effectiveness of the proposed method. All calculations are designed in MAPLE 13 and run on a Pentium 4 PC Laptop with 2 GHz of CPU and 2 GB of RAM. In this regard, in tables and figures, we report the absolute error functions associated to the trajectory and control variables and also the approximated values of performance index. In the first example, we provide an OCP that was recently considered by a new method (which is based on the operational matrix of integration of Triangular functions) [30] and reach to more accurate results. Also, in the second example, we consider another OCP (or Hamiltonian system) with time variant dynamical system, in which our results have more accuracy and credit with regard to methods [30, 31]. Moreover, we consider a nonlinear OCP as our third numerical illustration. In the fourth example, we provide a state space analysis problem together with a full comparison with the methods that are based on the operational matrices of integration such as Bessel [11] and Laguerre [32].

Example 3 (see [30] linear Hamiltonian system.)Consider the problem of minimizing

()
subject to
()
The purpose is to find the optimal control u(t) which minimizes (37) subject to (38). The Optimal value of performance index for this problem is J* = 0.463566653481105 and also exact solutions have been given in [30] as
()
Since the objective function of this OCP is convex, therefore the following necessary conditions (i.e., linear Hamiltonian system) for optimality are also sufficient:
()
Hence, we need to solve the previous system of differential equations such that the obtained numerical solution is the optimal solution of problem (37)-(38). It should be noted that according to (6) the optimal control is computed by u*(t) = −λ(t), where λ(t) is the solution of the previous system.

We solve this problem by using our proposed method in the cases of N = 4,5, 6, 7, and 8. The approximated solutions corresponding to these values of N are provided below

()
The associated performance indexes for the selected values of N are J4 = 0.463550469, J5 = 0.4635575131, J6 = 0.4635665731, J7 = 0.463566618, and J8 = 0.4635666532. We provide the , associated to our proposed method (PM) and a new method that is based on the operational matrix of integration of Triangular functions [30] for different values of N in Table 1. It can be seen from this table that our obtained results for such considered values of N (i.e., 4, 5, 6, 7, and 8) are the same and equal to the obtained results of [30] for higher values of N such as 4,8, 16,32, and 64 in computation of . Moreover, our results corresponding to the are more accurate with regard to the method of [30] even by choosing lower values of N.

Table 1. Comparison results of Example 3.
N of PM of PM N of TFM [30] of TFM [30]
4 1.8441e − 003  1.6184e − 005  4 7.68816e − 03  4.27347e − 03 
5 2.2886e − 004  9.1404e − 006  8 3.19260e − 03  1.06808e − 03 
6 3.3538e − 005  8.0381e − 008  16 1.74696e − 04  2.67002e − 04 
7 4.5138e − 005  3.5481e − 008  32 4.36429e − 05  6.67494e − 05 
8 3.0718e − 005  2.8111e − 010  64 1.09092e − 05  1.66873e − 05 

Example 4 (see [30], [31] linear Hamiltonian system.)Consider the linear time-varying system

()
with the cost functional
()
The problem is to obtain the optimal control u*(t) which minimizes (43) subject to (42). The optimal control is
()
where K(t) is the feedback controller gain matrix and the solution of the Riccati equation [30]
()
According to the optimality conditions (5) and (6) we have
()
We first solve the previous system and obtain the numerical solutions xN(t) and λN(t) for N = 4,5, 6, and then solve (45) by ODE solver commands which exist in MAPLE 13. Since, K(t) = −(u(t)/x(t)) then our numerical results of K(t) are equal to −(uN(t)/xN(t)), that is, KN(t) = −(uN(t)/xN(t)). The numerical results of system (46), which are obtained by the proposed method could be deduced as
()
Also, the exact solution K(t) of the Riccati equation (45) at the uniform mesh in the interval (0,1) are K(0) = 9.6854e − 001, K(0.1) = 9.5147e − 001, K(0.2) = 9.1063e − 001, K(0.3) = 8.4416e − 001, K(0.4) = 7.5241e − 001, K(0.5) = 6.3856e − 001, K(0.6) = 5.0873e − 001, K(0.7) = 3.7127e − 001, K(0.8) = 2.3540e − 001, K(0.9) = 1.0955e − 001, and K(1) = 0. In Table 2, we provide the absolute values of errors at the selected points for the previously considered values of N together with the same errors associated with other methods [30, 31]. Again, we can see the accuracy of method with regard to the methods that are based on operational matrices of integration.

Table 2. The error histories at the selected points for Example 4.
t PM for N = 4 PM for N = 5 PM for N = 6 TFM [30] N = 6 MGL [31] N = 6 TFM [30] N = 64
0.0 1.5274e − 003  3.5407e − 005  6.8533e − 007  7.4890e − 002  9.3400e − 002  7.6980e − 003 
0.1 1.9116e − 003  6.7725e − 005  1.4752e − 006  2.2140e − 002  1.0020e − 001  1.6770e − 003 
0.2 2.3352e − 003  9.5549e − 005  1.7583e − 006  5.2150e − 002  1.0660e − 001  5.6050e − 003 
0.3 2.6500e − 003  9.9318e − 005  1.8482e − 006  7.1120e − 002  1.5530e − 001  5.8040e − 003 
0.4 2.8209e − 003  1.0115e − 004  2.2289e − 006  1.5220e − 002  2.3530e − 001  2.0900e − 003 
0.5 2.9118e − 003  1.1223e − 004  2.5894e − 006  9.9270e − 002  2.9390e − 001  1.0200e − 002 
0.6 2.9909e − 003  1.1855e − 004  2.3877e − 006  2.8060e − 002  2.7180e − 001  1.9860e − 003 
0.7 3.0063e − 003  1.0774e − 004  2.1119e − 006  5.7040e − 002  1.7540e − 001  5.9630e − 003 
0.8 2.7289e − 003  9.2586e − 005  2.4315e − 006  6.5130e − 002  7.5600e − 002  5.5260e − 003 
0.9 1.8221e − 003  8.1824e − 005  1.6928e − 006  1.5240e − 002  1.8200e − 002  1.7450e − 003 

Example 5 (nonlinear Hamiltonian system). As our third illustration, consider the following nonlinear optimal control problem:

()
Trivially f(t, x(t)) = (1/2)x2(t)sin x(t), g(t, x(t)) = 1, Q = 0, R = 1, t0 = 0, and tf = 1. As mentioned in Section 2.2, we solve the following system of ordinary differential equations:
()
Also the optimal control law is given by
()

Similar to the linear cases, we suppose that the state and costate variables could be written in terms of linear combination of monic polynomials which are defined in Section 3, with the unknown monomial coefficients. These coefficients will be determined after imposing the previous system of differential equations at the uniform mesh in the interval (0,1). In other words, applying these collocation points to the main system together with the considered boundary conditions on x(t) and λ(t) transforms the basic problem to the corresponding system of nonlinear algebraic equations. By assuming different values of N such as 5,  7, and 9, we solve the previously mentioned system. In Table 3, we provide the approximated performance index JN, which is obtained by our proposed method and also the difference between the approximated xN(1) − x(1) = xN(1)−(1/2) for the considered values of N.

Table 3. Numerical results of Example 5.
N JN of PM xN  (1)    x(1) of PM
5 0.2426752 0
7 0.2426750 1.0000e − 007 
9 0.2426740 2.0000e − 015 

Example 6 (see [11], [32] state-space analysis.)We consider a linear-time invariant state equation

()
where
()
We are given that the input u(t) is the unit step function in the interval (0,1) and the initial state is
()
The exact solution for (51) is
()
We solve this problem by using our proposed method in the cases of N = 4,5, 6,7, 8,9, 10,12, and 20. The approximated solutions corresponding to the N = 4,5, 6,7, 8,9, and 10 are provided later
()

An interesting comparison between our presented method (PM) and the method of [11] in the absolute value of the errors at the uniform mesh for N = 8,12, and 20 is considered in Table 4. Moreover, the error histories in the computational interval (0,1) associated with our method for N = 4 and 5 together with the error history of the method [11] (Bessel Integration) for N = 4 and also the error history of the method [32] (Laguerre Integration) for N = 5 are depicted in Figure 1. From this figure one can see the applicability and high accuracy of the presented method with respect to the methods which are based on operational matrices of integration such as [11, 32].

Table 4. The error histories at the selected points for Example 6.
t Bessel Int N = 8 Bessel Int N = 12 Bessel Int N = 20 PM for N = 8 PM for N = 12 PM for N = 20
0.0 9.6890e − 003  6.6498e − 003  4.1214e − 003  0  0  0 
0.1 2.3974e − 002  1.0755e − 002  1.6289e − 003  6.5649e − 009  6.8945e − 014  6.1062e − 014 
0.2 7.2706e − 003  1.6306e − 003  4.6111e − 003  4.5248e − 009  5.0071e − 014  4.8073e − 014 
0.3 2.5780e − 003  4.6009e − 003  8.9332e − 003  3.6167e − 009  4.1522e − 014  3.7859e − 014 
0.4 2.2427e − 003  7.2766e − 003  1.1642e − 002  3.2895e − 009  3.3973e − 014  3.0309e − 014 
0.5 6.3782e − 003  1.0152e − 002  1.3160e − 002  2.2422e − 009  2.7311e − 014  2.4425e − 014 
0.6 6.9801e − 003  1.1190e − 002  1.3796e − 002  2.4272e − 009  2.2649e − 014  1.9873e − 014 
0.7 9.5374e − 003  1.1427e − 002  1.3807e − 002  1.1916e − 009  1.8097e − 014  1.6431e − 014 
0.8 8.6910e − 003  1.1990e − 002  1.3398e − 002  1.8602e − 009  1.0991e − 014  1.3878e − 014 
0.9 1.0169e − 002  1.1068e − 002  1.2680e − 002  4.0343e − 009  6.6391e − 014  1.8874e − 014 
1.0 5.8131e − 003  8.4105e − 003  1.0482e − 002  2.2065e − 007  3.9901e − 012  8.3072e − 012 
Details are in the caption following the image
The error histories of our method together with the methods [11, 32] in Example 6.

5. Conclusions

The aim of this paper is to present an indirect approach for solving optimal control problems using truncated monomial series together with the collocation method on a uniform mesh. Our method applies an operational matrix of differentiation which has more efficiency with respect to the integration ones. Operational matrices of differentiation have several specific properties that other integration ones do not have them. One of them is that through using differentiation ones, we solve our problem directly and do not need to integrate the dynamical system. Another property is that the fundamental relations, which are based on differentiation matrices, are the exact relations, meanwhile the methods which are based on integration matrices impose the approximation to the main problem. These properties are shown through several numerical examples such as state-space analysis and specially optimal control problems.

Conflict of Interests

The authors declare that they do not have any conflict of interests in their submitted paper.

    Acknowledgment

    The authors are grateful to the comments of the referees, which have led to several improvements in the presentation of this paper.

        The full text of this article hosted at iucr.org is unavailable due to technical difficulties.