<?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">JAMP</journal-id><journal-title-group><journal-title>Journal of Applied Mathematics and Physics</journal-title></journal-title-group><issn pub-type="epub">2327-4352</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jamp.2023.113044</article-id><article-id pub-id-type="publisher-id">JAMP-123675</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Management Tools for Random Demand Inventory and Supply
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Jeremie</surname><given-names>Ndikumagenge</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>Jean</surname><given-names>Pierre Ntayagabiri</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>Vercus</surname><given-names>Ntirandekura</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Center for Research in Infrastructure, Environment and Technologies “CRIET”, University of Burundi, Bujumbura, Burundi</addr-line></aff><pub-date pub-type="epub"><day>02</day><month>03</month><year>2023</year></pub-date><volume>11</volume><issue>03</issue><fpage>670</fpage><lpage>678</lpage><history><date date-type="received"><day>24,</day>	<month>December</month>	<year>2022</year></date><date date-type="rev-recd"><day>12,</day>	<month>March</month>	<year>2023</year>	</date><date date-type="accepted"><day>15,</day>	<month>March</month>	<year>2023</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>
 
 
  A mathematical management model’s added value is obtained only after the design and implementation of a user-friendly operating and usage tool. Fol-lowing work on developing an automated inventory management system and/or supplies, a dynamic model for the rational management of product stocks was established. Its implementation aims to limit or eliminate over-stocking and/or stock depletion. The orderable quantity prediction tool based on a settable and preset time period demonstrates the added value of incorporating probabilistic mathematical principles into supply management processes. In this context, this article discusses aspects of the design and implementation of random demand management algorithms based on Mar-kov chains. The goal is to forecast the state or behavior of goods marketing company’s product stocks and to develop a user supply management inter-face. The latter’s functional application will ultimately demonstrate the ac-curacy of the model. This paper also looks at how to use Markov chains to predict the reliability of any technical device, as well as how to implement an automated system with the desired technical specifications.
 
