<?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">JSEA</journal-id><journal-title-group><journal-title>Journal of Software Engineering and Applications</journal-title></journal-title-group><issn pub-type="epub">1945-3116</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jsea.2017.108036</article-id><article-id pub-id-type="publisher-id">JSEA-77410</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Algebraic or Algorithmic: Searching for Optimal Solutions in Multi-Stage Supply Chain Models
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ab</surname><given-names>Rahman Ahmad</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>Borkistang</surname><given-names>Mohamad</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Sami</surname><given-names>M. Halawani</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah, KSA</addr-line></aff><aff id="aff1"><addr-line>Faculty of Computing and Information Technology, King Abdulaziz University, Rabigh, KSA</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>abrfcit2014@gmail.com(ARA)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>03</day><month>07</month><year>2017</year></pub-date><volume>10</volume><issue>08</issue><fpage>663</fpage><lpage>676</lpage><history><date date-type="received"><day>May</day>	<month>16,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>July</month>	<year>1,</year>	</date><date date-type="accepted"><day>July</day>	<month>4,</month>	<year>2017</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 we proposed an 
  <em>AMH </em>Supply Chain model to obtain optimal solutions for Two-, Three- and Four-Stage for deterministic models. Besides deriving its algebraic solutions, a simple searching method is successfully applied in obtaining optimal total costs and its integer multipliers. Our model has shown promising results in comparison to 
  <em>Equal Cycle Time</em> and other existing ones. The tests focused on obtaining optimal total annual costs and other related details of Two-, Three- and Four-Stage for deterministic models. The results are run under 
  <em>Visual Basic Programming</em> platform using Intel&#174; Core
  <sup>TM</sup>2 Duo T6500 Processor.
 
