Next Article in Journal
Phillips Loops, Economic Relaxation, and Inflation Dynamics
Previous Article in Journal
Statistics Reform: Practitioner’s Perspective
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Two-Echelon Supply Chain Inventory Model for Perishable Products with a Shifting Production Rate, Stock-Dependent Demand Rate, and Imperfect Quality Raw Material

Faculty of Engineering, Built Environment & IT, Department of Industrial and Systems Engineering, University of Pretoria, Hatfield Campus, Pretoria 0028, South Africa
*
Author to whom correspondence should be addressed.
AppliedMath 2025, 5(2), 50; https://doi.org/10.3390/appliedmath5020050
Submission received: 27 January 2025 / Revised: 27 February 2025 / Accepted: 14 April 2025 / Published: 30 April 2025

Abstract

:
This model extends the classical economic production quantity (EPQ) model to address the complexities within a two-echelon supply chain system. The model integrates the cost of raw materials necessary for production and takes into account the presence of imperfect quality items within the acquired raw materials. Upon receipt of the raw material, a thorough screening process is conducted to identify imperfect quality items. Combining imperfect raw material and the concept of shifting production rate, two different inventory models for deteriorating products are formulated under imperfect production with demand dependent on the stock level. In the first model, the imperfect raw materials are sold at a discounted price at the end of the screening period, whereas in the second one, imperfect items are kept in stock until the end of the inventory cycle and then returned to the supplier. Numerical analysis reveals that selling imperfect raw materials yields a favourable financial outcome, with an optimal inventory level I 1 = 11,774 units, optimal cycle time T = 2140 h, and a total profit per hour of USD 183, while keeping the imperfect raw materials to return them to the supplier results in a negative profit of USD 4.44 × 10 3 per hour, indicating an unfavourable financial outcome with the optimal inventory level I 1 and optimal cycle time T of 26,349 units and 4702.6 h, respectively. The findings show the importance of selling imperfect raw materials rather than returning them and provide valuable insights for inventory management in systems with deteriorating products and imperfect production processes. Sensitivity analysis further demonstrates the robustness of the model. This study contributes to satisfying the need for inventory models that consider both the procurement of imperfect raw materials, stock-dependent demand, and deteriorating products, along with shifts in production rates in a multi-echelon supply chain.

1. Introduction

In today’s fast-paced and volatile business environment, organisations face numerous challenges when it comes to effectively managing their production and inventory. Managing inventory systems is crucial for any organisation, especially if the organisation deals with perishable products and experiences variable demand. The economic production quantity (EPQ) model has been widely used in practice because of its simplicity; however, there are some drawbacks to the assumptions of the classical EPQ model and many scholars have attempted to relax these assumptions for relevant situations to integrate new concepts, such as deterioration imperfect quality of the inventory, availability of equipment, dependent demand functions, and effectiveness of machines, among others. Many inventory models have been developed under the assumption that the lifetime of an item is infinite while it is in storage. The classical inventory model [1], rehashed in Wilson [2], assumes that the depletion of inventory is due to a constant demand rate only. In real life, decay or deterioration of items is a natural phenomenon. Vegetables, fruits, foods, perfumes, chemicals, pharmaceuticals, radioactive substances, and electronic equipment are examples of items that lose value over time through deterioration. Whitin [3] was the first to consider the effect of deterioration on fashion items after a prescribed date. Dave and Patel [4] developed an inventory model for deteriorating items with a deterioration rate which is a constant fraction of the on-hand inventory. Benkherouf [5] presented an optimal replenishment policy for constant deterioration rate with a known and finite planning horizon. Srivastava and Gupta [6] studied an EOQ model for deteriorating items with constant deterioration rate while considering both constant and time-dependent demand rates and no shortages. Mishra et al. [7] developed an inventory model for deteriorating items with a time-proportional deterioration rate and time-varying holding cost under partial backlogging. Majumder et al. [8] developed an economic production quantity (EPQ) model for deteriorating items under a partial trade credit policy. Singh et al. [9] developed an EOQ inventory model for deteriorating items with a time-proportional deterioration rate as well as both constant and time-dependent linear demand rates. Halim et al. [10] discussed a production inventory model for deteriorating items along with an overtime production opportunity. Jain and Singh [11] examined the effect of frequent inspections in a lot-sizing under partial advance payment and deterioration to reduce food wastage due to spoilage. Hou et al. [12] investigated an inventory-pricing problem of two vendors selling perishable products across two consecutive periods: the regular selling season and the clearance season. During the regular selling season, each vendor charges a standard price P i 1 for the product, with a unit cost of c i . In the clearance season, the product experiences some degree of value depreciation and is sold at a discounted price P i 2 . The products offered by the two vendors are partially substitutable, and the prices are constrained. Moshtagh et al. [13] examined a dynamic inventory-pricing system for perishable goods with multiple freshness levels. The model is developed as a Markov decision process, where the product assortment changes dynamically based on the available item’s freshness. Pathak et al. [14] proposed an economic production quantity model for decaying items with price-dependent demand, time-dependent deterioration rate and time-dependent backlogging rate.
The quality of items is another issue that has not been considered in the classic EPQ model. However, in a real production environment, this assumption does not accurately reflect the reality. The assumption of perfect quality often falls short, as production processes are prone to errors, imperfections, defects, and variability. El-Kassar et al. [15] investigated an Economic Production Quantity model that considers the cost of raw materials essential for production. The model assumes that the supplier’s raw materials contain a certain percentage of imperfect quality items. Upon receipt, a screening process with a 100% detection rate for imperfect items is carried out at the start of each inventory cycle. Two scenarios are explored: in one, imperfect items are sold at a discounted price after screening, and in the other scenario, imperfect items are kept in stock until the end of the cycle and then returned to the supplier upon receiving the next order. Urban [16] formulated models that account for both positive and negative learning curve effects in production processes by modelling the defect rate of the process as a function of the run length. Salameh and Jaber [17] considered a special inventory situation where items, received or produced, are not of perfect quality. Chan et al. [18] developed a model that integrates lower pricing, reworking and rejection into an EPQ model. Lee [19] presented a cost/benefit model for investments in inventory and preventive maintenance in an imperfect production system to increase product and service quality. Hou [20] considered an EPQ model with imperfect production processes in which the setup cost and process quality are functions of capital expenditure. Nobil and Tiwari [21] developed a multi-product economic production quantity (EPQ) inventory model for a defective production system on a single machine with a rework process and auction. Ozturk et al. [22] developed a production inventory system with a fuzzy cycle time and inspection process to scrutinise defective items both during production and post-production. Asadkhani et al. [23] developed an EOQ model with different types of imperfect items, such as salvage, scrap, and reject. Chen and You [24] used differential equations theory to develop an optimal control model for managing perishable products with exponentially declining quality. The model incorporates dynamic pricing and inventory management strategies and accounts for the influence of reference price and reference quality on product demand. Reference price and reference quality are modelled as functions of consumers’ past purchasing experiences. Nobil et al. [25] examined an inventory-manufacturing system in industries with quality inspection, such as aerospace, pharmaceuticals, electronics, medical devices, and textiles. They developed three models under strict quality inspection conditions: one with discarded items but no shortages, another with reworked items but no shortages, and a third with both discarded and reworkable items, but with backorders. Hossain et al. [26] examined the challenges of managing imperfect items in manufacturing and proposed an inventory model that incorporates the effects of imperfect items to explore relationships between demand forecasting, production planning, quality, and inventory policies.
The classic EPQ model also assumes that the demand rate is fixed. However, marketing researchers and practitioners have come to recognise that the demand for many items is directly dependent on the season, the amount of stock displayed, the product quality, the price, the freshness condition or some combination of these. Datta and Paul [27] discussed an inventory model with both price and stock-dependent demand under a finite time horizon. Pal et al. [28] developed a deteriorating inventory problem with demand rate dependent on stock level, selling price, and frequency of advertisement, in which partial back-ordering is considered. The paper by Panda et al. [29] deals with an EPQ model for seasonal products with stock-dependent demand. Lee and Dye [30] formulated a deteriorating inventory model with stock-dependent demand by allowing preservation technology cost as a decision variable in conjunction with a replacement policy. Ghiami et al. [31] investigated a two-echelon supply chain model for deteriorating inventory with stock-dependent demand and partial backlogging in which the retailer’s warehouse has a limited capacity. Yang [32] investigated an inventory control policy with a stock-dependent demand rate and stock-dependent holding cost rate with partial back-ordering. Singh and Pattnayak [33] presented a two-warehouse inventory model with conditionally permissible delay in payment by considering the linear demand rate. Avinadav et al. [34] proposed an optimal ordering and pricing policy to maximise profits given a deterministic demand function that is affected by both price and inventory age. San-José et al. [35] analysed an inventory system with discrete scheduling periods, time-dependent demand, and backlogged shortages. Cárdenas-Barrón et al. [36] studied an EOQ inventory model with non-linear stock-dependent holding cost, non-linear stock-dependent demand, and trade credit. Khan et al. [37] described mathematical models for perishable items with advance payment, linearly time-dependent holding cost, and demand that is dependent on advertisement and selling price. San-José et al. [38] formulated an inventory system integrating time-dependent demand and partial back-ordering, in which the return on inventory investment is maximised. Rodríguez-Mazo and Ruiz-Benítez [39] investigated a deterministic modular replenishment model for retail inventory management in a system with multiple warehouses, including an own warehouse (OW) and rented warehouses (RW) of custom capacities under price and stock-dependent demand. Doğruöz and Güllü [40] considered an inventory model under intermittent demand where the demand occurrence depends on the price and the yield uncertainty of the item. Jauhari et al. [41] proposed a mathematical inventory model for a closed-loop supply chain consisting of a single manufacturer and a single retailer under stochastic demand and imperfect production to find the optimal shipment quantity, number of deliveries, safety factor, and green investment to minimise the joint total cost of the system.
Various production factors such as flexibility, availability of machines, the state of the equipment, and variable setup time have received attention from researchers. In real manufacturing situations, the state of the equipment is usually dynamic. While the effect of the degradation of machines has been initially ignored by researchers, a growing body of literature now considers numerous situations that may occur during the lifetime of the production system. Such systems may be “in a state of control” or “out of control”. If, from the production point of view, a system is conceived in a way that at the occurrence of any failure, a reconfiguration is undertaken automatically, allowing the degraded or deteriorated machine or any other equipment to be functional, but with a decrease in the service delivered, we refer to this as a multi-state system (MSS). Thus, a third state is added to the two previous states, which is referred to as the degraded state. The concept of flexible manufacturing systems with unreliable machines, failures and repairs presented in the form of a Markov process was first introduced by Rishel [42] and then Olsder and Suri [43]. Schweitzer and Seidmann [44] introduced the concept of flexibility to discuss the optimisation of the processing rate for a flexible machine in a manufacturing system. Khouja [45] reformulated some inventory models to allow for adjustments (minor setups) to the manufacturing resource within the production cycle without interrupting the system. These adjustments do not involve performing all activities of a full set-up and incur only a fraction of a full set-up cost and time. Sana et al. [46] studied a flexible economic manufacturing quantity (EMQ) model with a reduction in the selling price in an imperfect production system. Ben-Daya et al. [47] studied an EPQ model with a shifting production rate under stoppages due to speed losses. Sarkar et al. [48] discussed an economic manufacturing quantity model of an imperfect production process with time-dependent demand subject to machine breakdown. Emami-Mehrgani et al. [49] studied production systems with machines subject to random breakdowns and repairs under preventive maintenance with human error. Omar and Yeo [50] proposed a model for a continuous time-varying inventory system that satisfies the demand for finished products over a known and finite planning horizon by supplying both new and repaired items under multiple setups. Ganesan and Uthayakumar [51] proposed EPQ models for an imperfect manufacturing system, considering warm-up production runs, shortages during the hybrid maintenance period, and partial back-ordering. Tshinangi et al. [52] described a lot-sizing model for a multi-state system (MSS) with deteriorating items, variable production rates, and imperfect quality.
A summary of the relevant published models is provided in Table 1. The table shows that currently, there are not any lot-sizing models in the literature for integrated multi-state systems in inventory models for perishable products, which considers re-configurable systems, wherein the machine used for manufacturing deteriorates and continues to function even in the presence of faults. Traditional models use binary states. This simplification fails to capture some real-world complexities of dynamic systems, such as mineral processing, power grid control, and food industries, which operate in more than just two states, “in a state of control”, “degraded state”, and “out of control”. Although some studies have begun to address machine degradation and its impact on production, they frequently neglect essential features, such as price-dependent demand, stock-level-dependent demand, freshness-dependent demand, and quality control. Moreover, existing MSS models do not consider multi-echelon supply chain structures.
This paper introduces a novel model by integrating multi-state systems with multi-echelon supply chain inventory models for perishable products, incorporating key factors, such as imperfect raw materials, stock-dependent demand, and variable production setups. Unlike previous work, this model incorporates the degraded state of machines, where machines remain operational but with reduced efficiency, and examines its impact on the overall performance of the inventory system. The production process is assumed to have a variable production rate, and the raw materials received are subject to a proportion of imperfect quality. Two distinct inventory models are developed: in the first model, imperfect raw materials are kept in stock after screening and sold at a salvage value, while in the second model, imperfect materials are kept in stock until the end of the inventory cycle and then returned to the supplier. In both models, demand for the product is dependent on the current stock level. The paper is structured into five main sections. Section 2 defines the assumptions and notations used. Section 3 describes the model, considering two cases of imperfect raw materials. In Section 4, the solution approach is presented and numerical experiments are conducted to analyse the performance of the model. Section 5 discusses the sensitivity analysis and managerial insights and practical relevance. Finally, the paper concludes with a summary of the research and suggestions for future work in Section 6.

