Integrated Quality-Based Production-Distribution Planning in Two-Echelon Supply Chains

+e integrated production-distribution (P-D) planning has turned into one of the most essential areas in supply chain (SC) management in recent years, especially in the case of perishable products in which the quality of products can change over time. Nonetheless, so far, the suggestedmodels have focused on the P-D stages of the chain while the delivery of high-quality products to customers is of paramount significance in the perishable SC. In the present paper, a multiobjective, mixed-integer, and nonlinear programming (MOMINLP) mathematical model was developed for integrated P-D deteriorating items in a two-echelon SC that emphasizes quality degradation. Quality is monitored and calculated as a function of temperature and time throughout the SC, and the main purpose of the model is to first increase the quality of products delivered to customers and, second, minimize the SC costs. To optimize the problem, the particle swarm optimization (PSO) approach was also incorporated into the model. +e obtained model was applied to a case study in Protein Gostar Sina Company in Iran, which resulted in decreased P-D costs as well as increased customer satisfaction.


Introduction
Supply chain (SC) can be depicted as a chain attempting to establish effective communication between customers and suppliers by efficient management of the flow of material, information, and money [1]. SCs include procedures that create certain values offered to the final customer as products or services. SC is a complicated system requiring its members to share their information to increase the integration of chain members, better coordinate financial flows and materials, and reduce the undesirable consequences of the SC [2]. Two essential areas in SC are production planning and distribution planning, while integration has also been significantly emphasized in this respect over the past years [3]. Nowadays, in markets worldwide, products with short life cycles as well as customers with great expectations make companies pay special attention to SC. Nevertheless, SC members require proper arrangement as well as harmonization to make a supply chain management (SCM) effective [4]. is can have serious implications for perishability that can in turn influence all SC processes such as production process, inventory management, and distribution [5].
Recently, the integrated P-D planning models for deteriorating items have attracted considerable interest among researchers. is is especially the case for food SCs and realworld models that relate to product lifespans and efforts to deliver quality goods to customers. A range of topics is always discussed concerning the food SC. Food SCs are intricate and constantly changing. e effective network design for SC can significantly contribute to the flow of products, the reduction of the costs related to its transportation, and the increasing food safety [6]. Most studies in this area have attempted to model the issue of quality and decrease of product life in SC separately just using one of the models of production, distribution, or inventory. However, today the integration and presentation of models for simultaneous coverage of a broader segment of the SCs have found widespread popularity.
Considering the importance of an integrated model for simultaneous quality concern of products and P-D planning, the main purpose of the present paper is to provide a multiobjective mathematical model for the integrated P-D problem of perishable goods which first maximizes the quality of products delivered to customers and second reduces the overall costs of the SC. To this end, in the current study, a multiobjective, mixed-integer, and nonlinear programming (MOMINLP) mathematical model was developed where the global criterion method (GCM) has been used for the allocation of weights to each objective function. In the proposed model, the perishability of goods in all stages of the SC (from production to delivery to the customer) is accurately measured based on the effective parameters of temperature and time where quality is defined as a function of temperature and time based on Arrhenius equation. Since by adding the Arrhenius equation, the mathematical model became nonlinear, and the Taylor series was used to linearize the model. Moreover, since one of the disadvantages of integrated models is the inefficiency of precise solution methods, the particle swarm optimization (PSO) metaheuristic solution method was applied to enhance the efficiency of the proposed model and solve problems on large scales.
In addition to the above, since mathematical models are generally far from the real world, two steps were taken to bring the model closer to the real world. First, products were qualitatively graded according to the realistic customer demands. Second, to measure the real-world performance of the model, it was implemented in the poultry industry in Protein Gostar Sina Company in Iran. e results indicated that integrated planning in P-D, taking into account the product groupings and quality loss throughout the SC, would result in higher chain responsiveness and thus reduce the overall SC costs in the long run. e rest of the paper is organized as follows. In Section 2, the focus is on some relevant works on the integrated P-D and quality models in SC. In addition to illustrating the PSObased solution used, Section 3 presents the problem statement or the proposed approach of the research and the mathematical modeling applied. In Section 4, the case study is presented, and the results are analyzed in Section 5. Finally, Section 6 is dedicated to the conclusion and suggestions for future research.

