<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2018.98064</article-id><article-id pub-id-type="publisher-id">AM-86927</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Application of Conjugate Gradient Approach for Nonlinear Optimal Control Problem with Model-Reality Differences
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Sie</surname><given-names>Long Kek</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Wah</surname><given-names>June Leong</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Sy</surname><given-names>Yi Sim</given-names></name><xref ref-type="aff" rid="aff3"><sup>3</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kok</surname><given-names>Lay Teo</given-names></name><xref ref-type="aff" rid="aff4"><sup>4</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff4"><addr-line>Department of Mathematics and Statistics, Curtin University of Technology, Perth, Australia</addr-line></aff><aff id="aff2"><addr-line>Department of Mathematics, Universiti Putra Malaysia, Serdang, Malaysia</addr-line></aff><aff id="aff3"><addr-line>Department of Electrical Engineering Technology, Universiti Tun Hussein Onn Malaysia, Campus Pagoh, Panchor, Malaysia</addr-line></aff><aff id="aff1"><addr-line>Department of Mathematics and Statistics, Universiti Tun Hussein Onn Malaysia, Campus Pagoh, Panchor, Malaysia</addr-line></aff><pub-date pub-type="epub"><day>14</day><month>08</month><year>2018</year></pub-date><volume>09</volume><issue>08</issue><fpage>940</fpage><lpage>953</lpage><history><date date-type="received"><day>12,</day>	<month>July</month>	<year>2018</year></date><date date-type="rev-recd"><day>26,</day>	<month>August</month>	<year>2018</year>	</date><date date-type="accepted"><day>29,</day>	<month>August</month>	<year>2018</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  
    In this paper, an efficient computational algorithm is proposed to solve the nonlinear optimal control problem. In our approach, the linear quadratic optimal control model, which is adding the adjusted parameters into the model used, is employed. The aim of applying this model is to take into account the differences between the real plant and the model used during the calculation procedure. In doing so, an expanded optimal control problem is introduced such that system optimization and parameter estimation are mutually interactive. Accordingly, the optimality conditions are derived after the Hamiltonian function is defined. Specifically, the modified model-based optimal control problem is resulted. Here, the conjugate gradient approach is used to solve the modified model-based optimal control problem, where the optimal solution of the model used is calculated repeatedly, in turn, to update the adjusted parameters on each iteration step. When the convergence is achieved, the iterative solution approaches to the correct solution of the original optimal control problem, in spite of model-reality differences. For illustration, an economic growth problem is solved by using the algorithm proposed. The results obtained demonstrate the efficiency of the algorithm proposed. In conclusion, the applicability of the algorithm proposed is highly recommended. 
  
 