2. Assumptions and Notations

2.1. Notations

The following notations are used during the development of the models presented in this paper:
ADemand parameter
ψ Aggregation parameter for some known variables
c d Deterioration cost per item
c r Unit cost of raw material
D [ I ( t ) ] Demand for the product
d 1 , 2 Proportion of defective units produced
τ Aggregation parameter for some known variables
F r Raw material ordering cost
G 1 , 2 Fixed set-up cost associated with stage i
h p Inventory carrying cost per item produced per time
h r Inventory carrying cost per unit of raw material per time
H M Hessian Matrix
I ( t ) Instantaneous inventory level
I 1 , 2 * Optimal inventory level
k 1 Initial production rate at the start of the cycle
k 2 Production rate following the shift respectively
ζ Increase in unit machining cost due to increase in the production rate
p c 1 Unit production cost at the start
p c 2 Unit production cost after the machine’s production rate has been scaled down
p l Lost production cost per product
QProduction batch size
Q s Quantity of good products sold at a normal price
Q * Optimal batch size
Q D p Quantity of deteriorated products
qFixed proportion of raw materials that are of imperfect quality
Per unit cost of running the machine independent of the production rate
ϕ including labour and energy costs
s p Market selling price of the product
s d Discounted unit selling price of imperfect finished products
s r Discounted unit selling price of imperfect raw material
TCycle time
T * Optimal cycle time
t i 1 , 2 Time duration of each phase of the cycle
t s Screening period
T C R M Total purchase cost of raw material
T H R Total carrying cost of raw material
T H C Total carrying cost of finished products
T D C Total deterioration cost
T P C Total production cost
T S C Total set-up cost
L P Lost production cost
T R Average revenue per time
T C Average total cost per cycle
T R Average revenue per cycle
T D C Total deterioration cost
T P C Total production cost
T S C Total set-up cost
L P Lost production cost
T R Average revenue per time
T C Average total cost per cycle
T R Average revenue per cycle
T P Average profit per cycle
θ ( t ) Deterioration rate per unit per time
γ Demand enhancement parameter for inventory level
ρ 1 , 2 , ξ , υ Aggregation parameters for some known variables
xScreening rate for imperfect raw material
yRaw material order size

2.2. Assumptions

Several assumptions are made to model the proposed inventory system. These assumptions include:
  • A single type of product is considered.
  • Deterioration is observed on manufactured products only.
  • The quality of all items produced does not always meet the quality standard; therefore, a proportion d i is considered to be defective in each stage of the production cycle.
Where d 1 > d 2
  • The entire cycle time T consists of three distinct time intervals: 0 , t 1 , t 1 , t 2 , and t 2 , T .
Where t 2 > t 1 and T > t 2
 
  • In the first interval 0 , t 1 , production occurs at the production rate k 1 while consumption happens at the demand rate D ( I ) .
  • In the second interval t 1 , t 2 , production continues at the rate k 2 , with consumption still occurring at the demand rate D ( I ) .
  • In the third interval t 2 , T , production stops completely, and only consumption takes place
  • At the start of the process, a production rate of k 1 is employed. After a time, t 1 , the decision maker switches to a lower production rate of k 2 .
With k 1 > K 2 .
  • The demand rate is dependent on the on-hand inventory and is of the form
    D ( I ) = A + γ I ( t )
    where A 0 is the base demand rate, independent of the inventory level, and γ > 0 is the demand enhancement parameter for inventory level I ( t ) > 0 .
  • The production cost per unit is of the form
    p k i = p c i + ϕ k i + ζ k i
    where p c i , ϕ , and ζ are non-negative constants. The cost of production is a combination of the following factors:
    • p c i is the fixed cost per unit produced, independent of the batch size
    • The factor ϕ k i indicates that there is a cost associated with the economy of scale in the batch that affects the unit fixed cost of production. As the production rate decreases, some costs like labour, energy, etc., increase.
    • The factor ζ k i is associated with machine and technology costs and is proportional to the production rate.
  • All the good products are sold at a unit selling price s p .
  • Process deterioration occurs in the production run period.
  • The changeover cost and time from k 1 to k 2 is assumed to be negligible.
  • The discounted unit selling price of imperfect raw material ( s r ) is always greater than the unit purchasing cost of raw material C r .
  • Some manufactured products are of imperfect quality and have to be discounted as a batch at a discounted price at the end of the cycle at a unit selling price s r .
  • The manufactured products are subject to deterioration. The deterioration function is of the form
    θ ( t ) = θ e θ t , for t > 0 0 , otherwise
  • It is assumed that the raw material does not deteriorate but contains a proportion q that is considered to be of imperfect quality.
  • There is no rework or replacement of poor quality products since it is handled by using in-house capacity.

3. Problem Description

3.1. First Scenario’s Formulation