</p></abstract><kwd-group><kwd>&lt;i&gt;AMH&lt;/i&gt; Model</kwd><kwd> Algebraic Solution</kwd><kwd> Inventory Coordination</kwd><kwd> Multi-Stage Supply Chain Models</kwd><kwd> Simple Search Algorithm</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The term Supply Chain Management (SCM) has emerged in the late 1980s and since then many definitions of SCM [<xref ref-type="bibr" rid="scirp.77410-ref1">1</xref>] have been proposed. SCM deals with the managing materials, information and financial flows in a network consisting of suppliers, manufacturers, distributors, wholesalers, retailers and customers (consumers). SCM [<xref ref-type="bibr" rid="scirp.77410-ref2">2</xref>] is defined in as a set of approaches utilized to efficiently integrate suppliers, manufactures, warehouses, and stores, so that merchandise is produced and distributed at the right quantities, to the right locations, and at the right time, in order to minimize system-wide cost while satisfying service level requirements.</p><p>There are many different models developed for SCM and planning objectives. The models [<xref ref-type="bibr" rid="scirp.77410-ref3">3</xref>] developed for implementation and application in supply chain management are classified in two mathematical types, i.e., descriptive models and optimization models. The descriptive models are created by modeling practitioners to better understanding functional relationship in the supply chain. They include demand forecasting models, cost relationship model, resource utilization relationship models, and supply chain system simulation model.</p><p>Research findings in inventory-distribution coordination and information sharing reveal that these can help in reducing inventories, order costs and transportation costs. The firms are advised to device strategies that lead to smaller batches or frequent replenishments. The exchanging substantial quantities of information among the parties involved can increase the efficiency and effectiveness of the supply chain. This can significantly reduced inventory which has a significant impact on supply chain activities.</p><p>The focus [<xref ref-type="bibr" rid="scirp.77410-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.77410-ref5">5</xref>] is on the integrated vendor-buyer inventory and the joint economic lot sizing problem models. The inventories [<xref ref-type="bibr" rid="scirp.77410-ref4">4</xref>] across the entire supply chain can be more efficiently managed through greater cooperation and better coordination. A review in [<xref ref-type="bibr" rid="scirp.77410-ref5">5</xref>] on the joint replenishment problem shows that there is interest in the new kind of problem with dynamic or stochastic demand. Recent research on the problem has also focused on finding faster algorithms to the problem.</p><p>The case of a Two-Stage serial supply chain system [<xref ref-type="bibr" rid="scirp.77410-ref6">6</xref>] involves a single vendor who supplies a single buyer with a single product. The vendor’s production rate is assumed finite whilst the demand at the buyer is assumed deterministic. The model fully shares the relevant information in order to coordinate the replenishment policies and joint optimize their operational costs. The study developed an integrated inventory replenishment model which assumed linear and fixed backorders costs. A hybrid geometric-algebraic method is used to derive the optimal replenishment policy and the minimum supply chain total cost in a closed form.</p><p>Some studies suggested synchronization of cycle times across the chain stages; however, in many cases pure Just-In-Time schedules using a common synchronized common production replenishment cycle are found not to be optimal. The supply chain model [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] achieved better the coordination by applying integer multipliers mechanisms in which the cycle time at each stage is an integer multiple of the cycle time of the adjacent downstream stage.</p><p>This research [<xref ref-type="bibr" rid="scirp.77410-ref8">8</xref>] deals with inventory and production co-ordination in a Three-Stage supply chain involving suppliers, manufacturers and retailers. The cycle time used at each stage is an integer multiple of the cycle time of the adjacent downstream stage. The produced lot is sent as soon as they are produced and not to wait until the whole lot is produced. A numerical example shows that the policy leads to better savings compared to the scheme that allows shipments only after the whole lot is produced.</p><p>A discrete-event simulation model [<xref ref-type="bibr" rid="scirp.77410-ref9">9</xref>] is developed for a Four-Stage supply chain. The model assumed to share their inventories and demands information. The evaluation on the system performance is the expected total cost which consists of the inventory holding cost, the ordering cost, and the shortage cost. The simulation model is optimized using SimRunner optimization package.</p><p>A more generalized inventory coordination mechanism in an n-stage, multi-customer, non-serial supply chain [<xref ref-type="bibr" rid="scirp.77410-ref10">10</xref>] used algebraic method to optimize coordinated supply chain. The established recursive expressions are used for the derivation of the optimal replenishment policy and the development of the solution algorithm. Further, a simple procedure is derived that can help in sharing the coordination cost benefits to induce all stages to adopt the inventory coordination mechanism.</p><p>In [<xref ref-type="bibr" rid="scirp.77410-ref11">11</xref>] , a proposed formulation for n-stage multi customers supply chain inventory model where a company can supply products to several customers. The formulation is for the model with the simplest inventory coordination mechanism, i.e., same cycle time for all companies in the supply chain. Instead of using differential calculus, it is feasible to use perfect square method to obtain an algebraic approach to optimize the supply chain model.</p><p>A generalization [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] is performed in [<xref ref-type="bibr" rid="scirp.77410-ref12">12</xref>] and individual derivation of the optimal solution to the Three- and Four-Stage models using the perfect squares method. A simple algebraic approach is considered good for those unfamiliar with differential calculus to understand better the optimal solution procedure. The study also deduced the optimal expressions [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] and [<xref ref-type="bibr" rid="scirp.77410-ref11">11</xref>] via two numerical examples.</p><p>The objective for this paper is to introduce our supply chain model called AMH, to develop algebraic solutions and performing search algorithms to obtain optimal solutions for multi-stage supply chain models. The development of mathematical formulations can assist the integrated design of strategic supply chain networks. Whenever algebraic formulations are not easily derived, then the alternative is to perform search algorithm. Both results can be utilized to coordinate and integrate the production-inventory decisions efficiently among supply chain partners, for example, suppliers, manufactures, distributors, wholesalers and retailers.</p></sec><sec id="s2"><title>2. The Notations for Supply Chain Models</title><p>In this paper, up to Four-Stage supply chain partners are considered where a firm can supplies many customers. The production rates for the suppliers, manufactures and distributors are assumed finite and the demand for each firm is assumed to be deterministic. The production and inventory decisions across the supply chain will be coordinated so that the total cost of the system is minimized. The inventory and production cycles in these models are assumed synchronized across the entire supply chain. Figures 1-3 illustrates the examples of</p><p>Two-, Three- and Four-Stage supply chain model.</p><p>The models are developed under the following assumptions:</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> An example of two-stage supply chain model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x2.png"/></fig><p>・ A single product is produced and distributed up to Four-Stage non-serial multi customers supply chain</p><p>・ Production rates and demand are deterministic and uniform</p><p>・ Unsatisfied demands at the end retailers are backordered</p><p>・ Ordering/setup costs, holding costs are, shortage costs the same for firms at the same stage</p><p>・ A lot produced at stage is sent in equal shipments to the upstream stage.</p><p>The following notations are used in the models developed; where the letters R, D, M and S are referred to Retailers, Distributors, Manufactures, and Suppliers.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> An example of three-stage [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] supply chain model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x3.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> An example of four-stage [<xref ref-type="bibr" rid="scirp.77410-ref10">10</xref>] supply chain model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x4.png"/></fig><p>The total annual cost for a downstream firm consist of</p><disp-formula id="scirp.77410-formula31"><graphic  xlink:href="http://html.scirp.org/file/1-9302420x53.png"  xlink:type="simple"/></disp-formula><p>For example, the total annual cost for retailers is given by</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x54.png" xlink:type="simple"/></inline-formula>.</p><p>For a firm involves in making products, we can express it in three parts</p><disp-formula id="scirp.77410-formula32"><graphic  xlink:href="http://html.scirp.org/file/1-9302420x55.png"  xlink:type="simple"/></disp-formula><p>For example, the total annual cost for manufacturers is</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x56.png" xlink:type="simple"/></inline-formula>.</p><p>The variation on the cost of keeping finished products can determine the lowest annual cost.</p><p>We present a deterministic Four-Stage supply chain model formulated for two inventory coordination mechanisms―Equal Cycle Time (ECT) and Integer Multipliers (IM). The mathematical formulation for Two- and Three-Stage can be derived accordingly by reducing the model into required stage. Under the configuration, a firm can supply any customer in the adjacent upstream stage.</p></sec><sec id="s3"><title>3. Four-Stage Supply Chain Models</title><p>Four-Stage supply chain model example based on [<xref ref-type="bibr" rid="scirp.77410-ref10">10</xref>] is depicted in <xref ref-type="fig" rid="fig3">Figure 3</xref>. The chain consists of a supplier, two manufacturers, four distributors and six retailers.</p><p>First, we discuss the coordination mechanisms, i.e., the equal cycle time and the integer multipliers. Let T is the basic cycle time. In Equal Cycle Time (ECT) mechanism, all firms in the chain have similar cycle time T. In contrast, for the Integer Multipliers (IM) mechanism models firms, each stage use the same cycle time but the cycle time at each stage is multiplied by an integer of the cycle time at the adjacent downstream stage. This implies that<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x57.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x58.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x59.png" xlink:type="simple"/></inline-formula> where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x60.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x61.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x62.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x63.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x64.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x65.png" xlink:type="simple"/></inline-formula>are the IM and cycle times for Distributors, Manufacturers and Suppliers respectively.</p><sec id="s3_1"><title>3.1. Equal Cycle Time (ECT)</title><p>Under ECT, the total annual cost for four-stage model is summarized as Equation (1)</p><disp-formula id="scirp.77410-formula33"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x66.png"  xlink:type="simple"/></disp-formula><p>Let</p><disp-formula id="scirp.77410-formula34"><graphic  xlink:href="http://html.scirp.org/file/1-9302420x67.png"  xlink:type="simple"/></disp-formula><p>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x68.png" xlink:type="simple"/></inline-formula>.</p><p>The algebraic solution for the T and TC can be obtained using simple procedure as follows:</p><p>With<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x69.png" xlink:type="simple"/></inline-formula>, then<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x70.png" xlink:type="simple"/></inline-formula>.</p><p>Equating<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x71.png" xlink:type="simple"/></inline-formula>, we then have<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x72.png" xlink:type="simple"/></inline-formula>, thus giving the solution as</p><p>Equation (2)</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x73.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x74.png" xlink:type="simple"/></inline-formula>. (2)</p></sec><sec id="s3_2"><title>3.2. Khouja’s Model</title><p>During non-production times [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] , the distributors’ inventory drop every T years by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x75.png" xlink:type="simple"/></inline-formula> which reduce the annual holding cost to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x76.png" xlink:type="simple"/></inline-formula>. The same applies to manufacturers and suppliers where the costs are reduced to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x77.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x78.png" xlink:type="simple"/></inline-formula> respectively. Thus, we obtain Equation (3) as follows</p><disp-formula id="scirp.77410-formula35"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x79.png"  xlink:type="simple"/></disp-formula><p>Rearranging Equation (3) as Equation (4), we have</p><disp-formula id="scirp.77410-formula36"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x80.png"  xlink:type="simple"/></disp-formula><p>and let</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x81.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x81.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x82.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x83.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x84.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x85.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x86.png" xlink:type="simple"/></inline-formula>,</p><disp-formula id="scirp.77410-formula37"><graphic  xlink:href="http://html.scirp.org/file/1-9302420x87.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x88.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x89.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x90.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x91.png" xlink:type="simple"/></inline-formula>. Let,</p><disp-formula id="scirp.77410-formula38"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x92.png"  xlink:type="simple"/></disp-formula><p>Differentiating <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x93.png" xlink:type="simple"/></inline-formula> then solving for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x94.png" xlink:type="simple"/></inline-formula>, we obtain Equation (6)</p><disp-formula id="scirp.77410-formula39"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x95.png"  xlink:type="simple"/></disp-formula><p>Next, differentiating and solving for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x96.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x97.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x98.png" xlink:type="simple"/></inline-formula> we</p><p>then have Equation (7)</p><disp-formula id="scirp.77410-formula40"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x99.png"  xlink:type="simple"/></disp-formula><p>Substituting (7) in (6), gives us <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x100.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x101.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s3_3"><title>3.3. Our Proposed Model―AMH</title><p>Our proposed model AMH-Ahmad, Mohamad and Halawani is an improvement based on Three-Stage model [<xref ref-type="bibr" rid="scirp.77410-ref8">8</xref>] . Instead of using both algebraic and searching algorithm, we will show our model requires only a mathematical formulation in obtaining the results.</p><p>In this model, goods produced at any stage are delivered to the upstream stage in equal shipments as they are produced and depend on the cycle time of the stage. In 4-Stage model, the inventory level of distributors at the beginning is at its minimum level which is equal to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x102.png" xlink:type="simple"/></inline-formula>. Then it starts to increase at the rate of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x103.png" xlink:type="simple"/></inline-formula> until it reaches its peak at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x104.png" xlink:type="simple"/></inline-formula>. Then it is consumed at the rate <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x105.png" xlink:type="simple"/></inline-formula> until the end of the cycle.</p><p>For manufacturers and suppliers, their respective inventory levels reach their peaks at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x106.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x107.png" xlink:type="simple"/></inline-formula>. These then consumed at the respective rate of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x108.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x109.png" xlink:type="simple"/></inline-formula> until the end of the cycle. The total annual cost for Four-Stage AMH model can be summarized as Equation (8)</p><disp-formula id="scirp.77410-formula41"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x110.png"  xlink:type="simple"/></disp-formula><p>Rearranging Equation (8) as Equation (9), we obtain</p><disp-formula id="scirp.77410-formula42"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x111.png"  xlink:type="simple"/></disp-formula><p>and let</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x112.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x112.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x113.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x114.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x115.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x116.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x116.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x117.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x118.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x118.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x119.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x120.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x120.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x121.png" xlink:type="simple"/></inline-formula></p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x122.png" xlink:type="simple"/></inline-formula>. Let,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x123.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x123.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x124.png" xlink:type="simple"/></inline-formula>,</p><p>which is similar to Equation (5). Using (7) and (6), we can obtain<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x125.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x125.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x126.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x125.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x126.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x127.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x125.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x126.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x128.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x125.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x126.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x128.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x129.png" xlink:type="simple"/></inline-formula>.</p></sec></sec><sec id="s4"><title>4. Searching Algorithm</title><p>Algebraic solutions to some mathematical problems can be derived to obtain the intended results instantly. However, some difficult expressions might require the solutions to be obtained iteratively or by approximation. Three-Stage Model [<xref ref-type="bibr" rid="scirp.77410-ref8">8</xref>] for example, is first solved by mathematical formulation then requires a method of searching for its final solution. For this purpose, we devise a simple searching method that can provide solutions as accurate as algebraic counterparts.</p><p>Equations (1), (4) and (9) can be written in the form of Equation (10)</p><disp-formula id="scirp.77410-formula43"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/1-9302420x130.png"  xlink:type="simple"/></disp-formula><p>where W and Y are constants and positive. This gives TC &gt; 0 and depends on T.</p><p>To illustrates this, <xref ref-type="fig" rid="fig4">Figure 4</xref> shows an example for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x131.png" xlink:type="simple"/></inline-formula> where W = 1 and Y = 20. The blue line (straight) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x131.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x132.png" xlink:type="simple"/></inline-formula>and the red hyperbola (curve) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x131.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x132.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x133.png" xlink:type="simple"/></inline-formula>meets to yield an optimal annual cost, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x131.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x132.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x133.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x134.png" xlink:type="simple"/></inline-formula>on the green line function<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x131.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x132.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x133.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x134.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x135.png" xlink:type="simple"/></inline-formula>.</p><p>A simple search to determine <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula> based on <xref ref-type="fig" rid="fig5">Figure 5</xref> is presented as follows. First, an initial value for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula> is required prior to perform the search. Let<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x140.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x141.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x142.png" xlink:type="simple"/></inline-formula> are the respective cycle time, its start, end and accuracy that create the main loop. Since the bounds of cycle time T is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x143.png" xlink:type="simple"/></inline-formula>, then we can select <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x144.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x144.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x145.png" xlink:type="simple"/></inline-formula>. For<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x144.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x145.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x146.png" xlink:type="simple"/></inline-formula>, the good choice is within 0.001 to 0.00001 (3 to 5 decimal places accuracy).</p><p>The main loop is sufficient for Equation (1); however Equations (4) and (9) involve integer multipliers which require more calculations. In addition to the loop created by cycle time T, the number of multipliers used in IM mechanisms generates more loops. The bounds set for these mechanisms determine the number of repetition required. For Four-Stage IM, the number of loops generated are <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x147.png" xlink:type="simple"/></inline-formula> where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x147.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x148.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x147.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x148.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x149.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x147.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x148.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x149.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x150.png" xlink:type="simple"/></inline-formula> are the respective limits for</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> The sketch of an optimal solution for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x152.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x152.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x153.png" xlink:type="simple"/></inline-formula></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x151.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Searching for an optimal solution for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x155.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x155.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x156.png" xlink:type="simple"/></inline-formula></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x154.png"/></fig><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x157.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x158.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x159.png" xlink:type="simple"/></inline-formula>. When these limits are reached the loops terminate, giving us<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x160.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x161.png" xlink:type="simple"/></inline-formula>and the optimal values of multipliers.</p><p>We present the flowchart for Searching for an Optimal Solution for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x162.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x162.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x163.png" xlink:type="simple"/></inline-formula> for Four-Stage IM model as depicted in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><p>For Three-Stage IM model skips<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x164.png" xlink:type="simple"/></inline-formula>; for Two-Stage IM model skips <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x165.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x166.png" xlink:type="simple"/></inline-formula>; and for Multi-Stage ECT model skips<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x166.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x167.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x166.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x167.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x168.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x166.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x167.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x168.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x169.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s5"><title>5. Results and Discussion</title><p>Figures 6-8 are the results for the respective Two-, Three- and Four-Stage models run on Visual Basic Programming platform. The sample data [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] is used for Two- and Three-Stage (<xref ref-type="fig" rid="fig6">Figure 6</xref> and <xref ref-type="fig" rid="fig7">Figure 7</xref>) whilst for Four-Stage (<xref ref-type="fig" rid="fig8">Figure 8</xref>) we have considered the sample [<xref ref-type="bibr" rid="scirp.77410-ref9">9</xref>] . <xref ref-type="fig" rid="fig9">Figure 9</xref> shows the nature of total costs where the optimal value for each stage and mechanism exists.</p><p>For Three-Stage model as shown in <xref ref-type="fig" rid="fig7">Figure 7</xref>, our model (AMH) yields similar results as [<xref ref-type="bibr" rid="scirp.77410-ref8">8</xref>] at 45,987 but the advantage is we are able to solve it algebraically or</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> The detail results for two-stage supply chain models</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x170.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> The detail results for three-stage supply chain models</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x171.png"/></fig><p>via searching. A better improvement over ECT and [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] is clear, both at 54,688 and 51,960 respectively. Another saving is also shown in Two-Stage model (<xref ref-type="fig" rid="fig6">Figure 6</xref>), where the total cost for AMH is 23,859 in comparison to 26,486 and 25,933. More convincing result is shown further in Four-Stage model, <xref ref-type="fig" rid="fig8">Figure 8</xref>. AMH shows very much further reduction with the total cost of 51,400. The saving over ECT for three different stages is 10%, 16% 35% compared to KH of 2%, 5% and 25%.</p><p><xref ref-type="fig" rid="fig9">Figure 9</xref> displays a clear behavior of total costs<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x172.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x172.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-9302420x173.png" xlink:type="simple"/></inline-formula>for each model and mechanism.</p><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> The detail results for four-stage supply chain models</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x174.png"/></fig><fig-group id="fig9"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> The graph for two, three and four-stage supply chain models.</title></caption><fig id ="fig9_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x177.png"/></fig><fig id ="fig9_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x176.png"/></fig><fig id ="fig9_3"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302420x175.png"/></fig></fig-group><p>These significant gains in all cases are due to proper handling of finished products within non-production activities. These products are shipped as soon as they are produced, thus saving the holding cost drastically. This can be seen from the reduction in individual cost for distributors, manufacturers and suppliers in <xref ref-type="fig" rid="fig8">Figure 8</xref> for each mechanism.</p><p>Algebraically, it has been shown in each case that there exists only one optimal value. The dots represent the optimal value for the mechanisms in each model. This is similar to the chart depicted in Figures 6-8 which shows the evidence that AMH is a far better scheme over ECT and [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] . The searching technique used also yields the same results as the algebraic solutions as shown in Figures 6-8.</p><p>For searching algorithm, the time taken for Two-, Three- and Four-Stage are measured in second. Their respective times are 0.81, 1.51 and 3.09 seconds and running under Inter&#174; Core<sup>TM</sup>2 duo T6500 Processor. The latest processor with faster speed would reduce further the time required to produce the results. It is clear that the results are obtainable via mathematical formulation or perform searching algorithm.</p></sec><sec id="s6"><title>6. Conclusions</title><p>To date, supply chains are spanning thousands of miles across the globe involving numerous suppliers, manufacturers, distributors, wholesalers, dealers, retailers and finally to customers (consumers). All are important in each of their scopes and interdependent on one another. It is consumers who create the demand based on manufacturers’ goods produced. If consumers reduce the consumption of a particular product, its supply also has to be reduced to balance the demand.</p><p>In this paper we have developed AMH model to obtain optimal solutions for Two-, Three- and Four-Stage Supply Chain models. Our AMH model has shown promising results in comparison to ECT and [<xref ref-type="bibr" rid="scirp.77410-ref7">7</xref>] . Besides deriving algebraic solutions, a simple searching method is successfully applied in obtaining optimal total costs and its integer multipliers.</p><p>The model is just tested on deterministic demand; however, this can be extended to deal with other issues, variations and constraints such as stochastic demand or other costs incurred. Developing a computerized system that can handle transactions in small or medium business is feasible. The system should be able to perform some required tasks in simple Two-Stage to bigger N-Stage models that involve more firms and with the variation in supply chain management.</p></sec><sec id="s7"><title>Acknowledgements</title><p>This project was funded by the Deanship of Scientific Research (DSR), King Abdulaziz University, Jeddah under grant no 499/830/1431. The authors, therefore, acknowledge with thanks to DSR technical and financial support.</p></sec><sec id="s8"><title>Cite this paper</title><p>Ahmad, A.R., Mohamad, B. and Halawani, S.M. (2017) Algebraic or Algorithmic: Searching for Optimal Solutions in Multi-Stage Supply Chain Models. Journal of Software Engineering and Applications, 10, 663-676. https://doi.org/10.4236/jsea.2017.108036</p></sec></body><back><ref-list><title>References</title><ref id="scirp.77410-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Nahmias, S. (2005) Production and Operations Analysis. 5th Edition, McGraw-Hill/Irwin, Singapore.</mixed-citation></ref><ref id="scirp.77410-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Simchi-Levi, D., Kaminsky, P. and Simchi-Levi, E. (2008) Designing &amp; Managing the Supply Chain: Concepts, Strategies, and Case Studies. 3rd Edition, McGraw Hill/Irwin, Boston.</mixed-citation></ref><ref id="scirp.77410-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Shapiro, J.F. (2009) Modeling the Supply Chain. 2nd Edition, Cengage Learning, Duxbury, MA.</mixed-citation></ref><ref id="scirp.77410-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Ben-Daya, M., Darwish, M. and Ertogral, K. (2008) The Joint Economic Lot Sizing Problem: Review and Extensions. European Journal of Operational Research, 185, 726-742. https://doi.org/10.1016/j.ejor.2006.12.026</mixed-citation></ref><ref id="scirp.77410-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Khouja, M. and Goyal, S. (2008) A Review of the Joint Replenishment Problem Literature: 1989-2005. European Journal of Operational Research, 186, 1-16.  
https://doi.org/10.1016/j.ejor.2007.03.007</mixed-citation></ref><ref id="scirp.77410-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Seliaman, M.E. (2013) Optimizing the Two-Stage Supply Chain Inventory Model with Full Information Sharing and Two Backorders Costs Using Hybrid Geometric-Algebraic Method. Journal of Optimization, 5 p.  
https://doi.org/10.1155/2013/519180</mixed-citation></ref><ref id="scirp.77410-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Khouja, M. (2003) Optimizing Inventory Decisions in a Multi-Stage Multi-Customer Supply Chain. Transportation Research Part E Logistics and Transportation Review, 39, 193-208. https://doi.org/10.1016/S1366-5545(02)00036-4</mixed-citation></ref><ref id="scirp.77410-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Ben-Daya, M. and Al-Nassar, A. (2008) An Integrated Inventory Production System in a Three-Layer Supply Chain. Journal of Production Planning and Control, 19, 97-104. https://doi.org/10.1080/09537280801895930</mixed-citation></ref><ref id="scirp.77410-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Saif, A.-W.A., Seliaman, M.E. and Ahmad A.R. (2006) Simulation Optimization of a Four-Stage Supply Chain System. IEEE 2nd Information and Communication Technologies, 2006. ICTTA '06, Damascus, 24-28 April 2006, 2798-2802.  
https://doi.org/10.1109/ictta.2006.1684855</mixed-citation></ref><ref id="scirp.77410-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Seliaman, M.E. and Ahmad, A.R. (2009) A Generalized Algebraic Model for Optimizing Inventory Decisions in A Multi-Stage Complex Supply Chain. Transportation Research Part E, 45, 409-418. https://doi.org/10.1016/j.tre.2008.09.012</mixed-citation></ref><ref id="scirp.77410-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Cárdenas-Barrón, L.E. (2007) Optimizing Inventory Decisions in a Multi-Stage Multi-Customer Supply Chain: A Note. Transportation Research Part E, 43, 647-654. https://doi.org/10.1016/j.tre.2005.09.011</mixed-citation></ref><ref id="scirp.77410-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Leung, K.N.F. (2009) A Technical Note on Optimizing Inventory Decisions in a Multi-Stage Multi-Customer Supply Chain. Transportation Research Part E, 45, 572-582. https://doi.org/10.1016/j.tre.2009.01.007</mixed-citation></ref></ref-list></back></article>