</p></abstract><kwd-group><kwd>Nonlinear Optimal Control</kwd><kwd> Conjugate Gradient Approach</kwd><kwd> Iterative Solution</kwd><kwd> Adjusted Parameters</kwd><kwd> Model-Reality Differences</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Recently, the integrated optimal control and parameter estimation (IOCPE) algorithm has been proposed [<xref ref-type="bibr" rid="scirp.86927-ref1">1</xref>] in solving the nonlinear optimal control problem, both for discrete time deterministic and stochastic cases (see for more detail in [<xref ref-type="bibr" rid="scirp.86927-ref2">2</xref>] - [<xref ref-type="bibr" rid="scirp.86927-ref9">9</xref>] ). In essence, the concept of the IOCPE algorithm is come from the dynamic integrated system optimization and parameter estimation (DISOPE) algorithm, which was developed by [<xref ref-type="bibr" rid="scirp.86927-ref10">10</xref>] . By using the DISOPE algorithm, optimal control of the deterministic dynamical systems, not only for continuous time but also for discrete time, has been widely discussed [<xref ref-type="bibr" rid="scirp.86927-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref11">11</xref>] . On this point of view, the applications of the DISOPE algorithm have been well-defined. Date back to the 70s, [<xref ref-type="bibr" rid="scirp.86927-ref12">12</xref>] and [<xref ref-type="bibr" rid="scirp.86927-ref13">13</xref>] proposed the integrated system optimization and parameter estimation (ISOPE) algorithm, which is for solving the static optimization problems. Since then, the development of ISOPE algorithm in the dynamic version is rapidly growing up till today.</p><p>In fact, the basic idea for ISOPE, DISOPE and IOCPE algorithms is the principle of model-reality differences [<xref ref-type="bibr" rid="scirp.86927-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref13">13</xref>] . Because the structure of the nonlinear optimal control problem is complex and solving such problem is computationally demanding, the simplified model for the original optimal control problem is proposed to be solved iteratively. By adding the adjusted parameters into the model used, the differences between the model used and the real plant can be measured. This measurement is done repeatedly, in turn, to update the optimal solution of the model used. Once the convergence is achieved, the iterative solution approximates to the true optimal solution of the original optimal control problem, in spite of model-reality differences [<xref ref-type="bibr" rid="scirp.86927-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref13">13</xref>] . Besides, for solving the discrete time nonlinear stochastic optimal control problem, the Kalman filtering theory is associated with the principle of model-reality differences in order to do state estimation and system optimization [<xref ref-type="bibr" rid="scirp.86927-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref6">6</xref>] .</p><p>By virtue of the evolution of these algorithms, the feedback optimal control law is provided in solving the nonlinear optimal control problems, and their effectiveness has been well-confirmed. Nevertheless, the applicability of the open-loop optimal control law in these algorithms shall be investigated such that the popularity of these algorithms could be promoted. This is because of the open-loop optimal control sequences could be generated by taking the advantage of the power of the state-of-the-art nonlinear programming (NLP) solver. Thus, as an efficient optimization technique, the conjugate gradient method [<xref ref-type="bibr" rid="scirp.86927-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref15">15</xref>] has been explored to solve the optimal control problem [<xref ref-type="bibr" rid="scirp.86927-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref18">18</xref>] since last few decades. Thereby, the use of the conjugate gradient method inspires us to explore this method in the IOCPE algorithm practically.</p><p>Hence, the application of the conjugate gradient method is discussed in this paper for solving the nonlinear optimal control problem, where the model-reality differences are considered. Apparently, the model-based optimal control problem, which is simplified from the nonlinear optimal control problem, is constructed. Follow from this, the Hamiltonian function is defined and the augmented cost function is obtained. Then, the set of the necessary conditions for optimality is derived. Consequently, the modified model-based optimal control problem is converted to be a nonlinear optimization problem. By applying the conjugate gradient approach, the nonlinear optimization problem is solved and the optimal control sequences are generated. With this open-loop control law, the dynamical system is optimized and the cost function is evaluated. For illustration, optimal control of an economic growth problem [<xref ref-type="bibr" rid="scirp.86927-ref19">19</xref>] is discussed. The results obtained show the applicability of the algorithm proposed.</p><p>The structure of the paper is organized as follows. In Section 2, the problem statement is described briefly, where the simplified model from the nonlinear optimal control problem is discussed. In Section 3, system optimization with parameter estimation is further discussed. The use of the conjugate gradient approach in solving the model-based optimal control problem is presented and the calculation procedure is summarized as an iterative algorithm. In Section 4, an economic growth problem is solved and the results are obtained. Finally, the concluding remarks are made.</p></sec><sec id="s2"><title>2. Problem Statement</title><p>Consider a general discrete-time optimal control problem, given by</p><p>min u ( k ) J 0 ( u ) = φ ( x ( N ) , N ) + ∑ k = 0 N − 1 L ( x ( k ) , u ( k ) , k ) subjectto     x ( k + 1 ) = f ( x ( k ) , u ( k ) , k ) ,     x ( 0 ) = x 0 (1)</p><p>where u ( k ) ∈ ℜ m , k = 0 , 1 , ⋯ , N − 1 and x ( k ) ∈ ℜ n , k = 0 , 1 , ⋯ , N are, respectively, the control sequences and the state sequences. Here, f : ℜ n &#215; ℜ m &#215; ℜ → ℜ n represents the real plant, L : ℜ n &#215; ℜ m &#215; ℜ → ℜ is the cost under summation and φ : ℜ n &#215; ℜ → ℜ is the terminal cost, whereas J 0 is the scalar cost function and x 0 is the known initial state vector. It is assumed that all functions in Equation (1) are continuously differentiable with respect to their respective arguments.</p><p>This problem is regarded as the real optimal control problem, and is referred to as Problem (P). Note that the structure of Problem (P) is complex and nonlinear, solving Problem (P) requires the efficient computation techniques. On this point of view, the simplified model of Problem (P) is probably suggested to be solved in order to approximate the true optimal solution of Problem (P). Therefore, let us define this simplified model-based optimal control problem as follows:</p><p>min u ( k ) J 1 ( u ) = 1 2 x ( N ) T S ( N ) x ( N ) + γ ( N )                                   + ∑ k = 0 N − 1 1 2 ( x ( k ) T Q x ( k ) + u ( k ) T R u ( k ) ) + γ ( k ) subjectto     x ( k + 1 ) = A x ( k ) + B u ( k ) + α ( k ) ,     x ( 0 ) = x 0 (2)</p><p>where γ ( k ) , k = 0 , 1 , ⋯ , N and α ( k ) , k = 0 , 1 , ⋯ , N − 1 are introduced as the adjusted parameters, whereas A is an n &#215; n transition matrix and B is an n &#215; m control coefficient matrix. Besides, S ( N ) and Q are n &#215; n positive semi-definite matrices, and R is a m &#215; m positive definite matrix. Here, J 1 is the scalar cost function.</p><p>This problem is referred to as Problem (M).</p><p>Notice that, due to the different structures and parameters, only solving Problem (M), without the adjusted parameters, would not obtain the optimal solution of Problem (P). However, by adding the adjusted parameters into Problem (M), the differences between the real plant and the model used can be calculated. In such a way, solving Problem (M) iteratively could give the correct optimal solution of Problem (P), in spite of model-reality differences.</p></sec><sec id="s3"><title>3. System Optimization with Parameter Estimation</title><p>Now, introduce an expanded optimal control problem, which is referred to as Problem (E), given by</p><p>min u ( k ) J 2 ( u ) = 1 2 x ( N ) T S ( N ) x ( N ) + γ ( N ) + ∑ k = 0 N − 1 1 2 ( x ( k ) T Q x ( k ) + u ( k ) T R u ( k ) )                                     + γ ( k ) + 1 2 r 1 ‖ u ( k ) − v ( k ) ‖ 2 + 1 2 r 2 ‖ x ( k ) − z ( k ) ‖ 2 subjectto     x ( k + 1 ) = A x ( k ) + B u ( k ) + α ( k ) ,     x ( 0 ) = x 0                               1 2 z ( N ) T S ( N ) z ( N ) + γ ( N ) = φ ( z ( N ) , N )</p><p>1 2 ( z ( k ) T Q z ( k ) + v ( k ) T R v ( k ) ) + γ ( k ) = L ( z ( k ) , v ( k ) , k ) A z ( k ) + B v ( k ) + α ( k ) = f ( z ( k ) , v ( k ) , k ) v ( k ) = u ( k ) z ( k ) = x ( k ) (3)</p><p>where v ( k ) ∈ ℜ m , k = 0 , 1 , ⋯ , N − 1 and z ( k ) ∈ ℜ n , k = 0 , 1 , ⋯ , N are introduced to separate the sequences of control and state in the optimization problem from the respective signals in the parameter estimation problem, and ‖   ⋅   ‖ de</p><p>notes the usual Euclidean norm. The term 1 2 r 1 ‖ u ( k ) − v ( k ) ‖ 2 and 1 2 r 2 ‖ x ( k ) − z ( k ) ‖ 2 with r 1 , r 2 ∈ ℜ are introduced to improve the convexity and</p><p>to facilitate the convergence of the resulting iterative algorithm. Here, it is classified that the algorithm is designed such that the constraints v ( k ) = u ( k ) and z ( k ) = x ( k ) are satisfied upon termination of the iterations, assuming that convergence is achieved. Moreover, the state constraint z ( k ) and the control constraint v ( k ) are used for the computation of the parameter estimation and matching scheme, while the corresponding state constraint x ( k ) and control constraint u ( k ) are reserved for optimizing the model-based optimal control problem. By virtue of this, system optimization and parameter estimation are mutually integrated.</p><sec id="s3_1"><title>3.1. Necessary Conditions for Optimality</title><p>Define the Hamiltonian function for Problem (E) by</p><p>H 2 ( k ) = 1 2 ( x ( k ) T Q x ( k ) + u ( k ) T R u ( k ) ) + γ ( k )     + 1 2 r 1 ‖ u ( k ) − v ( k ) ‖ 2 + 1 2 r 2 ‖ x ( k ) − z ( k ) ‖ 2     + p ( k + 1 ) T ( A x ( k ) + B u ( k ) + α ( k ) )     − λ ( k ) T u ( k ) − β ( k ) T x ( k ) (4)</p><p>where λ ( k ) ∈ ℜ m , k = 0 , 1 , ⋯ , N − 1 , β ( k ) ∈ ℜ n , k = 0 , 1 , ⋯ , N and p ( k ) ∈ ℜ n , k = 0 , 1 , ⋯ , N are modifiers. Then, the augmented cost function becomes</p><p>J ′ 2 ( u ) = 1 2 x ( N ) T S ( N ) x ( N ) + γ ( N ) + p ( 0 ) T x ( 0 ) − p ( N ) T x ( N )     + ξ ( N ) ( φ ( z ( N ) , N ) − 1 2 z ( N ) T S ( N ) z ( N ) − γ ( N ) )     + Γ T ( x ( N ) − z ( N ) ) + ∑ k = 0 N − 1 H 2 ( k ) − p ( k ) T x ( k ) + λ ( k ) T v ( k ) + β ( k ) T z ( k )     + ξ ( k ) ( L ( z ( k ) , v ( k ) , k ) − 1 2 ( z ( k ) T Q z ( k ) + v ( k ) T R v ( k ) ) − γ ( k ) )     + μ ( k ) T ( f ( z ( k ) , v ( k ) , k ) − A z ( k ) − B v ( k ) − α ( k ) ) (5)</p><p>where p ( k ) , ξ ( k ) , λ ( k ) , β ( k ) , μ ( k ) and Γ are the appropriate multipliers to be determined later.</p><p>Applying the calculus of variation [<xref ref-type="bibr" rid="scirp.86927-ref20">20</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref21">21</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref22">22</xref>] , the following necessary conditions for optimality are obtained:</p><p>1) Stationary condition:</p><p>R u ( k ) + B T p ( k + 1 ) − λ ( k ) + r 1 ( u ( k ) − v ( k ) ) = 0 (6a)</p><p>2) Co-state equation:</p><p>p ( k ) = Q x ( k ) + A T p ( k + 1 ) − β ( k ) + r 2 ( x ( k ) − z ( k ) ) (6b)</p><p>3) State equation:</p><p>x ( k + 1 ) = A x ( k ) + B u ( k ) + α ( k ) (6c)</p><p>4) Boundary conditions:</p><p>p ( N ) = S ( N ) x ( N ) + Γ and x ( 0 ) = x 0 (6d)</p><p>5) Adjusted parameter equations:</p><p>φ ( z ( N ) , N ) = 1 2 z ( N ) T S ( N ) z ( N ) + γ ( N ) (7a)</p><p>L ( z ( k ) , v ( k ) , k ) = 1 2 ( z ( k ) T Q z ( k ) + v ( k ) T R v ( k ) ) + γ ( k ) (7b)</p><p>f ( z ( k ) , v ( k ) , k ) = A z ( k ) + B v ( k ) + α ( k ) (7c)</p><p>6) Modifier equations:</p><p>Γ = ∇ z ( N ) φ − S ( N ) z ( N ) (8a)</p><p>λ ( k ) = − ( ∇ v ( k ) L − R v ( k ) ) − ( ∂ f ∂ v ( k ) − B ) T p ^ ( k + 1 ) (8b)</p><p>β ( k ) = − ( ∇ z ( k ) L − Q z ( k ) ) − ( ∂ f ∂ z ( k ) − A ) T p ^ ( k + 1 ) (8c)</p><p>with ξ ( k ) = 1 and μ ( k ) = p ^ ( k + 1 ) .</p><p>7) Separable variables:</p><p>v ( k ) = u ( k ) , z ( k ) = x ( k ) , p ^ ( k ) = p ( k ) . (9)</p><p>Notice that the parameter estimation problem is defined by Equation (7) and the computation of multipliers is given by Equation (8). Indeed, the necessary conditions, which are defined by Equations (6a) to (6d), are the optimality for the modified model-based optimal control problem.</p></sec><sec id="s3_2"><title>3.2. Modified Model-Based Optimal Control Problem</title><p>The modified model-based optimal control problem, which is referred to as Problem (MM), is given by</p><p>min u ( k ) J 3 ( u ) = 1 2 x ( N ) T S ( N ) x ( N ) + Γ T x ( N ) + γ ( N )                                       + ∑ k = 0 N − 1 1 2 ( x ( k ) T Q x ( k ) + u ( k ) T R u ( k ) ) + γ ( k )                                       + 1 2 r 1 ‖ u ( k ) − v ( k ) ‖ 2 + 1 2 r 2 ‖ x ( k ) − z ( k ) ‖ 2                                       − λ ( k ) T u ( k ) − β ( k ) T x ( k ) subjectto     x ( k + 1 ) = A x ( k ) + B u ( k ) + α ( k ) ,   x ( 0 ) = x 0 (10)</p><p>with the specified α ( k ) , γ ( k ) , λ ( k ) , β ( k ) , Γ , v ( k ) and z ( k ) , where the boundary conditions are given by x 0 and p ( N ) with the specified multiplier Γ .</p></sec><sec id="s3_3"><title>3.3. Open-Loop Optimal Control Law</title><p>For simplicity, define Problem (MM) as an equivalent nonlinear optimization problem with the initial control u ( 0 ) = u ( k ) 0 , given by</p><p>min u ( k ) J 3 ( u ) subject to u ∈ ℜ m for k = 0 , 1 , ⋯ , N − 1 (11)</p><p>where the admissible control variable u is set to be</p><p>u = [ ( u ( 0 ) ) T , ( u ( 1 ) ) T , ⋯ , ( u ( N − 1 ) ) T ] .</p><p>Let this problem as Problem (N). To proceed, it is noticed that solving Problem (N) could be done once the state Equation (6c) is solved forward and the costate Equation (6b) is solved backward with the corresponding control sequences u. In addition, the gradient function for the objective function J 3 ( u ) is evaluated from</p><p>∇ J 3 ( u ) = ∇ u ( k ) H (12)</p><p>which can be calculated from the Hamiltonian function (4) and the stationary condition (6a) once the necessary conditions for optimality, given by Equations (6) - (9), are satisfied.</p><p>Suppose the gradient function (12) is represented as</p><p>g ( u ) = ∇ u ( k ) H . (13)</p><p>Then, for arbitrary initial control u ( 0 ) , the initial gradient and the initial direction are, respectively, given by</p><p>g ( 0 ) = g ( u ( 0 ) ) and d ( 0 ) = − g ( 0 ) . (14)</p><p>By using the line search equation [<xref ref-type="bibr" rid="scirp.86927-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref16">16</xref>] , the control sequences can be generated from</p><p>u ( i + 1 ) = u ( i ) + a i ⋅ d ( i ) (15)</p><p>where a i ∈ ℜ is determined from the one-dimensional search, that is,</p><p>a i = arg min a ≥ 0 J 3 ( u ( i ) + a ⋅ d ( i ) ) . (16)</p><p>Later, the gradient and the direction are updated as follow:</p><p>g ( i + 1 ) = g ( u ( i + 1 ) ) (17)</p><p>d ( i + 1 ) = − g ( i + 1 ) + b i ⋅ d ( i ) (18)</p><p>with the coefficient</p><p>b i = g ( i + 1 ) T g ( i + 1 ) g ( i ) T g ( i ) (19)</p><p>where i = 0 , 1 , 2 , ⋯ represents the iteration numbers.</p><p>Thus, we present the result on the obtaining optimal control law discussed above as a proposition, given below:</p><p>Proposition 1. Consider Problem (N). The control sequences u ( i ) , which is defined in Equation (15) and is represented by</p><p>u ( i ) = [ ( u ( 0 ) ) T , ( u ( 1 ) ) T , ⋯ , ( u ( N − 1 ) ) T ] ,</p><p>is generated through a set of the direction vectors d ( i ) whose components are linearly independent. Also, the direction d ( i ) is conjugacy.</p><p>Proof: Refer [<xref ref-type="bibr" rid="scirp.86927-ref14">14</xref>] .</p><p>Here, the conjugate gradient algorithm for obtaining the optimal control law is summarized below:</p><p>Algorithm 1: Conjugate gradient algorithm</p><p>Data Choose the arbitrary initial control u ( 0 ) . Compute the initial gradient g ( 0 ) and the initial direction d ( 0 ) from Equation (14). Set i = 0.</p><p>Step 1 Solve the state Equation (6c) forward in time from k = 0 to k = N with the initial condition (6d) to obtain x ( k ) i , k = 0 , 1 , ⋯ , N .</p><p>Step 2 Solve the costate Equation (6b) backward in time from k = N to k = 0 with the boundary condition (6d), where p ( k ) i is the solution obtained.</p><p>Step 3 Calculate the value of the cost functional J 3 ( u ( i ) ) from Equation (10).</p><p>Step 4 Determine the step size a i from Equation (16).</p><p>Step 5 Update the control u ( i + 1 ) from Equation (15).</p><p>Step 6 Update the gradient g ( i + 1 ) from Equation (17). If the gradient g ( i + 1 ) = 0 , stop, else go to Step 7.</p><p>Step 7 Compute the coefficient b i from Equation (19).</p><p>Step 8 Update the direction d ( i + 1 ) from Equation (18). Set i = i + 1 , go to Step 1.</p><p>Remarks:</p><p>1) The initial control u ( 0 ) can be any valued-vectors, including the zero vector.</p><p>2) The gradient function g ( u ) for Problem (N) defined by Equation (11) is calculated from the stationary condition (6a). This is the turning point of using the conjugate gradient algorithm for solving Problem (M) defined by Equation (2) and Problem (MM) defined by Equation (10).</p><p>3) The optimal control sequences generated by the line search equation in Equation (15) is known as the open-loop control law.</p><p>4) The necessary conditions (6b) and (6c) shall be satisfied in solving Problem (N) defined by Equation (11).</p></sec><sec id="s3_4"><title>3.4. Iterative Procedure</title><p>Accordingly, from the discussion above, a summary of the calculation procedure for the integrated system optimization and parameter estimation is made as follows:</p><p>Algorithm 2: Iterative procedure</p><p>Data A , B , Q , R , S ( N ) , N , x 0 , r 1 , r 2 , k v , k z , k p , f , L . Note that A and B could be determined based on the linearization of f at x 0 or from the linear terms of f .</p><p>Step 0 Compute a nominal solution. Assume that α ( k ) = 0 , k = 0 , 1 , ⋯ , N − 1 and r 1 = r 2 = 0 . Solve Problem (M) defined by Equation (2) to obtain u ( k ) 0 , k = 0 , 1 , ⋯ , N − 1 and x ( k ) 0 , p ( k ) 0 , k = 0 , 1 , ⋯ , N . Then, with α ( k ) = 0 , k = 0 , 1 , ⋯ , N − 1 and using r 1 , r 2 from the data. Set i = 0 , v ( k ) 0 = u ( k ) 0 , z ( k ) 0 = x ( k ) 0 and p ^ ( k ) 0 = p ( k ) 0 .</p><p>Step 1 Compute the parameters γ ( k ) i , k = 0 , 1 , ⋯ , N and α ( k ) i , k = 0 , 1 , ⋯ , N − 1 from Equation (7). This is called the parameter estimation step.</p><p>Step 2 Compute the modifiers Γ i , λ ( k ) i and β ( k ) i , k = 0 , 1 , ⋯ , N − 1 from Equation (8). Notice that this step requires taking the derivatives of f and L with respect to v ( k ) i and z ( k ) i .</p><p>Step 3 With γ ( k ) i , α ( k ) i , Γ i , λ ( k ) i , β ( k ) i , v ( k ) i and z ( k ) i , solve Problem (N) by using Algorithm 1. This is called the system optimization step.</p><p>a) Use Equation (15) to obtain the new control u ( k ) i , k = 0 , 1 , ⋯ , N − 1 .</p><p>b) Use Equation (6c) to obtain the new state x ( k ) i , k = 0 , 1 , ⋯ , N .</p><p>c) Use Equation (6b) to obtain the new costate p ( k ) i , k = 0 , 1 , ⋯ , N .</p><p>Step 4 Test the convergence and update the optimal solution of Problem (P). In order to provide a mechanism for regulating convergence, a simple relaxation method is employed:</p><p>v ( k ) i + 1 = v ( k ) i + k v ( u ( k ) i − v ( k ) i ) (20a)</p><p>z ( k ) i + 1 = z ( k ) i + k z ( x ( k ) i − z ( k ) i ) (20b)</p><p>p ^ ( k ) i + 1 = p ^ ( k ) i + k p ( p ( k ) i − p ^ ( k ) i ) (20c)</p><p>where k v , k z , k p ∈ ( 0 , 1 ] are scalar gains. If v ( k ) i + 1 = v ( k ) i , k = 0 , 1 , ⋯ , N − 1 and z ( k ) i + 1 = z ( k ) i , k = 0 , 1 , ⋯ , N , within a given tolerance, stop; else set i = i + 1 , and repeat the procedure starting from Step 1.</p><p>Remarks:</p><p>1) The variable α ( k ) is zero in Step 0. The calculated value of α ( k ) changes from iteration to iteration during the calculation procedure.</p><p>2) The conjugate gradient algorithm is applied to generate the control sequences u ( k ) for Problem (M) and Problem (MM), respectively.</p><p>3) Problem (P) is not necessary to be linear or to have a quadratic cost function.</p><p>4) The conditions u ( k ) i + 1 = u ( k ) i and x ( k ) i + 1 = x ( k ) i are required to be satisfied for the converged optimal control sequence and the converged state sequence. The following averaged 2-norms are computed and then they are compared with a given tolerance to verify the convergence of u ( k ) and x ( k ) :</p><p>‖ u i + 1 − u i ‖ 2 = ( 1 N − 1 ∑ k = 0 N − 1 ‖ u ( k ) i + 1 − u ( k ) i ‖ ) 1 / 2 (21a)</p><p>‖ x i + 1 − x i ‖ 2 = ( 1 N ∑ k = 0 N ‖ x ( k ) i + 1 − x ( k ) i ‖ ) 1 / 2 (21b)</p><p>5) The convergence result on the conjugate gradient algorithm can be referred to [<xref ref-type="bibr" rid="scirp.86927-ref14">14</xref>] , and the convergence result for Algorithm 2 is presented in [<xref ref-type="bibr" rid="scirp.86927-ref4">4</xref>] and [<xref ref-type="bibr" rid="scirp.86927-ref10">10</xref>] .</p></sec></sec><sec id="s4"><title>4. Illustrative Example</title><p>Consider a basic economic growth model [<xref ref-type="bibr" rid="scirp.86927-ref19">19</xref>] [<xref ref-type="bibr" rid="scirp.86927-ref23">23</xref>] , which is a discrete time minimization problem, given by</p><p>min u ( k ) J 0 ( u ) = ∑ k = 0 N − 1 ρ k L ( x ( k ) , u ( k ) , k ) subjectto   x ( k + 1 ) = f ( x ( k ) , u ( k ) , k ) ,     x ( 0 ) = 5</p><p>where the payoff function and dynamics system are, respectively, defined by</p><p>L ( x ( k ) , u ( k ) , k ) = − ln ( Λ x ( k ) ν − u ( k ) ) and f ( x ( k ) , u ( k ) , k ) = u ( k ) .</p><p>Here, x is the capital stock, x is the control variable, ρ is the discount factor, whereas Λ x ν is a production function with constants Λ &gt; 0 , 0 &lt; ν &lt; 1 . The difference between the output and the next period’s capital stock is the consumption.</p><p>Let us refer this problem as Problem (P). In literature, the exact solution of Problem (P) is known [<xref ref-type="bibr" rid="scirp.86927-ref24">24</xref>] , and is given by</p><p>V ( x ) = C + D ln ( x ) ,</p><p>with</p><p>C = ln ( ( 1 − ν ⋅ ρ ) ⋅ Λ ) + D ⋅ ρ ⋅ ln ( ν ⋅ ρ ⋅ Λ ) 1 − ρ and D = ν 1 − ν ⋅ ρ .</p><p>The unique optimal equilibrium for Problem (P) is given by</p><p>x * = 1 ν ⋅ ρ ⋅ Λ ( ν − 1 ) .</p><p>By using the specified parameters Λ = 5 , ν = 0.34 and ρ = 0.95 , the optimal equilibrium is x * ≈ 2.0673 [<xref ref-type="bibr" rid="scirp.86927-ref23">23</xref>] .</p><p>In the following, we introduce a simplified model-based optimal control model, which is derived from Problem (P) and is referred to as Problem (M), given below:</p><p>min u ( k ) J 1 ( u ) = ∑ k = 0 30 ( 1 2 ( 0.1 ⋅ x ( k ) 2 + 10 ⋅ u ( k ) 2 ) + γ ( k ) ) subjectto     x ( k + 1 ) = x ( k ) + u ( k ) + α ( k ) ,     x ( 0 ) = 5.</p><p>Note that Problem (M) and Problem (P) are different from the structures and the parameters used.</p><p>After running the algorithm proposed within the tolerance (10<sup>−6</sup>), the result is shown in <xref ref-type="table" rid="table1">Table 1</xref>. The initial cost, which is 13.072, is the cost spent before taking into account system optimization with parameter estimation. At the end of implementing the algorithm proposed, the final cost is 22.198. There are 41 iterations with 7.84 seconds to reach the convergence.</p><p>The graphical results for this economic growth model illustrate the application of the algorithm proposed. <xref ref-type="fig" rid="fig1">Figure 1</xref> shows the final control trajectory and <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the final state trajectory, respectively. With this final control solution, it is observed that the final state towards to the steady state at x = 2.0673. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the final costate trajectory, while <xref ref-type="fig" rid="fig4">Figure 4</xref> and <xref ref-type="fig" rid="fig5">Figure 5</xref> show, respectively, the adjusted parameters γ(k) and α(k). Overall, these solutions are in the optimal sense, which are verified by the satisfaction of the stationary condition shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p></sec><sec id="s5"><title>5. Concluding Remarks</title><p>The use of the conjugate gradient approach in solving the nonlinear optimal control problem with model-reality differences was discussed in this paper. Essentially, the simplified model of the original optimal control problem, which is the linear optimal control problem by adding the adjusted parameters, is</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Simulation result</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Iteration Number</th><th align="center" valign="middle" >Initial Cost</th><th align="center" valign="middle" >Final Cost</th><th align="center" valign="middle" >Elapsed Time (s)</th></tr></thead><tr><td align="center" valign="middle" >41</td><td align="center" valign="middle" >13.072</td><td align="center" valign="middle" >22.198</td><td align="center" valign="middle" >7.84008</td></tr></tbody></table></table-wrap><p>formulated. In solving this model-based optimal control problem, the conjugate gradient approach is employed to generate the open-loop control sequences such that the optimal solution is obtained. Here, the stationary condition is used to be the gradient function in the conjugate gradient approach. On the other hand, due on the different structure of the problems, the differences between the real plant and the model used, which is measured by the adjusted parameters repeatedly, are taken into consideration during the iteration calculation procedure. At the convergence, the optimal solution of the model used approximates to the true optimal solution of the original optimal control problem, in spite of model-reality differences. For illustration, the application of the algorithm proposed was discussed for solving a basic economic growth model. The results obtained show the efficiency of the algorithm proposed. In conclusion, the applicability of the algorithm is highly recommended.</p></sec><sec id="s6"><title>Acknowledgements</title><p>The authors would like to acknowledge the Universiti Tun Hussein Onn Malaysia (UTHM) and the Ministry of Higher Education (MOHE) for the financial support for this study under the research grant FRGS VOT. 1561.</p></sec><sec id="s7"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>Kek, S.L., Leong, W.J., Sim, S.Y. and Teo, K.L. (2018) Application of Conjugate Gradient Approach for Nonlinear Optimal Control Problem with Model-Reality Differences. Applied Mathematics, 9, 940-953. https://doi.org/10.4236/am.2018.98064</p></sec></body><back><ref-list><title>References</title><ref id="scirp.86927-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Teo, K.L. and Mohd Ismail, A.A. (2010) An Integrated Optimal Control Algorithm for Discrete-Time Nonlinear Stochastic System. International Journal of Control, 83, 2536-2545. https://doi.org/10.1080/00207179.2010.531766</mixed-citation></ref><ref id="scirp.86927-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Teo, K.L. and Mohd Ismail, A.A. (2012) Filtering Solution of Nonlinear Stochastic Optimal Control Problem in Discrete-Time with Model-Reality Differences. Numerical Algebra, Control and Optimization, 2, 207-222.  
https://doi.org/10.3934/naco.2012.2.207</mixed-citation></ref><ref id="scirp.86927-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Mohd Ismail, A.A., Teo, K.L. and Rohanin, A. (2013) An Iterative Algorithm Based on Model-Reality Differences for Discrete-Time Nonlinear Stochastic Optimal Control Problems. Numerical Algebra, Control and Optimization, 3, 109-125. https://doi.org/10.3934/naco.2013.3.109</mixed-citation></ref><ref id="scirp.86927-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Teo, K.L. and Mohd Ismail, A.A. (2015) Efficient Output Solution for Nonlinear Stochastic Optimal Control Problem with Model-Reality Differences. Mathematical Problems in Engineering, 2015, Article ID: 659506.  
https://doi.org/10.1155/2015/659506</mixed-citation></ref><ref id="scirp.86927-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Mohd Ismail, A.A. and Teo, K.L. (2015) A Gradient Algorithm for Optimal Control Problems with Model-Reality Differences. Numerical Algebra, Control and Optimization, 5, 252-266.</mixed-citation></ref><ref id="scirp.86927-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L. and Mohd Ismail, A.A. (2015) Output Regulation for Discrete-Time Nonlinear Stochastic Optimal Control Problems with Model-Reality Differences. Numerical Algebra, Control and Optimization, 5, 275-288.  
https://doi.org/10.3934/naco.2015.5.275</mixed-citation></ref><ref id="scirp.86927-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Li, J. and Teo, K.L. (2017) Least Squares Solution for Discrete Time Nonlinear Stochastic Optimal Control Problem with Model-Reality Differences. Applied Mathematics, 8, 1-14. https://doi.org/10.4236/am.2017.81001</mixed-citation></ref><ref id="scirp.86927-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Li, J., Leong, W.J. and Mohd Ismail, A.A. (2017) A Gauss-Newton Approach for Nonlinear Optimal Control Problem with Model-Reality Differences. Open Journal of Optimization, 6, 85-100. https://doi.org/10.4236/ojop.2017.63007</mixed-citation></ref><ref id="scirp.86927-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Kek, S.L., Sim, S.Y., Leong, W.J. and Teo, K.L. (2018) Discrete-Time Nonlinear Stochastic Optimal Control Problem Based on Stochastic Approximation Approach. Advances in Pure Mathematics, 8, 232-244. https://doi.org/10.4236/apm.2018.83012</mixed-citation></ref><ref id="scirp.86927-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Becerra, V.M. and Roberts, P.D. (1996) Dynamic Integrated System Optimization and Parameter Estimation for Discrete Time Optimal Control of Nonlinear Systems. International Journal of Control, 63, 257-281.  
https://doi.org/10.1080/00207179608921843</mixed-citation></ref><ref id="scirp.86927-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Roberts, P.D. and Becerra, V.M. (2001) Optimal Control of a Class of Discrete-Continuous Nonlinear Systems Decomposition and Hierarchical Structure. Automatica, 37, 1757-1769. https://doi.org/10.1016/S0005-1098(01)00141-8</mixed-citation></ref><ref id="scirp.86927-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Roberts, P.D. (1979) An Algorithm for Steady-State System Optimization and Parameter Estimation. International Journal of Systems Science, 10, 719-734.  
https://doi.org/10.1080/00207727908941614</mixed-citation></ref><ref id="scirp.86927-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Roberts, P.D. and Williams, T.W.C. (1981) On an Algorithm for Combined System Optimization and Parameter Estimation. Automatica, 17, 199-209.  
https://doi.org/10.1016/0005-1098(81)90095-9</mixed-citation></ref><ref id="scirp.86927-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Chong, E.K.P. and Zak, S.H. (2013) An Introduction to Optimization. 4th Edition, John Wiley &amp; Sons, Inc., Hoboken, New Jersey.</mixed-citation></ref><ref id="scirp.86927-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Mostafa, E.M.E. (2014) A Nonlinear Conjugate Gradient Method for A Special Class of Matrix Optimization Problems. Journal of Industrial and Management Optimization, 10, 883-903. https://doi.org/10.3934/jimo.2014.10.883</mixed-citation></ref><ref id="scirp.86927-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Lasdon, L.S. and Mitter, S.K. (1967) The Conjugate Gradient Method for Optimal Control Problems. IEEE Transactions on Automatic Control, 12, 132-138.  
https://doi.org/10.1109/TAC.1967.1098538</mixed-citation></ref><ref id="scirp.86927-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Nwaeze, E. (2011) An Extended Conjugate Gradient Method for Optimizing Continuous-Time Optimal Control Problems. Canadian Journal on Computing in Mathematics, Natural Sciences, Engineering &amp; Medicine, 2, 39-44.</mixed-citation></ref><ref id="scirp.86927-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Raji, R.A. and Oke, M.O. (2015) Higher-Order Conjugate Gradient Method for Solving Continuous Optimal Control Problems. IOSR Journal of Mathematics, 11, 88-90.</mixed-citation></ref><ref id="scirp.86927-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Brock, W.A. and Mirman, L. (1972) Optimal Economic Growth and Uncertainty: The Discounted Case. Journal of Economy Theory, 4, 479-513.  
https://doi.org/10.1016/0022-0531(72)90135-4</mixed-citation></ref><ref id="scirp.86927-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Bryson, A.E. and Ho, Y.C. (1975) Applied Optimal Control. Hemisphere, Washington DC.</mixed-citation></ref><ref id="scirp.86927-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Lewis, F.L., Vrabie, V. and Symos, V.L. (2012) Optimal Control. 3rd Edition, John Wiley &amp; Sons, Inc., New York. https://doi.org/10.1002/9781118122631</mixed-citation></ref><ref id="scirp.86927-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Kirk, D.E. (2004) Optimal Control Theory: An Introduction. Dover Publications, New York.</mixed-citation></ref><ref id="scirp.86927-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Grüne, L., Semmler, W. and Stieler, M. (2015) Using Nonlinear Model Predictive Control for Dynamic Decision Problems in Economics. Journal of Economic Dynamics and Control, 60, 112-133. https://doi.org/10.1016/j.jedc.2015.08.010</mixed-citation></ref><ref id="scirp.86927-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Santos, M.S. and Vigo-Aguiar, J. (1998) Analysis of a Numerical Dynamic Programming Algorithm Applied to Economic Models. Econometrica, 66, 409-426.  
https://doi.org/10.2307/2998564</mixed-citation></ref></ref-list></back></article>