Design and Optimization of Capacitated Supply Chain Networks Including Quality Measures

1 Department of Mechanical Engineering, The University of Texas at San Antonio, One UTSA Circle, San Antonio, TX 78249, USA 2Quality andManufacturing Center, Instituto Tecnológico y de Estudios Superiores deMonterrey, Eugenio Garza Sada 2501 Sur, 64849 Monterrey, NL, Mexico 3 Department of Physics, Instituto Tecnológico y de Estudios Superiores de Monterrey, Eugenio Garza Sada 2501 Sur, 64849 Monterrey, NL, Mexico


Introduction
The supply chain (SC) can be understood as the integration of all business entities that work together in order to ensure that the customer receives a product or service at the right time, with the right quality, and at low cost.To achieve this, it is necessary to coordinate all the business entities within a SC.This can be achieved through supply chain management (SCM).This paper addresses one of the problems included in SCM which is supply chain network design (SCND).The SCND aims at selecting the business entities that increase the overall performance of the SC.Cost of Quality (COQ) is a measurement system that translates the implications of poor quality into monetary terms.Although COQ has been applied mostly within enterprises, COQ can be applied as an external measure to integrate these costs into SCND modeling.Several studies have provided models to ensure quality in multistage SC [1].Das [2] proposed a multistage global SC mathematical model for preventing recall risks.Srivastava [3], who initiates estimating COQ in a SC, measures COQ in monetary terms at selected third-party contract manufacturing sites of a pharmaceutical company.Ramudhin et al. [4] also focus on integrating COQ in the SC.Their seminal study presents a mathematical formulation that integrates known COQ functions into the modeling of a SC network for a single-product, three-echelon system and seeks to minimize the overall operational and quality costs.Ramudhin et al. [4] found that by adding a known and given quadratic COQ function that affects only the suppliers into the objective function results in a difference of approximately 16% in costs and changes the network selection.When COQ is not included, choices made solely on production costs could sacrifice quality and lead to additional quality nonconformance costs or corrective action costs in the subsequent stages of the SC.More recently, Alzaman et al. [5] established a mathematical model, considering an  level Mathematical Problems in Engineering bill of materials, that incorporates a known COQ quadratic function based on a defect ratio at all SC nodes.As assumed in Ramudhin et al. 's work, the COQ function is known and is based on Juran's original model [6].
In previous studies, the COQ function, based on percentage of defective units, is assumed to be given.This paper deals with the development of an SCND-COQ model that computes the COQ for a whole SC based on internal decisions within the manufacturing plant, such as fraction defective at the manufacturing plant and error rate at inspection.No previous work has addressed how the COQ functions were obtained while taking internal operational decisions within the SC.Moreover, the proposed SCND-COQ model computes quality costs for the whole SC considering the interdependencies among business entities, whereas previous works have assumed independent COQ functions for each node of the SC.
This study aims to develop a strategic-level model for computing the COQ for a multistage, capacitated supply chain network design (SCND-COQ) problem.The proposed model is an extension of the serial supply chain model (SC-COQ model) developed by Castillo-Villar et al. [7] for which two solution procedures were developed [8].The problem addressed here is significantly more difficult to solve due to the capacity constraints and the combinatorial nature of a MINLP (mixed-integer nonlinear programming) network problem.Moreover, it differs from the SC-COQ model in two main aspects: (1) several business entities can be selected at each echelon of the SC; (2) the components from all selected suppliers enter a plant and are mixed; thus, a shipment to a retailer contains products with components from different suppliers.Therefore, a pooled fraction defective from the selected suppliers is computed.Specialized solution procedures were developed to address this problem.The decision variables are to select the best combination of one or more suppliers, decide which plants of a given set to open, and select the best combination of one or more retailers in order to maximize the total profit and satisfy a minimum quality level for the final product as illustrated in Figure 1.