</p></abstract><kwd-group><kwd>Model</kwd><kwd> Algorithm</kwd><kwd> Markov Chain</kwd><kwd> Transition Matrix</kwd><kwd> Steady State</kwd><kwd> State Space</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The exchange of goods and services is one of the activities that materialize human interactions. This quasi-routine activity involves physical entities or people, as well as legal entities such as businesses and corporations.</p><p>The volume of trade over the last ten years shows that the number of goods and services traded has steadily increased throughout history [<xref ref-type="bibr" rid="scirp.123675-ref1">1</xref>] . The size and number of exchanges are accompanied, among other things, by 1) difficulties in managing and forecasting the quantities to be ordered in order to obtain supplies, build up reserves, and ensure that stock does not run out or overflow; and 2) customer behavior uncertainty manifested by ignorance of the quantities and frequency with which they can buy over a given period of time. These last activities, carried out solely by human intuition on a daily basis, increase the likely margins of error in estimating salable and/or flow out quantities.</p><p>Marketing storable goods are activities whose realization recalls random events and/or processes that can be executed over time. As a result, Markov chains accurately model this type of process. They are distinguished by the fact that the probabilities implying how the process will evolve in the future are determined solely by the current state of the process and are thus independent of past events [<xref ref-type="bibr" rid="scirp.123675-ref2">2</xref>] . A stochastic process is a random phenomenon that evolves over time.</p><p>The Markov chain in stochastic analysis specifies a system of transitions of an entity from one state to another. A Markov chain’s states are divided into two categories: transient states, which are only visited an almost finite number of times (p.s.), and recurrent states, which are visited an almost infinite number of times (p.s.), as well as all other states in the same recurrence class. A recurrent irreducible Markov chain and the process’s marginal law converge to either the unique P-invariant probability measure or the null vector or null recurrence. This theory is particularly applicable to random markets and queuing models.</p><p>The need to ensure the reliability of a system arose around the turn of the twentieth century, peaking during World War II. Currently, the study of dependability is evolving into its own discipline. Economic issues, for example, necessitate a certain level of inherent dependability. The ability to predict system reliability is critical for ensuring the safety of braking systems, nuclear systems, computer systems, and other systems. In short, reliability analysis is a critical step in any study of a system’s dependability [<xref ref-type="bibr" rid="scirp.123675-ref3">3</xref>] .</p><p>It is critical to characterize a system’s behavior throughout its life cycle. The virtual impossibility of repairing certain equipment (satellites), the cost of system failures, spare parts inventories, and so on demonstrates the importance of understanding the reliability of the systems used. Because failures generally occur at random, it is logical to use probability calculations to strengthen their reliability through prediction. The reliability of a device, defined as its probability of functioning correctly for a given duration, is equivalent to determining the likelihood that no failure will occur during this duration [<xref ref-type="bibr" rid="scirp.123675-ref4">4</xref>] .</p></sec><sec id="s2"><title>2. Materials, Tools, Equipment and Methods</title><p>Random events or processes of product supply management necessitate the use of appropriate materials and methods. As stated in the introduction, this work makes use of the tools provided by Markov chains and its eventual applications.</p><sec id="s2_1"><title>2.1. Material</title><p>Because we are dealing with processes for managing a system with discrete random events, the implementation of such a system is centered on the use of adjacency matrices and state transition matrices, as well as the design of process-specific execution algorithms. As stated in the introduction, this work makes use of the capabilities provided by Markov chains as materials and equipment.</p><sec id="s2_1_1"><title>2.1.1. Discrete-Time Markov Chains</title><p>Let { X n , n ≥ 0 } be a sequence of random variables with values in the set of states E assumed to be equal to N. We say that this sequence is a Markov chain if ∀ n ≥ 0 and any sequence ( i 0 , i 1 , ⋯ , i n − 1 , i , j ) , we have:</p><p>ℙ ( X n + 1 = j ︷ Future | X n = i n , X n − 1 = i n − 1 , ⋯ , X 0 = i 0 ︷ Presentandpasstime ) = ℙ ( X n + 1 = j ︸ Future | X n = i ︸ Present ) (1)</p><p>probability distributions characterize this chain:</p><p>1) One-dimensional distribution:</p><p>P i ( n ) = P { X n = i } , ∀ n , i ∈ S (2)</p><p>2) The conditional probability distribution (also known as the transition probability distribution):</p><p>P i , j ( n ) = P { X n + 1 = j | X n = i } , ∀ i , j , n ∈ S (3)</p><p>Consider ( X n ) n ∈ N to be a Markov chain with values in S.</p><p>The Markov chain is said to be homogeneous if the probability of passing to state j at time n + 1 knowing that we were in state i at time n does not depend on n:</p><p>P ( X n + 1 = j | X n = i ) = P ( i , j ) for all n ∈ N . (4)</p><p>where are, the transition probabilities of the Markov chain are denoted by the numbers P ( i , j ) , ( i , j ) ∈ S 2 .</p></sec><sec id="s2_1_2"><title>2.1.2. Probabilities and Transition Matrix</title><p>The probability that X(n) is in state i ∈ S is one of the state probabilities π i ( n ) = P ( X ( n ) = i ) , the sum of which is obviously unity:</p><p>∑ i ∈ S π i ( n ) = 1 (5)</p><p>while p i , j ( n ) = P ( X ( n + 1 ) = j | X ( n ) = i ) are the probabilities of one-step transitions from state i to state j at time n, satisfying the relation:</p><p>∑ j ∈ S p i j ( n ) = 1 (6)</p><p>These transition probabilities are generally written in the form of a matrix called the Transition Matrix or Stochastic Matrix:</p><p>P = ( p 00 p 01 ⋯ p 0 i ⋯ p 10 p 11 ⋯ p 1 i ⋯ ⋮ ⋮ ⋱ ⋮ ⋯ p i 0 p i 1 … p i i ⋯ ⋮ ⋮ ⋱ ⋮ ⋱ ) (7)</p><p>whose sum of the elements in the same row equals one.</p><p>The probabilities of two-step transitions from state i to state j are calculated as follows:</p><p>p i j 2 = P ( X ( n + 2 ) = j | X ( n ) = i ) = ∑ k ∈ S P ( X ( n + 2 ) = j | X ( n + 1 ) = k , X ( n ) = i ) P ( X ( n + 1 ) = k | X ( n ) = i ) = ∑ k ∈ S P ( X ( n + 2 ) = j | X ( n + 1 ) = k ) P ( X ( n + 1 ) = k | X ( n ) = i ) = ∑ k ∈ S p k j p i k (8)</p><p>which is written as a matrix:</p><p>P ( 2 ) = P P = P 2 (9)</p><p>We can use the Chapman-Kolmogorov equations to obtain the m-step transition probabilities from state i to state j:</p><p>p i j ( m ) = P ( X ( n + m ) = j | X ( n ) = i ) = ∑ k ∈ S P ( X ( n + m ) = j | X ( n + m − l ) = k , X ( n ) = i ) P ( X ( n + m − l ) = k | X ( n ) = i ) = ∑ k ∈ S P ( X ( n + m ) = j | X ( n + m − l ) = k ) P ( X ( n + m − l ) = k | X ( n ) = i ) = ∑ k ∈ S p k j ( l ) p i k ( m − l ) (10)</p><p>for all i ∈ S ; j ∈ S ; l = 1 , 2 , ⋯ , m ; m = l + 1 , l + 2 , ⋯ .</p><p>These equations show that if you go from state i to state j in m steps, you will arrive at state k after exactly l (l being less than m) states. Thus, p k j ( l ) p i k ( m − l ) is only the conditional probability that, given a starting point of state j, the process proceeds to state k after l steps, then to state i after m − l steps. As a result, the sum of these conditional probabilities over all possible k must equal p i j ( m ) . The special case of l = 1 yields Equation (10):</p><p>p i j ( m ) = ∑ k ∈ S p k j p i k ( m − 1 ) (11)</p><p>or in a matrix form</p><p>P m = P ( m − 1 ) P = ⋯ = P m (12)</p></sec></sec><sec id="s2_2"><title>2.2. Methods</title><p>Inventory and supply management is an important aspect of a business’s operations. When it is effective, it reduces overstocking and increases the overall profitability of the company. Every procurement manager is faced with the daily task of making the best use of their products storage, namely inventory and supply storage management. At daily basis, he should dynamically modify inventories without exposing the company to risk of stock-out [<xref ref-type="bibr" rid="scirp.123675-ref5">5</xref>] . Overstocks result in additional costs due to storage fees on the one hand, while stocks out result in a revenue loss due to the client’s selflessness in the company on the other. The Markov’s chain addresses the inventory and supply process with threshold limits using probabilistic laws and principles.</p><p>Thus, a careful examination of the events that occur during the marketing of storable goods (stock) reveals that these processes can be correctly represented or modeled by Markov chains. The temporary and temporal storage of these goods can be studied using Markov chain concepts. A Markov chain is a random process ( X n ) n ∈ N , the transitions of which are determined by a stochastic matrix P ( X n , X n + 1 , X n + 2 , ⋯ ) . These processes demonstrate the Markov property, namely that observed from a (stopping) time T, ( X T + n ) n ∈ N depends solely on X<sub>T</sub> and is, once again, a Markov chain. Here are some major algorithms related to Markov chain mathematical tool. Figures 1-4 show the implemented Markov chain algorithms, while <xref ref-type="fig" rid="fig5">Figure 5</xref> shows the transition probability. The all algorithms presented in this sub-subsection are all written in the form of program in high level language Java.</p><sec id="s2_2_1"><title>2.2.1. Algorithm for the Markov Chain Test</title><p>The Markov chain testing algorithm is depicted in the Java source code in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The final one ensures that the modeled processes exactly correspond to the Markov chain.</p></sec><sec id="s2_2_2"><title>2.2.2. Algorithm for Calculating Matrices’ Products</title><p>As shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>, one of the main methods in state transition matrices is the matrices’ products algorithm.</p></sec><sec id="s2_2_3"><title>2.2.3. Chapman-Kolmogorov Equation Solution Algorithm</title><p>The algorithm for solving the Chapman-Kolmogorov equations computes the transition probabilities, which are then used to determine the stationary probability state. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the algorithm as depicted in the java source code.</p></sec><sec id="s2_2_4"><title>2.2.4. Algorithm for Constructing State Transition Matrices</title><p>The Transition matrix allows us to determine the stock state at any given time. <xref ref-type="fig" rid="fig4">Figure 4</xref> depicts the algorithm in pseudo-code form using the Java programming language paradigm.</p></sec><sec id="s2_2_5"><title>2.2.5. Function for Calculating Transition Probability</title><p>The transition probability function shows the probability transition from one state to another at a given time. <xref ref-type="fig" rid="fig5">Figure 5</xref> depicts the function used to calculate transition probabilities during the prediction process.</p></sec></sec></sec><sec id="s3"><title>3. Results and Discussion</title><sec id="s3_1"><title>3.1. Results</title><sec id="s3_1_1"><title>3.1.1. Algorithm for the Markov Chain Test</title><p>The Markov chain testing algorithm ensures that the processes being modeled exactly correspond to the Markov chain and thus have Markov properties.</p></sec><sec id="s3_1_2"><title>3.1.2. Chapman-Kolmogorov Equation Solution Algorithm</title><p>The algorithm for solving the Chapman-Kolmogorov equations allows for the determination or calculation of transition probabilities, including those in the steady state.</p></sec><sec id="s3_1_3"><title>3.1.3. Algorithm for Constructing State Transition Matrices</title><p>The transition matrix construction algorithm enables the creation of a “mirror” of all possible states for a system. The algorithm for calculating the transition probability, on the other hand, displays the state of a system at a given instant over a specified time period.</p></sec></sec><sec id="s3_2"><title>3.2. Discussions</title><p>Similar to the supply management processes and tools that can be built using Markov chains, guaranteeing the reliability of a technical system, particularly an artificial one, over a given period is equivalent to calculating that no failure will occur during this period. As a result, the theory of reliability, whose goal is to investigate the ability of technical devices to perform a required function under given conditions, during a given time, and for a given period, necessitates a mathematical modeling tool analogous to Markov chains. Satisfying the standards of reliability of technical systems through the application of probability theory of random phenomena appears to be a broad axis of application for the model designed and algorithms developed in this work.</p><p>In this era of increased commercial competition, decision-making by trial and error and/or improvised approximation based on natural human thought has only resulted in certain bankruptcy for the institution concerned. Thus, the algorithms developed in this article, when applied to automated inventory management models, provide numerous benefits, including reduced product storage costs and reduced shortfalls due to stock depletion.</p><p>This is demonstrated, for example, by the scientific contribution and applicability of the algorithm for solving the Chapman-Kolmogorov equations, the algorithm for constructing the transition matrix and the algorithm for calculating the probability of state transition.</p></sec></sec><sec id="s4"><title>4. Conclusions</title><p>The tools for implementing a model, no matter how well designed, are critical in ultimately constructing a management system with the desired technical specifications and obtaining the expected results.</p><p>The computer application of the discrete-time Markov chain model allows a company to manage the supply, storage, and sale processes of countable products without shortages and/or overstocks. Such a working method increases the system’s dependability.</p><p>Using an illustrative example, this work demonstrated that the predictability of the reliability of a system for managing supplies, stocks, and sales of a company selling storable goods allows for the limitation, if not elimination, of the phenomena of stock depletion and/or stock overflow, thanks to a simple and ergonomic management interface in which the algorithms developed will be implemented. These results show that the management and decision-making support model accurately predicts the quantity in stock as well as the quantity to be ordered, avoiding the phenomenon of storage products exhaustion or overflow.</p><p>As a result, this tool ensures that additional costs due to additional warehousing costs and potential losses due to out-of-stock situations are avoided. Finally, the implementation of simple and ergonomic management interface algorithms simplifies product storage monitoring procedures and makes managers’ daily tasks easier.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Ndikumagenge, J., Ntayagabiri, J.P. and Ntirandekura, V. (2023) Management Tools for Random Demand Inventory and Supply. Journal of Applied Mathematics and Physics, 11, 670-678. https://doi.org/10.4236/jamp.2023.113044</p></sec></body><back><ref-list><title>References</title><ref id="scirp.123675-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Santhi, P.K. (2019) Markov Decision Process in Supply. Madurai Kamaraj University, Tamil Nadu.</mixed-citation></ref><ref id="scirp.123675-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Hillier, F.S. (1967) Introduction to Operations Research. Holden-Day, San Francisco.</mixed-citation></ref><ref id="scirp.123675-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Deflem, Y. and Van Nieuwenhuyse, I. (2011) A Discrete Time Markov Chain Model for a Periodic Inventory System with One-Way Substitution. https://doi.org/10.2139/ssrn.1868085</mixed-citation></ref><ref id="scirp.123675-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Agbam, A.S. (2020) Application of Markov Chain (CM) Model to the Stochastic Forecasting of Stocks Prices in Nigeria: The Case of Dangote Cement. International Journal of Applied Science and Mathematical Theory, 6, 20.</mixed-citation></ref><ref id="scirp.123675-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Onyesolu, M., Abara, J., Chukwuneke, C. and Asogwa, D. (2018) Modeling a Dynamic Supply Chain Management System for an Utility Company in Nigeria. Journal of Software Engineering and Applications, 11, 275-284. https://doi.org/10.4236/jsea.2018.116017</mixed-citation></ref><ref id="scirp.123675-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Cormen, T.H., Leiserson, C.E., Rivest, R.L. and Stein, C. (2010) Algorithmique. Dunod, Paris.</mixed-citation></ref></ref-list></back></article>