<?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">OALibJ</journal-id><journal-title-group><journal-title>Open Access Library Journal</journal-title></journal-title-group><issn pub-type="epub">2333-9705</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/oalib.1104716</article-id><article-id pub-id-type="publisher-id">OALibJ-85987</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Biomedical&amp;Life Sciences</subject><subject> Business&amp;Economics</subject><subject> Chemistry&amp;Materials Science</subject><subject> Computer Science&amp;Communications</subject><subject> Earth&amp;Environmental Sciences</subject><subject> Engineering</subject><subject> Medicine&amp;Healthcare</subject><subject> Physics&amp;Mathematics</subject><subject> Social Sciences&amp;Humanities</subject></subj-group></article-categories><title-group><article-title>
 
 
  Studying the Changes of an Optimal Trajectory
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ahmed</surname><given-names>Mohamed Mohamed El-Sayed</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Al-Obour High Institute for Management &amp;amp; Informatics, Department of Basic Science, Obour, Egypt</addr-line></aff><author-notes><corresp id="cor1">* E-mail:</corresp></author-notes><pub-date pub-type="epub"><day>05</day><month>07</month><year>2018</year></pub-date><volume>05</volume><issue>07</issue><fpage>1</fpage><lpage>15</lpage><history><date date-type="received"><day>9,</day>	<month>June</month>	<year>2018</year></date><date date-type="rev-recd"><day>13,</day>	<month>July</month>	<year>2018</year>	</date><date date-type="accepted"><day>16,</day>	<month>July</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>
 
 
  This paper provides an extension to an optimal control problem using the negative logarithm of deterioration and spoilage function as total cost. This function must be minimized at the end of planning period depending on the alternative quadratic exponential form. The co-state variable   has negative values along the optimal trajectory according to the Pontryagin Minimum Principle (PMP). The different values of this co-state variable are investigated using initial values for the optimal control rates, separately. The controlled system according to each value is presented. Studying the behavior of optimal inventory levels, the optimal production rates, and the optimal spoilage function, it is our optimal solution along the optimal trajectory. The effectiveness of increasing and decreasing the co-state values on the optimal trajectory especially at the end of planning period is investigated. Also, the sensitivity analysis that reflects the effect of changes of different parameters (the deterioration and spoilage parameters values, and the initial values of inventory levels and production rates) on the optimal solution is explained with many different cases. Finally, we compared, numerically, the results for using these different co-state values with the results obtained when this value is negative.
 
