1 Introduction and background of the study

Currently, inventory is considered to be one of the more costly operating expenses of business. In some industries, inventory management has emerged as a critical factor in profitability and productivity optimization. A supply chain is a system that involves all the facilities or entities that are required to transform raw materials into final products. It consists of stages, like suppliers, manufacturers, distributors, wholesalers and retailers, etc. In practice, supply chains are highly uncertain. Supplier reliability, uncertainty and poor performance in one stage can affect the whole supply chain. These disruptions can occur on the supplier and retailer sides. To anticipate the disruption situations similar to real world scenarios, we considered two states (ON and OFF) to define the status of both the supplier and retailer. ON state indicates that the supplier is available for placing a new order & OFF state means supplier is currently unavailable for that purpose. Disruptions that are beyond human control cannot be undone, but if proper measures are taken, reordering points, order quantities and optimum supplier reliability can be set in such a way so as to maximize the total gains of a replenishment cycle. A highly reliable supplier leads to a high-quality product which, in turn, reduces inspection and rejection costs, at the same time increasing purchasing cost. Therefore, supplier reliability should be set at a certain limit. To make the inventory model closer to a “real life” scenario, we included supplier reliability in our inventory model. Since inventory cost has become a key concern for organizations and managers, these groups are interested in reducing this cost most of the time. Hence, the objective of a company is to maximize their profit by considering some inventory cost parameters, so that this cost is the lowest possible at any particular period.

Operations research, computer science, production inventory systems and management have emerged as the most crucial research interests for many researchers and academics. In previous studies, many researchers concentrated on developing inventory models for ideal situations. For example, Parlar and Berkin (1991) established an inventory model where supply disruption was considered. Their main assumption was that the supplier’s state is known to the decision maker, and they are in either an ON or OFF state. They also presumed that the decision maker follows a ZIO (Zero Inventory Ordering) standard where an order is placed when inventory levels reach zero. Parlar and Perry (1995) established another inventory model where the state of the supplier was unknown to the decision maker, like in their previous work. Again, ZIO policy was not followed. Rather there was a reorder point. Gupta (1996) assumed that customer demand follows a Poisson process and that lost sales are generally caused by shortages. He also considered a non-zero (but deterministic) lead time. Parlar (1997) focused on a review-type inventory problem which is continuous and stochastic in nature, considering random demand and random lead times, where the availability of the supplier was modelled as a semi-Markov process. In this case, the standard (q, r) policy was followed when the supplier was available (ON). Heydari and Norouzinasab (2016) developed a two-stage supply chain involving a single manufacturer and single retailer, where they proposed an incentive policy to fix pricing strategies, lead time and ordering. They assumed that stochastic demand is dependent on price and lead time. Yao and Minner (2017) presented an inventory model that includes different supply options (multiple-sourcing, transhipment, supplier selection methods) and summarized their influence from managerial perspective. Cárdenas-Barrón et al. (2018) proposed an inventory model by assuming that ending inventory level can be negative. Their work formulated an economic order quantity model to maximize the retailer’s total profit per unit time under nonlinear holding cost and demand. Lücker et al. (2019) focused on managing disruption considering reserve capacity for inventory decisions and stochastic demand simultaneously. Moreover, they assumed zero lead time to neglect the effects of safetly stock in their mathematical model. Dem et al. (2019) worked on an inventory model where defective and non-defective items can be produced. In their study, they thought that demand depends on defective and non-defective factors. An objective of the study was to find the optimal production policy to maximize profit where the reliability of the system was considered exponentially decreasing as a function of time.

Mohebbi and Hao (2006) explored the problems involved in a continuous review inventory system with Compound Poisson demand, Erlang-distributed lead times, and lost sales due to random supply interruptions. Dada et al. (2007) solved a newsvendor related problem with multiple suppliers, where any given supplier was characterized as either perfectly reliable (a supplier delivering an identically equal quantity to the desired quantity) or unreliable (a supplier, with some probability, delivering a quantity strictly less than the quantity expected). Sting and Huchzermeier (2012) analysed dual sourcing decisions considering supply and demand uncertainty which are stochastically dependent on each other. Results were extended to the rather wide range classes of endogenous supply uncertainty formed by Dada et al. (2007). Hishamuddin et al. (2013) developed a recovery model for a two-stage supply chain system considering disruption that can happen due to transportation. In their model, the authors tried to optimize ordering and production quantities during the disruption recovery window with a cost minimization objective. Li et al. (2017) considered a single stage supply chain where demand is deterministic and disruptions can lead to production delay. Their paper developed a cost minimization model by comparing proactive and reactive strategies in case of disruption management. Schmitt et al (2017) used a dynamic ordering approach and found considerable performance improvement compared to adaptive approach to mitigate supply disruptions. In their model they did not consider randomness in disruption duration which can be one important aspect for real world supply chain. Giri and Sarker (2019) worked on a three-echelon supply chain model where they considered a raw material supplier, one manufacturer and one retailer. They considered the way both the raw material supplier and manufacturer can have issues of disruption in their production. The objective of the study was to determine the optimal lot size for both the supplier and manufacturer and to maximize total profit.

Production process reliability has been considered by many researchers, such as Bag et al. (2009), Sana (2010), Mohebbi and Hao (2008), Sarkar (2012) and Paul et al. (2014a, b, c, 2015a, b, 2019a, b). Mohebbi and Hao (2008) inferred that in a stochastic inventory system, an unreliable supplier with a single item varies randomly between two feasible states (i.e., availability and unavailability), following a dual state continuous time-homogeneous Markov chain. Bag et al. (2009) developed an inventory model with three types of cost: holding cost, set up cost and production cost, where flexibility, demand and reliability are considered as fuzzy random variables. Sana (2010) established a mathematical model that optimizes the production rate and product reliability to determine the maximum cumulated profit for an imperfect manufacturing process. Qi (2013) worked on an inventory model for a retailer with a single product and constant demand. This model was a continuous review inventory model where replenishment decisions were made based on reliability, and costs were presented by two different suppliers. Paul et al (2013) developed a production inventory system that considered disruption in the production process. Silbermayr and Minner (2014) developed a supply chain with one buyer where demand follows the Poisson process. The buyer can order from a set of suppliers with unreliable supply performance. Torkul et al. (2016) worked on a model to arrange the reorder point in a time based manner to eliminate safety stock. Huang et al. (2018) developed a two-level supply chain model considering an unreliable supplier’s production system and a price-sensitive retailer’s demand. In this model, it was considered that production lines may shift between “in control” to “out of control” states randomly. Rohaninejad et al. (2018) focused on a multi-echelon supply chain where the reliability of the facilities can be improved by investing. One major assumption of their model was that the integrated optimization approach among stages are more effective than individual optimization. However, in their model other significant relations were absent such as the cost of supplying demand from one stage which can be dependent on the planned level of reliability to other echelon of the network. Yan et al. (2019) established an inventory model to define the order strategies of a two-stage supply chain system. They considered both of the suppliers unreliable and might cause random disruptions. Optimal ordering policy, order quantity and expected profit were derived from this model. To make the model more realistic, their single period disruption model can be extended to address multiple period disruption situations.