Literature Review
From an overall perspective, the integrated P-D focuses on two distinct stages. e first stage is the production phase which converts the inputs into the final products and reduces all production costs, including setup costs, regular working hours, and overtime. e second stage is related to the distribution network of the final goods from production places to the customers aiming to reduce the costs of transportation, warehousing, etc. [6].
Fahimnia et al. [3] presented a review paper on this subject, categorized these models into seven according to the complexity of the modeling, and discussed the solution approach. Abid et al. developed a novel model of integrated P-D in a stochastic intermodal SC focusing on two points: minimization of overall costs and maximization of the level of satisfaction of customers. ey propose a biobjective stochastic model for handling uncertainty in demands as well as production capacities [7]. Ma et al., using bilevel programming for modeling the problem, proposed a model for a real case study [8]. Rafiei et al. presented a biobjective model that integrates suppliers, producers, distributors, and end users in four levels whose objective is minimizing the total cost of SC and maximizing the service level of the chain [9]. Also, managing deterioration is a remarkable topic in SC about which many studies have been conducted. Perishability is defined as the deterioration, decay, damage, spoilage, evaporation, obsolescence, waste, loss of utility, or loss of marginal value of a commodity that results in decreasing the usefulness of the original product [10]. According to this definition, all the products whose value is reduced over time are categorized under this class. e first study on perishability was carried out by Whitin [11]. Readers can find a comprehensive review of deterioration models in SC from previous research [5,[12][13][14][15]. Some problems arise in SCM due to the perishability of food products. According to Nematollahi and Tajbakhsh, a large proportion of reviewed studies focus on food quality and safety issues [16]. Also, the perishability and quality of food products are among the essential factors in managing the food SC from the stages of production to storage and finally to transportation [17]. us, both product flow and product quality affect SC performance. As a result, it is vital to adopt an integrative approach to control the food quality from producers to the final customers. In the integrated P-D model proposed by Jia et al., no deterioration occurs at the facilities, but different quality degradation processes are noticed in the transportation and sales stages. Moreover, shelf life is considered constant and definite [18]. Zhang et al. proposed an innovative idea for the integration of product quality. ey assume three stages for the SC in their model where a function of time and temperature is adopted to represent the quality of food products for production, storage, and transportation [19]. e recent decade has witnessed a proliferation of new models for perishable items. e first model was introduced in [20], which included an integrated allocation and distribution design for deteriorating items supposed to be distributed in different locations with random demands. Later, the topic drew the attention of other scholars. e product quality was taken into account throughout the processes of P-D planning using the MIP model by [17] as well. He et al. [21] focus on the models of quantitative operations management associated with the management of food quality and classify the literature into four problem categories of storage, distribution, and pricing (for perishable food products), as well as operations management (for food traceability and safety). Yang and Tseng proposed a model considering deterioration for chilled food with an eye to the model of Gompertz, which illustrates the growth degree of microorganisms with time. Moreover, they take the rate of deterioration dependent on temperature and conduct a case study on pork sandwich [22]. e multiobjective framework was proposed at the operational level with an eye on two types of perishable goods fixed and loose shelf life in the previous studies [23]. e researchers have also offered a new solution using the adaptive large neighborhood search framework to deal with the MILP model of integrated P-D planning for perishable products. In this study, the planning phase included lot sizing, scheduling, and line assessment decisions, whereas the distribution planning phase entailed the problem of vehicle routing with time windows [24]. With a focus on inventory planning, Priyan and Uthayakumar investigated the fuzzy deterioration in modeling integrated P-D. Furthermore, they viewed the setup cost as a function of capital expenditure that can reduce extra investment [25]. Rezaeian et al. suggested a new MINLP model for integrated P-D and inventory planning of fixed life products in a two-echelon SC. Also, the multivehicle and FIFO systems were considered in these models, and the combination of genetic algorithm and Taguchi method was employed for solving the problem [26].
e main target of deteriorating SCs is to keep the quality of products while improving their logistic performance and pay the highest attention to temperature as a delicate feature; therefore, an integrated production routing model was developed for perishable products. In this model, various factors, including the production, inventory, temperature of storage, and routing, as well as the temperature of the vehicle were considered [27]. A four-objective mixedinteger linear programming model was developed for an intelligent food logistics system. e goal was to first minimize total system expense, Co2 emission amount during transportation, and production, as well as total weighted delivery lead time and the second was to maximize the average quality of food. To solve the model, a modified multiobjective PSO algorithm with multiple social structures was developed [28].
As an overview of this section, it can be concluded that the models developed in this area can be divided into three categories. e first category is related to integrated P-D models that do not take into account the assumption of the perishability of goods. e second category includes models that focus on perishability but apply this assumption in either production or distribution models. e third category that includes only a few models and is more relevant to the present study, which includes integrated P-D models that consider the assumption of perishability, either as deterioration or as quality degradation. e main difference between the presented model and the above models is in the direct calculation of product quality (based on temperature and time) over a continuous period, the ability to be developed for multiple products, and adaptation to real-world problems.

The Problem Statement and Proposed Model
e modeling approach is based on a two-echelon SC that consists of manufacturing plants and customer centers shown in Figure 1.
According to Figure 1, the presented model is related to the two-echelon SC. At one echelon, there are manufacturing plants that meet all the assumptions associated with production such as working in regular time, overtime, outsourcing, setup costs, and capacity constraints. At the other echelon, some customers have a specific demand that depends on the quality of the products. e problem is modeled based on the MOMINLP mathematical model whose results are as follows: grouping products in factories and determining the amount of production in each unit, choosing the optimal production method, choosing the best route to send products from manufacturing plants to customers in a way that the quality of the products delivered to customers increases, and reducing waste.
e SC relates to food types that have a perishable nature and lose their quality over time. is quality is stated as a function consisting of the rate of deterioration and the reactions' order. e food quality (q) is stated as where q shows product quality, t shows the elapsed time, and n as a power factor known as the reactions' order is 0 (reaction with zero-order) in the case of fresh fruits or vegetables or 1 (reactions with first-order) in the case of meats as well as dairy products. e quality of the products decays linearly if n � 0 and exponentially if n � 1 [29]. Also, k is the rate of degradation developed by the Swedish chemist Svante Arrhenius in 1899. He combined the concepts of activation energy and the Boltzmann distribution law into one of the most essential relations in physical chemistry as follows [30]: where k 0 is a constant and called the pre-exponential factor independent from temperature, E a the activation energy, R the gas constant which equals 8.314 J mol −1 ·K −1 , and T the absolute temperature, where RT is the average kinetic energy.  Mathematical Problems in Engineering e quality of a product can be estimated at a certain point in the P-D network, according to the initial quality (q 0 ), subsequent storage timespans i � 1, . . . , m with the time interval t i , and degradation rate k i (determined by the temperature T i ), which results in With this equation, the expected quality of food products can be assessed after being stored and transported at certain timespans and temperatures [17].

Mathematical Modeling.
As regards the nature of the integrated P-D problems, which may result in reduced product quality, a mathematical model was developed with the following specifications.
Products of m factories lie within the g-class of quality. In each factory, production takes place in standard working hours or overtime while being partly outsourced whenever appropriate. Depending on the nature of the products manufactured, all products are dispatched to e customer centers immediately after production. As indicated by the Arrhenius equation, products can corrupt under the impact of any change in temperature and time.
To apply this relation to the model, the first and main objective function was formulated to increase the quality of the products delivered to the customer. Moreover, a condition was set for the constraints specifying that if the product quality was lower than the minimum defined, the product was considered as waste. In the meantime, some factors were considered in the transportation of products from factories to customer centers. e main one was transportation time, directly affecting the perishability, along with other parameters such as road tolls, traffic, and traffic congestion as secondary determinants which influence shipping costs. e model also entailed two objective functions: increased quality of products received by the customers and reduced P-D costs.

Assumptions.
e following assumptions are adopted in the model: Parameters: RP mg : unit's production cost in regular time for the product at manufacturing plant m having quality grade g OP mg : unit's overtime production cost for the product at manufacturing plant m having quality grade g OS mg : unit's production cost of outsourcing for the product at manufacturing plant m having quality grade g R eg : forecasted demand for the product with quality grade g at the end user e O m : fixed cost of opening and operating manufacturing plant m TC meg : transportation cost for the product at quality grade g from manufacturing plant m to end user e T meg : transportation time for the product at quality grade g from manufacturing plant m to end user e λ mg : capacity hours for production in regular time for the product having quality grade g at manufacturing plant m λ mg ′ : capacity hours for overtime production for the product having quality grade g at manufacturing plant m Q max g : the quality level of the product with grade g just after the production Q min g : the quality level of product with grade g that end user accepts WC g : waste cost for the product with quality grade g in period t M: a large positive number Decision variables: P mg : product quantity when manufactured in regular time at manufacturing plant m having quality grade g P mg ′ : product quantity when manufactured overtime at manufacturing plant m having quality grade g 4 Mathematical Problems in Engineering P 〞 mg : product quantity when outsourced by manufacturing plant m having quality grade g D meg : quantity of product with quality grade g transported from manufacturing plant m to end user e Y meg : the binary variable which indicates the selection of path of manufacturing plant m to end user e W g : waste amount of product with quality grade g Z m : the binary variable of operating manufacturing plant m

Model Formulation.
which subject to MY meg ≥ D meg , ∀m ∈ M, e ∈ E, g ∈ G, P mg , P mg ′ , P 〞 mg , D meg , W g ≥ 0, int ∀m ∈ M, e ∈ E, g ∈ G, Mathematical Problems in Engineering e first objective function (equation (4)) in the above formulation aims to maximize the quality of the products made available to the customers. Equation (5) represents the second objective function consisting of fixed cost for operating facilities, regular time and overtime production cost, outsourcing expenses, and transportation, as well as waste disposal costs. Constraint (6) indicates that the demand of end users must be satisfied. Constraint (7) ensures that the shipping amount exactly equals the manufactured products.
Constraint (8) guarantees that the sum of goods shipped from factories to the final customers meets the customer demand following the waste deduction. Constraint (9) is used to determine the amount of waste in the chain extracted according to the Arrhenius equation [17,30], such that, considering the minimum quality (Q min ) available for each product, the maximum shelf life is estimated through (c g ), and if the product time in the chain exceeds this value, it is considered a waste. Constraints (10) and (11) show the production capacity in the manufacturing plant, while constraints (12) and (13) ensure that factories are viewed as operating in case they are engaged in the production process. Constraint (14) ensures that overtime production is allowed if it is carried out at a regular time. Constraints (15) and (16) ensure that shipping occurs between factories and customers if the lane is selected. e remaining constraints, i.e., (17) and (18), are nonnegativity, binary, and integer constraints on the decision variables.

Simplification of the Model.
Since this model assumes a constant temperature, the first objective function can be simplified as follows: As the above relation is nonlinear and exponential, it can be transformed into a quadratic function using the Taylor series as follows: According to the results of the low-dimensional model solution, the O(x 3 ) value is minimal and negligible. erefore, the following relation can be considered as an alternative for the original with good approximation: As it is clear, the objective functions Z 1 and Z 2 go against each other. Namely, improvement in each function results in a departure from the optimal point by the other. erefore, the simultaneous optimization of each of the given objective functions requires a specific method [31].
e GCM was employed in the current case to detect the minimization point for the totality of the relative deviations of the entire objective functions from the optimal values (Z * i ). e ultimate objective function, calculated using the GCM, is given in relation (23): According to this method, the objective functions can receive different weights to reveal the ideas of decision makers (DM). In this relation, w i refers to the weight of the objective function determined by DM, while the sum of all weights equals 1. Based on this method, if a higher weight is assigned to a function by the DM, the solution will be closer to the optimal level of the given function. An independent calculation was performed for the optimal values of all functions (Z * i ) in equation (23). In this stage, the objective functions which required maximization were normalized based on (Z * i − Z i )/Z i . Also, the normalization of the objective functions which needed minimization was conducted using

Solution Procedure.
is study developed a mixed-integer nonlinear formulation for the two-echelon SCs based on the integration of aggregate P-D plans and the concept of perishability. For solving this complex model, first, the GAMS optimization software was used and test runs were performed on a 2.33 GHz Core i5 with a 4 GB RAM system. e results were not applicable because the model was complex and the solution time was too long. erefore, metaheuristic PSO was applied to solve the model within a more acceptable timespan.
To detect the optimal solution in the PSO algorithm, the initial population was generated at random. Given the constraints of the problem and its discrete nature, the probability for the random population generated to fall out of the limitations was very high. erefore, the production of the initial population was performed such that the solution was kept within the range of the answer. To this end, several factories were randomly activated so that the minimum distance from one of the active factories to the customer was less than the product loss threshold. In this case, at least one factory was kept active to meet the needs of customers, so the limitation of satisfying customer needs was met.
After determining the active factories, customer demand was allocated to the factories. To this end, a percentage of customer demand was assigned to a randomly selected active manufacturing plant at any time, and this amount was deducted from the customer demand. is loop continued until all the demands were allocated to the factories. Next, the demands allocated to the factory were divided, due to the limitation of production capacity in regular hours, overtime, and during outsourcing. In this way, all the constraints of the problem were fulfilled, and the initial population was produced within the acceptable problem space.
In the PSO algorithm, the generation of subsequent solutions occurs through the movement of the initial population solutions.
at is, the new birds' position (next-generation solution) is calculated based on the previous position, the distance to the best bird of the current generation, and the distance to the best bird among all generations. Structured matrices are used in the proposed algorithm to represent solutions, where each of the decision variables is a property of the matrix. In other words, a position is assumed for the bird for each of the decision variables. Similarly, a velocity vector is developed for each decision variable. Using the position and motion of the vector of the decision variables in the initial population, the birds move and these steps continue until the stopping condition is fulfilled.
ere are some parameters of control that affect the PSO algorithm.
ey include the problem dimension, particle numbers in each generation, coefficients of acceleration, weight of inertia, size of the neighborhood, and iteration frequencies, as well as random values. Moreover, in the case of the adoption of velocity constriction, PSO performance is impacted by the maximum coefficient of velocity and constriction. e control parameters used in the problem under study are listed in Table 1:

The Illustrative Case Study
To study the performance of the model, a case study was conducted at Protein Gostar Sina Company in the poultry industry which is one of the largest companies in Iran producing meat and protein. In the sector dealing with the production of poultry products, the company has seven slaughterhouse units and 25 customer center units throughout Iran, which are increasingly growing and expanding. Based on the type and quality of input materials, as well as slaughter and packaging conditions in the slaughterhouses, hot poultry products of this company fall into three quality grades: A, B, and C. Grade A contains the best quality products, without any problems in the process of slaughter and packaging. Grade B includes products that are not cut correctly during the slaughter process and have socalled contusion and ecchymosis. Finally, grade C includes products that have undergone some problems in the process of slaughter and packaging and contain contusion, ecchymosis, blood, and remainders of poultry trachea, esophagus, and some viscera in the packaging.
Modeling the P-D process of the company was carried out at a single time. In practice, live chickens ready to be slaughtered were loaded and shipped to the slaughterhouse during the night before slaughter. e slaughter normally took place during the night and the packaging process ended by morning. After completing the packaging process, the product had to reach the final customers within a maximum of 72 hours, and the model was designed to reduce the time of product delivery to the customer. However, it must be kept in mind that meat products could become corrupt over time due to the activities of internal microorganisms. is factor was taken into account in this study by using the Arrhenius equation. e model examines the effect of the factors of time and temperature on the growth of these microorganisms and the product quality reduction. For meat products, these quality changes occur exponentially. Due to the use of refrigerated machines and storage in particular refrigerated areas, the temperature factor was assumed to be constant at 4°C.
us, the only factor in product corruption and the quality decrease was time.
As for the importance of the final quality of the product delivered to the customers and according to industry experts, the minimum acceptable quality for the three quality grades of manufactured products equals 0.4, 0.3, and 0.2. Also, the objective function coefficients, including values w 1 and w 2 in this model, respectively, equal 0.65 and 0.35. e Mathematical Problems in Engineering values of the waste cost for the decayed items for each quality grade also equaled 6000, 5200, and 4700, respectively. Other dimensions of the problem include those of production such as factory setup costs, production at a regular time, overtime, or outsourcing, and quantitative limitations which are listed in Table 2: e values for customer demand are also presented in Table 3.
Other model-related parameters are given in Supplementary Materials (available here).

Result Analysis
e following procedures were used to estimate the model performance. Initially, the model developed for the case study referred to in Section 4 was solved solely with the second objective function and only with the emphasis on cost reduction. e results indicated that the objective function value was equal to 8.9 * 10 7 and the production units 2, 3, 4, and 5 started working ( Figure 2). However, when the model was solved with two objective functions, while simultaneously minimizing costs and enhancing product quality, the value of the second objective function equaled 10.4 * 10 7 , and the production units 1, 2, 4, and 5 initiated production.
By carefully examining the production and allocated values in both cases, it became clear that, in the dual-purpose case, the total time spent on delivering the products to customers was less than the single-objective state. is indicates an increase in the quality of the products offered to the customers. Nowadays, the increasing importance of the use of healthy food products, high value of quality, and customer dissatisfaction have given a pivotal role to the quality and prevention of excessive reduction of the product quality in the SC. Since the initial model was a MOMINLP and the solution time was not justified for large-scale problems, two steps were considered: first, the nonlinearity of the problem with part 3.2 transformation from exponential to the second-order problem, and second, the development of PSO algorithm to solve the larger samples. To investigate the performance of the developed solutions, random samples with different sizes were generated with varying factory and customer numbers and solved using all three methods (main model, quadratic function, and PSO). e results are summarized in Table 4. Items related to the 5 th rows are justified if the sales policy is direct.

Conclusion
e development of integrated models in the food SC on the one hand and the increased demand for healthy food on the other have doubled the need to develop integrated models for enhancing the quality of products. In this study, a new integrated P-D model was developed with a focus on the quality of products in the SC of perishable materials. For validation, the model was implemented in the poultry industry. Model solutions were developed and applied to improve efficiency, which ultimately led to increased quality of products throughout the chain. e research findings can be summarized as follows: (i) e integrated P-D models play an essential role in creating integrity in SC decisions if they are adapted and used in operational cases. ese models can be used as a management decision support system (DSS) that helps managers in decisions at different time intervals. For example, if the current status is compared to the optimal one, an overall estimate of the reasons for customer dissatisfaction can be observed and, in coordination with the quality assurance unit, appropriate corrective actions can be taken. Moreover, by examining the costs in the optimal status of the model and matching them with the costs of the financial unit, a suitable budgeting plan can be devised.
(ii) Among the models developed to estimate the quality of products in the SC, the Arrhenius equation is most capable of adapting to real-world problems due to its simplicity and distinct categorization. It seems that the capabilities of the model can be used more extensively in complementary models in the future, which certainly will require a focus on solution methods. (iii) Based on the Arrhenius equation, temperature and time are among the most influential parameters in the quality of products and materials. By adopting effective solutions, these two factors can be substantially controlled in the chain. Future studies can delve further into the nature of the relation between the given factors and the use of modern packaging methods, equipped transportation systems, and food warehouses.

Data Availability
e data used to support the findings of this study are included within the article.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper.

Supplementary Materials
Supplementary Table 1: the table represents transportation time for products at quality grade g from manufacturing   20 10,000 ---1200 -10 20 50,000 ---3740 -plant m to end user e. g 1 , g 2 , and g 3 represent quality grades A, B, and C, respectively, in the case study. Supplementary Table 2: the table describes transportation cost for the products at quality grade g from manufacturing plant m to end user e. g 1 , g 2 , and g 3 represent quality grades A, B, and C, respectively, in the case study. (Supplementary Materials)