The Capacitated SCND-COQ Model
The model assumptions are as follows.
(1) A consumer goods SC, consisting of three echelons: suppliers, manufacturers, and retailers, is modeled.
(2) A single product is modeled.
(3) The objective is to maximize profit.
(4) The overall quality level, QL, (see xvi) is sufficient to represent the quality of the final product.
(5) A new SC is being designed.Modifications to the model would be necessary if implemented for a manufacturing process which is currently working at a specific fraction defective at manufacturing and with an established inspection system.(6) External failure costs can be tolerable for the firm.This implies direct applicability to products where  external failure is not catastrophic for customers.
However the overall quality level (QL) can be adjusted to address problems in which external failures are not desirable (e.g., aerospace and pharmaceutical industries).
(7) Suppliers and retailers are external to the manufacturing plant.
(8) It is assumed that a 100% inspection at the end of the manufacturing process is performed to check component conformance.Two types of errors may arise; Type I error involves classifying a good item as defective and Type II error involves labeling a defective item as good.Type I error is not considered in this model because it is not detrimental to customer satisfaction.Type I and Type II errors are defined in this paper as in [9], in terms of inspector fallibility.
(9) All defective products are returned by customers and incur external failure costs.(10) The relevant operational costs are production, procurement, transportation from supplier to manufacturing plant, transportation from manufacturing plant to retailer, and a fixed cost for opening the plant.
(11) Customer demand at each retailer ( k ) is known for the study period; demand is determined by the retailers and communicated to the company.Therefore, retailers' capacity is not considered.
(12) Suppliers and manufacturing plants have finite capacity.
(13) At least one supplier, one plant, and one retailer must be selected (simplest supply chain network).

Computing the Quality Costs for the Capacitated Model.
An example of the representation of the flow of items through a SC network is shown in Figure 2 where a fixed network of three suppliers, one manufacturing plant, and two retailers is assumed.
The mathematical notation is presented below.

Parameters
is a function that returns the number of good products delivered to the customers for the whole network.
is a function that returns the number of bad products delivered to the customers for the whole network.
is a function that quantifies the number of bad products delivered to the customers for the whole network per manufacturing plant.
is the overall fraction defective for the whole supply chain network.
the overall quality level achieved by the supply chain network.

Prevention Cost.
Prevention cost is linked to the production of good products after the manufacturing process as given by where   is a fixed cost.The variable cost for prevention activities is divided into three scenarios: (1) the prevention activity is carried out only at suppliers; (2) the prevention activity is implemented only at the manufacturing plants; and (3) the prevention activity is a coordinated action between a supplier and plant.In the first case, V  (  ) is a function of the fraction defective at a supplier that returns the cost per unit of good components for prevention activities.Even though this prevention activity is carried out at the supplier, the cost of this prevention activity is incurred by the manufacturing plant.For the second (resp., third) case, V  (  )(V  (  ,   )) is a function of the fraction defective at the selected plant (resp., supplier) that quantifies the cost per unit of good product after the manufacturing process, GgM(   ,   ,   ,   ).These three functions typically increase as the fraction defective at supplier and/or plant decreases (i.e., when the quality level of the supplier and/or manufacturing process improves).

Appraisal Cost.
A 100% inspection is performed at the end of the manufacturing process to verify conformance.The appraisal costs (  ) are modeled by a fixed cost and a variable cost per item that is classified accurately.Thus, the appraisal cost increases when inspection is more accurate.The appraisal cost is given by where   is a fixed cost and V  is a variable cost.All items going through the system are inspected; thus,    represents the number of items to be inspected.