We found in most of the literature that the assumed lead time was zero. This meant that when an order was placed, a shipment was received instantly, or after a random or fixed lead time. Yet, researchers have assumed a supplier is always available when needed. However, as the examples provided have shown, this is not always the case. The supplier may be in a state of disruption for many reasons. They can be unavailable for a random time at random times. Another assumption has been that the retailer is always available. The main function of a retailer is to store inventory to satisfy demand. When events like a natural disaster or political strikes occur, there is a possibility that retailing is disrupted. For example, an end product may be destroyed and not reach the hands of the consumer. Such events may hamper the production of the manufacturer. If the manufacturer cannot deliver its product to the retailer, then it may not go into further production. The disruption at the supplier will impede supply reaching the manufacturer. The disruption at the retailer hampers the production of the manufacturer, the end product that will be consumed by the consumer, and also the inventory level of the retailer. Finally, in most of the cases reported above, the reliability of the supplier was not considered. Highly reliable suppliers give high-quality products, which reduces inspection and rejection costs. To summarize, the aims of the study are:

  1. i.

    To formulate a three stage inventory model for a manufacturer facing random demand at random times;

  2. ii.

    To develop a mathematical framework considering a single supplier and single retailer with random capacity and demand;

  3. iii.

    To incorporate reliability of the supplier;

  4. iv.

    To model and optimize the final profit function for the manufacturer; and

  5. v.

    To understand the relationship among different decision variables through a numerical example.

In summary, the study will assist a manufacturer to have a clear understanding of an optimal inventory plan in case of disruption in both supplier and retailers end by considering random capacity and supplier’s reliability.

All the assumptions described in this section were treated individually in various literature, but in this research, all of these assumptions are treated simultaneously. Here, disruptions at both the retailer and supplier are considered to take the inventory model one step closer to a real-world scenario. Also, supplier reliability is related to the inventory model. So, to make the inventory model closer to a real-world model of practice, we include supplier reliability in our inventory model. The main contribution of this paper can be summarized as follows:

  1. i.

    Establishment of an updated efficient heuristic for generating a revised production plan after disruption.

  2. ii.

    Development of a mathematical model for a manufacturer facing random demand considering that the supplier can face disruptions and random capacity.

  3. iii.

    Extension of the heuristic considering various disruptions on a real-time basis. The revised plans may or may not be affected by any new disruptions after previous ones, where their situation may be viewed as dependent and independent and these scenarios can be handled by the new extended heuristic.

  4. iv.

    Consideration that the reliability of the supplier in model development and both the supplier and retailer can be disrupted at random times.

  5. v.

    Optimization of the resulting final objective equation of the formulated model using a suitable nonlinear optimization technique to get the value of the decision variables, which are mainly state respective order quantities, reorder point and reliability.

The remaining section of the paper is organized as follows: the context of the problem for conducting this research has been described in Sect. 2. Section 3 represents the formulation of the mathematical model for the stated problem. The solution methods and algorithm process is discussed in Sect. 4. Section 5 and 6 deal with results analysis, graphical findings and sensitivity analysis. Finally, conclusions, discussions and directions for conducting future research are summarized in Sect. 6.

2 Problem description

In this paper, we consider that the supplier can be disrupted at random times and can remain off for a random length of time. The retailer can also be disrupted at random times and can remain off for a random length of time. A manufacturer has one supplier from whom they get a supply of raw materials, parts or sub-assemblies, and one retailer who is involved in keeping stock of the products manufactured by the manufacturer and keeping direct contact with the consumers by selling those. The supplier can be in an ON/OFF state and so too, the retailer. Moreover, the supplier has a random capacity. They cannot always supply the exact amount of supply needed when they get an order. The manufacturer wants to consider all these facts and wants to develop an inventory model and an ordering policy which will minimize their average cost. The manufacturer could backorder if they are not capable of meeting current demand. The assumptions made about the situation are given below.

  1. i.

    Defective and non-defective items will be identified and separated through 100% inspection.

  2. ii.

    There is a pricing policy for defective and non-defective items where defective items are sold at a lower price.

  3. iii.

    Selling price of non-defective items is a function of markup (m1) of production cost (P). Such as S1 = m1P; m1 > 1.

  4. iv.

    Selling price of defective items is a function of markup (m2) and production cost (P) such that S2 = m2P; where, 0 < m2 < 1

  5. v.

    Holding cost is a function of process reliability.

  6. vi.

    The supplier and the retailer can be available and unavailable at random times and the manufacturer does not know the availability of them beforehand.

  7. vii.

    Demand generates according to the Poisson process where the supplier and retailer’s length of ON and OFF periods are exponential random variables.

  8. viii.

    To place an order, the supplier and retailer both need to be in ON state.

  9. ix.

    Supplier’s capacity follows an exponential distribution.

  10. x.

    Average length of supply disruption is much higher than order delivery lead time. For this reason, the lead time for order delivery is considered zero.

Figure 1 presents the different stages involved in our single supplier and single retailer model with different inventory levels and the status of both the supplier and retailer are provided. We considered cycle length as the time gap between two successive order placements. Disruption can occur at both supplier and retailer, but if the supplier is OFF for a long time, then this can cause backorder costs. After a certain disruption there comes a recovery plan for that specific case, order quantity and reorder point. Reliability of the supplier is given by the model as a revised plan.

Fig. 1
figure 1

Different states and inventory level status of one supplier and one retailer

3 Model formulation

In this section, we develop a mathematical model for a single supplier, single retailer system. During this model development, we considered the supplier and retailer have random capacity and they can be available and unavailable at different times. The duration of the available period or ON state and the unavailable period or OFF state follows an exponential distribution. Supplier’s length of ON period is denoted by a parameter λ and OFF period is denoted by a parameter μ. Similarly, retailer’s duration of ON period is represented by a parameter α and OFF period is represented by a parameter β. There can be 4 different states for the supplier and the retailer depending on time. In Table 1 all these possible states are given (at t = 0 the state must be 0).

Table 1 Probable states of the supplier and retailer

In the model, we have 4 states depending upon the ON and OFF situation of the supplier and retailer. However, only in the state 0 can an order can be placed because both the supplier and the retailer are available at this time. The reorder quantity is r for that state. On the other states (1, 2, 3), the supplier or the retailer is in an OFF state, so there is no chance of supplying the product to the customer for those states. So, there is only one order quantity (q0). The transient probabilities are defined as, Pij(t) = Probability {starting with state i at time 0 and finally at state j at time t}, here i, j = 0, 1, 2, 3.

In summary, we can say that the manufacturer has a single supplier for replenishment and that the supplier can be unavailable at random periods of time. Similarly, the retailer can be unavailable at random times and cause supply disruption. When the state is 0 and the reorder point is reached, the manufacturer places orders for qo units. If the retailer or the supplier is unavailable at that ordering time, the manufacturer has to wait until they are available. After the reception of the order from the supplier, update inventory level will be E(qi) + r; i = 0, 1, 2.

So, the average profit objective function is,

$$ AP\left( {q_{o} ,r,n} \right) = \frac{{C_{00} }}{{T_{00} }} = \frac{{E\left[ {Profit \,per\, cycle} \right] }}{{E\left[ {Length\, per \,cycle} \right]}} $$
(1)

3.1 Notations used in the study

In this paper, to formulate the mathematical model we used the notations below.

λ

ON period duration of the supplier

μ

OFF period duration of the supplier

α

ON period duration of the retailer

β

OFF period duration of the retailer

N

Process reliability as a decision variable

K

Ordering cost

H

Inventory holding cost/unit/time

