1 Introduction

The inventory models maintain inventory level. In the last few years, researchers attracted toward inventory systems. It is well known that the first model of inventory was developed by Harris  (1913). Harris introduced EOQ model in which demand is assumed to be known and constant. After that, lots of research works have been done in this field. Many works have been done by extending the Harris  (1913) model. There are considered lots of assumption in this model to come close to real-life situation.

In the basic EOQ model, rate of demand was assumed to be constant. But in reality, demand can not be deterministic, it should vary with time. Sometimes, it depends upon situation. So, there is always some uncertainty in demand. Silver and Moon  (1969) were the first researchers to modify the EOQ formula for the case of varying demand.

Usually, it is assumed that lifetime of an item is infinite when it is in storage. Goyal  (1985)‘s inventory model assumed that the lifetime of the product is infinite within the storage time. In reality, the effect of deterioration cannot be ignored in inventory models. Deterioration is outlined as decay, alternate, harm, spoilage, or obsolescence in the effect of decreasing usefulness from its usual rationale. It is assumed that items are start deteriorating as soon as they arrive in the warehouse. Generally, it is assumed as known and constant. But, it cannot be predefined. There must be an uncertainty in rate of deterioration of the products. Hence, it is preferably taken as in fuzzy.

Nowadays, the seller wants to attract the buyer to purchase products in large quantities; for this, seller always uses new techniques. Credit financing is the most common technique used by seller to attract buyer. In this, the seller offers some time period to buyer to pay the amount of the purchase. But if the customer do not pay the amount in this time, then the customer have to pay the interest on that amount. The credit financing policy seems to be a beneficial option for buyer with limited payment at one time. Possibly, Haley and Higgins  (1973) were the first researchers in proposing credit policy in inventory models.

Furthermore, everyone wants to increase their customers. The availability of products in the system is common factor to attract customers. But due to limited storage capacity in own warehouse, the seller has require large space for store the inventory. To deal such type of situations, seller uses OW and RW. Also, deterioration of items in both the warehouse is not same as RW has better preserving facility to keep products from deterioration for some time.

In this paper, deterioration is taken as fuzzy value which is solved by triangular fuzzy number and defuzzify by graded mean integration method. Demand follows the pattern of Weibull distribution. This model is solved in two-warehouse environment and investigated under credit period policy.

2 Literature Study

A replenishment policy for items had been developed by Wee  (1997) where demand depends upon price. Chen et al.  (2003) established an inventory model having demand depends upon time and deterioration in the form of Weibull. After that, Ghosh et al.  (2006) developed an inventory model by taking demand as in Weibull form. Also, he considered shortages in his model. By taking demand depends upon stock, a model was developed by Shah et al.  (2011) with advance payment policy. Later on, Shah et al.  Shah et al. (2012b) developed an integrated inventory model with advance payment policy and quadratic demand. Bhunia et al.  (2018) developed a model for deteriorating items where demand was taken as variable. A two-warehouse inventory model was developed by Chandra  (2020) in which stock-dependent demand was taken under credit financing policy.

Furthermore, the deterioration in items had been extremely considered by Nahmias  (1982), Raafat  (1991), Bakker et al.  (2012), Pareek and Dhaka  (2015) in inventory models. After these models, deterioration of items depend upon time with partial backlogging in exponential had been considered by Dye et al.  (2007). An inventory model had been developed by Sarkar and Sarkar  (2013a) on considering deterioration of items varies with time and demand depends upon stock. Also, deterioration as a fuzzy number was considered by few researchers. A model was established by De et al.  (2003) by assuming demand and deterioration both in fuzzy sense. Roy et al.  (2007) presented a model with fuzzy deterioration over a random planning horizon in two storage facility. Fuzzy EOQ model was developed by Halim et al.  (2008). In this model, fuzzy deterioration was considered with stochastic demand. Mishra and Mishra  (2011) proposed a model where deterioration of items was taken as in fuzzy sense and credit policy was also considered in this model. After that, an inventory model was developed in which deterioration rate can be controlled using some techniques. In this model, stock and price-dependent demand was considered. This model was developed by Mishra et al.  (2017). Also, not all the items deteriorated instantaneously when they stored in warehouse. This is non-instantaneous deterioration situation. So, based on this phenomena, some models was developed. A model was developed by Shaikh et al.  (2017) based on this phenomena with demand depends upon stock and price. Again, a model was generated on non-instantaneous deteriorating items under two-warehouse environment by Shaikh et al.  (2019). Impact of deterioration showed in an integrated inventory model by Lin et al.  (2019) where credit policy was also considered.

Nowadays, the effect of trade credit also attracts researcher. An EOQ model first developed by Goyal  (1985) under credit financing policy and then this model had been extended with a constant deterioration rate by Shah  (1993), Aggarwal and Jaggi  (1995), and Hwang and Shinn  (1997). After that, a probabilistic inventory model had been described by Shah and Shah  (1998) where advance payment policy was considered. A model for deterioration in items with credit financing developed by yang  (2004) under two-warehouse environment. Mahata and Goswami  (2006) had been described a fuzzy EPQ model under advance payment policy. Also, they considered that items start deterioration when they arrive in inventory. Liang and Zhou  (2011) presented a inventory model with permissible delay in payments and deterioration of items under two-warehouse environment. Shah et al.  (2012a) described a fuzzy EOQ model with trade credit. Liao et al.  (2012), Guchhait et al.  (2013) generated inventory models in two-warehouse environment under advance payment policy by assuming that the rate of deterioration of items is same for both the warehouse. Bhunia et al.  (2014) proposed a model for deteriorating items under credit financing. This model was generated in two-warehouse environment and backlogging. There was a model developed by Maihami et al.  (2017). In this model, researcher showed the trade credit effect on inventory model. Also, demand and deterioration were considered as probabilistic in nature. A model was developed under credit financing policy when demand depends upon stock by Dhaka et al.  (2019).