Internal Failure
Cost.The internal failure cost for the capacitated model is given by (3).The first term is a fixed cost (  ) for corrective activities.The second term is the internal failure cost due to unsuccessful manufacture computed as rework cost per item (  ) times the identified good components with unsuccessful manufacture.It is assumed that these components can be recovered.The third term is the purchasing failure cost computed as the sum of losses incurred due to failure of purchased components to meet quality requirements (  ) and rework cost per item (  ), multiplied by the number of items identified as defective due to bad components,   (1 −   ) BgM (   ,   ,   ,   ), as well as the items identified as defective because of bad components and unsuccessful manufacture,   (1 −   ) BbM (   ,   ,   ,   ).The fourth term represents the difference between what would have been the income from sales of nondefective or good products (  ) and the actual income from sales of defective items ( *  ) [10], times the items sold as defective, SaD(   ,   ,   ,   ,   ): where the first and second terms represent the costs generated by defective items returned by customers, which is the product of   and the sum of the bad items due to the retailer, BaRe(   ,   ,   ,   ,   ), and the bad items that were classified as good, BcGC(   ,   ,   ,   ,   ).The third term is based on the Taguchi loss function.The loss constant coefficient, , depends on the cost for working at the specification limits and the width of the specification [11].The cost for working at the specification limits (  ) is computed as a proportion (given by the parameter cost) of the income of the items sold by each manufacturing plant as given by The width of the specification is defined by an upper limit (  ) which is set to 100 to indicate the allowable deviation from target value.Notice that  = 100% is the worst case, that is, when the process has 100% defective products.Perfect inspection and manufacturing are assumed in (8) in order to obtain a lower bound or target value (  ) for the Taguchi function as given by (6).Thus, the width of the specification is   −   : The loss coefficient is given by The quality characteristic,   , is the overall percentage defective for plant  as shown in (8) In order to compute the opportunity loss for the SC, a relative value of the quality characteristic is obtained by subtracting the target value (a lower bound) from the current overall percentage defective as shown in the last term of (4).In summary, the Taguchi loss is computed for each plant and these costs are summed to obtain the total opportunity loss for the network.
The total COQ is computed as the sum of the prevention, appraisal, and internal and external failure expressions as given by COQ (

Mathematical Formulation of the SCND-COQ Model.
The objective function is to maximize profit The objective function given in (10) represents the profit; it is a nonconvex and nonlinear function and has seven components.The first term is the sales revenue.The second term represents the total COQ for the network.The third term represents the direct cost of acquiring components from the selected supplier(s) by the opened manufacturing plant(s).The fourth term represents the operational cost for the components from selected supplier(s) processed at the opened plant(s).The fifth term gives the transportation cost from the supplier(s) to opened plant(s).The sixth term represents the transportation costs from the opened plant(s) to the retailer(s).Lastly, the seventh component determines the fixed cost for opening plants.
Constraints in (11) enforce that demand at retailers is not exceeded.Constraints in (12) ensure that the number of components shipped from suppliers to manufacturing plantsequals the number of items shipped from manufacturing plants to retailers.Constraints in (13) ensure that the plant capacity (in units) is not exceeded.Since the same number of components received from the suppliers is transformed by the manufacturing plants and shipped to the retailers as either good items or sold as defective items, the capacity corresponds to an entry-exit capacity (maximum flow allowed within the plants).Constraints in (14) enforce that the exit capacity (in units) at the suppliers is not exceeded.The exit capacity is the amount of components shipped to manufacturing plants.Constraints in (15) are the quality level constraints; thus, the quality of the final product delivered at each retailer must meet the minimum required quality level; this set of constraints is nonlinear.Constraints shown in ( 16) and ( 17) define feasible ranges and binary requirements for the model variables.

Solution Procedures
The capacitated SCND-COQ model is a constrained mixedinteger nonlinear programming problem (MINLP) which is challenging to solve because it combines all the difficulties of both of its subcategories: the combinatorial nature of mixed integer programming (MIP) and the difficulty of solving nonconvex nonlinear problems (NLP).These two subcategories are known as NPO-complete problems [12]; thus, solving MINLP problems can be a daunting task.Metaheuristics have proven to be computationally more efficient than gradientbased nonlinear programming methods for MINLP.Hence, developing an effective metaheuristic-based algorithm to deal with problems of practical and realistic size is preferred.
Five procedures for solving the capacitated SCND-COQ model are described and compared.Three heuristic procedures are based on the serial model and they can be divided into two stages.Stage I consists of finding serial logistic routes, a serial route being a combination of three entities (supplier-plant-retailer), with the highest profit per unit sold, which are to be added to the network at each iteration of the procedure.Once a feasible network is constructed, Stage II consists of evaluating the feasible network configuration using the capacitated SCND-COQ model.The difference among the serial-based procedures lies in how the search of the serial routes to be added to the network at each iteration is performed.The first heuristic procedure enumerates all the serial routes and applies a value-restricted selection for finding the serial logistic route to be added to the network at each iteration of the algorithm.The second procedure uses the local search metaheuristic simulated annealing (SA) for finding the serial logistic route to be added to the network at each iteration of the algorithm.The third procedure uses a population-based metaheuristic, the genetic algorithm (GA), for finding the serial logistic route to be added to the network at each iteration of the algorithm.In addition, two solution procedures which are not based on finding serial logistic routes were developed: (1) an exhaustive enumeration of all possible networks with calls to a GlobalSearch (GS) algorithm and (2) an exhaustive enumeration of all possible networks with calls to a MultiStart (MS) algorithm.A detailed description of each of the five solution procedures is presented in Sections 3.1 and 3.2.

Heuristic Procedures Based on Adding Serial Logistic
Routes.The number of possible serial logistic routes is computed as || × || × ||.For instance, the number of serial routes for a problem with 5 suppliers, 3 plants, and 5 retailers is 75, which is considerably less than the number of possible network configurations, 6,727.The total number of possible network configurations is given by the following expression: where (, ) is the number of ways in which  items can be selected from among  items without replacement.
The heuristic procedures based on the serial model rely on the following idea: a network can be constructed by (1) choosing the serial logistic route with the highest profit per unit sold when sending the maximum possible amount of items through that route, (2) adding that serial route to the network, (3) updating the remaining capacities, and repeating the process.
The heuristic procedures serve to construct a feasible network and to determine the amount of items to be sent (Stage I).Despite the ease of implementation and speed of these heuristic procedures for constructing a network, some limitations exist.For each serial route, the internal decision variables error rate at inspection (  ) and fraction defective at manufacturing (  ) must be determined.This implies that, for example, a manufacturing plant included in multiple serial routes could have different values of the internal decision variables.Operating the real system in this way may not be feasible or desirable.To remedy this, a reoptimization of the internal decision variables (  and   ) is performed for the constructed feasible SC network by using the capacitated SCND-COQ model (Stage II).The profit achieved by this network is taken as the best-found solution for the capacitated model.The general procedure for the heuristic serial-based solution methods is depicted as follows.(1.2) Compute the quality level attained by each serial route, eliminate the routes that do not meet the minimum level in (15), and save the resultant matrix with all the feasible serial routes (PS matrix).
(1.3) Determine the maximum flow that can be sent through a route by evaluating the following: min{∑ ∈ Cap  , ∑ ∈ Cap  , ∑ ∈   }.
(1.4) Prelocate the vector with not opened plants (NOP).Since the same plant can be selected in several serial routes (as long as the remaining plant's capacity is greater than zero), this vector avoids taking the fixed cost for opening a plant into account more than once.
(1.5) The search for additional serial routes to be added to the network continues until one of the five following cases occurs: nonpositive profit is obtained, the sum of the capacities of the suppliers is exhausted, the sum of the capacities of the plants is exhausted, the demand is satisfied, or there are no more feasible remaining routes to select from (the updated PS matrix is empty).
(1.5.1)The search is performed by using one of the following procedures: (1) evaluation of all the serial routes and a greedy or value-restricted constructive (VRC) procedure, (2) simulated annealing (SA), and (3) the genetic algorithm (GA).The details of the procedures are described in Sections 3.1.1,3.1.2,and 3.1.3.(1.5.2) Update the remaining capacities and demands.
(1.5.3)One or more of these three cases may occur: one supplier is saturated, one plant is saturated, or the demand at one retailer is fully satisfied.
In each case, the business entities that were saturated are eliminated from the set of potential business entities and all the routes that include these business entities are eliminated from the matrix with possible serial routes (PS matrix).(1.5.4)Update the NOP vector each time a plant is selected.For instance, if the selected route contains a plant that was already opened in a previous iteration, then the additional fixed cost is zero; otherwise, if the plant is in the NOP vector, then a fixed cost is incurred for opening that plant.

Stage II
The network with flows formed by adding serial routes is evaluated by using the capacitated SCND-COQ model and the internal continuous variables are reoptimized.It is worth noting that the network and flows found in Stage I are not modified.
(2.1) Reoptimize the internal continuous variables associated with the opened manufacturing plants by using the GlobalSearch algorithm in MATLAB.

Value-Restricted Constructive Procedure for Selecting
Serial Routes.For each serial route (rows in the possible serial routes matrix, that is, the PS matrix), the internal decision variables (  and   ) that minimize the total COQ are obtained by using a nonlinear solver, FMINCON with the interior-point algorithm of MATLAB.The total profit and the profit per unit sold are computed for each serial route.The profit per unit sold is used to select a serial route; this avoids selecting the route that generates the maximum profit based on volume.Ties are broken by selecting the route that yields a higher total profit.Value-restricted selection (VRS) was used to choose the serial route to be added to the network at each iteration of the procedure.The selection of the logistic route at each iteration is determined by choosing a random route from a restricted candidate list (RCL).The RCL was used as a way to avoid a greedy choice as in the GRASP (greedy randomized adaptive search procedure) metaheuristic; refer to [13][14][15].
The RCL contains the routes with the higher values of profit per unit sold.Let  be a real value such that 0 ≤  ≤ 1.The RCL consists of all the routes  such that the greedy function (), total unit profit, is () ≥  * − ( * −  * ).When  = 0, then the selection is greedy and when  = 1, the selection is completely randomized.The serial-based heuristic procedure using a VRS for selecting the serial routes at each iteration and the GlobalSearch method for optimizing the internal decision variables of the constructed network is named SVRC (serial value-restricted constructive procedure) and was implemented using MATLAB.The SVRC algorithm with  = 0.1 ( was obtained from previous computational experiments) is named SVRC1 and with  = 0 (which is a greedy procedure) is named SVRC2).

SA for Selecting Serial
Routes.Descriptions of the general SA procedure can be found in [16][17][18].The SAbased solution procedure used to find the serial route that maximizes unit profit while satisfying a required quality level of the final product is described in [8].The SA-based procedure chooses the serial route that yields the highestfound profit per unit sold at each iteration.In contrast to the SVRC procedures, SA search procedure does not enumerate all the serial routes at each iteration of the heuristic procedure.The SA serial-based heuristic procedure using the GlobalSearch method for optimizing the internal decision variables of the constructed network is named SSA1 (serial simulated annealing method version 1) and was implemented using MATLAB.
Two additional variations of this method were developed: SSA2 and SSA3.SSA2 has as decision variables the selection of serial routes while the internal continuous variables (  and   ) are optimized using the nonlinear solver FMIN-CON with the interior-point algorithm of MATLAB.The difference between SSA1 and SSA2 is the use of FMINCON for the optimization of the continuous variables.
SSA3 also has as decision variables the selection of serial routes while the internal continuous variables (  and   ) are optimized using the nonlinear solver FMINCON with the interior-point algorithm of MATLAB.The difference between SSA1 and SSA2 versus SSA3 lies in the state representation.SSA1 and SSA2 determine the next neighborhood solution by indicating how many indexes apart from the current index of the PS matrix (matrix where rows represent feasible combinations of entities) this next solution could be.For SSA3, the state is represented by a vector containing three indexes, and each index represents an entity and its value ranges from 1 to the amount of entities of each type.When an unfeasible route is selected (that is not in PS matrix), a penalty is performed.In such cases, the value of the objective function is set to zero.This state representation for determining the next neighboring solution was implemented in SSA3 to gain insight about the impact of the state representation on the solution procedure's performance.[19], refer to a class of adaptive search procedures based on the principles derived from natural evolution and genetics.A GA solution procedure to find the serial route that maximizes unit profit and satisfies a required quality level of the final product is described in [8].The GA based procedure chooses the serial route that yields the highest profit per unit sold at each iteration.In contrast to the SVRC procedures, the GA search procedure does not enumerate all the serial routes at each iteration of the heuristic procedure.The serial-based heuristic procedure using GA and GlobalSearch is named SGA1 (serial genetic algorithm method version 1) and was implemented using MATLAB.Similar to SSA, SGA has three variations.SGA2 and SGA3 algorithms call the nonlinear solver FMINCON with the interior-point algorithm of MATLAB for the optimization of the internal continuous variables while SGA1 optimizes all decision variables (selection of entities and internal continuous variables).For SGA1 and SGA2, the representation of the individual genotype consists of binary numbers that in decimal base represent an index in the PS matrix.In SGA3, the individual genotype is segmented in three parts that define the serial route; each part consists of binary numbers that in decimal base represent an independent entity (supplier, plant, or retailer).Equivalently to SSA3, this representation was implemented to gain insight about the impact of the individual representation on the solution procedure's performance.During the optimization process (selection of serial routes), evolutionary operations (selection, crossover, and mutation) are performed over the population in order to improve the population fitness over generations.A binary tournament selection and a one-point crossover method were adopted in the present work for all GA-based solution procedures.When an unfeasible route is selected (that is not in PS matrix), a penalty is performed.In such cases, the value of the objective function is set to zero.

Exhaustive Enumeration Procedures.
Exhaustive enumeration consists of listing all possible SC networks.For each SC network, the MATLAB GlobalSearch (GS) and the MultiStart (MS) algorithms are used to solve for the amount of items to be sent between suppliers and manufacturing plants and between plants and retailers (i.e.,    and    matrices, resp.) as well as the variables representing the quality system within the manufacturing plant (i.e.,   and   ).Both algorithms have similar approaches; they run a nonlinear solver (FMINCON) from multiple starting points and try to maximize the total profit of the SC network while satisfying the SCND-COQ model constrains.The solution with the highest profit (related to one of the many SC network configurations with optimized variables) is reported as the best found.
It should be noted that the exhaustive enumeration of all possible SC networks does not necessarily mean that all the possible solutions in the search space are evaluated, as each possible SC network contains infinite possible solutions, which depend on the values of the decision variables (   ,    ,   , and   ).Moreover, the nonlinear solvers will not always find optimal solution because the solvers may return a local maximum.
Since the number of networks grows exponentially as the number of business entities increases, as shown in (19) and as described in Section 3.1, exhaustive enumeration can only be performed for small problems and heuristic procedures are needed to deal with problems of practical and realistic size.For instance, a problem with 10 suppliers, 15 manufacturing plants, and 2 retailers has 3.5148 × 10 9 possible SC network configurations and 237 decision variables.

Experimental Study
To investigate the effectiveness of the developed solution procedures, a variety of network sizes (as shown in Table 1) were solved.Moreover, three classes of instances were defined and five instances from each class were randomly generated.The pool of test problems consists of 60 problems (15 for each problem size).
In order to compare the performance of the solution procedures against optimal solutions, specially constructed instances (problem class I described in Subsection 4.1.1)were constructed such that the optimal solution is known in advance.Additional class problems where the optimal solution is not known were also generated (classes II and III).A comparison of the solution procedures relative to each other was performed for classes II and III.

Test Problem Generation.
The general approach used to generate instances is described next.The data used in test problems was generated randomly from a uniform distribution between the low and high levels documented in Table 2.The minimum required quality level () is fixed at 0.85 for all test instances.When the required quality level is too low, the solution space will be larger and finding the nearoptimal solutions will be more difficult.When the required quality level is too high, the solution space will be smaller and highly constrained.The interested reader can obtain the test problems used in the development of this paper from the authors.
The function of the variable cost for prevention activities was considered as in scenario 3 (as described in Section 2.1.1),where V  (  ,   ) =  ( is a constant) for the test problems.The rework rate (  ) is set to   /100.The price (  ) is calculated using (20).The price considers an extra percentage (extra) for revenue and for covering administrative costs as shown in Table 2.The vectors of average cost for all potential suppliers for plant  are differentiated from the matrices by using a bar (V  for prevention activities;   for procurement costs; and   and   for transportation costs) and used in The cost for computing the Taguchi loss function (Cost) is given by where   is the average price and (, ) is the continuous uniform distribution of the low and high levels in Table 2 for Cost.

Class I Test Instances.
In class I problem instances, the optimal solution is a serial route that satisfies all the demand at the selected retailers.This was accomplished by generating instances as described above but setting the extra percentage (extra) to 0.5, instead of the interval shown in Table 2.
Once the parameter values are generated from uniform distributions with ranges as shown in Table 2, some of the parameters associated with the business entities in the optimal serial route ( * will denote the optimal supplier selection,  * the optimal plants, and  * the optimal retailers) are modified in order to force the optimal solution to be a specific serial route.A ratio  = 0.6 will be used to adjust the parameters of  * ,  * , and  * so that the cost parameters of these entities are favorable (significantly lower than the rest of the values of the cost parameters of other business entities) to make this specific serial route the optimal solution.The optimal business entities' cost parameters are modified by taking the low level in the ranges in Table 2 and multiplying by .In this way, the costs are (1 − )% less than the rest of the cost parameters.The fraction defective at the supplier and retailer are also decreased by (1 − )% for  * and  * .
The rework rate (  ) is modified for  * by considering the maximum rework rate among all the plants and then dividing by 100.The demand at  * is set to the highest demand generated multiplied by 1 + .The capacities at  * and  * are set such that they exactly match the demand at  * .The sales price is set to three times the maximum generated price.The price of "sold as defective" items of  * is computed as the sales price multiplied by the high level of  *  in the range shown in Table 2.
The instances created by using the above procedure are verified by enumerating and evaluating all the possible serial routes.The maximum flow is sent through the route and the internal continuous variables are found by using a nonlinear solver to obtain the profit.The solution with the maximum profit should select  * ,  * , and  * ; otherwise, the instance is not used for testing.

Class II Test Instances.
For class II problem instances, the opening of all the business entities to satisfy the demand at retailers is expected.This was accomplished by increasing the price of the final items and modifying capacities so that the retailers limit the flow.
The parameter values are randomly generated from uniform distributions with ranges as shown in Table 2.However, the price for class II problems ranges from 1.9 to 2. The higher prices are conducive to networks with positive profit (even when the quality costs are higher in some networks than others).Moreover, the capacities are modified so that retailers limit the amount of items to be sent.The sum of the randomly generated retailer capacities   is multiplied by 1.1 and divided by the number of suppliers to obtain the capacity at each supplier.This calculation is repeated for plants.Thus, the suppliers and plants have enough capacity to satisfy the demand at retailers.

Class III Test Instances.
The data for class III problems was generated randomly from a uniform distribution between the low and high levels documented in Table 2 as described in the general approach presented at the beginning of Section 4.1.

Computational Results
. Instances were solved using each of the five proposed solution procedures.Since the number of SC network configurations grows exponentially as the size of the problem increases, exhaustive enumeration procedures are used only for the 3 × 2 × 3 test problem size.For the rest of the problems, a comparison of SVRC, SSA, and SGA procedures (including its different versions) is performed.

Runs and Parameter Setting for the Serial-Based Solution
Procedures.The SA algorithm is run 5 times in order to select one serial route with the best-found objective value at each iteration of the heuristic procedure.The GA algorithm is also run 5 times.The VRC procedure performs an enumeration of all the possible serial routes and selects one from the RCL at each iteration of the heuristic procedure.The whole procedure (steps (1.5) and (1.6) in Section 3.1) is run 5 times and the network configuration with the best accumulated profit was reported.
The heuristic parameter for SVRC1 and SVRC2 is .The heuristic parameters for SSA1, SSA2, and SSA3 (phase I) are the neighborhood size for the internal decision variables (neigsize), the initial system temperature (  ), the rate of cooling (), the number of accepted trials (AccepTrials), the maximum number of trials (MaxTrials), and the maximum number of Markov Chains (MaxChains).The heuristic parameters for SGA1, SGA2, and SGA3 (phase I) are the number of generations (gen), probability of mutation (pm), the probability of crossover (pc), and the initial population (pop) which is computed as a percentage of the PS matrix.All heuristic parameters were tuned using statistical designs of experiments.Table 3 shows the values of the heuristic parameters.
In previous studies, the COQ function, based on percentage of defective units, is assumed to be given.This paper deals with the development of an SCND-COQ model that computes the COQ for a whole SC based on internal decisions within the manufacturing plant, such as fraction defective at the manufacturing plant and error rate at inspection.No previous work has addressed how the COQ functions were obtained while taking internal operational decisions within the SC.Moreover, the proposed SCND-COQ model computes quality costs for the whole SC considering the interdependencies among business entities, whereas previous works have assumed independent COQ functions for each node of the SC.

Comparison among Solution Procedures. Tables 4-7
show the results for each problem size.Performance was measured by solution quality, number of evaluations of the objective function, and computational time in CPU seconds.Solution quality is characterized in two ways: (a) the average best-found profit (Avg Profit) over 5 instances obtained by each solution procedure and (b) the average percentage deviation from the optimal solution for class I and from the best-found solution for classes II and III (Avg%dev) over the same 5 instances.The deviation at each instance is computed as [(optimal solution − Avg Profit)/optimal solution)] × 100% for class I and as [(best-found solution − Avg Profit)/bestfound solution)] × 100% for classes II and III.
For the GS and MS procedures, the best-found profit, achieved from one of all possible SC network configurations, is the one reported.For SVRC1 and SVRC2 (greedy approach), only 1 run is performed in Stage 1 and the profit achieved by the network in Stage 2 is the one reported as the final objective value.For SSA/SGA, at each iteration, the serial logistic route with the best-found profit in 5 runs is the one added to the network in Stage 1; the profit obtained by the network in Stage 2 is the one reported.
The average number of evaluations of the objective function over 5 instances (Avg Evals) is also considered as a performance measure.For the GS and MS procedures, the number of evaluations of the objective function is determined by the total number of times that the nonlinear solver is called while solving the problem instance.For SVRC, SSA, and SGA, the number of evaluations is computed as the sum of the number of evaluations performed by the heuristic procedures when constructing the network and the number of evaluations performed by the nonlinear solver while reoptimizing the internal continuous variables for the capacitated model.Finally, the average computational time (Avg Time) is the average processing time duration in CPU seconds that is required for each solution procedure over 5 instances.The computational time considers the entire solution procedures, that is, phase I and phase II.The computer used for the computational experiments was a Sager NP8130 with an Intel i7 2720QM processor operating at 3.3 GHz, with 16 GB of memory DDR3 on an Intel HM65 chipset motherboard.
Table 4 gives computational results for the first problem size.For class I problems, it can be observed that most algorithms reached the optimal solutions in all five instances, with the exceptions being MS and SGA1.The GS (exhaustive enumeration procedure) was able to find the optimal solution for class I instances but was unable to find good solutions for classes II and III, thus, denoting a limitation of such procedure to tackle complex instances.
For class II problems, based on Avg Profit, the SVRC2, SSA2, SSA3, SGA2, and the SGA3 reach the same average solution (best-found solution).For class III problems, the best-found solution was found by SVRC2, SSA1, SSA2, SSA3, SGA2, and SGA3.GS, MS, and SVRC1 present an Avg%dev greater than 6.6%.
Table 5 shows the results for the 5 × 4 × 6 problem size.As observed previously for class I problems, most algorithms reached the optimal solution, with the exception being SGA1 and SGA2.For class II problems, SSA2 found the best solutions on average, followed by SVRC2 and SGA2 (Avg%dev of 0.19% and 0.29%, resp.).Similarly, for class III, SSA2 found the best solutions on average, followed by SVRC2, SSA1, and SGA3.This shows that suboptimal selections of serial routes in SSA phase I may lead to a more profitable network configuration (as shown in SSA2) than the profit obtained by using a greedy approach (SVRC2).
Table 6 shows the results for the 8 × 8 × 10 problem size.For class I problems, most algorithms reached the optimal solution, with the exception being SSA3 and SGA1.For class II, SSA1 found the best solutions on average, closely followed by SVRC2, SSA2, and SGA3.For class III, SSA1 found the best solutions on average, followed by SGA1.It is noteworthy that for class III (considered difficult), the heuristic procedures (SSA1 and SGA1) outperform the enumeration-greedy approach (SVRC2) in average profit and computational time.
The results for the largest instance (35 × 20 × 35) are shown in Table 7.For class I, it was expected that SVRC2 outperformed the rest of the procedures because the optimal solution is a serial route; however, the SSA1 reached solutions with an Avg%dev of 1.64%.For class II, the best-found profits are obtained by SGA1 and SGA3 closely followed by SSA1 and SVRC2.For class III, SVRC2 provides the best found solutions followed by SGA1 and SGA2.In general, the algorithms that produce best solutions on average for large problems are SVRC2, the three GA-based algorithms, and SSA1.The computational burden required by the SVRC2 and the GA-based procedures is significantly greater than the time required by the SSA1 (2.68 hrs on average per instance for SVRC2 and 2.24 hrs on average for the SA-based procedures versus less than 4 minutes for SSA1).SSA1 is able to reach good solutions with a percentage deviation from the bestfound average solution for all classes of 0.48%.
To conclude, GS and MS perform poorly, even for the smallest problem size, and require substantial computational effort.The computational time for SVRC2 is for only one run of the whole procedure and the CPU time for the remaining procedures includes the 5 runs in phase I.For realistically sized problems, the practitioner could use the SSA1 which requires less computational time than the remaining procedures to obtain good quality solutions or the GA-based procedures which require more computational effort but obtain the higher profits on average.Interestingly, the indexindependent representation is not adequate for the SA-based procedure (SSA3) but improves the average profits reached by SGA3.

Conclusions and Future Research
The capacitated SCND-COQ model selects several business entities at each echelon of the SC and allows the modeling

36.30
The bold font in the tables refers to the algorithms that reached best solutions.

Figure 1 :
Figure 1: Illustration of a supply chain network.

Figure 2 :
Figure 2: Representation of the flow of items through a supply chain network.

) 2 . 1 . 4 .
External Failure Cost.The external failure costs and opportunity costs are given by

Table 2 :
Ranges of the parameters used to generate the instances.  ,   , and   5,000 15,000 Rework cost (  ).70 90 Loss incurred owing to failure of purchased components (  ) 0.45 of average   0.55 of average   Variable cost for prevention activities (V  (  ,   ))