π

Backorder cost/unit

π

Backorder cost/unit/time

θ

Exponential distribution parameter of the supplier for their random capacity

Q

Supplier’s ordering quantity

E(q)

Expected quantity received by the manufacturer from the supplier

R

Reorder point

γ

Average demand/unit/time

AP

Average profit

C00

Total profit of a cycle

T00

Time length of a cycle

Pij(t)

Probability of going from initial state i to state j

Pi

Steady-state probability of state i

Ai

Total holding and ordering cost for state i

Φ

Rate out of any state

P’(t)

Kolmogorov differential equation corresponding to P(t)

Q

Generator Matrix

U

Matrix consisting of the eigenvectors of matrix Q

U−1

Inverse of U matrix

H

Diagonal Matrix

ω

Eigenvalues of matrix Q

D(t)

Resultant matrix after solution by spectral analysis

qi0

Cost incurred to the beginning of the next cycle from the time when inventory drops to r at state i = 0, 1, 2, 3 and q units are ordered in case of state 0

\( \bar{C} \)

Expected cost starting from the time when inventory drops to reorder point (r) until both supplier and retailer become available

δ

Rate of departure from state 3

Ti0

Time to the beginning of the next cycle when both supplier and retailer become available from the time inventory drops to reorder point r, at state i = 0, 1, 2, 3 and q units are ordered in case of state 0

\( \bar{T} \)

Expected time to the beginning of the next cycle from the time inventory drops to r

P

Purchasing cost per unit product

m1

Non-defective units selling price mark-up factor

m2

Defective units selling price mark-up factor

E

Inspection cost (considered as % of production cost)

C

Rejection cost/unit

3.2 Calculation of transient probabilities

Let, P(t) = [Pij(t)], t ≥ 0, i, j = 0,1,2,3 be the 4 × 4 transition functions matrix for the continuous time Markov chain. The problem is to find the exact transient solution of this matrix. There is a special way of deriving these transient probabilities which is known as Kolmogorov forward equations. This is a system of ordinary differential equations governing the behaviour of the probabilities Pij(t). The structure of the equation is as follows

$$ P^{\prime}_{ij} \left( t \right) = - \emptyset \left( j \right)P_{ij} \left( t \right) + \mathop \sum \limits_{y \ne j} P_{iy} \left( t \right)\emptyset \left( {y,j} \right) $$
(2)

Here y denotes some intermediate state between i and j and φ stands for the rate out of any state. For example, P00(t) and P01(t) can be evaluated with the following equation:

$$ P_{00}^{\prime} \left( t \right) \, = \, - \, \left( {\lambda + \alpha } \right) \, P_{00} \left( t \right) \, + \, \beta P_{01} \left( t \right) \, + \, \mu P_{02} (t) $$
(3)
$$ P_{01}^{\prime} \left( t \right) \, = \, - \, \left( {\lambda + \beta } \right) \, P_{01} \left( t \right) \, + \, \alpha P_{00} \left( t \right) \, + \, \mu P_{02} (t) $$
(4)

In the same way, other differential equations are also possible. However, we can put these 16 Kolmogorov equations in a more convenient matrix differential form, as below:

$$ P^{\prime} \left( t \right) = P\left( t \right) \, Q\quad {\text{with}}\quad P\left( 0 \right) = 1 $$
(5)

Here,

$$ Q = \left[ {\begin{array}{*{20}c} { - (\lambda + \alpha )} & a & \lambda & {00} \\ {\beta \text{ }} & { - (\lambda + \beta )} & 0 & \lambda \\ \mu & 0 & { - (\alpha + \mu )\text{ }} & \mu \\ 0 & \mu & {\beta \text{ }} & { - (\mu + \beta )} \\ \end{array} } \right] $$
(6)

where Q is the generator matrix of the Markov chain. P(t) = eQt is the solution of the above matrix differential equation and eQt is the matrix exponent, which is defined as:

$$ e^{Qt} = \sum\limits_{n = 0}^{\infty } {\frac{{t^{n} Q^{n} }}{n!}} $$
(7)

Now, spectral theory is going to be used to define the values of Q.

$$ Q = UHU^{ - 1} $$
(8)

where U is the non-singular matrix formulated with the right eigenvectors of Q, and H is the diagonal matrix. For the eigenvectors of Q, it is needed to find the eigenvalues of Q at first, which is obtained as the solution of the characteristic equation,

det (QωI) = 0; solving gives

$$ \omega_{0} = 0,\omega_{1} = - (\lambda + \mu ),\omega_{2} = - (\alpha + \beta ),\omega_{3} = - (\lambda + \mu + \alpha + \beta ); $$

Eigenvectors are decided using the abovementioned eigenvalues, and we get U matrix as follows:

$$ U = \left[ {\begin{array}{*{20}c} 1 & 1 & 1 & 1 \\ 1 & 1 & { - \beta \text{/}\alpha \text{ }} & { - \beta \text{/}\alpha \text{ }} \\ 1 & { - \mu \text{/}\lambda } & 1 & { - \mu \text{/}\lambda } \\ 1 & { - \mu \text{/}\lambda - \mu \text{/}\lambda } & { - \beta \text{/}\alpha \text{ }} & {\mu \beta \text{/}\lambda \alpha } \\ \end{array} } \right] $$
(9)

Inverse of the above matrix gives

$$ U^{ - 1} = U^{ - 1} = U^{ - 1} = \left[ {\begin{array}{*{20}c} {\mu \beta } & {\alpha \mu } & {\lambda \beta } & {\lambda \alpha } \\ {\lambda \beta } & {\alpha \mu } & { - \lambda \beta } & { - \lambda /\alpha } \\ {\alpha \mu } & { - \alpha \mu } & {\lambda \alpha } & { - /\lambda \alpha } \\ {\lambda \alpha } & { - \lambda \alpha } & { - \lambda /\alpha } & {\lambda \alpha } \\ \end{array} } \right] $$
(10)
$$ If\,Q = UHU^{{{-}1}} ,\,\,\,then\,\,Q^{n} = (UH^{n} U^{{{-}1}} ) $$
(11)

Therefore, putting the value Q, the final equation for the determination of transient probabilities are obtained as follows:

$$ P(t) = \sum\limits_{n = 0}^{\infty } {\frac{{(UH^{n} U^{ - 1} )}}{n!}} = UD(t)U^{ - 1} $$
(12)

where,

$$ D(t) = \left[ {\begin{array}{*{20}c} 1 & 0 & 0 & 0 \\ 0 & {e^{{\omega_{\text{1}} t}} } & 0 & 0 \\ 0 & 0 & {e^{{\omega_{\text{2}} t}} } & 0 \\ 0 & 0 & 0 & {e^{{\omega_{\text{3}} t}} } \\ \end{array} } \right] $$
(13)
$$ D(t) = \left[ {\begin{array}{*{20}c} 1 & 0 & 0 & 0 \\ 0 & {\text{ }e^{ - (\lambda + \mu )t} } & 0 & 0 \\ 0 & 0 & {\text{ }e^{ - (\alpha + \beta )t} } & 0 \\ 0 & 0 & 0 & {e^{ - (\lambda + \mu + \alpha + \beta )t} } \\ \end{array} } \right] $$
(14)

Here, (t) time is dependent on both distributions which are followed by the order quantity received and consumption. Received order quantity consumptions follow an Erlang Distribution. So, when both of the suppliers are available the order quantity E(q0), the D11 can be found using the equations below:

$$ D_{11} = \frac{Y}{E(q)}\int_{0}^{\infty } {} \left[ {e^{ - (\lambda + \mu )x} } \right](yx)^{E(q - 1)} e^{ - yx} dx $$
$$ = \left( {\frac{y}{y + \lambda + \mu }} \right)^{E(q)} $$
(15)

Similarly,

$$ D_{22} = \left( {\frac{y}{y + \alpha + \beta }} \right)^{E(q)} $$
(16)

and

$$ D_{33} = \left( {\frac{y}{y + \lambda + \mu + \alpha + \beta }} \right)^{E(q)} $$
(17)

To calculate the transition probability from state 0 to any other state (1, 2, 3), D (t) can be used:

$$ D(t) = \left[ {\begin{array}{*{20}c} { - 1} & 0 & 0 & 0 \\ 0 & {\left( {\frac{\text{y}}{{\text{y} + \lambda + \mu }}} \right)\text{E(q)}} & 0 & 0 \\ 0 & 0 & {\text{ }\left( {\frac{\text{y}}{{\text{y} + \alpha + \beta }}} \right)\text{E(q)}} & 0 \\ 0 & 0 & 0 & {\left( {\frac{\text{y}}{{\text{y} + \lambda + \mu + \alpha + \beta }}} \right)\text{E(q)}} \\ \end{array} } \right] $$
(18)

So, with fixed values of U and U−1, transition probabilities will be generated from the below equations. The value of matrix D(t) can be calculated from any of the three matrices defined above.

$$ P\left( t \right) \, = \, UD \, \left( t \right) \, U^{{{-}1}} $$
(19)

The long-run probabilities Pj = limt→∞Pij (t) are

$$ \left[ {P_{0} P_{1} P_{2} P_{3} } \right] = \frac{1}{(\lambda + \mu )(\alpha + \beta )}[\mu \beta ,\mu \alpha ,\lambda \beta ,\lambda \alpha ] $$
(20)

3.3 Calculation of the cycle profit

The cycle profit is comprised of six essentials. The selling price of non-defective units, selling price of defective units, holding cost, purchasing cost, ordering cost, inspection cost and rejection cost. When the state is 0, new orders can be placed.