</p></abstract><kwd-group><kwd>Sensitivity</kwd><kwd> Simulation</kwd><kwd> Co-State Variables</kwd><kwd> Multi-Item Inventory System</kwd><kwd> Demand Rates</kwd><kwd> Deterioration</kwd><kwd> Spoilage Function</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>An optimal control problem of multi-item inventory model has a wide importance in practice. El-Sayed [<xref ref-type="bibr" rid="scirp.85987-ref1">1</xref>] has studied the effect of different types of demand rates on the total cost function, which refers to minimize the negative value of logarithm of deterioration and spoilage function at the end of planning period, using the Pontryagin Minimum Principle (PMP) for −1 value for the co-state variable λ 0 ( t ) . Now we need to know whether the changing of co-state values of this variable has effects on the optimal trajectory or not. So, in this paper, we will extend this study using different co-state values, whether less or more than negative one, for the co-state variable λ 0 ( t ) , using initial values for the optimal control rates. The purpose of this paper is obtaining the optimal inventory levels, the optimal production rates, and the minimum value of deterioration and spoilage function as the total cost at the end of planning period, and also studying the behavior of an optimal trajectory for each value, studying the sensitivity analysis of changing the parameters values of the model. As it is expected, the optimal inventory levels of the two items could be affected by these changes as we shall see later.</p><p>So, we concentrated on the sensitivity analysis of changing the spoilage parameters on the optimal solution especially at the end of planning period. Finally, to complete this study, we must compare the obtained results for these different co-state values with the results which are obtained when the co-state variable equals −1.</p><p>Zhao and Prentice [<xref ref-type="bibr" rid="scirp.85987-ref2">2</xref>] have presented the quadratic exponential form (QEF) for the two correlated variables X 1 , X 2 as:</p><p>f ( x 1 , x 2 ) = 1 ∑ x 1 , x 2 exp { θ 1 x 1 + θ 2 x 2 + θ 12 x 1 x 2 } exp { θ 1 x 1 + θ 2 x 2 + θ 12 x 1 x 2 } . (1)</p><p>El-Sayed [<xref ref-type="bibr" rid="scirp.85987-ref1">1</xref>] has supposed that θ 1 = ψ 1 u 1 , θ 2 = ψ 2 u 2 and θ 12 = ψ 12 u 1 u 2 , where the spoilage parameters ψ 1 , ψ 2 and ψ 12 depend on the control variables U 1 and U 2 , ψ ′ s &gt; 0 .</p><p>Since θ 1 , θ 2 and θ 12 are the deterioration parameters, θ ′ s &gt; 0 .</p><p>So, we can use the normalizing term, ∑ x 1 , x 2 exp { θ 1 x 1 + θ 2 x 2 + θ 12 x 1 x 2 } , in the function (1) to be rewritten in the exponential form, El-Sayed et al. [<xref ref-type="bibr" rid="scirp.85987-ref3">3</xref>] , as shown below:</p><p>f ( x 1 , x 2 ) = exp { θ 1 x 1 + θ 2 x 2 + θ 12 x 1 x 2 − log ( 1 + ψ 1 u 1 + ψ 2 u 2 + ψ 12 u 1 u 2 ) } . (2)</p><p>The minimizing of an integral of negative logarithm of this function can be used as the total cost. This cost reflects the levels of deterioration and spoilage of items at the end of planning period.</p><p>This paper can be organized as follows: Section 2 presents the mathematical model for the optimal control problem and the coresponding controlled systems. Section 3 presents the numerical solution for the controlled systems for different rates and different co-state values. Section 4 presents the sensitivity analysis of the model parameters and co-state variable λ 0 ( t ) . Finally Section 5 gives some conclusions.</p></sec><sec id="s2"><title>2. The Model</title><p>Let us define the following parameters, which are used in the mathematical optimal control model:</p><p>X i ( t ) : Inventory levels at time t.</p><p>U i ( t ) : Production rates at time t.</p><p>T: Length of planning period.</p><p>x i 0 : Initial inventory levels.</p><p>a i i : Deteriration coefficient due to self-contact of item x i .</p><p>a i j : Deteriration coefficient of x i due to presence a unit of x j , i ≠ j = 1 , 2 .</p><p>D i ( x 1 , x 2 , t ) : Demand rates of ( x 1 , x 2 ) .</p><p>ψ 1 : Spoilage rate of of x 1 , ψ 1 &gt; 0 .</p><p>ψ 2 : Spoilage rate of of x 2 , ψ 2 &gt; 0 .</p><p>ψ 12 : Spoilage rate of ( x 1 , x 2 ) , jointly, ψ 12 &gt; 0 .</p><p>θ 1 : Natural deterioration rate of x 1 <sup>, θ 1 &gt; 0 </sup>.</p><p>θ 2 : Natural deterioration rate of x 2 , θ 2 &gt; 0 .</p><p>θ 12 : Natural deterioration rate of ( x 1 , x 2 ) , jointly, θ 12 &gt; 0 .</p><p>As we mentioned before, the integral of negative logarithm of the function (2), which represents the deterioration and spoilage function, is used as a cost function:</p><p>x 0 ( T ) = ∫ 0 T − ln f ( x 1 , x 2 ) d t = ∫ 0 T [ − θ 1 x 1 − θ 2 x 2 − θ 12 x 1 x 2 + log ( 1 + ψ 1 u 1 + ψ 2 u 2 + ψ 12 u 1 u 2 ) ] d t . (3)</p><p>So, the problem can be formulated as:</p><p>Minimize { x 0 ( T ) = ∫ 0 T [ − θ 1 x 1 − θ 2 x 2 − θ 12 x 1 x 2 + log ( 1 + ψ 1 u 1 + ψ 2 u 2 + ψ 12 u 1 u 2 ) ] d t } , (4)</p><p>subject to:</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − D 1 + u 1 , (5)</p><p>x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − D 2 + u 2 , (6)</p><p>and</p><p>x 1 ( t ) ≥ 0,   x 2 ( t ) ≥ 0,   u 1 ( t ) ≥ 0,   u 2 ( t ) ≥ 0 , (7)</p><p>where,</p><p>t ∈ T ,   D ( x 1 , x 2 , t ) ≥ 0,   θ 1 , θ 2 , θ 12 &gt; 0,   ψ 1 , ψ 2 , ψ 12 &gt; 0.</p><p>Using the Pontryagin Minimum Principle (PMP), let us define x ˙ 0 = ∂ x 0 ( T ) ∂ t ,</p><p>and introduce the co-state variables λ 0 , λ 1 and λ 2 corresponding to the state variables X 0 , X 1 and X 2 respectively. From (4), (5) and (6), we can write the Hamiltonian function as follows:</p><p>H = λ 0 x ˙ 0 + λ 1 x ˙ 1 + λ 2 x ˙ 2 , (8)</p><p>Moreover, to obtain the co-state equations and the Lagrange multipliers associated with the constraints (5) and (6), we formulate the Lagrangian function as follows:</p><p>L = H + μ 1 x 1 + μ 2 x 2 + μ 3 u 1 + μ 4 u 2 , (9)</p><p>where, μ 1 ( t ) , μ 2 ( t ) , μ 3 ( t ) , μ 4 ( t ) are known as Lagrange multipliers. These Lagrange multipliers satisfy the conditions:</p><p>μ 1 ( t ) ≥ 0 ,   μ 2 ( t ) ≥ 0 ,   μ 3 ( t ) ≥ 0 ,   μ 4 ( t ) ≥ 0 ,   μ 1 x 1 = 0 ,   μ 2 x 2 = 0 ,   μ 3 u 1 = 0 ,   μ 4 u 2 = 0. (10)</p><p>From (9), we can easily obtain the co-state equations</p><p>λ ˙ i ( t ) = − ∂ L ∂ x i ,   i = 0 , 1 , 2 , (11)</p><p>then,</p><p>λ ˙ 0 ( t ) = − ∂ L ∂ x 0 = 0 ,   λ ˙ 1 ( t ) = − ∂ L ∂ x 1 ,   λ ˙ 2 ( t ) = − ∂ L ∂ x 2 , (12)</p><p>The first equation of (12) shows that the co-state variable λ 0 ( t ) remains constant along the optimal trajectory, and the Pontryagin principle requires that this constant should be a negative value, Sethi and Thompson [<xref ref-type="bibr" rid="scirp.85987-ref4">4</xref>] .</p><p>In this paper, we will use different values for this co-state variable λ 0 ( t ) .</p><p>λ 0 = − 10 , λ 0 = − 2 or λ 0 = − 0.1 , (13)</p><p>Substituting from (4), (5), (6), (8) and (13) in (9), we can write the Hamiltonian function, L, in the following form, first: when λ 0 ( t ) = − 10 :</p><p>L = 10 [ θ 1 x 1 + θ 2 x 2 + θ 12 x 1 x 2 − log ( 1 + ψ 1 u 1 + ψ 2 u 2 + ψ 12 u 1 u 2 ) ]     + λ 1 [ − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − D 1 + u 1 ]     + λ 2 [ − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − D 2 + u 2 ]     + μ 1 x 1 + μ 2 x 2 + μ 3 u 1 + μ 4 u 2 . (14)</p><p>From conditions (7) and (10), we get</p><p>μ 1 ( t ) = μ 2 ( t ) = μ 3 ( t ) = μ 4 ( t ) = 0 . (15)</p><p>Substituting from (13) and (14) into (12) we get</p><p>λ ˙ 1 = λ 1 ( ∂ D 1 ∂ x 1 + 10 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + λ 2 ( ∂ D 2 ∂ x 1 + a 21 x 2 ) − θ 1 − 10 θ 12 x 2 , (16)</p><p>λ ˙ 2 = λ 2 ( ∂ D 2 ∂ x 2 + 10 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + λ 1 ( ∂ D 1 ∂ x 2 + a 12 x 1 ) − θ 2 − 10 θ 12 x 1 , (17)</p><p>with boundary conditions</p><p>λ i ( T ) ≠ 0 ,   i = 1 , 2 (18)</p><p>where T is the length of planning period which can be suggested.</p><p>To obtain the optimal production rates (control variables) U i , i = 1 , 2 , we differentiate the Lagrange function (14) with respect to u 1 , u 2 respectively and putting it equal to zero, we get</p><p>∂ L ∂ u 1 = − 10 ( ψ 1 + ψ 12 u 2 ) 1 + ψ 1 u 1 + ψ 2 u 2 + ψ 12 u 1 u 2 + λ 1 = 0.</p><p>∂ L ∂ u 2 = − 10 ( ψ 2 + ψ 1 u 1 ) 1 + ψ 1 u 1 + ψ 2 u 2 + ψ 12 u 1 u 2 + λ 2 = 0.</p><p>Then,</p><p>U 1 * ( t ) = 1 λ 1 − 1 + ψ 2 u 2 10 ( ψ 1 + ψ 12 u 2 ) ,     λ 1 ≠ 0 (19)</p><p>U 2 * ( t ) = 1 λ 2 − 1 + ψ 1 u 1 10 ( ψ 2 + ψ 12 u 1 ) ,     λ 2 ≠ 0 (20)</p><p>Since, u 1 and u 2 are start values of the production rates. Then using the Equations (5), (6), (16) and (17), we get the controlled system of non-linear ordinary differential equations:</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − D 1 + u 1 x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − D 2 + u 2 λ ˙ 1 = λ 1 ( ∂ D 1 ∂ x 1 + 10 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + λ 2 ( ∂ D 2 ∂ x 1 + a 21 x 2 ) − θ 1 − 10 θ 12 x 2 λ ˙ 2 = λ 2 ( ∂ D 2 ∂ x 2 + 10 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + λ 1 ( ∂ D 1 ∂ x 2 + a 12 x 1 ) − θ 2 − 10 θ 12 x 1 } (21)</p><p>We can construct this system when λ 0 = − 2 :</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − D 1 + u 1 x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − D 2 + u 2 λ ˙ 1 = λ 1 ( ∂ D 1 ∂ x 1 + 2 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + λ 2 ( ∂ D 2 ∂ x 1 + a 21 x 2 ) − θ 1 − 2 θ 12 x 2 λ ˙ 2 = λ 2 ( ∂ D 2 ∂ x 2 + 2 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + λ 1 ( ∂ D 1 ∂ x 2 + a 12 x 1 ) − θ 2 − 2 θ 12 x 1 } (22)</p><p>and when λ 0 = − 0.1</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − D 1 + u 1 x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − D 2 + u 2 λ ˙ 1 = λ 1 ( ∂ D 1 ∂ x 1 + 0.1 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + λ 2 ( ∂ D 2 ∂ x 1 + a 21 x 2 ) − θ 1 − 0.1 θ 12 x 2 λ ˙ 2 = λ 2 ( ∂ D 2 ∂ x 2 + 0.1 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + λ 1 ( ∂ D 1 ∂ x 2 + a 12 x 1 ) − θ 2 − 0.1 θ 12 x 1 } (23)</p><p>The optimal control variables can be constructed when λ 0 = − 2 :</p><p>U 1 * ( t ) = 1 λ 1 − 1 + ψ 2 u 2 2 ( ψ 1 + ψ 12 u 2 ) ,     λ 1 ≠ 0 , (24)</p><p>U 2 * ( t ) = 1 λ 2 − 1 + ψ 1 u 1 2 ( ψ 2 + ψ 12 u 1 ) ,     λ 2 ≠ 0 , (25)</p><p>and when λ 0 ( t ) = − 0.1 :</p><p>U 1 * ( t ) = 1 λ 1 − 1 + ψ 2 u 2 0.1 ( ψ 1 + ψ 12 u 2 ) ,     λ 1 ≠ 0 , (26)</p><p>U 2 * ( t ) = 1 λ 2 − 1 + ψ 1 u 1 0.1 ( ψ 2 + ψ 12 u 1 ) ,     λ 2 ≠ 0. (27)</p><p>This system can be used to describe the time evolution of inventory levels and production rates. The analytical solution of this system is very difficult and then we can solve it numerically.</p></sec><sec id="s3"><title>3. Numerical Solution</title><p>The solution of optimal control problem of this model will be carried out using Pontryagin Minimum Principle (PMP). The numerical solution is to be necessary when the analytical solution is absence for the non-linear systems (21, 22 and 23). In this solution we solve the non-linear ordinary differential equations using Runge-Kutta method, using the initial and boundary values for x 1 ( t ) , x 2 ( t ) , λ 1 ( t ) and λ 2 ( t ) . For simplicity we supposed that the initial values u 10 , u 20 can be used alternative to u 1 , u 2 in the Equations (19), (20), (24), (25), (26) and (27) to obtain the optimal production rates U 1 * ( T ) and U 2 * ( T ) respectively. Also, we will use these initial values to obtain the optimal total cost x 0 * ( T ) as it is in the Equation (4).</p><p>The numerical solution can be explained by different types of demand as:</p><p>1) The demand rates are constant:</p><p>D ( x 1 , x 2 , t ) = γ i .</p><p>2) The demand rates are linear functions of inventory levels and time:</p><p>D ( x 1 , x 2 , t ) = γ i + w i x i .</p><p>3) The demand rates are logistic functions of inventory levels and time:</p><p>D ( x 1 , x 2 , t ) = 2 x i ( κ i − x i ) .</p><p>4) The demand rates are periodic functions of time:</p><p>D ( x 1 , x 2 , t ) = 1 − b i cos ( t ) .</p><p>where γ i , w i , κ i and b i ( i = 1 , 2 ) are positive constants.</p><p><xref ref-type="table" rid="table1">Table 1</xref> presents the values of system parameters and the initial states which are used in the numerical examples for four cases of demand rate functions as follows:</p><p>The next subsections explain the controlled system for each case of the demand rates functions with different co-state value λ 0 ( t ) as shown below.</p><sec id="s3_1"><title>3.1. Co-State Value λ 0 = − 1 0</title><p>In this subsection we will use different demand rates with λ 0 = − 10 .</p><sec id="s3_1_1"><title>3.1.1. Constant Rates</title><p>We will present the model with demand function as constant rates, D ( x 1 , x 2 , t ) = γ i .</p><p>Substituting in the controlled system (21) by the constant demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − γ 1 + 1 λ 1 − 1 + ψ 2 u 20 10 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − γ 2 + 1 λ 2 − 1 + ψ 1 u 10 10 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( 10 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 10 θ 12 x 2 λ ˙ 2 = λ 2 ( 10 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 10 θ 12 x 1 } (28)</p><p>Solving the controlled system (28) numerically, we get some results as displayed in <xref ref-type="table" rid="table2">Table 2</xref>.</p></sec><sec id="s3_1_2"><title>3.1.2. Linear Rates</title><p>Also, we will present the model with demand function as linear rates, D ( x 1 , x 2 , t ) = γ i + w i x i . Substituting in the controlled system (21) by the linear demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( w 1 + θ 1 + a 12 x 2 + a 11 x 1 ) − γ 1 + 1 λ 1 − 1 + ψ 2 u 20 10 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( w 2 + θ 2 + a 21 x 2 + a 22 x 2 ) − γ 2 + 1 λ 2 − 1 + ψ 1 u 10 10 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( w 1 + 10 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 10 θ 12 x 2 λ ˙ 2 = λ 2 ( w 2 + 10 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 10 θ 12 x 1 } (29)</p><p>Solving the controlled system (29) numerically, we get some results as displayed in <xref ref-type="table" rid="table2">Table 2</xref>.</p></sec><sec id="s3_1_3"><title>3.1.3. Logistic Rates</title><p>We present the model with demand function as logistic rates, D ( x 1 , x 2 , t ) = 2 x i ( κ i − x i ) .</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Values and initial states of system parameters</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >u 10</th><th align="center" valign="middle" >u 20</th><th align="center" valign="middle" >θ 1</th><th align="center" valign="middle" >θ 2</th><th align="center" valign="middle" >θ 12</th><th align="center" valign="middle" >a 12</th><th align="center" valign="middle" >a 21</th><th align="center" valign="middle" >a 11</th><th align="center" valign="middle" >a 22</th><th align="center" valign="middle" >γ 1</th></tr></thead><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >18</td><td align="center" valign="middle" >0.02</td><td align="center" valign="middle" >0.01</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >0.8</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >0.02</td><td align="center" valign="middle" >0.01</td><td align="center" valign="middle" >0.8</td></tr><tr><td align="center" valign="middle" >x 10</td><td align="center" valign="middle" >x 20</td><td align="center" valign="middle" >x 20</td><td align="center" valign="middle" >w 2</td><td align="center" valign="middle" >κ 1</td><td align="center" valign="middle" >κ 2</td><td align="center" valign="middle" >b 1</td><td align="center" valign="middle" >b 2</td><td align="center" valign="middle" >T</td><td align="center" valign="middle" >γ 2</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.9</td><td align="center" valign="middle" >0.8</td><td align="center" valign="middle" >0.9</td><td align="center" valign="middle" >0.8</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0.7</td></tr><tr><td align="center" valign="middle" >ψ 1</td><td align="center" valign="middle" >ψ 2</td><td align="center" valign="middle" >ψ 12</td><td align="center" valign="middle" >λ 1 ( T )</td><td align="center" valign="middle" >λ 2 ( T )</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >0.02</td><td align="center" valign="middle" >0.01</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> The optimal solution when λ 0 = − 10 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Demand Rates</th><th align="center" valign="middle" >x 1 ∗ ( T )</th><th align="center" valign="middle" >x 2 ∗ ( T )</th><th align="center" valign="middle" >u 1 ∗ ( T )</th><th align="center" valign="middle" >u 2 ∗ ( T )</th><th align="center" valign="middle" >x 0 ∗ ( T )</th></tr></thead><tr><td align="center" valign="middle" >Constant</td><td align="center" valign="middle" >0.88</td><td align="center" valign="middle" >0.95</td><td align="center" valign="middle" >0.87</td><td align="center" valign="middle" >0.86</td><td align="center" valign="middle" >0.07</td></tr><tr><td align="center" valign="middle" >Linear</td><td align="center" valign="middle" >0.81</td><td align="center" valign="middle" >0.87</td><td align="center" valign="middle" >0.87</td><td align="center" valign="middle" >0.86</td><td align="center" valign="middle" >0.10</td></tr><tr><td align="center" valign="middle" >Logistic</td><td align="center" valign="middle" >0.97</td><td align="center" valign="middle" >1.10</td><td align="center" valign="middle" >0.87</td><td align="center" valign="middle" >0.86</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >Periodic</td><td align="center" valign="middle" >1.16</td><td align="center" valign="middle" >1.14</td><td align="center" valign="middle" >0.87</td><td align="center" valign="middle" >0.86</td><td align="center" valign="middle" >0.06</td></tr></tbody></table></table-wrap><p>Substituting in the controlled system (21) by the logistic demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( 2 ( κ 1 − x 1 ) + θ 1 + a 12 x 2 + a 11 x 1 ) + 1 λ 1 − 1 + ψ 2 u 20 10 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( 2 ( κ 2 − x 2 ) + θ 2 + a 21 x 2 + a 22 x 2 ) + 1 λ 2 − 1 + ψ 1 u 10 10 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( 2 ( κ 1 − 2 x 1 + a 11 x 1 ) + 10 θ 1 + a 12 x 2 ) + a 21 λ 2 x 2 − θ 1 − 10 θ 12 x 2 λ ˙ 2 = λ 2 ( 2 ( κ 2 − 2 x 2 + a 22 x 2 ) + 10 θ 2 + a 21 x 1 ) + a 12 λ 1 x 1 − θ 2 − 10 θ 12 x 1 } (30)</p><p>Solving the controlled system (30) numerically, we get some results as displayed in <xref ref-type="table" rid="table2">Table 2</xref>.</p></sec><sec id="s3_1_4"><title>3.1.4. Periodic Rates</title><p>Finally, we will present the model with demand function as periodic rates, D ( x 1 , x 2 , t ) = 1 − b i cos ( t ) . Substituting in the controlled system (21) by the periodic demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − 1 + b 1 cos ( t ) + 1 λ 1 − 1 + ψ 2 u 20 10 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − 1 + b 2 cos ( t ) + 1 λ 2 − 1 + ψ 2 u 10 10 ( ψ 1 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( 10 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 10 θ 12 x 2 λ ˙ 2 = λ 2 ( 10 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 10 θ 12 x 1 } (31)</p><p>Solving the controlled system (31) numerically, we get some results as displayed in <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>As we see from <xref ref-type="table" rid="table2">Table 2</xref>, the otimal value of the cost function when λ 0 = − 10 is achieved in the logistic rate (0). The optimal production rates are simillar (0.87, 0.86) in all cases. The inventory levels are smaller (0.81, 0.87) in the linear case but higher (1.16, 1.14) in the periodic case.</p></sec></sec><sec id="s3_2"><title>3.2. Co-State λ 0 = − 2</title><p>Also, in this subsection we use the previous demand rates with λ 0 = − 2 .</p><sec id="s3_2_1"><title>3.2.1. Constant Rates</title><p>We will present the model with demand function as constant rates, D ( x 1 , x 2 , t ) = γ i . Substituting in the controlled system (22) by the constant demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − γ 1 + 1 λ 1 − 1 + ψ 2 u 20 2 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − γ 2 + 1 λ 2 − 1 + ψ 1 u 10 2 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( 2 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 2 θ 12 x 2 λ ˙ 2 = λ 2 ( 2 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 2 θ 12 x 1 } (32)</p><p>Solving the controlled system (32) numerically, we get some results which are displayed in <xref ref-type="table" rid="table3">Table 3</xref>.</p></sec><sec id="s3_2_2"><title>3.2.2. Linear Rates</title><p>Also, we will present the model with demand function as linear rates, D ( x 1 , x 2 , t ) = γ i + w i x i . Substituting in the controlled system (22) by the linear demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( w 1 + θ 1 + a 12 x 2 + a 11 x 1 ) − γ 1 + 1 λ 1 − 1 + ψ 2 u 20 2 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( w 2 + θ 2 + a 21 x 2 + a 22 x 2 ) − γ 2 + 1 λ 2 − 1 + ψ 1 u 10 2 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( w 1 + 2 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 2 θ 12 x 2 λ ˙ 2 = λ 2 ( w 2 + 2 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 2 θ 12 x 1 } (33)</p><p>Solving the controlled system (33) numerically, we get the results displayed in <xref ref-type="table" rid="table3">Table 3</xref>.</p></sec><sec id="s3_2_3"><title>3.2.3. Logistic Rates</title><p>We present the model with demand function as logistic rates, D ( x 1 , x 2 , t ) = 2 x i ( κ i − x i ) . Substituting in the controlled system (22) by the logistic demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( 2 ( κ 1 − x 1 ) + θ 1 + a 12 x 2 + a 11 x 1 ) + 1 λ 1 − 1 + ψ 2 u 20 2 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( 2 ( κ 2 − x 2 ) + θ 2 + a 21 x 2 + a 22 x 2 ) + 1 λ 2 − 1 + ψ 1 u 10 2 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( 2 ( κ 1 − 2 x 1 + a 11 x 1 ) + 2 θ 1 + a 12 x 2 ) + a 21 λ 2 x 2 − θ 1 − 2 θ 12 x 2 λ ˙ 2 = λ 2 ( 2 ( κ 2 − 2 x 2 + a 22 x 2 ) + 2 θ 2 + a 21 x 1 ) + a 12 λ 1 x 1 − θ 2 − 2 θ 12 x 1 } (34)</p><p>Solving the controlled system (30) numerically, we get the results are displayed in <xref ref-type="table" rid="table3">Table 3</xref>.</p></sec><sec id="s3_2_4"><title>3.2.4. Periodic Rates</title><p>Finally, we will present the model with demand function as periodic rates, D ( x 1 , x 2 , t ) = 1 − b i cos ( t ) . Substituting in the controlled system (22) by the periodic demand rates, we have the controlled system:</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> The optimal solution when λ 0 = − 2 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Demand Rates</th><th align="center" valign="middle" >x 1 ∗ ( T )</th><th align="center" valign="middle" >x 2 ∗ ( T )</th><th align="center" valign="middle" >u 1 ∗ ( T )</th><th align="center" valign="middle" >u 2 ∗ ( T )</th><th align="center" valign="middle" >x 0 ∗ ( T )</th></tr></thead><tr><td align="center" valign="middle" >Constant</td><td align="center" valign="middle" >1.42</td><td align="center" valign="middle" >1.57</td><td align="center" valign="middle" >0.36</td><td align="center" valign="middle" >0.31</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >Linear</td><td align="center" valign="middle" >1.30</td><td align="center" valign="middle" >1.42</td><td align="center" valign="middle" >0.36</td><td align="center" valign="middle" >0.31</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >Logistic</td><td align="center" valign="middle" >0.65</td><td align="center" valign="middle" >0.68</td><td align="center" valign="middle" >0.36</td><td align="center" valign="middle" >0.31</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >Periodic</td><td align="center" valign="middle" >1.57</td><td align="center" valign="middle" >1.69</td><td align="center" valign="middle" >0.36</td><td align="center" valign="middle" >0.31</td><td align="center" valign="middle" >0.00</td></tr></tbody></table></table-wrap><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − 1 + b 1 cos ( t ) + 1 λ 1 − 1 + ψ 2 u 20 2 ( ψ 1 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − 1 + b 2 cos ( t ) + 1 λ 2 − 1 + ψ 1 u 10 2 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( 2 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 2 θ 12 x 2 λ ˙ 2 = λ 2 ( 2 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 2 θ 12 x 1 } (35)</p><p>Solving the controlled system (35) numerically, we get the results can be displayed in <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>We will use the parameters values as they are in <xref ref-type="table" rid="table1">Table 1</xref> without changing in all cases.</p><p>As we see from <xref ref-type="table" rid="table3">Table 3</xref>, the otimal value of the cost function when λ 0 = − 2 is equal (0) in all cases. Also, the optimal production rates are simillar (0.36, 0.31) in all cases. The optimal inventory levels are smaller (0.65, 0.68) in the logistic case but higher (1.57, 1.69) in the periodic case.</p></sec></sec><sec id="s3_3"><title>3.3. Co-State Value λ 0 = − 0 . 1</title><p>Finally, we use the previous demand rates with λ 0 = − 0.1 .</p><sec id="s3_3_1"><title>3.3.1. Constant Rates</title><p>We will present the model with demand function as constant rates, D ( x 1 , x 2 , t ) = γ i .</p><p>Substituting in the controlled system (23) by the constant demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( θ 1 + a 12 x 2 + a 11 x 1 ) − γ 1 + 1 λ 1 − 1 + ψ 1 u 20 0.1 ( ψ 2 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( θ 2 + a 21 x 2 + a 22 x 2 ) − γ 2 + 1 λ 2 − 1 + ψ 1 u 10 0.1 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( 0.1 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 0.1 θ 12 x 2 λ ˙ 2 = λ 2 ( 0.1 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 0.1 θ 12 x 1 } (36)</p><p>Solving the controlled system (36) numerically, we get the results displayed in <xref ref-type="table" rid="table4">Table 4</xref>.</p></sec><sec id="s3_3_2"><title>3.3.2. Linear Rates</title><p>Also, we will present the model with demand function as linear rates, D ( x 1 , x 2 , t ) = γ i + w i x i . Substituting in the controlled system (23) by the linear demand rates, we have the controlled system:</p><p>x ˙ 1 = − x 1 ( w 1 + θ 1 + a 12 x 2 + a 11 x 1 ) − γ 1 + 1 λ 1 − 1 + ψ 1 u 20 0.1 ( ψ 2 + ψ 12 u 20 ) x ˙ 2 = − x 2 ( w 2 + θ 2 + a 21 x 2 + a 22 x 2 ) − γ 2 + 1 λ 2 − 1 + ψ 1 u 10 0.1 ( ψ 2 + ψ 12 u 10 ) λ ˙ 1 = λ 1 ( w 1 + 0.1 θ 1 + a 12 x 2 + 2 a 11 x 1 ) + a 21 λ 2 x 2 − θ 1 − 0.1 θ 12 x 2 λ ˙ 2 = λ 2 ( w 2 + 0.1 θ 2 + a 21 x 1 + 2 a 22 x 2 ) + a 12 λ 1 x 1 − θ 2 − 0.1 θ 12 x 1 } (37)</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> The optimal solution when λ 0 = − 0.1 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Demand Rates</th><th align="center" valign="middle" >x 1 ∗ ( T )</th><th align="center" valign="middle" >x 2 ∗ ( T )</th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x181.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x182.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x183.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Constant</td><td align="center" valign="middle" >0.56</td><td align="center" valign="middle" >0.61</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.67</td></tr><tr><td align="center" valign="middle" >Linear</td><td align="center" valign="middle" >0.33</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.60</td></tr><tr><td align="center" valign="middle" >Logistic</td><td align="center" valign="middle" >0.37</td><td align="center" valign="middle" >0.13</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.06</td></tr><tr><td align="center" valign="middle" >Periodic</td><td align="center" valign="middle" >0.21</td><td align="center" valign="middle" >0.24</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.16</td></tr></tbody></table></table-wrap><p>Solving the controlled system (37) numerically, we get the results displayed in <xref ref-type="table" rid="table4">Table 4</xref>.</p></sec><sec id="s3_3_3"><title>3.3.3. Logistic Rates</title><p>We present the model with demand function as logistic rates, <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x184.png" xlink:type="simple"/></inline-formula>.</p><p>Substituting in the controlled system (23) by the logistic demand rates, we have the controlled system:</p><disp-formula id="scirp.85987-formula1"><label>(38)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x185.png"  xlink:type="simple"/></disp-formula><p>Solving the controlled system (38) numerically, we get the results displayed in <xref ref-type="table" rid="table4">Table 4</xref>.</p></sec><sec id="s3_3_4"><title>3.3.4. Periodic Rates</title><p>Finally, we will present the model with demand function as periodic rates,<inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x186.png" xlink:type="simple"/></inline-formula>. Substituting in the controlled system (23) by the periodic demand rates, we have the controlled system:</p><disp-formula id="scirp.85987-formula2"><label>(39)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x187.png"  xlink:type="simple"/></disp-formula><p>Solving the controlled system (39) numerically, we get the results displayed in <xref ref-type="table" rid="table4">Table 4</xref>.</p><p>We will use the parameters values as they are in <xref ref-type="table" rid="table1">Table 1</xref>. But we changed the next values, since the models are more sensititvity for changing these paprameters:</p><p>Constant case</p><p>Linear case</p><p>Logistic case</p><p>Periodic case</p><p>As we see from <xref ref-type="table" rid="table4">Table 4</xref>, the minimum cost when <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x214.png" xlink:type="simple"/></inline-formula> is achieved in the constant case (0.67). Also, the optimal production rates are simillar (0, 0) in all cases. The optimal inventory levels are higher in the constant case but smaller in the logistic and periodic cases (0.13, 0.21).</p></sec></sec></sec><sec id="s4"><title>4. Sensitivity Analysis</title><p>In this section will compare between the results when the co-state value<inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x215.png" xlink:type="simple"/></inline-formula>, using the parameters values are used in <xref ref-type="table" rid="table1">Table 1</xref>. Then we can study the sensitivity analysis for cthese changes in all cases.</p><p>The optimal production rates, when<inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x216.png" xlink:type="simple"/></inline-formula>, is become:</p><disp-formula id="scirp.85987-formula3"><label>(40)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x217.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.85987-formula4"><label>(41)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x218.png"  xlink:type="simple"/></disp-formula><p>Also, we can use the initial values <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x219.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x219.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x220.png" xlink:type="simple"/></inline-formula> alternatively to <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x219.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x220.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x221.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x219.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x220.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x221.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x222.png" xlink:type="simple"/></inline-formula> respectively.</p><p>The controlled systems are become in each case as follow.</p><sec id="s4_1"><title>4.1. Constant Rates</title><p>The controlled system is become:</p><disp-formula id="scirp.85987-formula5"><label>(42)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x223.png"  xlink:type="simple"/></disp-formula></sec><sec id="s4_2"><title>4.2. Linear Rates</title><p>The controlled system is become:</p><disp-formula id="scirp.85987-formula6"><label>(43)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x224.png"  xlink:type="simple"/></disp-formula></sec><sec id="s4_3"><title>4.3. Logistic Rates</title><p>The controlled system is become:</p><disp-formula id="scirp.85987-formula7"><label>(44)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x225.png"  xlink:type="simple"/></disp-formula></sec><sec id="s4_4"><title>4.4. Periodic Rates</title><p>The controlled system is become:</p><disp-formula id="scirp.85987-formula8"><label>(45)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/85987x226.png"  xlink:type="simple"/></disp-formula><p>Constant case</p><p>Linear case</p><p>Logistic case</p><p>Periodic case</p><p>The optimal cost <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x251.png" xlink:type="simple"/></inline-formula> is become as in the function (4) after replacing<inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x251.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x252.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x251.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x252.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x253.png" xlink:type="simple"/></inline-formula>in the Equations (40) and (41) by <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x251.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x252.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x253.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x254.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x251.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x252.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x253.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x254.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x255.png" xlink:type="simple"/></inline-formula> respectively. The optimal solution is presented when <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x251.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x252.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x253.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x254.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x255.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x256.png" xlink:type="simple"/></inline-formula> in <xref ref-type="table" rid="table5">Table 5</xref> as shown below.</p><p>As we see from <xref ref-type="table" rid="table5">Table 5</xref>, the minimum cost when <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x257.png" xlink:type="simple"/></inline-formula> is achieved in the logistic case (0.02). Unlike all previous cases for the values of<inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x257.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x258.png" xlink:type="simple"/></inline-formula>, the optimal production rates are not simillar. These rates are higher (0.85, 0.76) in the linear case but smaller (0.48, 0.26) in the constant case . The optimal inventory levels are higher (1.86, 1.95) in the periodic case but smaller (0.89, 0.90) in the logistic case.</p><p>So, we can conclude that the co-state value <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x259.png" xlink:type="simple"/></inline-formula> is more sensitive for changing the values of parameters and actually more effectiveness on the optimal solution.</p></sec></sec><sec id="s5"><title>5. Conclusions</title><p>In this study, we discussed the optimal control problem using the deterioration and spoilage function, as the total cost must be minimized at the end of planning period, depending on the alternative quadratic exponential form (AQEF). We have used different values for the co-state variable <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x260.png" xlink:type="simple"/></inline-formula> which has negative values along the optimal trajectory. Also, we studied the effectiveness of increasing and decreasing these values on the behavior of optimal trajectory and then the optimal solution (the inventory levels, the production rates and the total cost) at the end of planning period. Also, we explained the sensitivity analysis for the effect of changing the values of model parameters (especially the deterioration and spoilage parameters and the initial values for inventory levels and production rates) on the optimal solution when the variable<inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x260.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x261.png" xlink:type="simple"/></inline-formula>. Also, we compared the results that obtained when the variable<inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x260.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x261.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x262.png" xlink:type="simple"/></inline-formula>, with the results that obtained when <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x260.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x261.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x262.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x263.png" xlink:type="simple"/></inline-formula> and have conducted that the model is more sensitive for changing the values of<inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x260.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x261.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x262.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x263.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x264.png" xlink:type="simple"/></inline-formula>. Finally, we concluded that the production rates are similar in all cases for the</p><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> The optimal solution when<inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x265.png" xlink:type="simple"/></inline-formula></title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Demand Rates</th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x266.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x267.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x268.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x269.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/85987x270.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Constant</td><td align="center" valign="middle" >1.77</td><td align="center" valign="middle" >1.90</td><td align="center" valign="middle" >0.85</td><td align="center" valign="middle" >0.76</td><td align="center" valign="middle" >1.83</td></tr><tr><td align="center" valign="middle" >Linear</td><td align="center" valign="middle" >1.5</td><td align="center" valign="middle" >1.56</td><td align="center" valign="middle" >0.48</td><td align="center" valign="middle" >0.26</td><td align="center" valign="middle" >1.10</td></tr><tr><td align="center" valign="middle" >Logistic</td><td align="center" valign="middle" >0.89</td><td align="center" valign="middle" >0.90</td><td align="center" valign="middle" >0.76</td><td align="center" valign="middle" >0.61</td><td align="center" valign="middle" >0.02</td></tr><tr><td align="center" valign="middle" >Periodic</td><td align="center" valign="middle" >1.86</td><td align="center" valign="middle" >1.95</td><td align="center" valign="middle" >0.75</td><td align="center" valign="middle" >0.60</td><td align="center" valign="middle" >1.41</td></tr></tbody></table></table-wrap><p>co-state variable <inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x271.png" xlink:type="simple"/></inline-formula> except when<inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x271.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="//html.scirp.org/file/85987x272.png" xlink:type="simple"/></inline-formula>. Also, the optimal inventory levels of the two items are affected by these changes in all cases.</p></sec><sec id="s6"><title>Cite this paper</title><p>El-Sayed, A.M.M. (2018) Studying the Changes of an Optimal Trajectory. Open Access Library Journal, 5: e4716. https://doi.org/10.4236/oalib.1104716</p></sec></body><back><ref-list><title>References</title><ref id="scirp.85987-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">El-Sayed, A. (2017) Alternative Quadratic Exponential Form to Optimal Control Problem. Journal of Statistical Science, ISSR, Cairo University, 61, 1.</mixed-citation></ref><ref id="scirp.85987-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Zhao, L.P. and Prentice, R. L. (1990) Correlated Binary Regression Using a Quadratic Exponential Model. Biometrika, 77, 642-648.https://doi.org/10.1093/biomet/77.3.642</mixed-citation></ref><ref id="scirp.85987-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">El-Sayed, A., Islam, M. and Alzaid, A. (2013) Estimation and Test of Measures of Association for Correlated Binary Data. Bulletin of the Malaysian Mathematical Sciences Society, 36, 985-1008.</mixed-citation></ref><ref id="scirp.85987-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Sethi, S.P. and Thompson, G.L. (2000) Optimal Control Theory: Applications to Management Science and Economics. Kluwer Academic Publishers, Boston, Dordrecht, London.</mixed-citation></ref></ref-list></back></article>