We begin with the first scenario. This scenario is represented by Figure 1 and Figure 2. Figure 1 illustrates the inventory of raw materials, showing how perfect materials are separated from imperfect ones which are then used for production. Figure 2 depicts the inventory profile of finished goods produced. In this first scenario, it is assumed that the system starts production at a rate of k 1 (Figure 1). During the first part of the cycle, inventory accumulates at a rate 1 d 1 k 1 A γ I ( t ) θ I ( t ) , while the imperfect quality items accumulate at the rate d 1 k 1 and are sold at a discounted price as a single batch at the end of the cycle. An order of size y of raw materials is assumed to be placed and received prior to the start of the cycle because the production process requires input materials. However, the raw material delivered by the supplier for production contains a fixed percentage q that is assumed to be of poor quality. Therefore, a quantity y q is deemed to be of imperfect quality and only y ( 1 q ) units of raw materials received are used during the production cycle (Figure 1). It is also assumed that once the order is received, a 100 % screening process is conducted at a rate x, where x > k 1 . Therefore, the length of the screening period is:
t s = y x
Throughout the screening process, materials of perfect quality are separated from the imperfect ones and only perfect materials are used to produce items that are used to satisfy the demand. Therefore, the stock level of raw material used for production is depleted at a rate of k 1 until the end of the screening cycle. By this point, the production of finished products has already started at the rate k 1 (Figure 2), and the inventory of finished goods builds up until time t 1 . When the screening process stops, the quantity of raw material reaches a level of
y k 1 t s = y 1 k 1 x
The imperfect raw materials are separated from the perfect ones and sold as a single batch at a discounted price s r . Thus, the level of raw material in Equation (5) drops further by a quantity q y , as shown if Figure 1. The quantity of raw material left is
y k 1 t s q y = y 1 k 1 x q
Moreover, the production continues at the rate k 1 until the end of the first production cycle (Figure 2). At time t 1 , the raw material level in Equation (6) drops by a quantity
k 1 t 1 t s
Subtracting Equation (7) from Equation (6) results in
y k 1 t s q y k 1 t 1 t s = y ( 1 q ) k 1 t 1
At this time during the cycle, the number of perfect quality items produced reaches a level of inventory I 1 . However, it is assumed that the production rate switches over at t 1 (Figure 2), just after reaching the inventory level I 1 , and the system is automatically reconfigured to continue to be operational but at a lower production rate, k 2 k 2 < k 1 , to ensure the continuity of the service. The raw material in Equation (8) continues to decrease at a rate k 2 to produce finished products (Figure 2) until it reaches zero at the end of production cycle t 2 as described in Figure 1, and the inventory of perfect items produced accumulates at the rate 1 d 2 k 2 A γ I ( t ) θ I ( t ) until a level I 2 ( I 2 > I 1 ) is reached (Figure 2). In this section, the quantity of imperfect quality items accumulates at the rate d 2 k 2 . The production is then stopped at t 2 and good products are consumed up until the end of the cycle at time T. The cycle then repeats itself after time T.
The differential equations that represent the state of the production system in the interval [ 0 , T ] are given by
d I ( t ) d t + θ I ( t ) = 1 d 1 k 1 A γ I ( t ) 0 < t t 1
d I ( t ) d t + θ I ( t ) = 1 d 2 k 2 A γ I ( t ) t 1 < t t 2
d I ( t ) d t + θ I ( t ) = A γ I ( t ) t 2 < t T
Solving Equation (9a), we obtain
I ( t ) = 1 d 1 k 1 θ + γ A θ + γ + L 1 e ( θ + γ ) t
From Equation (10) under the boundary condition, I ( 0 ) = 0 , we obtain
L 1 = A θ + γ 1 d 1 k 1 θ + γ
Substituting Equation (11) into Equation (10) results in
I ( t ) = 1 d 1 k 1 θ + γ A θ + γ 1 e ( θ + γ ) t 0 t t 1
Solving Equation (9b), we obtain
I ( t ) = 1 d 2 k 2 θ + γ A θ + γ + L 2 e ( θ + γ ) t
From Equation (13) under the boundary condition, I ( t 1 ) = I 1 , we obtain
L 2 = I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 1
Substituting Equation (14) into Equation (13) results in
I ( t ) = 1 d 2 k 2 θ + γ A θ + γ + I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t t 1 t 1 t t 2
Solving Equation (9c), leads to
I ( t ) = A θ + γ + L 3 e ( θ + γ ) t
From Equation (16) under the boundary condition, I ( t 2 ) = I 2 , we obtain
L 3 = I 2 + A θ + γ e ( θ + γ ) t 2
Substituting Equation (17) into Equation (16) leads to
I ( t ) = A θ + γ + I 2 + A θ + γ e ( θ + γ ) t t 2 t 2 t T
From Equation (18), the inventory level, I ( t 1 ) , at time t 1 can be described by the following equation
I t 1 = 1 d 1 k 1 θ + γ A θ + γ 1 e ( θ + γ ) t 1
On the other hand, From Equation (15), we obtain
I t 1 = I 1
Equating Equations (19) and (20) leads to
I 1 = 1 d 1 k 1 θ + γ A θ + γ 1 e ( θ + γ ) t 1
Dividing both sides of Equation (21) by 1 d 1 k 1 θ + γ A θ + γ leads to
( θ + γ ) I 1 1 d 1 k 1 A = 1 e ( θ + γ ) t 1
e ( θ + γ ) t 1 = 1 ( θ + γ ) I 1 ( 1 d ) k 1 A
Solving for t 1 in Equation (23) results in
ln e ( θ + γ ) t 1 = ln 1 ( θ + γ ) I 1 1 d 1 k 1 A
t 1 = 1 ( θ + γ ) ln 1 ( θ + γ ) I 1 1 d 1 k 1 A
From Taylor’s series expansion, and the assumption that ( θ + γ ) 2 1 (neglecting higher powers of ( θ + γ ) , the expansion of the logarithmic function of Equation (25) leads to the following approximation
t 1 = 1 θ + γ ( θ + γ ) I 1 1 d 1 k 1 A ( θ + γ ) 2 I 1 2 2 1 d 1 k 1 A 2
= I 1 1 d 1 k 1 A + ( θ + γ ) I 1 2 2 1 d 1 k 1 A 2
= I 1 ρ 1 + ( θ + γ ) I 1 2 2 ρ 1 2
I 1 ρ 1
With
1 d 1 k 1 A = ρ 1
Thus, the time t 1 can be written in terms of the inventory, I 1 and so, t 1 is not a decision variable.
From Equation (15), under the boundary condition I ( t 2 ) = I 2 , we obtain
I 2 = 1 d 2 k 2 θ + γ A θ + γ + I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1
subtracting both sides of Equation (28) by 1 d 2 k 2 θ + γ A θ + γ leads to
I 2 1 d 2 k 2 θ + γ A θ + γ = I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1
Dividing both sides of Equation (29) by I 1 1 d 2 k 2 θ + γ A θ + γ leads to
( θ + γ ) I 2 1 d 2 k 2 + A θ + γ ( θ + γ ) I 1 1 d 2 k 2 + A θ + γ = e ( θ + γ ) t 2 t 1
( θ + γ ) I 1 1 d 2 k 2 + A 1 d 2 k 2 + A ( θ + γ ) I 2 1 d 2 k 2 + A 1 d 2 k 2 + A = e ( θ + γ ) t 2 t 1
e ( θ + γ ) t 2 t 1 = 1 ( θ + γ ) I 1 1 d 2 k 2 A 1 ( θ + γ ) I 2 1 d 2 k 2 A 1
Solving for t 2 in Equation (32) results in
ln e ( θ + γ ) t 2 t 1 = ln 1 ( θ + γ ) I 1 1 d 2 k 2 A 1 ( θ + γ ) I 2 1 d 2 k 2 A 1
t 2 t 1 = 1 θ + γ ln 1 ( θ + γ ) I 1 1 d 2 k 2 A 1 θ + γ ln 1 ( θ + γ ) I 2 1 d 2 k 2 A
From Taylor’s series expansion, and the assumption ( θ + γ ) 2 1 (neglecting higher powers of ( θ + γ ) , the expansion of the logarithmic function of Equation (34) leads to the following approximation
t 2 t 1 = 1 θ + γ ( θ + γ ) I 1 1 d 2 k 2 A ( θ + γ ) 2 I 1 2 2 1 d 2 k 2 A 2 1 θ + γ ( θ + γ ) I 2 1 d 2 k 2 A ( θ + γ ) 2 I 2 2 2 1 d 2 k 2 A 2
t 2 t 1 = I 2 I 1 1 d 2 k 2 A + ( θ + γ ) I 2 2 I 1 2 2 1 d 2 k 2 A 2
t 2 = I 2 I 1 ρ 2 + ( θ + γ ) I 2 2 I 1 2 2 ρ 2 2 + I 1 ρ 1 + ( θ + γ ) I 1 2 2 ρ 1 2
t 2 I 2 I 1 ρ 2 + I 1 ρ 1
with
1 d 2 k 2 A = ρ 2
Thus, the time, t 2 can be written in terms of the inventory levels I 1 and I 2 . Therefore, t 2 is not a decision variable.
From Equation (18), under the boundary condition I ( T ) = 0 , we obtain
0 = A θ + γ + I 2 + A θ + γ e ( θ + γ ) T t 2
Factoring out I 2 + A θ + γ from Equation (38), and solving for T yields
A θ + γ A + ( θ + γ ) I 2 θ + γ = e ( θ + γ ) T t 2
T t 2 = 1 ( θ + γ ) ln A + ( θ + γ ) I 2 A
For small values of ( θ + γ ) and using Taylor series approximation, we expand the logarithmic function in Equation (40) to obtain T as follows:
T t 2 1 ( θ + γ ) ( θ + γ ) A I 2 ( θ + γ ) 2 2 A 2 I 2 2
Substituting Equation (36b) into Equation (41) leads to
T = I 2 A ( θ + γ ) I 2 2 2 A 2 + I 2 I 1 ρ 2 + ( θ + γ ) I 2 2 I 1 2 2 ρ 2 2 + I 1 ρ 1 + ( θ + γ ) I 1 2 2 ρ 1 2
I 2 A + I 2 I 1 ρ 2 + I 1 ρ 1
1 A + 1 ρ 2 I 2 + 1 ρ 1 1 ρ 2 I 1
ψ I 2 + τ I 1
with
1 A + 1 ρ 2 = ψ
1 ρ 1 1 ρ 2 = τ
Extracting I 2 from Equation (42a), we obtain
I 2 = T τ I 1 ψ
= T ρ 2 ρ 1 ρ 1 ρ 2 I 1 ρ 2 + A A ρ 2
= ρ 1 ρ 2 T + ρ 1 ρ 2 I 1 ρ 1 ρ 2 A ρ 2 ρ 2 + A
= A ρ 1 ρ 2 ρ 1 ρ 2 + A T + A ρ 1 ρ 2 ρ 1 ρ 2 + A I 1
= ξ T + υ I 1
with
ξ = A ρ 1 ρ 2 ρ 1 ρ 2 + A
υ = A ρ 1 ρ 2 ρ 1 ρ 2 + A
The inventory, I 2 can be written in terms of I 1 and T. Therefore, I 2 is not a decision variable.

3.2. Manufacturer’s Cost Components

To find the optimal quantities, we first calculate the total cost per inventory cycle, which is the sum of the ordering cost, deterioration cost, production cost, setup cost for production, inventory holding, lost sales cost, lost production cost, shortage cost, and purchasing cost.

3.2.1. Manufacturer’s Ordering Cost of Raw Material

The ordering cost of raw materials is considered fixed and is represented by
O C r = F r

3.2.2. Manufacturer’s Inventory Holding Cost of Raw Material

The holding cost of raw material is the product of the average inventory and the holding cost per unit of raw material per unit time ( h r ). To find the average inventory of raw materials, we considered the area in Figure 1 and divided it by the cycle length. The graph in Figure 1 was decomposed into two trapezoids and a triangle, and then the area of each trapezoid was calculated and summed up to find the total area. Hence, the total area representing the inventory of raw material is given by
y + y k 1 t s 2 t s + y k 1 t s q y + y k 1 t 1 q y 2 t 1 t s + y k 1 t 1 q y 2 t 2 t 1
= 2 q y + k 1 t 1 2 t s + y q y k 1 t s 2 t 1 + y q y k 1 t 1 2 t 2
The quantity of raw material required for the exact production in each cycle is given by
y = k 1 t 1 + k 2 t 2 t 1 + q y
= k 1 t 1 + k 2 t 2 t 1 1 q
Substituting Equations (4) and (48b) into Equation (47b), we obtain
q k 1 t 1 + k 2 t 2 t 1 2 x ( 1 q ) 2 + k 1 k 2 t 1 2 + k 2 t 2 2 2
Substituting Equations (26d) and (36c) into Equation (49), leads to
q x ( 1 q ) 2 k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 2 + 1 2 k 1 k 2 I 1 ρ 1 2 + 1 2 k 2 I 2 I 1 ρ 2 + I 1 ρ 1 2
Hence, the inventory holding cost of raw materials is given by
T H R = h r q x ( 1 q ) 2 k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 2 + 1 2 k 1 k 2 I 1 ρ 1 2 + 1 2 k 2 I 2 I 1 ρ 2 + I 1 ρ 1 2

3.2.3. Manufacturer’s Purchasing Cost of Raw Material

To calculate the cost of procuring raw materials, T C R M , we multiplied the unit cost c r by the quantity y required for one production cycle. That is
T C R M = C r × y
Substituting Equation (48b) into Equation (52) leads to
T C R M = C r 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2

3.2.4. Manufacturer’s Set up

The setup cost in the manufacturing process varies over different intervals, denoted as S C , with specific values assigned during distinct periods. In the initial interval, from 0 to t 1 , the setup cost is represented by G 1 , reflecting the corresponding requirements and expenses during that phase. Subsequently, in the interval t 1 to t 2 , the setup cost transitions to G 2 , capturing the distinctive characteristics of the manufacturing setup during this later time frame
S C = G 1 0 t t 1 G 2 t 1 t t 2
Therefore, the total setup cost is given by the following:
T S C = G 1 + G 2

3.2.5. Manufacturer’s Inventory Holding Cost

The manufacturer incurs a holding cost, T H C , which is the product of the total holding inventory and the cost of holding a single unit per time unit h p . Thus,
T H C = h p 0 t 1 I ( t ) d t + t 1 t 2 I ( t ) d t + t 2 T I ( t ) d t
0 t 1 I ( t ) d t = 0 t 1 1 d 1 k 1 θ + γ A θ + γ 1 e ( θ + γ ) t d t
= 1 d 1 k 1 θ + γ A θ + γ 0 t 1 1 e ( θ + γ ) t d t
= 1 d 1 k 1 θ + γ A θ + γ t 1 + 1 θ + γ e ( θ + γ ) t 1
= 1 d 1 k 1 θ + γ A θ + γ t 1 + 1 θ + γ e ( θ + γ ) t 1 1 θ + γ ( 1 d ) k 1 θ + γ A θ + γ
= 1 θ + γ 1 d 1 k 1 A t 1 + 1 θ + γ e ( θ + γ ) t 1 1
Multiplying both sides of Equation (23) by 1 ( θ + γ ) leads to
I 1 1 d 1 k 1 A = 1 ( θ + γ ) 1 + e ( θ + γ ) t 1
Substituting Equations (26b) and (58) into Equation (57e), we obtain
= 1 θ + γ 1 d 1 k 1 A I 1 1 d 1 k 1 A + ( θ + γ ) I 1 2 2 1 d 1 k 1 A 2 I 1 1 d 1 k 1 A
= I 1 2 2 1 d 1 k 1 A
= I 1 2 2 ρ 1
t 1 t 2 I ( t ) d t = t 1 t 2 1 d 2 k 2 θ + γ A θ + γ + I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t t 1 d t
= 1 θ + γ 1 d 2 k 2 A t 2 1 θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1 1 θ + γ 1 d 2 k 2 A t 1 + 1 θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 1 t 1
= 1 θ + γ 1 d 2 k 2 A t 2 1 θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1 1 θ + γ 1 d 2 k 2 A t 1 + 1 θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 1 t 1
= 1 θ + γ 1 d 2 k 2 A t 2 t 1 1 θ + γ 1 d 2 k 2 θ + γ A θ + γ 1 θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1 + 1 θ + γ I 1
Multiplying both sides of Equation (28) by 1 θ + γ results in
1 ( θ + γ ) 1 d 2 k 2 θ + γ A θ + γ 1 ( θ + γ ) I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1 = 1 θ + γ I 2
Substituting Equations (36a) and (65) into Equation (64), we obtain
= 1 θ + γ 1 d 2 k 2 A I 2 I 1 1 d 2 k 2 A + ( θ + γ ) I 2 2 I 1 2 2 1 d 2 k 2 A 2 1 θ + γ I 2 + 1 θ + γ I 1
= I 2 2 I 1 2 2 ρ 2
t 2 T I ( t ) d t = t 2 T A θ + γ + I 2 + A θ + γ e ( θ + γ ) t t 2 d t
= A θ + γ T t 2 1 θ + γ A θ + γ + I 2 + A θ + γ e ( θ + γ ) T t 2 + 1 θ + γ I 2
Using Equation (38) to simplify Equation (68) leads to
A θ + γ t 3 t 2 1 θ + γ 0 + 1 θ + γ I 2
= I 2 2 2 A
Summing up Equations (60b), (66b), and (69b), we obtain the following expression for the total inventory carrying cost over the period [ 0 , T ] :
T H C = h p I 1 2 2 ρ 1 + I 2 2 I 1 2 2 ρ 2 + I 2 2 2 A

3.2.6. Manufacturer’s Deterioration Cost

The total number of deteriorated items is obtained by integrating the deterioration function over the interval [ 0 , T ] . Therefore,
Q D p = 0 t 1 1 d 1 k 1 A γ I ( t ) d t + t 1 t 2 1 d 2 k 2 A γ I ( t ) d t t 2 T [ A + γ I ( t ) ] d t
In order to evaluate the total number of deteriorating products ( Q D p ), we proceed by solving each integral in Equation (71).
0 t 1 1 d 1 k 1 A γ I ( t ) d t = 0 t 1 1 d 1 k 1 A γ 1 d 1 k 1 θ + γ A θ + γ 1 e ( θ + γ ) t d t
= 1 d 1 k 1 A I 1 ( 1 d ) k 1 A + ( θ + γ ) I 1 2 2 ( 1 d ) k 1 A 2 γ θ + γ 1 d 1 k 1 A t 1 + 1 θ + γ e ( θ + γ ) t 1 1
Substituting Equations (26a) and (58) into equation (73), we obtain
I 1 + θ I 1 2 2 1 d 1 k 1 A
t 1 t 2 1 d 1 k 2 A γ I ( t ) ] d t = t 1 t 2 1 d 2 k 2 A d t γ t 1 t 2 1 d 2 k 2 θ + γ A θ + γ d t γ t 1 t 2 I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t t 1 d t
Equation (75) can be integrated separately as follows:
t 1 t 2 1 d 2 k 2 A d t = 1 d 2 k 2 A t 2 t 1
Substituting Equation (36a) in Equation (76), we obtain
I 2 I 1 + ( θ + γ ) I 2 2 I 1 2 2 1 d 2 k 2 A
t 1 t 2 1 d 2 k 2 θ + γ A θ + γ d t = 1 ( θ + γ ) 1 d 2 k 2 A t 2 t 1
Substituting Equation (36a) into Equation (78), we obtain
= 1 ( θ + γ ) I 2 I 1 + I 2 2 I 1 2 2 1 d 2 k 2 A
t 1 t 2 I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t t 1 d t
= 1 ( θ + γ ) 1 d 2 k 2 θ + γ A θ + γ 1 ( θ + γ ) I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1 + 1 ( θ + γ ) I 1
Substituting Equation (65) into Equation (81), we obtain
I 2 I 1 θ + γ
Combining Equations (77), (79), and (82) yields the revised form of Equation Equation (75), which can be expressed as
= I 2 I 1 + θ I 2 2 I 1 2 2 1 d 2 k 2 A
t 2 T [ A + γ I ( t ) ] d t = t 2 T A d t + γ t 2 T A θ + γ + I 2 + A θ + γ e ( θ + γ ) t t 2 d t
= I 2 ( θ + γ ) I 2 2 2 A γ A θ + γ T t 2 γ θ + γ A θ + γ + I 2 + A θ + γ e ( θ + γ ) T t 2 + γ θ + γ I 2
Using Equations (38) and (41) to simplify Equation (85) leads to
I 2 θ I 2 2 2 A
Summing up Equations (74), (83), and (86) yields the total quantity of degraded products throughout the entire cycle. This is represented by
Q D p = θ I 1 2 2 ρ 1 + θ I 2 2 I 1 2 2 ρ 2 + θ I 2 2 2 A
Hence, the manufacturer’s cost for deteriorating inventory, T C D , is obtained by multiplying the quantity of deteriorated products Q D p by the unit cost of a deteriorating unit c d
T C D = C d θ I 1 2 2 ρ 1 + θ I 2 2 I 1 2 2 ρ 2 + θ I 2 2 2 A

3.2.7. Manufacturer’s Production Cost

The total production cost over the period [ 0 , T ] is given by
T P C = 1 ( 1 q ) p c 1 + ϕ k 1 + ζ k 1 k 1 t 1 + 1 ( 1 q ) p c 2 + ϕ k 2 + ζ k 2 k 2 t 2 t 1
= 1 ( 1 q ) p c 1 + ϕ k 1 + ζ k 1 k 1 I 1 ρ 1 + 1 ( 1 q ) p c 2 + ϕ k 2 + ζ k 2 k 2 I 2 I 1 ρ 2

3.2.8. Manufacturer’s Lost Production Cost

In many practical cases, a penalty is incurred if the producer fails to deliver the agreed quantity in time. The lost production cost captures the penalty involved due to the above reasons and it represents the opportunity cost for not producing the planned quantity, k 1 t 2 . Mathematically, it can be written as
L P = p l k 1 k 2 t 2 t 1 = p l k 1 k 2 I 2 I 1 ρ 2

3.2.9. Manufacturer’s Total Cost per Time

The total cost is the sum of all the costs incurred at each of the two echelons. Therefore, the total cost per unit time, C T , is the sum of Equations (46), (51), (53), (55), (70), (88), (89b), and (90) dived by the cycle time T. The mathematical expression of the average total cost is thus
T C 1 = 1 T 1 ( 1 q ) p c 1 + ϕ k 1 + ζ k 1 k 1 I 1 ρ 1 + 1 ( 1 q ) p c 2 + ϕ k 2 + ζ k 2 k 2 I 2 I 1 ρ 2 + p l k 1 k 2 I 2 I 1 ρ 2 + h p I 1 2 2 ρ 1 + I 2 2 I 1 2 2 ρ 2 + I 2 2 2 A + c d θ I 1 2 2 ρ 1 + θ I 2 2 I 1 2 2 ρ 2 + θ I 2 2 2 A + G 1 + G 2 + c r 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 + q h r x ( 1 q ) 2 k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 2 + 1 2 h r k 1 k 2 I 1 ρ 1 2 + 1 2 h r k 2 I 2 I 1 ρ 2 + I 1 ρ 1 2 + F r

3.2.10. Manufacturer’s Total Revenue per Time

The total revenue function ( T R ) represents the sum of revenue from sales of finished products with perfect quality and discounted sales of imperfect items produced, as well as imperfect raw materials. That is
T R 1 = s p Q s + s d ( 1 q ) d 1 k 1 t 1 + d 2 k 2 t 2 t 1 + s r q k 1 t 1 + k 2 t 2 t 1 1 q
With Q s representing the total quantity of products of good quality sold, which is obtained by integrating the demand function, D [ I ( t ) ] , over the specified time intervals [ 0 , t 1 ] , [ t 1 , t 2 ] , and [ t 2 , T ] , respectively. Hence, the quantity Q s is
Q s = 0 t 1 D [ I ( t ) ] d t + t 1 t 2 D [ I ( t ) ] d t + t 2 T D [ I ( t ) ] d t
Integrating each component of Equation (93) separately yields
0 t 1 D [ I ( t ) ] d t = 0 t 1 A + γ 1 d 1 k 1 θ + γ A θ + γ 1 e ( θ + γ ) t d t
= A t 1 + γ 1 d 1 k 1 θ + γ A θ + γ t 1 + 1 ( θ + γ ) 1 + e ( θ + γ ) t 1
Substituting Equations (22) and (26d) into Equation (95), we obtain
= A I 1 ρ 1 + γ I 1 2 2 ρ 1
The solution of the second integral is
t 1 t 2 D [ I ( t ) ] d t = t 1 t 2 A + γ 1 d 2 k 2 θ + γ A θ + γ + I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t t 1 d t .
= A t 2 t 1 + γ 1 d 2 k 2 θ + γ A θ + γ t 2 t 1 γ θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1 + γ θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ .
By substituting Equation (36c) in Equation (98), we obtain
= A I 2 I 1 ( 1 d ) k 2 A + γ 1 d 2 k 2 θ + γ A θ + γ I 2 I 1 ( 1 d ) k 2 A + ( θ + γ ) I 2 2 I 1 2 2 ( 1 d ) k 2 A 2 γ θ + γ I 1 1 d 2 k 2 θ + γ A θ + γ e ( θ + γ ) t 2 t 1 γ θ + γ 1 d 2 k 2 θ + γ A θ + γ + γ I 1 θ + γ
Substituting Equation (65) into Equation (99) results in
A I 2 I 1 ρ 2 + γ I 2 2 I 1 2 2 ρ 2
Lastly, the third integral yields
t 2 T D [ I ( t ) ] d t = t 2 T A d t + γ t 2 T A θ + γ + I 2 + A θ + γ e ( θ + γ ) t t 2 d t
= I 2 ( θ + γ ) I 2 2 2 A γ A θ + γ T t 2 γ θ + γ A ( θ + γ ) + I 2 + A θ + γ e ( θ + γ ) T t 2 + γ θ + γ I 2
Substituting Equation (38) into Equation (102) leads to
I 2 θ I 2 2 2 A
Q s is then obtained by grouping together Equations (96), (100), and (103)
Q s = A I 1 ρ 1 + γ I 1 2 2 ρ 1 + A I 2 I 1 ρ 2 + γ I 2 2 I 1 2 2 ρ 2 + I 2 θ I 2 2 2 A
Therefore, the total revenue is
T R 1 = s p A + k 1 s d ( 1 q ) d 1 + k 1 s r q 1 q I 1 ρ 1 + s p A + k 2 s d ( 1 q ) d 2 + k 2 s r q 1 q I 2 ρ 2 I 1 ρ 2 + s p γ I 1 2 2 ρ 1 γ I 1 2 2 ρ 2 + I 2 + γ 2 ρ 2 θ 2 A I 2 2
Dividing the above equation by T, we obtain the average revenue per cycle
T R 1 = 1 T s p A + k 1 s d ( 1 q ) d 1 + k 1 s r q 1 q I 1 ρ 1 + s p A + k 2 s d ( 1 q ) d 2 + k 2 s r q 1 q I 2 ρ 2 I 1 ρ 2 + s p γ I 1 2 2 ρ 1 γ I 1 2 2 ρ 2 + I 2 + γ 2 ρ 2 θ 2 A I 2 2

3.2.11. Manufacturer’s Net Profit per Time

The net profit per time is obtained by subtracting the total cost per time from the total revenue generated. That is
T P = T R C T
T P 1 = 1 T s p A + k 1 s d ( 1 q ) d 1 + k 1 s r q 1 q I 1 ρ 1 + s p A + k 2 s d ( 1 q ) d 2 + k 2 s r q 1 q I 2 ρ 2 I 1 ρ 2 + s p γ I 1 2 2 ρ 1 γ I 1 2 2 ρ 2 + I 2 + γ 2 ρ 2 θ 2 A I 2 2 1 T 1 ( 1 q ) p c 1 + ϕ k 1 + ζ k 1 k 1 I 1 ρ 1 + 1 ( 1 q ) p c 2 + ϕ k 2 + ζ k 2 k 2 I 2 I 1 ρ 2 + p l k 1 k 2 I 2 I 1 ρ 2 + h p I 1 2 2 ρ 1 + I 2 2 I 1 2 2 ρ 2 + I 2 2 2 A + c d θ I 1 2 2 ρ 1 + θ I 2 2 I 1 2 2 ρ 2 + θ I 2 2 2 A + G 1 + G 2 + c r 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 + q h r x ( 1 q ) 2 k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 2 + 1 2 h r k 1 k 2 I 1 ρ 1 2 + 1 2 h r k 2 I 2 I 1 ρ 2 + I 1 ρ 1 2 + F r

3.3. Second Scenario’s Formulation

Now, we develop the mathematical model for the second scenario. In this scenario, imperfect raw materials that have been screened are retained until the end of the cycle and returned to the supplier upon arrival of the next order. The inventory profile of raw materials is shown in Figure 3.
To find the total profit inventory levels, we calculate the total cost per cycle, which is identical to that of the first scenario except for the holding cost of the raw material. The area under the curve representing the inventory level in Figure 3 is
y y k 1 t 1 t 1 2 + y k 1 t 1 q y t 1 + t 2 2 + q y T = k 1 t 1 2 2 + y q y k 1 t 1 t 2 2 + q y T
Substituting Equations (48a) and (48b) into Equation (109), we obtain
k 1 t 1 2 2 + k 2 t 2 t 1 t 1 + t 2 2 + q k 1 t 1 + k 2 t 2 t 1 1 q T

Manufacturer’s Inventory Holding Cost of Raw Material

The inventory cost of holding raw material is calculated by multiplying the unit holding cost of the raw material by the area represented in Figure 3, resulting in the total holding cost of raw material. Hence, the total holding cost of raw material is
T H R = h r k 1 t 1 2 2 + k 2 t 2 t 1 t 1 + t 2 2 + q k 1 t 1 + k 2 t 2 t 1 1 q T
Substituting Equations (26d) and (36c) into Equation (111) leads to
H R = h r k 1 2 I 1 ρ 1 2 + k 2 2 I 2 I 1 ρ 2 I 2 I 1 ρ 2 + 2 I 1 ρ 1 + q 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 T
where
t 2 + t 1 = I 2 I 1 ρ 2 + 2 I 1 ρ 1

3.4. Manufacturer’s Total Cost per Time

The mathematical expression for the average total cost incurred, T C , is obtained by combining Equations (46), (51), (53), (55), (70), (88), (89b), and (112) divided by the cycle time T. Hence, the total cost per time is
T C 2 = 1 T 1 ( 1 q ) p c 1 + ϕ k 1 + ζ k 1 k 1 I 1 ρ 1 + 1 ( 1 q ) p c 2 + ϕ k 2 + ζ k 2 k 2 I 2 I 1 ρ 2 + p l k 1 k 2 I 2 I 1 ρ 2 + h p I 1 2 2 ρ 1 + I 2 2 I 1 2 2 ρ 2 + I 2 2 2 A + c d θ I 1 2 2 ρ 1 + θ I 2 2 I 1 2 2 ρ 2 + θ I 2 2 2 A + G 1 + G 2 + c r 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 + h r k 1 2 I 1 ρ 1 2 + h r k 2 2 I 2 I 1 ρ 2 I 2 I 1 ρ 2 + 2 I 1 ρ 1 + h r q 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 T + F r

3.5. Manufacturer’s Total Revenue per Time

Since a portion of the scanned raw material is of poor quality and the decision-maker chooses to retain it until the end of the cycle and return it to the supplier, rather than selling it and recovering a portion of the cost of purchasing raw materials, the mathematical expression of the total revenue per time for this new scenario is thus defined as follows:
T R 2 = s p Q s + s d ( 1 q ) d 1 k 1 t 1 + d 2 k 2 t 2 t 1
T R 2 = 1 T s p A + k 1 s d ( 1 q ) d 1 I 1 ρ 1 + s p A + k 2 s d ( 1 q ) d 2 I 2 ρ 2 I 1 ρ 2 + s p γ I 1 2 2 ρ 1 + γ I 2 2 I 1 2 2 ρ 2 + I 2 θ I 2 2 2 A

3.6. Manufacturer’s Net Profit per Time

The net profit generated is the difference between the revenue generated and the total cost incurred across the entire system. The mathematical formulation of the proposed scenario is thus,
T P 2 = 1 T s p A + k 1 s d ( 1 q ) d 1 I 1 ρ 1 + s p A + k 2 s d ( 1 q ) d 2 I 2 ρ 2 I 1 ρ 2 + s p γ I 1 2 2 ρ 1 + γ I 2 2 I 1 2 2 ρ 2 + I 2 θ I 2 2 2 A 1 T 1 ( 1 q ) p c 1 + ϕ k 1 + ζ k 1 k 1 I 1 ρ 1 + 1 ( 1 q ) p c 2 + ϕ k 2 + ζ k 2 k 2 I 2 I 1 ρ 2 + p l k 1 k 2 I 2 I 1 ρ 2 + h p I 1 2 2 ρ 1 + I 2 2 I 1 2 2 ρ 2 + I 2 2 2 A + c d θ I 1 2 2 ρ 1 + θ I 2 2 I 1 2 2 ρ 2 + θ I 2 2 2 A + G 1 + G 2 + c r 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 + h r k 1 2 I 1 ρ 1 2 + h r k 2 2 I 2 I 1 ρ 2 I 2 I 1 ρ 2 + 2 I 1 ρ 1 + h r q 1 q k 1 I 1 ρ 1 + k 2 I 2 I 1 ρ 2 T + F r

4. Solution

4.1. Determination of the Decision Variables

The aim is to determine the optimum values of I 1 and T to maximize the total profit of the inventory system. The optimum values of I 1 and T for the maximum profit are the solutions of the equations
( T P ) I 1 = 0
( T P ) T = 0

4.2. Solution Methodology

Due to the highly non-linear nature of the model, an analytical approach was infeasible. Thus, we employed a numerical optimisation approach using the Newton–Raphson algorithm to determine the optimal values of the decision variables I 1 and T. The solution methodology, as illustrated in Figure 4, begins with the definition of the problem for both scenarios. An optimisation algorithm is then employed to maximise the profit functions T P 1 and T P 2 for each scenario by finding the optimum values of the stock levels I 1 and cycle time T. The optimal profits from both scenarios are compared, and the scenario yielding the higher profit is selected as the best-case solution.

4.3. Optimality Condition

Now, the problem is to determine the optimal values of I 1 and T which maximise the net profit function, T P . Since T P is a function of two variables I 1 and T, where both are continuous variables, for any optimal value of I 1 and T, the necessary conditions have to be met
2 ( T P ) I 1 2 0
2 ( T P ) T 2 0
H M = 2 ( T P ) I 1 2 2 ( T P ) I 1 T 2 ( T P ) T I 1 2 ( T P ) T 2 0
which is verified numerically. The nature of the objective function is also shown graphically in Figure 5.

4.4. Numerical Results

This section presents a numerical example to illustrate the applicability of the proposed inventory model. The input parameters for this model are provided in Table 2.
Upon evaluating the policy in which imperfect quality items are sold, the optimal inventory level I 1 and optimal cycle time T are 11,774 units and 2140 h, respectively. The optimal number of items produced during a production cycle Q * is 91,606, with an optimal order quantity y * of 101,785 units (see Table 3). The initial production period is denoted as t 1 = 308 h, while the entire production period is represented by t 2 = 1497 h. The maximum stock level attained, denoted as I 2 , amounts to 25,688 units. The total cost is calculated as USD 7300.2 per hour, while the total revenue per hour is USD 7483. Consequently, the maximum total profit per hour is determined to be USD 183.
In contrast, when the imperfect quality items are returned, the optimal inventory level I 1 and optimal cycle time T are 26,349 units and 4702.6 h respectively. The optimal number of items produced during the production cycle is found to be 2.01 × 10 5 , with an optimal order quantity y * of 2.24 × 10 5 units of raw material. The first production period denoted as t 1 , amounts to 6.9 × 10 2 h, while the entire production period t 2 is calculated as 3.28 × 10 3 h. The total inventory carried during this scenario, I 2 , is determined to be 56,711.7 units. The total cost per time is assessed as USD 17,426.2, whereas the total revenue per time is USD 13,017.8. The total profit per time is estimated to be USD 4.4 × 10 3 . In the case where imperfect quality items are returned, the negative maximum total profit per cycle indicates that the overall financial outcome is unfavourable. This means that the costs of managing such a system outweigh the potential revenue generated from the sale.
Based on the analysis in Table 3, the optimal operating policy suggests selling the imperfect raw material instead of returning it to the supplier when the subsequent order is received. The return scenario results in a negative profit, suggesting that managing the imperfect raw material by keeping it in stock leads to higher costs than the revenue generated.
To verify whether the solution obtained from the profit function per hour in Equations (108) and (117) are truly optimal, the sufficiency conditions for optimality are established by substituting the provided data into Equations (120) and (122). The results confirm that all the two minors in Equation (108) satisfy the necessary conditions H 1 = 2 f I 1 2 = 0.00 and H = 0.00 , indicating that the profit function is positive (semi)definite. The graphical representation is presented in Figure 5, Figure 6 and Figure 7 to illustrate the relationship between the profit function and the two decision variables.

5. Sensitivity Analysis and Managerial Implications

5.1. Sensitivity Analysis

A sensitivity analysis is performed to assess the impact of various parameters. To perform the sensitivity analysis, one parameter is varied at a time within a range of −20% to +20%, while keeping all other parameters constant. The influence of these parameters on I 1 , T and T P is detailed in Table 4. Figure 8, Figure 9 and Figure 10 provide graphical representations of how these variations affect the inventory I 1 , the cycle time, T and the total profit per hour, T P . Based on these results, the following inferences can be drawn
  • The stock level, I 1 is insensitive to c r , d 1 , F r , G 1 , G 2 , p c 1 , p c 2 , p l , q , s r , x , and ζ .
  • The stock level, I 1 , is moderately sensitive to changes in c d and s d .
  • The stock level, I 1 , is highly sensitive to changes in k 1 , h r , h p , d 2 , s p , γ , and θ . It is highly sensitive in a positive way to the demand enhancement parameter, γ and in a negative way to the deterioration parameter, θ (Figure 8).
  • The cycle time, T is insensitive to c r , d 1 , F r , G 1 , G 2 , p c 1 , p c 2 , p l , q , s r , x , and ζ .
  • The cycle time, T, is moderately sensitive to changes in k 1 , c d and s d .
  • The cycle time, T, is highly sensitive to changes in s p , h r , θ , γ , h p , and d 2 . The most significant changes occur with respect to s p , h r , θ , γ , h p , and d 2 (Figure 9).
  • The profit per time is insensitive to changes s r .
  • The profit per time is moderately sensitive to changes in d 1 , d 2 , F r , G 1 , G 2 , p c 1 p l , s d , ζ , μ , x , and q.
  • The profit per time is highly sensitive to changes in k 1 , c r , c d , h p , h r s p , θ , and γ (Figure 10).
Table 4. Sensitivity analysis for various inventory model parameters.
Table 4. Sensitivity analysis for various inventory model parameters.
% ChangeInventory Level I 1 Inventory Level I 2 Production Time t 1 Production Cycle t 2 Cycle Time TProfit Per Time TP
Units % Change Units % Change Hours % Change Hours % Change Hours % Change USD % Change
Base 11,774 25,688 308.2 1497.4 2139.6 182.7
k 1 −2014,43123%25,825.18−1%639.672108%1613.5338%2259.1636%−329.162−280.10%
−1012,548.266.6%25,578.64−0.4%413.043634.01%1526.7511.96%2166.2171.24%15.88079−91.31%
1011,381.29−3%25,863.591%247.3118−20%1485.116−1%2131.7050%276.489951.28%
2011,150.04−5%26,037.091%207.0958−33%1479.493−1%2130.420%335.185383.40%
k 2 −20************
−10************
10************
20************
c r −2011,733.18−0.3%25,665.84−0.1%307.1513−0.3%1497.9770.0%2139.6220.0%236.846729.6%
−1011,732.17−0.4%25,665.29−0.1%307.1248−0.4%1497.990.0%2139.6220.0%213.223616.7%
1011,730.14−0.4%25,664.2−0.1%307.0717−0.4%1498.0170.0%2139.6220.0%165.9775−9.2%
2011,729.12−0.4%25,663.66−0.1%307.0451−0.4%1498.0310.0%2139.6220.0%142.3545−22.1%
c d −2012,556.96.7%27,990.249.0%328.71466.7%1647.80410.0%2347.569.7%235.748929.0%
−1012,145.423.2%26,780.654.3%317.94293.2%1568.8184.8%2238.3344.6%209.153414.4%
1011,436.55−2.9%24,695.65−3.9%299.3861−2.9%1432.643−4.3%2050.034−4.2%156.5705−14.3%
2011,129.06−5.5%23,790.6−7.4%291.3366−5.5%1373.519−8.3%1968.284−8.0%130.5657−28.6%
h p −2014,107.4919.8%32,545.6126.7%369.306119.8%1945.21329.9%2758.85428.9%316.868773.4%
−1012,779.668.5%28,644.9111.5%334.5468.5%1690.55112.9%2406.67312.5%249.126736.3%
1010,985.27−6.7%23,367.21−9.0%287.5725−6.7%1345.858−10.1%1930.039−9.8%117.6313−35.6%
2010,350.4−12.1%21,496.2−16.3%270.9528−12.1%1223.585−18.3%1760.99−17.7%53.60253−70.7%
h r −2015,198.329.1%39,955.7455.5%397.861429.1%2513.88167.9%3512.77564.2%586.8514221.1%
−1012,966.2510.1%30,671.619.4%339.430710.1%1852.70823.7%2619.49922.4%372.6779103.9%
1011,022.99−6.4%22,538.3−12.3%288.56−6.4%1272.775−15.0%1836.232−14.2%10.87292−94.1%
2010,501.85−10.8%20,347.14−20.8%274.9175−10.8%1116.395−25.4%1625.074−24.0%−146.916−180.4%
d 1 −2011,703.26−0.6%25,766.780.3%295.8356−4.0%1497.8460.0%2142.0160.1%198.36138.5%
−1011,737.78−0.3%25,728.080.2%301.8977−2.0%1497.6490.0%2140.8510.1%190.7694.4%
1011,811.460.3%25,646.1−0.2%314.80442.1%1497.2530.0%2138.405−0.1%174.3176−4.6%
2011,850.830.7%25,602.65−0.3%321.68374.4%1497.0530.0%2137.119−0.1%165.4014−9.5%
d 2 −209996.045−15.1%21,230.36−17.4%261.6766−15.1%1170.602−21.8%1701.361−20.5%149.1516−18.4%
−1010,790.05−8.4%23,243.49−9.5%282.4621−8.4%1317.661−12.0%1898.748−11.3%167.5612−8.3%
1013,012.1810.5%28,708.3111.8%340.633110.5%1721.11914.9%2438.82614.0%194.34936.3%
2014,602.2124.0%32,520.7526.6%382.256724.0%2005.31333.9%2818.33231.7%201.861710.4%
% ChangeInventory Level I 1 Inventory Level I 2 Production Time t 1 Production Cycle t 2 Cycle Time TProfit Per Time TP
Units% ChangeUnits% ChangeHours% ChangeHours% ChangeHours% ChangeUSD% Change
Base 11,774 25,688 308.2 1497.4 2139.6 182.7
F r −2011,797.80.2%26,350.570.3%243.75620.2%1487.5820.3%2146.3470.3%265.84791.0%
−1011,797.940.2%26,351.090.3%243.75920.2%1487.6180.3%2146.3950.3%265.77681.0%
1011,798.230.2%26,352.140.3%243.7650.2%1487.6890.3%2146.4920.3%259.5417−1.4%
2011,798.370.2%26,352.660.3%243.7680.2%1487.7240.3%2146.5410.3%259.4705−1.4%
G 1 −2011,797.80.2%26,350.570.3%243.75620.2%1487.5820.3%2146.3470.3%265.84791.0%
−1011,797.940.2%26,351.090.3%243.75920.2%1487.6180.3%2146.3950.3%265.77681.0%
1011,798.230.2%26,352.140.3%243.7650.2%1487.6890.3%2146.4920.3%259.5417−1.4%
2011,798.370.2%26,352.660.3%243.7680.2%1487.7240.3%2146.5410.3%259.4705−1.4%
G 2 −2011,797.80.2%26,350.570.3%243.75620.2%1487.5820.3%2146.3470.3%265.84791.0%
−1011,797.940.2%26,351.090.3%243.75920.2%1487.6180.3%2146.3950.3%265.77681.0%
1011,798.230.2%26,352.140.3%243.7650.2%1487.6890.3%2146.4920.3%259.5417−1.5%
2011,798.370.2%26,352.660.3%243.7680.2%1487.7240.3%2146.5410.3%259.4705−1.4%
q−2011,797.310.2%25,759.490.3%308.83020.2%1502.1790.3%2146.1660.3%195.97317.2%
−1011,785.730.1%25,724.330.1%308.52690.1%1499.8610.2%2142.9690.2%189.47293.7%
1011,761.56−0.1%25,650.07−0.1%307.8943−0.1%1494.947−0.2%2136.198−0.2%175.837−3.8%
2011,748.95−0.2%25,610.84−0.3%307.5641−0.2%1492.341−0.3%2132.612−0.3%168.6847−7.7%
p c 1 −2011,805.950.2%26,356.150.3%243.92460.2%1487.5310.3%2146.4350.3%265.84791.0%
−1011,805.950.2%26,356.150.3%243.92460.2%1487.5310.3%2146.4350.3%265.77681.0%
1011,794.150.1%26,349.340.3%243.68080.1%1487.7140.3%2146.4470.3%259.1424−1.5%
2011,790.210.1%26,347.050.3%243.59950.1%1487.7740.3%2146.450.3%258.7189−1.7%
p c 2 −2011,763.03−0.1%25,682.150.0%307.9326−0.1%1497.6020.0%2139.6560.0%194.01076.2%
−1011,768.420.0%25,685.020.0%308.07390.0%1497.5270.0%2139.6520.0%188.38643.1%
1011,779.210.0%25,690.730.0%308.35620.0%1497.3750.0%2139.6440.0%177.142−3.1%
2011,784.60.1%25,693.570.0%308.49730.1%1497.2980.0%2139.6380.0%171.5219−6.2%
s p -209162.811−22.2%16,467.65−35.9%239.8642−22.2%864.2094−42.3%1275.901−40.4%−448.272−345.3%
−1010,190.6−13.4%20,087.36−21.8%266.7697−13.4%1112.646−25.7%1614.83−24.5%−150.709−182.5%
1014,697.9824.8%35,875.7939.7%384.76424.8%2194.83346.6%3091.72844.5%547.3447199.5%
2021,974.5786.6%61,238.88138.4%575.250686.6%3931.175162.5%5462.147155.3%954.2402422.1%
s d −2011,643.96−1.1%25,407.7−1.1%304.8158−1.1%1481.203−1.1%2116.396−1.1%176.6317−3.4%
−1011,714.28−0.5%25,550.63−0.5%306.6566−0.5%1489.251−0.5%2128.017−0.5%178.8303−2.2%
1011,844.140.6%25,830.830.6%310.05590.6%1505.50.5%2151.2710.5%184.96251.2%
2011,914.461.2%25,973.781.1%311.89671.2%1513.5481.1%2162.8931.1%187.16152.4%
% ChangeInventory Level I 1 Inventory Level I 2 Production Time t 1 Production Cycle t 2 Cycle Time TProfit Per Time TP
Units% ChangeUnits% ChangeHours% ChangeHours% ChangeHours% ChangeUSD% Change
Base 11,774 25,688 308.2 1497.4 2139.6 182.7
s r −2011,758.82−0.1%25,656.21−0.1%307.8225−0.1%1495.634−0.1%2137.039−0.1%182.5303−0.1%
−1011,782.520.1%25,692.480.0%308.44290.1%1497.3280.0%2139.640.0%183.19720.0%
1011,842.750.1%26,414.680.1%244.6850.1%1490.1480.1%2150.5150.1%402.08930.0%
2011,855.250.2%26,441.690.2%244.94320.2%1491.6480.2%2152.690.2%402.28080.1%
p l −2011,780.440.1%25,691.380.0%308.38850.1%1497.3580.0%2139.6420.0%185.36571.4%
−1011,782.520.1%25,692.480.0%308.44290.1%1497.3280.0%2139.640.0%183.19720.2%
1011,786.680.1%25,694.660.0%308.55170.1%1497.2690.0%2139.6350.0%178.8608−2.1%
2011,788.750.1%25,695.760.0%308.60610.1%1497.2390.0%2139.6330.0%176.693−3.3%
θ −20************
−1022,847.5894.1%55,609.58116.5%598.104194.1%3398.276126.9%4788.515123.8%435.4929138.3%
108594.993−27.0%17,325.09−32.6%224.9998−27.0%971.1622−35.1%1404.289−34.4%−30.6755−116.8%
207439.443−36.8%14,587.4−43.2%194.7498−36.8%805.6861−46.2%1170.371−45.3%−372.906−304.0%
γ −208069.15−31.5%13,683.08−46.7%211.2343−31.5%691.0573−53.9%1033.134−51.7%−855.452−568.1%
−108792.166−25.3%16,346.28−36.4%230.1614−25.3%875.812−41.5%1284.469−40.0%−279.244−252.8%
1041,927.51256.1%116,572353.8%1097.579256.1%7477.451399.3%10,391.75385.7%689.3271277.2%
20************
ζ −2011,786.080.1%25,694.350.0%308.53610.1%1497.2770.0%2139.6360.0%211.040215.5%
−1011,7790.0%25,684.790.0%308.35080.0%1496.880.0%21390.0%197.1057.8%
1011,767−0.1%25,678.350.0%308.0366−0.1%1497.0410.0%21390.0%168.7895−7.6%
2011,761−0.1%25,675.130.0%307.8796−0.1%1497.1220.0%21390.0%154.6335−15.4%
μ −2011723−0.4%25428.43−1.0%306.8848−0.4%1478.289−1.3%2114−1.2%208.410314.0%
−1011,748−0.2%25,559.53−0.5%307.5393−0.2%1488.012−0.6%2127−0.6%195.67397.1%
1011,8000.2%25,818.270.5%308.90050.2%1507.0430.6%2152.50.6%169.715−7.1%
2011,825.790.4%25,948.941.0%309.57580.4%1516.6821.3%2165.4061.2%156.6598−14.3%
x−2011,743.6−0.3%25,580.22−0.4%307.4242−0.3%1490.041−0.5%2129.547−0.5%178.7839−2.2%
−1011,760.35−0.1%25,639.88−0.2%307.8625−0.1%1494.148−0.2%2135.145−0.2%180.9939−1.0%
1011,784.890.1%25,727.340.2%308.50490.1%1500.1670.2%2143.350.2%184.21260.8%
2011,794.150.2%25,760.340.3%308.74740.2%1502.4390.3%2146.4470.3%185.42091.5%
Figure 8. The sensitivity of inventory with respect to change in parameters.
Figure 8. The sensitivity of inventory with respect to change in parameters.
Appliedmath 05 00050 g008
Figure 9. The sensitivity of cycle time with respect to change in parameters.
Figure 9. The sensitivity of cycle time with respect to change in parameters.
Appliedmath 05 00050 g009
Figure 10. The sensitivity of the profit function with respect to change in parameters.
Figure 10. The sensitivity of the profit function with respect to change in parameters.
Appliedmath 05 00050 g010

5.2. Managerial Insights

Based on the sensitivity analysis, the following managerial insights can be derived:
  • The selling price s p has the greatest positive impact on the total profit. As the price increases, the profit per cycle increases dramatically, especially at higher price points. Therefore, managers should consider their unit selling price when making decisions in order to maximise their profit.
  • The parameter γ for demand enhancement has the second greatest impact on profit over time. An increase in γ makes demand more sensitive to changes in inventory levels, indicating that customers are strongly influenced by product availability. This positive effect on profit suggests that manufacturers should align supply with demand effectively to capitalise on revenue opportunities.
  • The deterioration rate θ has the greatest negative impact on the total profit, followed by the holding cost of raw materials. A higher value of θ causes a decrease in profitability because more finished goods spoil before they can be sold, leading to higher deterioration costs and reduced revenue. Managers should aim to keep the deterioration rate as low as possible to minimise spoilage in order to maintain higher profitability.
  • When the inventory holding cost increases for both raw materials and finished products, manufacturers respond by holding less stock of raw materials. This results in lower availability of finished goods, reduced sales, and a negative impact on overall profit. Managers should consider working with lower holding cost rates when making decisions on inventory management, as reducing holding costs can increase the availability of raw materials and finished goods which can boost sales and ultimately maximise profit.

6. Conclusions

The model presented in this paper extends the classic economic production quantity (EPQ) model to the case where raw material with imperfect quality items are used during the production process. This model considered both deterioration of products and a flexible production process. This later effect is captured by using the concept of shifts in production rate. In addition, the traditional assumption of constant demand is relaxed to a stock-dependent demand function, reflecting the impact of current inventory levels on demand to provide a more realistic representation of how customers respond to the availability of certain goods. Two scenarios for this model were considered. The optimal operating policy was derived by maximising the total profit per unit of time. The uniqueness of the optimal solutions was demonstrated through a numerical example and the sensitivity analysis of the model was analysed. One of the unique contributions of this model is considering the effect of shifts in production rate in conjunction with the ordering of imperfect raw material in a two-echelon supply chain. The analysis revealed several key factors that significantly influence the overall profitability of the production process. The most critical factor is the selling price, which has a substantial positive effect on profit. As the price increases, profit per cycle increases dramatically, especially at higher price points. The demand sensitivity parameter, which reflects how demand responds to inventory levels, also plays a crucial role in influencing profitability. On the negative side, the deterioration rate negatively impacts profit; higher deterioration rates lead to increased spoilage of finished goods, thus reducing profitability.
The practical implications of this model are critical for real-world decision-making. Manufacturers can leverage the insights derived from the model, such as optimising the production rate and managing imperfect raw materials to improve operational efficiency. The findings not only help guide inventory management but also encourage the adoption of strategies like salvaging defective products, which could be a valuable revenue stream under certain circumstances. Furthermore, the study contributes to bridging the gap between theoretical models and industry practices by demonstrating how shifts in production rates and the incorporation of imperfect materials can be strategically used to optimise production processes. These contributions show the potential for improved decision-making in managing perishable products and can serve as a foundation for more advanced studies on production systems with varying performance levels.
This paper contributes to the existing research on managing perishable product inventory with demand dependent on stock levels. However, there are limitations in the model presented that suggest opportunities for further exploration and expansion. For instance, in this model, the rate of imperfect products is modelled by a constant parameter that is proportional to the rate of production. A possible extension of the model could be to adopt other forms of defective rates, such as the exponential increase over time. Another possible interesting extension could be to use the probability density function to capture the percentage of imperfect raw material contained in the lot size. We could consider using a multiplicative model of stock-level components instead of the additive. In this model, demand for the product is assumed to remain positive as long as there is still some inventory displayed on the shelf. However, this assumption limits the applicability of the results obtained by suggesting that the product is always removed from the shelf due to deterioration. This suggests a new research opportunity, considering a variable parameter for demand sensitivity to the current level of inventory that decreases with time until reaching zero. To enhance realism in this model, one could introduce elements such as stochastic timing of shifts, probabilistic production rates, and uncertain durations for production by modelling these factors as random variables with probability distributions. Other extensions could include incorporating freshness degradation, non-instantaneous deteriorating products, and introducing discount schemes or advertising efforts to gain further insights. Additionally, future research could explore the impact of competitors’ pricing strategies on profit-maximisation.

Author Contributions

Conceptualisation, K.T., O.A. and S.Y.; methodology, K.T.; software, K.T.; validation, K.T., O.A. and S.Y.; formal analysis, K.T.; investigation, K.T.; writing—original draft preparation, K.T.; writing—review and editing, K.T., O.A. and S.Y.; visualisation, K.T.; supervision, O.A. and S.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Harris, F.W. Operations and cost. Fact. Manag. Ser. 1915, 2, 48–52. [Google Scholar]
  2. Wilson, R.H. A Scientific Routine for Stock Control; Harvard University: Cambridge, MA, USA, 1934. [Google Scholar]
  3. Whitin, T.M. The Theory of Inventory Management, 2nd ed.; Princeton University Press: Princeton, NJ, USA, 1957. [Google Scholar]
  4. Dave, U.; Patel, L.K. (T,Si) policy inventory model for deteriorating items with time proportional demand. J. Oper. Res. Soc. 1981, 32, 137–142. [Google Scholar] [CrossRef]
  5. Benkherouf, L. On an inventory model with deteriorating items and decreasing time-varying demand and shortages. Eur. J. Oper. Res. 1995, 86, 293–299. [Google Scholar] [CrossRef]
  6. Srivastava, M.; Gupta, R. EOQ Model for deteriorating items having constant and time-dependent demand rate. Opsearch 2007, 44, 251–260, Int. J. Prod. Econ.1997, 49, 205–213. [Google Scholar] [CrossRef]
  7. Mishra, V.K.; Singh, L.S.; Kumar, R. An inventory model for deteriorating items with time-dependent demand and time-varying holding cost under partial backlogging. J. Ind. Eng. Int. 2013, 9, 1–5. [Google Scholar] [CrossRef]
  8. Majumder, P.; Bera, U.K.; Maiti, M. An EPQ model of deteriorating items under partial trade credit financing and demand declining market in crisp and fuzzy environment. Procedia Comput. Sci. 2015, 45, 780–789. [Google Scholar] [CrossRef]
  9. Singh, T.; Mishra, P.J.; Pattanayak, H. An optimal policy for deteriorating items with time-proportional deterioration rate and constant and time-dependent linear demand rate. J. Ind. Eng. Int. 2017, 13, 455–463. [Google Scholar] [CrossRef]
  10. Halim, M.A.; Paul, A.; Mahmoud, M.; Alshahrani, B.; Alazzawi, A.Y.; Ismail, G.M. An overtime production inventory model for deteriorating items with nonlinear price and stock dependent demand. Alex. Eng. J. 2021, 60, 2779–2786. [Google Scholar] [CrossRef]
  11. Jain, M.; Singh, P. Optimal inspection and advance payment policy for deteriorating items using differential evolution metaheuristic. Appl. Soft Comput. 2022, 128, 109475. [Google Scholar] [CrossRef]
  12. Hou, L.; Nie, T.; Zhang, J. Pricing and inventory strategies for perishable products in a competitive market considering strategic consumers. Transp. Res. Part E Logist. Transp. Rev. 2024, 184, 103478. [Google Scholar] [CrossRef]
  13. Moshtagh, M.S.; Zhou, Y.; Verma, M. Dynamic inventory and pricing control of a perishable product with multiple shelf life phases. Transp. Res. Part E Logist. Transp. Rev. 2025, 195, 103960. [Google Scholar] [CrossRef]
  14. Pathak, G.; Kumar, V.; Gupta, C.B. An inventory model for deterioration items with imperfect production and price sensitive demand under partial backlogging. Int. J. 2017, 5, 8. [Google Scholar]
  15. El-Kassar, A.-N.; Salameh, M.; Bitar, M. EPQ model with imperfect quality raw material. Math. Balkan. 2012, 26, 123–132. [Google Scholar]
  16. Urban, T.L. Analysis of production systems when run length influences product quality. Int. J. Prod. Res. 1998, 36, 3085–3094. [Google Scholar] [CrossRef]
  17. Salameh, M.K.; Jaber, M.Y. Economic production quantity model for items with imperfect quality. Int. J. Prod. Econ. 2000, 64, 59–64. [Google Scholar] [CrossRef]
  18. Chan, W.M.; Ibrahim, R.N.; Lochert, P.B. A new EPQ model: Integrating lower pricing, rework and reject situations. Prod. Plan. Control 2003, 14, 588–595. [Google Scholar] [CrossRef]
  19. Lee, H.H. A cost/benefit model for investments in inventory and preventive maintenance in an imperfect production system. Comput. Ind. Eng. 2005, 48, 55–68. [Google Scholar] [CrossRef]
  20. Hou, K.L. An EPQ model with setup cost and process quality as functions of capital expenditure. Appl. Math. Model. 2007, 31, 10–17. [Google Scholar] [CrossRef]
  21. Nobil, A.H.; Tiwari, S.; Tajik, F. Economic production quantity model considering warm-up period in a cleaner production environment. Int. J. Prod. Res. 2019, 57, 4547–4560. [Google Scholar] [CrossRef]
  22. Ozturk, H.; Aytar, S.A.L.I.H.; Senel, F.A. An EPQ model for an imperfect production process with fuzzy cycle time and quality screening. Iran. J. Fuzzy Syst. 2019, 16, 169–185. [Google Scholar]
  23. Asadkhani, J.; Mokhtari, H.; Tahmasebpoor, S. Optimal lot-sizing under learning effect in inspection errors with different types of imperfect quality items. Oper. Res. 2022, 22, 2631–2665. [Google Scholar] [CrossRef]
  24. Chen, X.; You, C. Dynamic pricing and inventory model for perishable products with reference price and reference quality. J. Comput. Appl. Math. 2025, 458, 116338. [Google Scholar] [CrossRef]
  25. Nobil, A.H.; Nobil, E.; Sedigh, A.H.A.; Cárdenas-Barrón, L.E.; Garza-Núñez, D.; Treviño-Garza, G.; Céspedes-Mota, A.; de Jesús, L.-H.I.; Smith, N.R. Economic production quantity models for an imperfect manufacturing system with strict inspection. Ain Shams Eng. J. 2024, 15, 102714. [Google Scholar] [CrossRef]
  26. Hossain, M.; Das, M.; Rahaman, M.; Alam, S. A profit-cost ratio maximization approach for a manufacturing inventory model having stock-dependent production rate and stock and price-dependent demand rate. Results Control Optim. 2024, 15, 100408. [Google Scholar] [CrossRef]
  27. Datta, T.K.; Paul, K. An inventory system with stock-dependent, price-sensitive demand rate. Prod. Plan. Control 2001, 12, 13–20. [Google Scholar] [CrossRef]
  28. Pal, A.K.; Bhunia, A.K.; Mukherjee, R.N. Optimal lot size model for deteriorating items with demand rate dependent on displayed stock level (DSL) and partial backordering. Eur. J. Oper. Res. 2006, 175, 977–991. [Google Scholar] [CrossRef]
  29. Panda, S.; Saha, S.; Basu, M. A note on EPQ model for seasonal perishable products with stock dependent demand. Asia-Pac. J. Oper. Res. 2008, 25, 301–315. [Google Scholar] [CrossRef]
  30. Lee, Y.P.; Dye, C.Y. An inventory model for deteriorating items under stock-dependent demand and controllable deterioration rate. Comput. Ind. Eng. 2012, 63, 474–482. [Google Scholar] [CrossRef]
  31. Ghiami, Y.; Williams, T.; Wu, Y. A two-echelon inventory model for a deteriorating item with stock-dependent demand, partial backlogging and capacity constraints. Eur. J. Oper. Res. 2013, 231, 587–597. [Google Scholar] [CrossRef]
  32. Yang, C.T. An inventory model with both stock-dependent demand rate and stock-dependent holding cost rate. Int. J. Prod. Econ. 2014, 155, 214–221. [Google Scholar] [CrossRef]
  33. Singh, T.; Pattnayak, H. A two-warehouse inventory model for deteriorating items with linear demand under conditionally permissible delay in payment. Int. J. Manag. Sci. Eng. Manag. 2014, 9, 104–113. [Google Scholar] [CrossRef]
  34. Avinadav, T.; Herbon, A.; Spiegel, U. Optimal ordering and pricing policy for demand functions that are separable into price and inventory age. Int. J. Prod. Econ. 2014, 155, 406–417. [Google Scholar] [CrossRef]
  35. San-José, L.A.; Sicilia, J.; González-De-la-Rosa, M.; Febles-Acosta, J. Analysis of an inventory system with discrete scheduling period, time-dependent demand and backlogged shortages. Comput. Oper. Res. 2019, 109, 200–208. [Google Scholar] [CrossRef]
  36. Cárdenas-Barrón, L.E.; Shaikh, A.A.; Tiwari, S.; Treviño-Garza, G. An EOQ inventory model with nonlinear stock dependent holding cost, nonlinear stock dependent demand and trade credit. Comput. Ind. Eng. 2020, 139, 105557. [Google Scholar] [CrossRef]
  37. Khan, M.A.A.; Shaikh, A.A.; Konstantaras, I.; Bhunia, A.K.; Cárdenas-Barrón, L.E. Inventory models for perishable items with advanced payment, linearly time-dependent holding cost and demand dependent on advertisement and selling price. Int. J. Prod. Econ. 2020, 230, 107804. [Google Scholar] [CrossRef]
  38. San-José, L.A.; Sicilia, J.; Pando, V.; Alcaide-López-de-Pablo, D. An inventory system with time-dependent demand and partial backordering under return on inventory investment maximization. Comput. Oper. Res. 2022, 145, 105861. [Google Scholar] [CrossRef]
  39. Rodríguez-Mazo, J.; Ruiz-Benítez, R. A multi-warehouse inventory model under hybrid-price-stock dependent demand and a bulk release pattern. Comput. Oper. Res. 2024, 170, 106764. [Google Scholar] [CrossRef]
  40. Doğruöz, E.; Güllü, R. Analysis of an all-or-nothing inventory model with price-dependent intermittent demand and supply uncertainty. Comput. Ind. Eng. 2025, 187, 110883. [Google Scholar] [CrossRef]
  41. Jauhari, W.A.; Affifah, D.N.; Laksono, P.W.; Utama, D.M. A closed-loop supply chain inventory model with stochastic demand, exchange rate, green investment, and carbon tax. Clean. Logist. Supply Chain 2024, 13, 100168. [Google Scholar] [CrossRef]
  42. Rishel, R. Control of systems with jump Markov disturbances. IEEE Trans. Autom. Control 1975, 20, 241–244. [Google Scholar] [CrossRef]
  43. Olsder, G.J.; Suri, R. Time-optimal control of parts-routing in a manufacturing system with failure-prone machines. In Proceedings of the 1980 19th IEEE Conference on Decision and Control including the Symposium on Adaptive Processes, Albuquerque, NM, USA, 10–12 December 1980; pp. 722–727. [Google Scholar]
  44. Schweitzer, P.J.; Seidmann, A. Optimizing processing rates for flexible manufacturing systems. Manage. Sci. 1991, 37, 454–466. [Google Scholar] [CrossRef]
  45. Khouja, M. The use of minor setups within production cycles to improve product quality and yield. Int. Trans. Oper. Res. 2005, 12, 403–416. [Google Scholar] [CrossRef]
  46. Sana, S.S.; Goyal, S.K.; Chaudhuri, K. An imperfect production process in a volume flexible inventory model. Int. J. Prod. Econ. 2007, 105, 548–559. [Google Scholar] [CrossRef]
  47. Ben-Daya, M.; Hariga, M.; Khursheed, S.N. Economic production quantity model with a shifting production rate. Int. Trans. Oper. Res. 2008, 15, 87–101. [Google Scholar] [CrossRef]
  48. Sarkar, B.; Mandal, P.; Sarkar, S. An EMQ model with price and time dependent demand under the effect of reliability and inflation. Appl. Math. Comput. 2014, 231, 414–421. [Google Scholar] [CrossRef]
  49. Emami-Mehrgani, B.; Nadeau, S.; Kenné, J.P. Optimal lockout/tagout, preventive maintenance, human error and production policies of manufacturing systems with passive redundancy. J. Qual. Maint. Eng. 2014, 20, 453–470. [Google Scholar] [CrossRef]
  50. Omar, M.; Yeo, I. A production–repair inventory model with time-varying demand and multiple setups. Int. J. Prod. Econ. 2014, 155, 398–405. [Google Scholar] [CrossRef]
  51. Ganesan, S.; Uthayakumar, R. EPQ models for an imperfect manufacturing system considering warm-up production run, shortages during hybrid maintenance period and partial backordering. Adv. Ind. Manuf. Eng. 2020, 1, 100005. [Google Scholar] [CrossRef]
  52. Tshinangi, K.; Adetunji, O.; Yadavalli, V.S.S. A Lot-Sizing Model for a Multi-State System with Deteriorating Items, Variable Production Rate, and Imperfect Quality. Int. J. Math. Eng. Manag. Sci. 2022, 7, 730. [Google Scholar] [CrossRef]
Figure 1. Raw material inventory level with imperfect items sold at a discount.
Figure 1. Raw material inventory level with imperfect items sold at a discount.
Appliedmath 05 00050 g001
Figure 2. Inventory profile with a shift in production rate and stock-dependent demand.
Figure 2. Inventory profile with a shift in production rate and stock-dependent demand.
Appliedmath 05 00050 g002
Figure 3. Raw material inventory level with imperfect items returned to supplier.
Figure 3. Raw material inventory level with imperfect items returned to supplier.
Appliedmath 05 00050 g003
Figure 4. The flowchart of the solution methodology.
Figure 4. The flowchart of the solution methodology.
Appliedmath 05 00050 g004
Figure 5. Graph of the net profit function of the two echelons supply chain per quantity, per time.
Figure 5. Graph of the net profit function of the two echelons supply chain per quantity, per time.
Appliedmath 05 00050 g005
Figure 6. TP with respect to cycle time.
Figure 6. TP with respect to cycle time.
Appliedmath 05 00050 g006
Figure 7. TP with respect to inventory.
Figure 7. TP with respect to inventory.
Appliedmath 05 00050 g007
Table 1. Comparison of the study with related works in the literature.
Table 1. Comparison of the study with related works in the literature.
AuthorsCharacteristics of the Inventory System
Inventory Model Production Stage Imperfect Quality Echelon Demand Function Setup Cost/Ordering Cost Production Cost
Sana et al. [46]EMQSingleSalvageSinglePrice-DependentFixedVariable
Panda et al. [29]EPQSingleNASingleStock-DependentFixedVariable
Ben-Daya et al. [47]EPQMultiNASingleCSTFixedCST
El-Kassar et al. [15]EOQ/EPQSingleSalvageMultiCSTFixedCST
Singh and Pattnayak [33]EOQNANASingleTime-DependentFixedNA
Avinadav et al. [34]EOQNANASinglePrice- and Age-DependentFixedNA
Omar and Yeo [50]EOQ/EPQMultiNAMultiCSTVariableCST
Sarkar et al. [48]EMQSingleReworkSinglePrice- and Time-DependentFixedVariable
Yang [32]EOQNANASingleStock-DependentFixedNA
Pathak et al. [14]EPQSingleSalvageSinglePrice-DependentFixedNA
This paperEPQMultiSalvageMultiStock-DependentVariableVariable
Table 2. Numerical input parameters.
Table 2. Numerical input parameters.
SymbolValue
A40 units/hour
c d USD 1.5/unit/h
c r USD 5/unit
d 1 0.08
d 2 0.06
F r USD 1000/order
G 1 USD 1000/Setup
G 2 USD 1500/Setup
h p USD 0.15/unit/h
h r USD 0.12/unit/h
k 1 85 units/h
k 2 55 units/h
ζ 0.05
p c 1 USD 1.1/unit
p c 2 USD 1.4/unit
p l USD 1.1/unit
q0.1
ϕ 100
s p USD 66/unit
s d USD 55/unit
s r USD 3/unit
θ ( t ) 0.04
γ 0.02
x1500 units/h
Table 3. Summary of the results from the numerical example.
Table 3. Summary of the results from the numerical example.
VariableUnitsScenario 1Scenario 2
I 1 * Units11,77426,349
T * Hours21404702.6
t 1 * Hours308690
t 2 * Hours14973280
I 2 * Units25,68856,711
Q * Units91,606201,000
y * Units101,785224,000
T C * USD/h730017,426.2
T R * USD/h748313,017.8
T P * USD/h183−4408
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tshinangi, K.; Adetunji, O.; Yadavalli, S. A Two-Echelon Supply Chain Inventory Model for Perishable Products with a Shifting Production Rate, Stock-Dependent Demand Rate, and Imperfect Quality Raw Material. AppliedMath 2025, 5, 50. https://doi.org/10.3390/appliedmath5020050

AMA Style

Tshinangi K, Adetunji O, Yadavalli S. A Two-Echelon Supply Chain Inventory Model for Perishable Products with a Shifting Production Rate, Stock-Dependent Demand Rate, and Imperfect Quality Raw Material. AppliedMath. 2025; 5(2):50. https://doi.org/10.3390/appliedmath5020050

Chicago/Turabian Style

Tshinangi, Kapya, Olufemi Adetunji, and Sarma Yadavalli. 2025. "A Two-Echelon Supply Chain Inventory Model for Perishable Products with a Shifting Production Rate, Stock-Dependent Demand Rate, and Imperfect Quality Raw Material" AppliedMath 5, no. 2: 50. https://doi.org/10.3390/appliedmath5020050

APA Style

Tshinangi, K., Adetunji, O., & Yadavalli, S. (2025). A Two-Echelon Supply Chain Inventory Model for Perishable Products with a Shifting Production Rate, Stock-Dependent Demand Rate, and Imperfect Quality Raw Material. AppliedMath, 5(2), 50. https://doi.org/10.3390/appliedmath5020050

Article Metrics

Back to TopTop