The total profit incurred per cycle = (selling price of acceptable units) + (selling price of defected units) − (ordering cost) − (holding cost − (inspection cost) − (rejection cost)

Here,

$$ \begin{aligned} & {\text{Selling}}\,{\text{price}}\,{\text{of}}\,{\text{acceptable}}\,{\text{units}} = P \times m1 \times E(q) \\ & {\text{Holding}}\,{\text{cost}} = \frac{hE(q)}{\alpha } \times \frac{E(q) + r + r}{2} \\ & {\text{Inspection}}\,{\text{cost}} = P \times e \times \frac{E(q)}{n} \\ & {\text{Purchasing}}\,{\text{cost}} = P \times E(q) \times (1 + n) \\ & {\text{Rejection}}\,{\text{cost}} = c \times E(q) \times \left( {\frac{1 - n}{n}} \right) \\ \end{aligned} $$
$$ \begin{aligned} A[E(q),r,n] & = A_{0} = P \times m1 \times E(q) + P \times m2 \times E(q) \times \left( {\frac{1 - n}{n}} \right) \\ &\quad - P \times E(q) \times (1 + n) - k - \frac{hE(q)}{\alpha } \times \frac{E(q) + r + r}{2} \\ & \quad - P \times e \times \frac{E(q)}{n} - c \times E(q) \times \left( {\frac{1 - n}{n}} \right) \\ & = P \times m1 \times E(q) + P \times m2 \times E(q) \times \left( {\frac{1 - n}{n}} \right) \\ &\quad - P \times E(q) \times (1 + n) - k - \frac{{hE(q^{2} )}}{2\alpha } - \frac{hE(q)r}{\alpha } \\ & \quad - P \times e \times \frac{E(q)}{n} - c \times E(q) \times \left( {\frac{1 - n}{n}} \right) \\ \end{aligned} $$
(21)
$$ {\text{where}}\quad E(q) = \frac{1}{\theta } \times (1 - e^{ - \theta q} ) $$
(22)
$$ {\text{and}}\quad E(q^{2} ) = \frac{2}{{\theta^{2} }}\{ 1 - (1 + \theta q)e^{ - \theta q} \} $$
(23)

Here, Cio = E [total profit until the start of the next cycle from the time when inventory is r at state i = 0, 1, 2, 3 and q units order is placed at state 0]

Then,

$$ C_{io} = P_{io} (E(q_{i} ))AP(E(q_{i} ),r,n) + \sum\limits_{j = 1}^{3} {} P_{ij} \left( {E(q_{i} )} \right)\left[ {AP\left( {E(q_{i} ),r,n} \right) + C_{jo} } \right];\quad i = 0,1,2 $$
(24)

The transition profit involved to transfer from state i to state 0 is defined by Ci0. But it is not certain that state 0 will be reached on the first step. In between state i and state 0 other states (C10, C20, C30) can be reached.

$$ C_{oo} = P_{oo} (E(q))AP(E(q),r,n) + \sum\limits_{j = 1}^{3} {} P_{oj} \left( {E(q_{i} )} \right)\left[ {AP\left( {E(q_{i} ),r,n} \right) + C_{jo} } \right] $$
(25)

This equation means when the supplier receives E(q) amount, the total inventory level will increase E(q) + r. When E(q) is consumed by the retailer, the manufacturer will return in other states like 0, 1, 2, 3, with probabilities P00 (E(q)), P01 (E(q)), P02 (E(q)), P03 (E(q)).

Therefore, we find,

$$ \begin{aligned} & C_{00} = \, P_{00} A_{0} + P_{01} C_{10} + P_{02} C_{20} + P_{03} C_{30} \\ & C_{10} = \, P_{10} \bar{C}_{10} + P_{11} C_{10} + P_{12} C_{20} + P_{13} C_{30} \\ & C_{20} = \, P_{20} \bar{C}_{20} + P_{21} C_{10} + P_{22} C_{20} + P_{23} C_{30} \\ \end{aligned} $$

However, C30 formulation is different.

$$ \begin{aligned} C_{30} & = \, (\bar{C} + C_{10} )r_{1} + (\bar{C} + C_{20} )r_{2} \\ & = \bar{C} + C_{10} r_{1} + C_{20} r_{2} \\ \end{aligned} $$
(26)

where

$$ \rho_{1} = \frac{\mu }{\mu + \beta }\,\,\,{\rm and}\,\,\, \rho_{2} = \frac{\beta }{\mu + \beta } $$
(27)

Here, \( \bar{C} \) is the expected profit which assumes the time duration from inventory status is r until the supplier or retailer become available again and its calculation method is the same as C10 is computed.

$$ \begin{aligned} \bar{C} & = \int_{0}^{r/y} {hy\left( {\frac{r + r - \alpha y}{2}} \right)\delta e^{\delta y} dy + } \int_{r/y}^{\infty } {\left\{ {\frac{{hr^{2} }}{2\alpha } + \pi (y\alpha - r) + \pi^{\prime}\left( {\frac{{y^{2} \alpha }}{2} + \frac{{3r^{2} }}{2\alpha } - 2yr} \right)} \right\}} \delta e^{ - \delta y} dy \\ & = e^{\delta r/\alpha } \left[ { - \frac{{\pi^{\prime}r}}{\delta } + \frac{h\alpha }{{\delta^{2} }} + \frac{\pi \alpha }{\delta } + \frac{{\pi^{\prime}\alpha }}{{\delta^{2} }}} \right] + \frac{hr}{\delta } - \frac{h\alpha }{{\delta^{2} }} \\ \end{aligned} $$
(28)

where δ = μ+β is the rate of withdrawal from status 3. When the manufacturer reaches reorder point r and finds them in status 3 is equal to C10. If it reaches state 1 then total profit will be \( \bar{C} \) + C10 state 2 will cost \( \bar{C} \) + C20. The probability of a transition from state 3 to 1 is:

$$ \begin{aligned} P(Y_{1} < Y_{2} ) & = \int_{0}^{\infty } {P(Y_{1} < Y_{2} \,\,\,given\,\,\,Y_{2} = t)\beta e^{ - \beta t} dt} \\ & = \frac{\mu }{\mu + \beta } \\ \end{aligned} $$
(29)

Rearranging the profit equations, we get,

$$ \left[ {\begin{array}{*{20}c} {P_{00} } & { - P_{01} } & { - P_{02} } & { - P_{03} } \\ 0 & {1 - P_{11} } & { - P_{12} } & { - P_{13} } \\ 0 & { - P_{21} } & {1 - P_{22} } & { - P_{23} } \\ 0 & { - \rho_{1} } & { - \rho_{2 } } & 1 \\ \end{array} } \right]\left[ \begin{aligned} C_{00} \hfill \\ C_{10} \hfill \\ C_{20} \hfill \\ C_{30} \hfill \\ \end{aligned} \right] = \left[ \begin{aligned} A_{0} \hfill \\ P_{10} C_{10} \hfill \\ P_{20} C_{20} \hfill \\ \bar{C} \hfill \\ \end{aligned} \right] $$
(30)

where

$$ \begin{aligned} \bar{C}_{10} &= hy\left( {\frac{r + r - \gamma y}{2}} \right);[yy \le r] \\ & = \frac{{hr^{2} }}{2\gamma } + \pi (y\gamma - r) + \pi^{\prime}\int_{0}^{y - r/\gamma } {(y\gamma - r)dy;[yy \ge r]}\end{aligned}$$
(31)
$$ = \frac{{hr^{2} }}{2\gamma } + \pi (y\gamma - r) + \pi^{\prime}\left( {\frac{{y^{2} \gamma }}{2} + \frac{{3r^{2} }}{2\gamma } - 2yr} \right) $$
(32)
$$ \begin{aligned} \bar{C}_{10} (r) & = \int_{0}^{r/\gamma } {hy\left( {\frac{r + r - \gamma y}{2}} \right)\mu e^{ - \mu y} } dy \\ &\quad + \int_{r/\gamma }^{\infty } {\left\{ {\frac{{hr^{2} }}{2\gamma } + \pi (y\gamma - r) + \pi^{\prime}\left( {\frac{{y^{2} \gamma }}{2} + \frac{{3r^{2} }}{2\gamma } - 2yr} \right)} \right\}} \mu e^{ - \mu y} dy \\ & = e^{ - \mu r/\gamma } [\frac{{\pi^{\prime}r}}{\mu } + \frac{h\gamma }{\mu 2} + \frac{\pi \gamma }{\mu } + \frac{{\pi^{\prime}\gamma }}{{\mu^{2} }}] + \frac{hr}{\mu } - \frac{h\gamma }{{\mu^{2} }} \end{aligned}$$
(33)

Similarly,

$$ \begin{aligned} \bar{C}_{20} & = ry\gamma + \pi^{\prime}\int_{0}^{y} {y\gamma \text{ }dy} \\ & = \pi y\gamma + \pi^{\prime}\gamma \frac{{y^{2} }}{2} \\ \end{aligned} $$
(34)
$$ \begin{aligned} \bar{C}_{20} (r) & = \int_{0}^{\infty } {\left[ {\pi y\gamma + r^{\prime}\gamma \frac{{y^{2} }}{2}} \right]\text{ }\beta \text{e}^{{\beta \text{y}}} dy} \\ & = \frac{r\gamma }{\beta } + \frac{{\pi^{\prime}\gamma }}{{\beta^{2} }} \\ \end{aligned} $$
(35)

Now,

$$ \begin{aligned} & C_{10} \left( {1{-}P_{11} } \right) - P_{12} C_{20} {-}P_{13} C_{30} = P_{10} \bar{C}_{10} \\ & Or,\,\, \, C_{10} \left( {1{-}P_{11} } \right) - P_{12} C_{20} {-}P_{13} (\bar{C} + C_{10} \rho_{1} + C_{20} \rho_{2} ) \, = \, P_{10} \bar{C}_{10} \\ & Or,\,\, \, C_{10} (1{-}P_{11} {-}P_{13} \rho_{1} ) - \, C_{20} (P_{12} + P_{13} \rho_{2} ) \, = \, P_{10} \bar{C}_{10} + P_{13} \bar{C} \\ \end{aligned} $$
(36)

Again,

$$ \begin{aligned} & {-}C_{10} P_{21} + C_{20} \left( {1{-}P_{22} } \right) - P_{23} C_{30} = P_{20} \bar{C}_{20} \\ & Or,\,\,{-}C_{10} P_{21} + C_{20} \left( {1{-}P_{22} } \right) - P_{23} (\bar{C} + C_{10} \rho_{1} + C_{20} \rho_{2} ) \, = \, P_{20} \bar{C}_{20} \\ & Or,\,\,\,{-}C_{10} \left( {P_{21} + P_{23} \rho_{1} } \right) \, + \, C_{20} \left( {1{-}P_{22} + P_{23} \rho_{2} } \right) \, = \, P_{20} \bar{C}_{20} + P_{23} \bar{C} \\ \end{aligned} $$
(37)

Hence, we get,

$$ \left[ \begin{array}{ll} (1P_{11} - P_{13} \rho_{1} &\quad - (P_{12} + \text{P}_{{\text{13}}} \rho_{\text{2}} ) \hfill \\ - (P_{21} + P_{23} \rho_{1} )&\quad\text{ (1} - P_{22} + P_{23} \rho_{2} ) \hfill \\ \end{array} \right]\text{ }\left[ \begin{aligned} \sigma_{\text{1}} \hfill \\ \sigma_{2} \hfill \\ \end{aligned} \right] = \left[ \begin{aligned} P_{10} \bar{C}_{10} + P_{13} \bar{C} \hfill \\ P_{20} \bar{C}_{20} + P_{23} \bar{C} \hfill \\ \end{aligned} \right] $$
(38)
$$ {\text{where}},\,\,\,\left[ {\sigma_{1} \text{ }\sigma_{\text{2}} } \right]^{\prime } = \left[ {C_{10} \text{ C}_{{\text{20}}} } \right]^{\prime } \quad {\text{solves}}\,{\text{the}}\,{\text{system}} $$
(39)

Therefore,

$$ C_{00} = A_{0} + P_{01} \sigma_{1} + P_{02} \sigma_{2} + P_{03} (\bar{C} + \rho_{1} \sigma_{1} + \rho_{2} \sigma_{2} ) $$
(40)

3.4 Calculation of the cycle length

The final average profit objective has two components, one of which (cost benefit of the cycle C00) is already defined. So, the remaining length of the cycle is (T00). Now, let us define Ti0 = E [time to the start of the next cycle from the time when the inventory level is r at state i = 0, 1, 2, 3 and q units order is placed when state is 0].

Then,

$$ T_{i0} = P_{i0} (E(q_{i} ))\frac{{E(q_{i} )}}{\gamma } + \sum\limits_{j = 1}^{3} {P_{ij} } (E(q_{i} ))[E(q_{i} )/\gamma + T_{jo} ];i = 0,1,2 $$
(41)

Here we have T10, T20, T30. Using the equations above, cycle length T00 can be described as:

$$ T_{00} = P_{00} (E(q_{0} ))\frac{{E(q_{i0} )}}{\gamma } + \sum\limits_{j = 1}^{3} {P_{0j} } (E(q_{0} ))[E(q_{0} )/\gamma + T_{jo} ] $$
(42)

This equation means when the E(q) amount is received by the manufacturer, the inventory level will reach E(q) + r. After finishing E(q) the manufacturer will be in state 0, 1, 2, 3 with probabilities of P00(E(q)), P01(E(q)), P02(E(q)), P03(E(q)).

The equations of T10 and T20 can be derived similarly.

Thus,

$$ T_{00} = P_{00} \frac{E(q)}{\gamma } + P_{01} \left\{ {\frac{E(q)}{\gamma } + T_{10} } \right\} + P_{02} \left\{ {\frac{E(q)}{\gamma } + T_{20} } \right\} + P_{03} \left\{ {\frac{E(q)}{\gamma } + T_{30} } \right\} $$

Therefore,

$$ \begin{aligned} T_{00} & = \frac{E(q)}{\gamma } + P_{01} T_{10} + P_{02} T_{20} + P_{03} T_{30} \\ T_{10} & = P_{10} \bar{T}_{10} + P_{11} T_{10} + P_{12} T_{20} + P_{13} T_{30} \\ T_{20} & = P_{20} \bar{T}_{20} + P_{21} T_{10} + P_{22} T_{20} + P_{23} T_{30} \\ T_{30} & = \bar{T} + \frac{\mu }{\delta }T_{10} + \frac{\beta }{\delta }T_{20} \\ & = \bar{T} + \rho_{1} T_{10} + \rho_{2} T_{20} \\ \end{aligned} $$
(43)

Here \( \bar{T} = \frac{\mu }{\mu + \beta } \).

At state 3, depending on the distribution of the disruption duration, it can be in state 1 or 2 in the next step. If it goes back to state 1 then the total time will be \( \bar{T} + T_{10} \) and if it goes back to state 2, the total time will be \( \bar{T} + T_{20} \). The probability of state 3 to 1 transition is the same cycle cost calculation, which is given below:

$$ P(Y_{1} < Y_{2} ) = \frac{\mu }{\mu + \beta } $$

Rearranging equations (v), (vi), (vii) and (viii) we get,

$$ \left[ {\begin{array}{*{20}c} 1 & { - \text{P}_{{\text{01}}} } & { - \text{P}_{{\text{02}}} } & { - \text{P}_{{\text{03}}} } \\ 0 & {1 - \text{P}_{{\text{11}}} } & { - \text{P}_{{\text{12}}} } & { - \text{P}_{13} } \\ 0 & { - \text{P}_{21} } & {1 - \text{P}_{22} } & { - \text{P}_{23} } \\ 0 & {\text{ }\rho_{\text{1}} \text{ }} & {\text{ }\rho_{\text{2}} \text{ }} & 1 \\ \end{array} } \right]\text{ }\left[ \begin{aligned} \text{T}_{{\text{00}}} \hfill \\ \text{T}_{{\text{10}}} \hfill \\ \text{T}_{{\text{20}}} \hfill \\ \text{T}_{{\text{30}}} \hfill \\ \end{aligned} \right] = \left[ \begin{aligned} \frac{E(q)}{\gamma } \hfill \\ P_{10} \bar{T}_{10} \hfill \\ P_{20} \bar{T}_{20} \hfill \\ {\bar{T}} \hfill \\ \end{aligned} \right] $$
(44)

Here,

$$ \bar{T}_{10} = \frac{{P_{10} }}{\mu } + P_{13} \left[\frac{1}{\mu } + T_{30} \right] $$
(45)
$$ \bar{T}_{20} = \frac{{P_{20} }}{\beta } + P_{23} \left[\frac{1}{\beta } + T_{30} \right] $$
(46)
$$ {\text{where}}\quad \delta = \mu + \beta $$
(47)

From the matrix we get,

$$ T_{10} (1 - P_{11} - P_{13} \rho_{1} ) - T_{20} (P_{12} + P_{13} \rho_{2} ) = P_{10} \bar{T}_{10} + P_{13} \bar{T} $$
(48)

and,

$$ T_{10} (P_{21} - P_{23} \rho_{1} ) + T_{20} (1 - P_{22} + P_{23} \rho_{2} ) = P_{20} \bar{T}_{20} + P_{23} \bar{T} $$
(49)

From Eqs. (48) and (49) we get,

$$ \left[ {\begin{array}{ll} {(1 - P_{11} - P_{13} \rho_{1} )} &\quad {-\text{ (P}_{{\text{12}}} + \text{P}_{{\text{13}}} \rho_{\text{2}} \text{)}} \\ {-\text{ (P}_{{\text{21}}} + \text{P}_{{\text{23}}} \rho_{\text{1}} \text{)}} &\quad {\text{(1 - P}_{{\text{22}}} + \text{P}_{{\text{23}}} \rho_{\text{2}} \text{)}} \\ \end{array} } \right]\left[ \begin{aligned} \psi_{1} \hfill \\ \psi_{2} \hfill \\ \end{aligned} \right] = \left[ \begin{aligned} P_{10} \bar{T}_{10} + P_{13} \bar{T} \hfill \\ P_{20} \bar{T}_{20} + P_{23} \bar{T} \hfill \\ \end{aligned} \right] $$
(50)
$$ {\text{where}}\quad \left[ {\psi_{1} \psi_{2} } \right]^{\prime } = \left[ {T_{10} T_{20} } \right]^{\prime } \,\,\,{\text{solves}}\,{\text{the}}\,{\text{system}}. $$
(51)

Therefore, as total profit per cycle C00, and length of the cycle T00 is defined, the average profit objective function now can be written as:

$$ AP(q,r,n) = \frac{{C_{00} }}{{T_{00} }} = \frac{{A_{0} + P_{01} \sigma + P_{02} \sigma_{2} + P_{03} (\bar{C} + \rho_{1} \sigma_{1} + \rho_{2} \sigma_{2} )}}{{\frac{E(q)}{\gamma } + P_{01} \psi_{1} + P_{02} \psi_{2} + P_{03} (\bar{T} + \psi_{1} \rho_{1} + \rho_{2} \psi_{2} )}} $$
(52)

The objective is to maximize the above equation and to get the optimum values of the decision variables. The ordering policy can be determined using the profit function. The maximization of this profit function will give the desired reliability, order quantity, and reorder point that are desired by the supplier.

4 Solution approach

In this research, we have formulated a mathematical model that considers a production inventory system under Poisson demand with supplier and retailer uncertainty, random supplier capacity and supplier reliability. Here, the reliability of the supplier, quantity ordered and re-order points are considered as decision variables for this model. The market demand, revenue, inventory holding cost, set-up cost, inspection cost, rejection cost and the reliability of the supplier are also considered. This model denotes a geometric programming model that has been solved through the use of simple methodology.

The example presented in this paper is quite similar to the case used in Parlar and Perry (1995). However, the model presented here is an improved version of their model and some new parameters have been introduced. A manufacturer maintains a supplier and their capacity is exponentially distributed considering a parameter (θ) that has a value of 0.025. The manufacturer uses a retailer to sell products, where the retailer can get disrupted. Moreover, the availability or unavailability of the retailer and the supplier is unknown to the manufacturer. Due to these factors, the manager often finds it difficult to meet the demands of the customers in time. As a result, in recent years, they have tried to sort out this problem and develop a special ordering strategy to recover from their current status. Sometimes, a fraction of the produced items are defective. However, the amount of the fraction depends on the operating conditions. Generally, the reliability and fraction of defects have an inverse relationship. This means the higher the reliability, the lower the percentage of defects which, in turn, leads to higher operating costs. Additionally, the defective units can be sold at a low price. So, it is of crucial importance to determine the level of reliability that will maximize total profit for the organization.

From the historical data, with the help of a statistical goodness of fit test, it was found that supplier’s and retailer’s length of available/ON and unavailable/OFF cycles are considered as exponentially distributed. In the case of the supplier, the value of the parameters representing the length of the ON period was 0.25 and the length of the OFF period was 2.5. Whereas, in the case of the retailer, the value of the parameters denoting the length of the ON period was 1 and the length of the OFF period was 0.6. For the supplier, the ordering cost (k) was $10/order. The demand for the quantity received from the supplier was determined through a Poisson process that considered an average rate of demand as 5 units.

Here, we have considered a modified (Q, r, n) policy which is developed in this paper for one retailer and one supplier. Our research considers the optimal values of the decision variables that will maximize the total average profit. Table 2 below summarizes the values for the input parameters used in this model.

Table 2 Parameter values used

5 Experimental results and analysis

For the hypothetical problem described in the previous section, the proposed model is optimized so that the required three decision variables, i.e. the order quantity from the supplier (q) the reordering quantity (r) and reliability (n), can be determined. For this purpose, we have solved the problem with Genetic Algorithm (GA) and Simulated Annealing (SA) Algorithm and compared the results to understand the quality of the solutions. MATLAB R2016b was used to formulate the computer programming code for the problem.

GA was used to get the optimum values of the decision variables that maximize the average profit per cycle. Through the use of GA, we determined three findings that are shown in Table 3.

Table 3 Comparison of results obtained from GA and SA approaches

GA parameters used: Population type: Double vector

Creation function: Constraint dependent

Population size: 50

Function tolerance: 1e−6

Constraint tolerance: 1e−6

Crossover function: 0.8

Lower bounds: Order quantity = 0, reorder point = 0, reliability = 0

Upper bound: Order quantity = 1000, reorder point = 100, reliability = 1

From 30 different runs using GA solver, we attained average fitness value (average cycle profit) 17.7474 units with a standard deviation of 1.303. Among 30 runs, maximum cycle profit obtained was 18.0165 units with order quantity 16.669 units, reorder point 3.077 units and reliability 0.563 units. Fintess value for run 17 is shown in Fig. 2.

Fig. 2
figure 2

GA fitness value versus generation for Run 17

SA parameters used:

Max iteration: infinity

Annealing function: fast annealing

Temperature update function: exponential temperature update

Initial temperature: 100

Start point: Order quantity = 100, reorder point = 50, reliability = 0.5

Lower bounds: Order quantity = 0, reorder point = 0, reliability = 0

Upper bound: Order quantity = 1000, reorder point = 100, reliability = 1

Similarly we run the SA solver 30 different times and finally attained average fitness value (average cycle profit) 17.6855 units with a standard deviation of 0.38. Among 30 runs, maximum cycle profit obtained was 18.0028 units with order quantity 15.842 units, reorder point 3.048 units and reliability 0.556 units. Fintess value for run 9 is shown in Fig. 3. We have summarized the results obtained from GA and SA and presented in Table 3. From the comparison, it’s evident that the results from GA and SA are quite close.

Fig. 3
figure 3

SA function value versus iteration for Run 9

To observe the effect of three decision variables on the total profit, we plotted each independent variable on the X-axis, keeping all other variables constant, and the resulting values of average profit are plotted on the Y-axis. Again, we plotted all the other parameter values against the decision variables separately. These graphs are presented in Figs. 4, 5 and 6.

Fig. 4
figure 4

Average profit versus reliability

Fig. 5
figure 5

Average profit versus quantity

Fig. 6
figure 6

Profit versus reorder point

Figure 4 (see Table 6 in Appendix) shows the relation between average profit and reliability. As reliability increases, average profit increases. Initially, at a very low reliability, profit is negative because of higher holdings, inspection and rejection costs. By increasing the reliability, we can see that average profit increases but after a certain point, this reaches a saturation point, where if we increase reliability this would reduce the benefit and increase other costs, such as purchasing costs from the supplier due to a more reliable supply. This maximization of profit falls in the range of 0.6-0.7 in our model. So, after this, increasing reliability will nothing but reduce average profit.

Figure 5 (see Table 7 in Appendix) shows the relationship between average profit and quantity ordered. When the quantity being ordered is increased, the ordering cost decreases. At the same time, holding costs increase. As the ordering cost is much larger than the holding cost at this point in general, i.e. the average cost decreases. Beyond this, the holding cost becomes too high and the reduced ordering cost can no longer mitigate the increased holding cost. So, the average cost again starts to increase. It also satisfies the classic EOQ model.

Figure 6 (see Table 8 in Appendix) shows the relationship between average profit vs reordering point. As the reordering point is increased, the probability of shortage and backlog decreases drastically, as does the cost amount associated with it. So, the average cost decreases at first. Again, after reaching the optimum quantity, the reordering point is increased further, the safety stock in the inventory faces a crisis. Due to excessive safety stock, the holding cost increases rapidly. As a result, further increases in the reordering quantity cause the average cost to increase again.

6 Sensitivity analysis

In this study, we performed a sensitivity analysis to study the effects of the parameters presented in the model. In Table 4, we presented three different levels of experimental data set where level 1 constitutes the basic value of those parameters. In level 2 and level 3, the basic values of those parameters were increased by + 20% and + 40% respectively.

Table 4 Experimental data set for sensitivity analysis

The optimal value of particular decision variables and the value of the objective function were generated using GA through MATLAB R2013a. The result of the objective function was calculated at different levels of the model parameters which are shown in Table 5. Case 1 is the basic model result and all the remaining cases show the function results at level 2 and 3. Each of the cases represents each of the 15 parameters provided in Table 4. To conduct this sensitivity analysis, a total of 31 cases were solved and each of these is outlined in Table 5.

Table 5 Sensitivity analysis on different parameter level

Using this sensitivity analysis, we make the following observations.

Cases 2 and 3 clearly show that the reordering point and ordering quantity automatically decrease due to an increase in the holding cost. This suggests that if the holding cost is increased, then any product should be ordered at a lower amount. So too, the reordering point should be low so that the cost of keeping safety stock is minimized. Average profit is decreased (− 16.84% and − 32.5% respectively) for a 20% and 40% increase in the holding cost.

Cases 4 and 5 show an increase in acceptable unit mark-up selling price factor m1 from 20 to 40% increases the profit drastically from 30.77 to 55.3. This is because by increasing m1, it increases selling price directly and adds the benefit to the profit value. But the m1 value cannot be increased without proper investigation of market competitors. Increasing m1 decreases the quantity ordered and re-order quantity, as well as supplier reliability requirements. So, m1 is a more sensitive parameter compared to others.

Cases 6 and 7 include increasing the selling price mark-up factor m2 which increases average profit, but not by a remarkable amount. It is not a much more sensitive parameter.

Increasing inspection cost increases the quantity ordered and decreases average profit. This is evident in cases 8 and 9. Increasing the inspection cost also increases the reliability requirement on the supplier.

In cases 10 and 11, we observe that increasing rejection costs by 20% decreases profit from 11.58 to 10.68. Further increases by 40% decrease profit to 10.02. Here, increasing rejection costs reduces profit and increases reliability requirements, the quantity ordered and the reordering point. This case illustrates the way increasing the rejection cost can eventually reduce profit. So, a more reliable supplier and ordering more than before in a single order can result in increasing rejection costs.

Cases 14 and 15 indicate the increase of lot size, as well as the reordering point with an increase in ordering cost. Therefore, lot sizes are ordered in large quantities when ordering costs are high. The average profit is not much affected by increased ordering costs.

Cases 16, 17, 18 and 19 reveal that increases in back ordering costs cause both the reordering point and ordering quantities to increase and eventually reduce profit. This suggests that more stocks should be ready in the warehouse to avoid any potential shortage whenever back ordering costs are increased. Average profit decreases as more safety stock is needed to be held as inventory. This is how the total profit per cycle decreases.

Cases 20 and 21 show that when the duration of an ON period of the supplier is high, suppliers are expected to be available for an extended period of time. Finally, decreased values of r will cause the value of the order up to level (q + r) to be lower.

Cases 22 and 23 indicate that when an OFF period duration is low, meaning suppliers are not likely to be OFF for an extended time period, reorder points also should be small, because the possibility of finding them in an OFF state will be less.

Cases 28 and 29 indicate that when the chance of a supplier’s delivery quantity becomes smaller than the actual quantity ordered, it should be beneficial to order less quantity.

Cases 30 and 31 are more crucial than others we found in the analysis. These stages indicate that an inflating demand rate causes fast increases in the quantity ordered and in reorder points, to meet the high demand. The average profit value reveals that the model is highly sensitive to a demand rate increase. In fact, it increased to 13.93 because of a 20% increase, and 16.31 because of a 40% increase. We can say, then, that demand rate is a very sensitive parameter in the model, so we should be careful while changing this parameter.

7 Managerial and practical implications

In this study, the developed framework can be used to mimic the problems faced in real-world in three stage supply chain where disruption occurs due to capacity, demand, natural disasters or uncertain situations. Some practical implications of this study is below:

To ensure practicality, the supply chain managers and practitioners need to consider randomness in capacity to tackle the disruption risks associated with managing certain level of inventory. Since in our model, supply chain decisions are highly impacted by the random nature of capacity, it can lead the concerned personnel to optimize their inventory model.

  • Reliability of supplier

Reliable suppliers can alleviate the risk of supply uncertainty in a large extent. Production responsible should always consider the reliability of the supply sources while making production schedule. As reliability decisions can impact the profit function, manufacturer should be aware of suboptimal and over optimal reliable suppliers to maximize profit.

  • Structured inventory policy

Managers should always work with a structured and well defined inventory policy to excel in the competitive market. To reduce production cost and eventually maximize profit, it is of utmost importance to guide purchase decisions through some rigorous inventory policy so that production lines do not run dry and also warehouses are not overstocked with supplies. In this case, our model can guide them into managing the inventory system in an optimized way.

8 Conclusions

In this research, we considered an imperfect production environment where a model is formulated to ensure maximum profit. Here, profitability was a function of the order quantity, reorder point and reliability. In a manufacturing system, imperfect production can result in defective items. To improve product quality and thus reduce defective items, process reliability needs to be increased. On the other hand, increasing reliability causes increase in the operating cost and thus decreases profit. Therefore, to maximize profit, an optimum level of reliability needs to be ensured. As we developed our model considering reliability and uncertainty of the process, we can apply this model in imperfect production systems to have a better understanding of a realistic production inventory model.

In many small and medium scale manufacturing industries, inventory policies are absent to address the supply and demand uncertainty issues. Sometimes, communication gap and lack of information sharing between purchase and planning department results in an imbalanced production plan. To produce a single product, hundreds of different components are required. By not having a rigorous inventory policy, sometimes it is very common in apparel industry to not start the production due to delay in some trims even though having most of the components inhoused on time. This kind of scheduling problem can be avoided by addressing the reliability of the suppliers. Additionally, strikes, natural disasters, port congestion, heavy traffic can dirupt the chain in a large extent. For example, in most of the manufacturing industries, China is the biggest supplier of raw materials to the production facilities throughout the world. Every year, due to Chinese New Year (CNY) celebration, all the industries in China get closed for around 10-14 days. These types of supply disruption impact the manufacturing industries heavily if not prepared beforehand with proper inventory policies and contingency plan. Similarly, recent Coronavirus has taken the global manufacturing industries to a standstill situation due to production, supply and demand uncertainty. All these types of disruption and uncertainty issues need to be addressed in every manufacturing industry through some rigorous inventory policies to maximize the total supply chain gain. Through this model, we can address those random supplier’s unavailability and disruption issues.

One important factor that has often been overlooked in most research done previously is that when needed, the supplier may or may not be able to deliver the amount desired. They have limited capacity. The demand, the time interval between successive availability and unavailability of both the supplier and retailer follows probability distributions. All these factors are considered in this study simultaneously.

In our study we assumed that the demand factor follows a Poisson process. Using concepts from the Renewal Reward Theorem, the objective function is developed which dictates an average cycle profit. By using a genetic algorithm, this function is maximized. Finally, a sensitivity analysis is done to analyse the significance of various factors used in the model and their interactions on decision variables and average cost. In our model we found that demand rate is a the most sensitive parameter and has the highest influence on the final profit function. Thus, it can be summarized that the methodology developed in this paper is a step towards better understanding the situation around us through joint consideration of disruption at both the retailer and the supplier, with consideration of their random capacity and reliability.

In this research, we considered reliability as deterministic in nature. In future studies, the profit function model may be updated considering reliability as a variable having probabilistic characteristics. Additionally, the probability of imperfect products and customer demands can be altered as probabilistic factors for further studies. In this research, it was assumed that the manufacturer had only one supplier. So, the work can be extended with a view to developing an inventory model for multiple suppliers. It has been assumed in this model that an order can only be given at the time when both the supplier and retailer are available. But the manufacturer can order at a time when the supplier is available, but the retailer is unavailable. This factor should be considered to make the model even more robust. In this model, four states CTMC were used to find transition state probability. But a semi-Markov chain can also be applied to get a better result. The model can be further extended to consider production disruption, lead time and shortage as fuzzy random variables. Again, the model developed an objective function which was minimized by using only one computational optimizing procedure, Genetic Algorithm. More algorithms can be used to check whether the model gives the same result every time.