However, storing of items are an essential crisis in inventory models, the basic inventory models are commonly proposed with limited space in single warehouse, but due to high demand of items, the retailer may buy more items that can be stored in own warehouse (OW). But due to limited space in own warehouse, another warehouse such as RW with unlimited capacity is also required to store the goods. To know more in this field, see the models of Sarma  (1987), Goswami and Chaudhuri  (1992), Pakkala and Archary  (1992), Benkherouf  (1997), Bhunia and Matti  (1998), Yang  (2004), Yang  (2006), Lee  (2006), Banerjee and Agrawal  (2008), Jaggi et al.  (2013), Sett et al.  (2016), Sarkar and Sharmila  (2017). Jaggi et al.  (2014) described a model in two-warehouse environment by considering deterioration in items. Also, they assumed backlogging and credit financing in this model. Shabani et al.  (2016) developed an inventory model under advance payment policy in two storage environment. Here, both demand and deterioration rate considered in fuzzy sense. A model was developed with demand as ramp type and deterioration in Weibull distribution under two storage environment by Chakraborty et al.  (2018). A sustainable inventory model was developed for two storage system by Mashud et al.  (2020). In this model, demand was based on price whereas deterioration was taken as non instantaneous. Also, another model was developed for two warehouses with non-instantaneous concept by Khan et al.  (2020) but this model was developed under credit policy by considering shortages (Table 1).

Table 1 Literature review of inventory models under two-warehouse environment from 2011 to 2020

In this model, demand follows Weibull distribution where deterioration is used in fuzzy sense. The fuzzy solution used in the model is more simplified which provides more generalized results.

3 Prelimineries

Before start the fuzzy model, here is the description of fuzzy number.

A graded mean integration method based on the integral value of graded mean h-level of the generaliZed fuzzy number was developed by Chen and Hsieh  (1999) for defuzzifying fuzzy numbers.

A fuzzy number \( \tilde{A} = ( a, b, c) \) where \( a< b < c \) and defined on R is called a triangular fuzzy number if its membership function is:

$$ \mu = {\left\{ \begin{array}{ll} \dfrac{x - a}{b - a},&{} a \le x \le b\\ \dfrac{c - x}{c - b},&{} b \le x \le c\\ 0,&{} {\text {otherwise}} \end{array}\right. }$$

When a = b = c, we have fuzzy point \( (c,c,c) = \tilde{c} \).

The family of all triangular fuzzy numbers on R is denoted as

$$\begin{aligned} F_{N} = \left\{ (a, b, c) | a< b < c \forall a, b, c \in R \right\} \end{aligned}$$

The \( \alpha \)-cut of \( \tilde{A} = ( a, b, c) \in F_{N}, 0 \le \alpha \le 1 \) is

$$\begin{aligned} A(\alpha ) = \left[ A_{L}(\alpha ), A_{R}(\alpha )\right] \end{aligned}$$

where, \( A_{L}(\alpha ) = a + (b - a)\alpha \) and \( A_{R}(\alpha ) = c - (c - b)\alpha \) are the left and right endpoints of \( A(\alpha ) \).

If \( A = (a, b, c) \) is a triangular fuzzy number then the graded mean integration representation of \( \tilde{A} \) is defined as:

$$\begin{aligned} P(\tilde{A})=\dfrac{\int ^{W_{A}}_{0}h\left( \dfrac{L^{-1}(h) + R^{-1}(h)}{2}\right) dh}{\int ^{W_{A}}_{0}hdh} \end{aligned}$$

with \( 0 < h \le W_{A} \) and \( 0 < W_{A} \le 1 \)

$$\begin{aligned} P(A)=\dfrac{1}{2} \left[ \dfrac{\int ^{1}_{0}h\left\{ a + h(b - a) + c - h(c - a)\right\} dh}{\int ^{1}_{0}hdh}\right] P(\tilde{A}) = \dfrac{a + 4b + c}{6} \end{aligned}$$

4 Assumptions and Notation

The following assumptions and notation have been carried out in the paper.

4.1 Assumptions

The inventory model is based on the following assumptions:

  • There is limited capacity W in OW and unlimited capacity in RW. The items of RW are consumed first and than from OW for the profitable reasons.

  • The seller can accumulate revenue and earn interest from the very beginning that his/her customer pays for the amount of purchasing cost to the seller until the end of the credit period offered by the supplier.

  • There is an infinite replenishment rate and the lead time is zero.

  • \(\theta _{1}\) is the deterioration rate in OW and \(\theta _{2}\) is in RW. \( \theta _{1} \ne \theta _{2} \). The rate of deterioration in RW is smaller than the rate of deterioration in OW as the RW has better storing facilities than OW.

  • The inventory system considered a single item.

  • Demand \( D(t)=\alpha \beta t^{ \beta -1} \) is assumed to be a function of time i.e. where \( \alpha \) and \( \beta \) are positive constants and \( \alpha \ge 0 \), \( 0 \le \beta \le 1 \)

  • There is no shortages in the model.

4.2 Notation

The following notation are used in the model:

  • T is time period of each cycle (unit of time).

  • \( t_{w} \) is time where level of inventory reaches to W (unit of time).

  • W is stored units in OW (units).

  • A is ordering cost ($/order).

  • M is trade credit period of retailer offered by the supplier (unit of time).

  • P is sales price per unit ($/unit).

  • \( I_{e} \) is interest earn (/$/unit/unit of time).

  • c is purchasing price (rupee/unit).

  • \( h_{o} \) is holding cost in OW ($/unit/unit of time).

  • \( I_{p} \) is interest charges by the supplier (/$/unit/unit of time).

  • \( h_{r} \) is holding cost in RW ($/unit/unit of time).

  • \( I_{r}(t) \) is the inventory level at time \( t \in [0, t_{w}] \) in RW (units).

  • \( I_{o}(t) \) is the inventory level at time \( t \in [0, T] \) in OW.(units)

  • \( \textit{D} = \alpha \beta t^{\beta - 1} \) is total demand \( 0< \alpha<< 1 \), \( \beta > 1 \) (unit/unit of time).

  • \( \theta _{1}\) is rate of deterioration in OW \( 0\le \theta _{1}\le 1 \).

  • \( \tilde{ \theta _{1}} \) is the fuzzy deterioration rate in OW \( 0\le \tilde{ \theta _{1}} \le 1 \).

  • \( \theta _{2} \) is deterioration rate in RW \( 0 \le \theta _{2} \le 1 \).

  • \( \tilde{ \theta _{2}} \) is the fuzzy deterioration rate in RW \( 0 \le \tilde{ \theta _{2}} \le 1 \).

  • \( TC_{1} \) is the total inventory cost per unit time ($).

  • \( \tilde{TC_{1}} \) is the total fuzzy inventory cost per unit time ($).

5 Mathematical Model

Let \( I_{o}(t) \) be the level of inventory in OW at [0, T] and \( I_{r}(t) \) be the level of inventory in RW at \( [0, t_{w}] \) with initial OW kept W units and rest stored in RW. The inventory of OW is used only after use of the stock kept in RW. The stock kept in RW exhausts due to demand and deterioration during the interval \( [0, t_{w}] \). In OW, the inventory W gradually decreases due to deterioration only during \( [0, t_{w}] \) and due to demand and deterioration during \( [t_{w}, T] \). At the time T, both RW and OW becomes empty (Fig. 1).

Fig. 1
figure 1

Time-inventory status

5.1 Crisp Model

The level of inventory in RW and OW at time \( t \in [0, t_{w}] \) has these differential equations:

$$\begin{aligned} \dfrac{dI_{r}}{dt} = - \alpha \beta t^{\beta - 1}- \theta _{2} I_{r}(t), \qquad 0 \le t \le t_{w} \end{aligned}$$
(1)

with the boundary conditions \( I_{r}(t_{w})=0 \) and

$$\begin{aligned} \dfrac{dI_{o}(t)}{dt} = - \theta _{1}I_{o}(t), \qquad 0 \le t \le t_{w}\end{aligned}$$
(2)

with the initial conditions \( I_{o}(0)=W \),

during the interval \( [t_{w}, T] \), the level of inventory in OW, has this differential equation:

$$\begin{aligned} \dfrac{dI_{o}(t)}{dt} = - \alpha \beta t^{\beta -1}-\theta _{1} I_{o}(t), \qquad t_{w} \le t \le T \end{aligned}$$
(3)

The solution from Eqs.  (1) to  (3 is:

$$\begin{aligned} I _{r}(t) = \alpha [t_{w}^{ \beta } e^{ \frac{ \theta _{2} t_{w} \beta }{ \beta +1}} -t^{ \beta } e^{ \frac{ \theta _{2} t \beta }{ \beta + 1}}]e^{- \theta _{2} t}, \qquad 0 \le t \le t_{w} \end{aligned}$$
(4)
$$\begin{aligned} I_{o}(t) = W e^{- \theta _{1} t}, \qquad 0 \le t \le t_{w} \end{aligned}$$
(5)
$$\begin{aligned} I_{o}(t) = \alpha [T^{ \beta } e^{ \frac{ \theta _{1} T \beta }{ \beta + 1}}-t^{ \beta } e^{ \frac{ \theta _{1} t \beta }{ \beta + 1}}] e^{- \theta _{1} t}, \qquad t_{w} \le t \le T \end{aligned}$$
(6)

Using the continuity of \( I_{o}(t)\) at time \( t=t_{w} \)

$$\begin{aligned} I_{o}(t_{w}) = W e^{- \theta _{1} t_{w}} \end{aligned}$$
$$\begin{aligned} I_{o}(t_{w}) = \alpha \left[ T^{\beta } e^{\dfrac{\theta _{1} T \beta }{\beta +1}}-t_{w}^{\beta }e^{\dfrac{\theta _{1} t_{w} \beta }{\beta +1}}\right] e^{-\theta _{1} t_{_{w}}} \end{aligned}$$

which implies that

$$\begin{aligned} T = \left[ \dfrac{ \dfrac{W}{ \alpha } + t_{w}^{ \beta } e^{ \frac{ \theta _{1} t_{w} \beta }{ \beta + 1}}}{ \dfrac{ \alpha \beta }{ \beta + 1}}\right] ^{ \beta ( \beta + 1)} \end{aligned}$$
(7)

Annual ordering cost is

$$\begin{aligned} C_{r} = \dfrac{A}{T} \end{aligned}$$
(8)

Annual holding cost of RW is

$$\begin{aligned} C_{h1} = h_{r} \int \limits ^{t_{w}}_{0}I_{r}(t)dt \end{aligned}$$
$$\begin{aligned} C_{h1} = \dfrac{h_{r} \alpha }{T} \left[ \dfrac{t_{w}^{ \beta }}{ \theta _{2}} \left( e^{\frac{ \theta _{2} t_{w} \beta }{\beta + 1}}- e^{\frac{-\theta _{2} t_{w}}{ \beta + 1}}\right) + \left( \dfrac{( \beta + 2) t_{w}^{ \beta + 1}- \theta _{2} t_{w}^{ \beta +2}}{( \beta + 1)( \beta + 2)}\right) \right] \end{aligned}$$
(9)

Annual holding cost of OW is

$$\begin{aligned} C_{h2} = h_{o} \int \limits ^T_0 I_{o} (t)dt \end{aligned}$$
$$\begin{aligned} \begin{aligned} C_{{h2}}&= \frac{{h_{o} W}}{{T\theta _{1} }}(1 - e^{{ - \theta _{1} t_{w} }} ) + \frac{{h_{o} \alpha T^{{\beta - 1}} e^{{\frac{{\theta _{1} T\beta }}{{\beta + 1}}}} }}{{\theta _{1} }}(e^{{ - \theta _{1} t_{w} }} - e^{{ - \theta _{1} T}} ) \\&\quad + h_{o} \alpha \frac{{((T^{\beta } - Tt_{w}^{{\beta + 1}} )(\beta + 2) - \theta _{1} (T^{{\beta + 1}} - t_{w}^{{\beta + 2}} ))}}{{(\beta + 1)(\beta + 2)}} \\ \end{aligned} \end{aligned}$$
(10)

Annual cost of deterioration in RW and OW is

$$\begin{aligned} C_{\theta } = \theta _{2} \int \limits ^{t_{w}}_{0} I_{r}(t)dt + \theta _{1} \int \limits ^{T}_{0} I_{o}(t){\text {d}}t \end{aligned}$$
$$\begin{aligned} \begin{aligned} C_{\theta }&= \alpha \theta _{2} t_{w}^{ \beta }\left[ \dfrac{e^ \frac{ \theta _{2} t_{w} \beta }{\beta +1}}{ \theta _{2}} (1 - e^{-\theta _{2} t_{w}})-\dfrac{t_{w}(\beta + 2) - \theta _{2} t_{w}}{(\beta + 1)( \beta + 2)}\right] +(1-e^{-\theta _{1} t_{w}} - e^{- \theta _{1} T}) +\\&\alpha T^{ \beta } e^{\frac{\theta _{1}T \beta }{\beta + 1} }{e^{- \theta _{1} t_{w}}} - \dfrac{{(T^{ \beta + 1} - t_{w}^{\beta + 1})( \beta + 2) - \theta _{1}( T^{ \beta + 2} - t_{w}^{ \beta + 1}) }}{( \beta + 1 ) ( \beta + 2 )} \end{aligned} \end{aligned}$$
(11)

Now there are three cases arises:

Case 1: \( M \le t_{w} \le T \)

Case 2: \( t_{w} < M \le T \)

Case 3: \( M > T \)

5.1.1 Case 1: \( M \le t_{w} \le T \)

In this case, buyer has to pay an interest charges. Also at the same time he earns interest on the income till M:

$$\begin{aligned} C_{e1} = \dfrac{p I_{e}}{T} \int \limits ^M_0 \alpha \beta t^{ \beta } dt \end{aligned}$$
$$\begin{aligned} C_{e1}= \dfrac{p I_{e}\alpha \beta M^{\beta +1}}{T(\beta +1)} \end{aligned}$$
(12)

Further, Interest payable is:

$$\begin{aligned} C_{p1}=\dfrac{c I_{p}}{T} \left[ \int \limits ^{t_{w}}_M I_{r}(t)dt + \int \limits ^{t_{w}}_M I_{o}(t) + \int \limits ^T_{t_{w}} I_{o}(t)\right] \end{aligned}$$
$$\begin{aligned} \begin{aligned} \begin{aligned} C_{{p1}}&= \frac{{cI_{p} }}{T}\left[ {\frac{{\alpha t_{w}^{\beta } e^{{\frac{{\theta _{2} \beta }}{{\beta + 1}}}} }}{2}(e^{{ - \theta _{2} M}} - e^{{ - \theta _{2} t_{w} }} ) + \frac{{(\beta + 2)(M^{{\beta + 1}} - T^{{\beta + 1}} ) + \theta _{1} (T^{{\beta + 2}} - t_{w}^{{\beta + 2}} )}}{{(\beta + 1)(\beta + 2)}}} \right] \\ \quad&+ \frac{{cI_{p} }}{T}\left[ {\frac{{W(e^{{ - \theta _{1} M}} - e^{{ - \theta _{1} t_{w} }} )}}{{\theta _{1} }} + \frac{{\theta _{2} (t_{w}^{{\beta + 2}} - M^{{\beta + 2}} )}}{{(\beta + 1)(\beta + 2)}} + \frac{{\alpha T^{\beta } e^{{\frac{{\theta _{1} T\beta }}{{\beta + 1}}}} }}{{\theta _{1} }}(e^{{ - \theta _{1} t_{w} }} - e^{{ - \theta _{1} T}} )} \right] \\ \end{aligned} \end{aligned} \end{aligned}$$
(13)

Now, the total cost is:

$$\begin{aligned} TC_{1}(T, t_{w})= C_{r} + C_{h1}+ C_{h2} + C_{\theta } + C_{p1} - C_{e1} \end{aligned}$$
(14)

5.1.2 Case 2: \( t_{w} < M \le T \)

Interest will be paid:

$$\begin{aligned} C_{p2}= \dfrac{c I_{p}}{T} \int \limits ^{M}_T I_{o}(t)dt \end{aligned}$$
$$\begin{aligned} C_{p2} = c I_{p} \alpha \left[ \dfrac{T^{ \beta - 1} e^{ \frac{\theta _{1} T \beta }{ \beta + 1} }}{ \theta _{1}} ( e^{- \theta _{1} M} - e^{- \theta _{1} T})- \dfrac{ ( \beta + 2)( T^{\beta }- T M^{\beta + 1} )-\theta _{1} (T^{\beta + 1} + T M^{ \beta + 2})}{( \beta + 1)( \beta + 2 ) } \right] \end{aligned}$$
(15)

The interest will be earn as follows:

$$\begin{aligned} C_{e2} = \dfrac{p I_{e}}{T} \int \limits ^M_0 \alpha \beta t^{ \beta } dt \end{aligned}$$
$$\begin{aligned} C_{e2} = \dfrac{p I_{e}\alpha \beta M^{\beta +1}}{T(\beta +1)} \end{aligned}$$
(16)

Now, the total cost is:

$$\begin{aligned} TC_{2}(T, t_{w}) = C_{r} + C_{h1}+ C_{h2} + C_{\theta } + C_{p2} - C_{e2} \end{aligned}$$
(17)

5.1.3 Case 3: \( M > T \)

In this case, the buyer gets a larger credit period M which is after T. Then, the buyer earns interest, no need to pay interest charges:

$$\begin{aligned} C_{e3} = pI_{e}\int \limits ^{T}_{0}\int \limits ^{t}_{0}\alpha \beta t^{\beta - 1}du dt \end{aligned}$$
$$\begin{aligned} C_{e3} = pI_{e}\alpha \beta \left( \frac{T^{\beta } + 1}{\beta + 1} \right) \end{aligned}$$
(18)

Now, the total cost is:

$$\begin{aligned} TC_{3}(T, t_{w}) = C_{r} + C_{h1}+ C_{h2} + C_{\theta } - C_{e3} \end{aligned}$$
(19)

6 Fuzzy Model

In reality, it is not easy to define all the parameter accurately as there is always an uncertainty in the environment. So, in this model \( \tilde{\theta _{1}}, \tilde{\theta _{2}} \) assumes to be in fuzzy sense.

Let \( \tilde{\theta _{1}} = (\theta _{11}, \theta _{12}, \theta _{13}) \) and \( \tilde{\theta _{2}} = (\theta _{21}, \theta _{22}, \theta _{23}) \) are consider in the form of triangular fuzzy numbers.

6.1 Case 1: \( M \le t_{w} \le T \)

Total cost per unit time in fuzzy sense

$$\begin{aligned} \begin{aligned} \begin{aligned} \widetilde{{TC_{1} }}(T,t_{w} )&= \frac{A}{T} + \frac{{h_{r} \alpha }}{T}\left[ {\frac{{t_{w}^{\beta } }}{{\widetilde{{\theta _{2} }}}}\left( {e^{{\frac{{\widetilde{{\theta _{2} }}t_{w} \beta }}{{\beta + 1}}}} - e^{{\frac{{ - \widetilde{{\theta _{2} }}t_{w} }}{{\beta + 1}}}} } \right) + \left( {\frac{{(\beta + 2)t_{w}^{{\beta + 1}} - \widetilde{{\theta _{2} }}t_{w}^{{\beta + 2}} }}{{(\beta + 1)(\beta + 2)}}} \right) } \right] \\&\quad + A_{1} + \alpha \widetilde{{\theta _{2} }}t_{w}^{\beta } \left[ {\frac{{e^{{\frac{{\widetilde{{\theta _{2} }}t_{w} \beta }}{{\beta + 1}}}} }}{{\widetilde{{\theta _{2} }}}}(1 - e^{ - } \widetilde{{\theta _{2} }}t_{w} ) - \left( {\frac{{t_{w} (\beta + 2) - \widetilde{{\theta _{2} }}t_{w} }}{{(\beta + 1)(\beta + 2)}}} \right) } \right] \\&\quad + W(1 - e^{{ - \widetilde{{\theta _{1} }}t_{w} }} ) + \alpha T^{\beta } e^{{\frac{{\widetilde{{\theta _{1} }}T\beta }}{{\beta + 1}}}} e^{{ - \widetilde{{\theta _{1} }}t_{w} }} - e^{{ - \widetilde{{\theta _{1} }}T}} \\&\quad - \frac{{(T^{{\beta + 1}} - t_{w}^{{\beta + 1}} )(\beta + 2) - \widetilde{{\theta _{1} }}(T^{{\beta + 2}} - t_{w}^{{\beta + 1}} )}}{{(\beta + 1)(\beta + 2)}} + \frac{{pI_{e} \alpha \beta M^{{\beta + 1}} }}{{T(\beta + 1)}} + A_{2} \\ \end{aligned} \end{aligned} \end{aligned}$$
$$\begin{aligned} \begin{aligned} \begin{aligned} \underline{{\widetilde{{TC_{1} }}(T,t_{w} )}}&= \frac{A}{T} + \frac{{h_{r} \alpha }}{T}\left[ \begin{aligned}&\frac{{t_{w}^{\beta } }}{{(\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{22}} }},\widetilde{{\theta _{{23}} }})}}\left( {e^{{\frac{{(\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{22}} }},\widetilde{{\theta _{{23}} }})t_{w} \beta }}{{\beta + 1}}}} - e^{{\frac{{ - (\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{22}} }},\widetilde{{\theta _{{23}} }})t_{w} }}{{\beta + 1}}}} } \right) \\&+ \frac{{(\beta + 2)t_{w}^{{\beta + 1}} - (\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{22}} }},\widetilde{{\theta _{{23}} }})t_{w}^{{\beta + 2}} }}{{(\beta + 1)(\beta + 2)}} \\ \end{aligned} \right] \\&\quad + h_{o} A_{3} + \alpha T^{\beta } e^{{\frac{{(\widetilde{{\theta _{{11}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})T\beta }}{{\beta + 1}}}} \left[ {e^{{ - (\widetilde{{\theta _{{11}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})t_{w} }} - e^{{ - (\widetilde{{\theta _{{11}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})T}} } \right] \\&\quad + W(1 - e^{{ - (\widetilde{{\theta _{{11}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})t_{w} }} ) + \alpha (\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})t_{w}^{\beta } \\&\quad \times \left[ \begin{aligned}&\frac{{e^{{\frac{{(\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})t_{w} \beta }}{{\beta + 1}}}} }}{{(\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{22}} }},\widetilde{{\theta _{{23}} }})}}(1 - e^{ - } (\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{22}} }},\widetilde{{\theta _{{23}} }})t_{w} ) \\&- \frac{{t_{w} (\beta + 2) - (\widetilde{{\theta _{{21}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})t_{w} }}{{(\beta + 1)(\beta + 2)}} \\ \end{aligned} \right] \\&\quad - \frac{{T^{{\beta + 1}} (\beta + 2) - (\widetilde{{\theta _{{11}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})T^{{\beta + 2}} - t_{w}^{{\beta + 1}} (\beta + 2) + (\widetilde{{\theta _{{11}} }},\widetilde{{\theta _{{12}} }},\widetilde{{\theta _{{13}} }})t_{w}^{{\beta + 1}} }}{{(\beta + 1)(\beta + 2)}} \\&\quad + \frac{{pI_{e} \alpha \beta M^{{\beta + 1}} }}{{T(\beta + 1)}} + \frac{{cI_{p} }}{T}A_{4} \\ \end{aligned} \end{aligned} \end{aligned}$$

Using graded mean integration method for defuzzification of \( TC_{1} \)

$$\begin{aligned} \tilde{TC_{1}}(T, t_{w}) = \dfrac{(\tilde{TC_{a}} + 4 \tilde{TC_{b}} + \tilde{TC_{c}})}{6} \end{aligned}$$

For the values of \( A_{1}, A_{2}, A_{3},\tilde{TC_{a}}, \tilde{TC_{b}}, \tilde{TC_{c}} \) see the appendix.

6.2 Case 2: \( t_{w} < M \le T \)

Total cost per unit time in fuzzy sense

$$\begin{aligned} \begin{aligned} \begin{aligned} \widetilde{{TC_{2} }}(T,t_{w} )&= \frac{A}{T} + \frac{{h_{r} \alpha }}{T}\left[ {\frac{{t_{w}^{\beta } }}{{\widetilde{{\theta _{2} }}}}\left( {e^{{\frac{{\widetilde{{\theta _{2} }}t_{w} \beta }}{{\beta + 1}}}} - e^{{\frac{{ - \widetilde{{\theta _{2} }}t_{w} }}{{\beta + 1}}}} } \right) + \left( {\frac{{(\beta + 2)t_{w}^{{\beta + 1}} - \widetilde{{\theta _{2} }}t_{w}^{{\beta + 2}} }}{{(\beta + 1)(\beta + 2)}}} \right) } \right] \\&\quad + \frac{{h_{o} \alpha T^{{\beta - 1}} e^{{\frac{{\widetilde{{\theta _{1} }}T\beta }}{{\beta + 1}}}} }}{{\widetilde{{\theta _{1} }}}}(e^{{ - \widetilde{{\theta _{1} }}t_{w} }} - e^{{ - \widetilde{{\theta _{1} }}T}} ) + \frac{{h_{o} W}}{{T\widetilde{{\theta _{1} }}}}(1 - e^{{ - \widetilde{{\theta _{1} }}t_{w} }} ) + \frac{{pI_{e} \alpha \beta M^{{\beta + 1}} }}{{T(\beta + 1)}} \\&\quad + \alpha \theta _{2} t_{w}^{\beta } \left[ {\frac{{e^{{\frac{{\theta _{2} t_{w} \beta }}{{\beta + 1}}}} }}{{\widetilde{{\theta _{2} }}}}(1 - e^{ - } \widetilde{{\theta _{2} }}t_{w} )} \right] \\&\quad \times h_{o} \alpha \frac{{(T^{\beta } (\beta + 2) - \widetilde{{\theta _{1} }}T^{{\beta + 1}} - T(t_{w}^{{\beta + 1}} (\beta + 2) - \widetilde{{\theta _{1} }}t_{w}^{{\beta + 2}} ))}}{{(\beta + 1)(\beta + 2)}} \\&\quad - \alpha \theta _{2} t_{w}^{\beta } \left[ {\frac{{t_{w} (\beta + 2) - \widetilde{{\theta _{2} }}t_{w} }}{{(\beta + 1)(\beta + 2)}}} \right] + W(1 - e^{{ - \widetilde{{\theta _{1} }}t_{w} }} ) + \alpha T^{\beta } e^{{\frac{{\widetilde{{\theta _{1} }}T\beta }}{{\beta + 1}}}} e^{{ - \widetilde{{\theta _{1} }}t_{w} }} \\&\quad - e^{{ - \widetilde{{\theta _{1} }}T}} - \frac{{T^{{\beta + 1}} (\beta + 2) - \widetilde{{\theta _{1} }}T^{{\beta + 2}} - t_{w}^{{\beta + 1}} (\beta + 2) + \widetilde{{\theta _{1} }}t_{w}^{{\beta + 1}} }}{{(\beta + 1)(\beta + 2)}} \\&\quad + cI_{p} \alpha \left[ \begin{aligned}&\frac{{T^{{\beta - 1}} e^{{\frac{{\widetilde{{\theta _{1} }}T\beta }}{{\beta + 1}}}} }}{{\widetilde{{\theta _{1} }}}}(e^{{ - \widetilde{{\theta _{1} }}M}} - e^{{ - \widetilde{{\theta _{1} }}T}} ) \\&- \left( {\frac{{(\beta + 2)T^{\beta } - \widetilde{{\theta _{1} }}T^{{\beta + 1}} - T(\beta + 2)M^{{\beta + 1}} + \widetilde{{\theta _{1} }}M^{{\beta + 2}} }}{{(\beta + 1)(\beta + 2)}}} \right) \\ \end{aligned} \right] \\ \end{aligned} \end{aligned} \end{aligned}$$

Using graded mean integration method for defuzzification of \( TC_{2} \)

$$\begin{aligned} \tilde{TC_{2}}(T, t_{w}) = \dfrac{(\tilde{TC_{a}} + 4 \tilde{TC_{b}} + \tilde{TC_{c}})}{6} \end{aligned}$$

In case 2, we do the same process as in case 1.

6.3 Case 3: \( M > T \)

Total cost unit time in fuzzy sense

$$\begin{aligned} \begin{aligned} \begin{aligned} \widetilde{{TC_{3} }}(T,t_{w} )&= \frac{A}{T} + \frac{{h_{r} \alpha }}{T}\left[ {\frac{{t_{w}^{\beta } }}{{\widetilde{{\theta _{2} }}}}\left( {e^{{\frac{{\widetilde{{\theta _{2} }}t_{w} \beta }}{{\beta + 1}}}} - e^{{\frac{{ - \widetilde{{\theta _{2} }}t_{w} }}{{\beta + 1}}}} } \right) + \left( {\frac{{(\beta + 2)t_{w}^{{\beta + 1}} - \widetilde{{\theta _{2} }}t_{w}^{{\beta + 2}} }}{{(\beta + 1)(\beta + 2)}}} \right) } \right] \\&\quad + \frac{{h_{o} W}}{{T\widetilde{{\theta _{1} }}}}(1 - e^{{ - \widetilde{{\theta _{1} }}t_{w} }} ) + \frac{{h_{o} \alpha T^{{\beta - 1}} e^{{\frac{{\widetilde{{\theta _{1} }}T\beta }}{{\beta + 1}}}} }}{{\widetilde{{\theta _{1} }}}}(e^{{ - \widetilde{{\theta _{1} }}t_{w} }} - e^{{ - \widetilde{{\theta _{1} }}T}} ) \\&\quad + h_{o} \alpha \frac{{((T^{\beta } - Tt_{w}^{{\beta + 1}} )(\beta + 2) - \widetilde{{\theta _{1} }}(T^{{\beta + 1}} - Tt_{w}^{{\beta + 2}} ))}}{{(\beta + 1)(\beta + 2)}} \\&\quad + \alpha \widetilde{{\theta _{2} }}t_{w}^{\beta } \left[ {\frac{{e^{{\frac{{\widetilde{{\theta _{2} }}t_{w} \beta }}{{\beta + 1}}}} }}{{\widetilde{{\theta _{2} }}}}(1 - e^{ - } \widetilde{{\theta _{2} }}t_{w} ) - \frac{{t_{w} (\beta + 2) - \widetilde{{\theta _{2} }}t_{w} }}{{(\beta + 1)(\beta + 2)}}} \right] \\&\quad + \alpha T^{\beta } e^{{\frac{{\widetilde{{\theta _{1} }}T\beta }}{{\beta + 1}}}} e^{{ - \widetilde{{\theta _{1} }}t_{w} }} - e^{{ - \widetilde{{\theta _{1} }}T}} + W(1 - e^{{ - \widetilde{{\theta _{1} }}t_{w} }} ) \\&\quad - \frac{{T^{{\beta + 1}} (\beta + 2) - \widetilde{{\theta _{1} }}T^{{\beta + 2}} - t_{w}^{{\beta + 1}} (\beta + 2) + \widetilde{{\theta _{1} }}t_{w}^{{\beta + 1}} }}{{(\beta + 1)(\beta + 2)}} \\&\quad - pI_{e} \alpha \beta \left( {\frac{{T^{\beta } + 1}}{{\beta + 1}}} \right) \\ \end{aligned} \end{aligned} \end{aligned}$$

Using graded mean integration method for defuzzification of \( TC_{3} \)

$$\begin{aligned} \tilde{TC_{3}}(T, t_{w}) = \dfrac{(\tilde{TC_{a}} + 4 \tilde{TC_{b}} + \tilde{TC_{c}})}{6} \end{aligned}$$

In case 3, we do the same process as in case 1. To find the optimal cost, the given conditions should be satisfied. \( \dfrac{\partial (TC)}{\partial (T)} = 0 \) and \( \dfrac{\partial (TC)}{\partial (t_{w})} = 0 \)

Further, for total cost \( \tilde{TC}(T, t_{w}) \) to be convex, \( \left( \dfrac{\partial ^{2} (TC)}{\partial (t_{w}^{2})} \right) \left( \dfrac{\partial ^{2} (TC)}{\partial (T^{2})} \right) - \left( \dfrac{\partial ^{2} (TC)}{\partial (t_{w}) \partial (T)} \right) ^{2} > 0 \) must be satisfied.

7 Numerical Examples

An example is taken for this model to validate the results:

For crisp model A = 200 $/order, \( \alpha \) = 0.5 units/year, \( \beta \) = 4 units/year, e = 2.5, c = 10 $/unit, \( I_{p} \) = 0.15/$/unit/year, \( h_{r} \) = 1 $/unit/year, p = 12 $/unit, \( h_{o} \) = 0.5 units/year, W = 50 units, \( \theta _{1} \) = 0.9, \( I_{e} \) = 0.12/$/unit/year, \( \theta _{2} \) = 0.02, M = \( \frac{25}{365} \) year and for fuzzy model A = 200 $/order, \( \alpha \) = 0.5 units/year, \( \beta \) = 4 units/year, e = 2.5, c = 10 $/unit, \( h_{o} \) = 0.5 $/unit/year, \( I_{e} \) = 0.12/$/unit/year, \( h_{r} \) = 1 $/unit/year, p = 12 $/unit, \( I_{p} \) = 0.15/$/unit/year, W = 50 units, \( \theta _{1} \) = 0.9, \( \theta _{2} \) = 0.02, M = \( \frac{25}{365} \) year. Here parameteric values are opted from Shabani et al.  (2016)

7.1 Crisp Model Versus Fuzzy Model

figure a

As, we see that from the numerical example, the fuzzy solution gives maximum optimal value in comparison to the crisp solution.

8 Sensitivity Analysis

Here is the study of the effects of changes in parameter \( \beta \), \( \theta _{1}, \theta _{2} \) and M in all the cases. Rest of the parameters are same as in example.

Table 2 Sensitivity analysis for case 1 in crisp manner
Table 3 Sensitivity analysis for case 1 in fuzzy manner

From Table 2, the value of total cost (Z) is increasing with the increment in the value of \( (T, t_{w}) \). But, from Table 3, the value of total cost is decreasing having the decreasing effect on the value of \( (T, t_{w}) \), except the first value of \( \beta \). So, fuzzy model is more optimal with respect to crisp model (Figs. 2, 3,4, 5, 6 and 7).

Fig. 2
figure 2

Graphical representation case 1 profit in crisp and fuzzy with respect to \(\theta _{1}\) parameter

Fig. 3
figure 3

Graphical representation case 1 profit in crisp and fuzzy with respect to \(\beta \) parameter

Fig. 4
figure 4

Graphical representation case 2 profit in crisp and fuzzy with respect to \(\theta _{1}\) parameter

Fig. 5
figure 5

Graphical representation case 2 profit in crisp and fuzzy with respect to \(\beta \) parameter

Fig. 6
figure 6

Graphical representation case 3 profit in crisp and fuzzy with respect to \(\theta _{1}\) parameter

Fig. 7
figure 7

Graphical representation case 3 profit in crisp and fuzzy with respect to \(\beta \) parameter

Table 4 Sensitivity analysis for case 2 in crisp manner
Table 5 Sensitivity analysis for case 2 in fuzzy manner

In Table 4, with the increment in the value of \( (T, t_{w}) \), the value of total cost (Z) is going to increasing. But, in Table 5, the value of total cost having decreasing effect on the value of \( (T, t_{w}) \), except the first value of \( \beta \). So, fuzzy model is more optimal with respect to crisp model.

Table 6 Sensitivity analysis for case 3 in crisp manner
Table 7 Sensitivity analysis for case 3 in fuzzy manner

From Table 6, the value of total cost (Z) is increasing with the increasing value of \( (T, t_{w}) \). But, from table 7, the total cost is decreasing with the value of \( (T, t_{w}) \), except the first value of \( \beta \). So, fuzzy model is more optimal with respect to crisp model.

9 Conclusion

In this paper, we have proposed the effect of fuzzy deterioration as well as Weibull demand under credit financing in two-warehouse environment. The study associated with some types of inventory such as seasonal food items inventory, newly launch fashion items, etc. The model is motivated by the fact that there is always an uncertainty in demand and the deterioration rate such as for physical goods. So, it is worthwhile to take the deterioration rate in fuzzy number as well as demand in Weibull distribution. The rate of deterioration is represented by triangular fuzzy number. Nowadays, the credit financing policy has become a advertisement tool to attract customers. Customer has to purchase items in a very large quantity without immediately payment. In trade credit policy, seller offers some credit period to pay. But beyond this time, buyer has to pay an interest. Here, graded mean integration method is used for defuzzification to calculate the total cycle time as well as total cost of the model. From the numerical study and sensitivity analysis with respect to different key parameters, it is observed that fuzzy model is more optimal than crisp model.

10 Managerial Insights

Here, fuzzy model is more optimal with respect to crisp model. The above results show the significance of the model. This model can be extended in several forms. It can be more realistic if this model can be extended with types of demand such as advertisement-dependent demand, ramp type demand or two level and three level trade credit policy or if one may assume variable lead time also, one can take nonlinear holding cost. Further, this model can be extended under carbon emission constraints with international supply chain.