#### Abstract

Mathematical models of inventory-distribution routing problem for two-echelon agriculture products distribution network are established, which are based on two management modes, franchise chain and regular chain, one-to-many, interval periodic order, demand depending on inventory, deteriorating treatment cost of agriculture products, start-up costs of vehicles and so forth. Then, a heuristic adaptive genetic algorithm is presented for the model of franchise chain. For the regular chain model, a two-layer genetic algorithm based on oddment modification is proposed, in which the upper layer is to determine the distribution period and quantity and the lower layer is to seek the optimal order cycle, quantity, distribution routes, and the rational oddment modification number for the distributor. By simulation experiments, the validity of the algorithms is demonstrated, and the two management modes are compared.

#### 1. Introduction

Agriculture products supply chain management is important for reducing circulation costs and improving supply chain efficiency. A key factor in agricultural products supply chain management is inventory-distribution routing problem. Federgruen and Zipkin [1] established an inventory-transportation integrated optimization model based on one-warehouse and multiretailer distribution network, and Bender’s decomposition approach is used. Burns et al. [2] discussed the minimum cost problem on joint optimization of inventory and transportation based on one-dispatching point and multireceive point network under certain demand. Daganzo [3] researched the many-to-many inventory-transportation integrated optimization problem with bulk stations. Anily and Federgruen [4] studied the inventory and vehicle routing problem based on single product, certain demand, and continuous time. Trudeau and Dror [5] considered the situation about stochastic demand and the limited capacity of the vehicles. Ernst and Pyke [6] designed a heuristic algorithm to confirm the optimal delivery frequency, according to the inventory-transportation integrated optimization problem based on single distributor-single retailer under customer’s random demand. Herer and Roundy [7], Viswanathan and Mathur [8], Bertazzi et al. [9], and Chen and Zheng [10] researched an inventory-transportation integrated optimization model of one-warehouse multiretailer distribution network based on heuristic algorithm to minimize the costs of inventory, ordering, and transportation. Bertazzi and Speranza [11] proposed an efficient heuristic algorithm for multilayer inventory-distribution system with certain demand, and single supplier, no shortage, single delivery vehicle with limited capacity. Wang et al. [12] designed a heuristic algorithm according to the two-echelon distribution system which takes cyclical replenishment strategy, and the terminal customer demand is uncertain. Zhao et al. [13] proposed a decomposition heuristic algorithm based on Markov decision processes and Modified - saving algorithm under random demand. Tang Jiafu researched delivery planning problem in distribution center with the strategy of vehicle outsourcing model and multiple direct transport; an integer programming model was presented, and a genetic algorithm is designed to solve this model.

So far, the researches about joint optimization of inventory and transportation focus on the industrial products, without considering the metamorphism of agricultural products. Furthermore, considering that chain operation has become the main way of distribution network operation, in which the distributor makes the unified supply for the retailer. At present, there are two models about chain operation: one is regular chain mode. The distributors and the detailers belong to the same enterprise, which makes the direct operation and centralized management. The other is the franchise chain mode, on which the distributors and the detailers do not belong to the same enterprise, and they conclude management relationship through contracts. In this paper, mathematical models are established about the routing problem based on the two modes, and corresponding algorithm is designed to give some analysis and comparison.

#### 2. Assumptions and Notation

A two-echelon agriculture products supply chain system which consists of one distributor and multiple retailers is considered, in which the distributor has a single supplier and delivers agriculture products to the retailers. Both supplier and retailers adapt equal periodic order strategy and order at the beginning of period. For average profit maximization of supply chain, the optimal order time, quantity, and vehicle routing for distribution are to be determined.

The mathematical model is developed based on the following assumptions and notation.

*Superscript and Subscript*. Subscript 0 denotes the distributor. Subscripts , denote serial number of retailers. Superscripts , denote serial number of order interval period and delivery vehicles, respectively.

*Constant and Set* , : denote, respectively, set of locations of distributor and retailers and set of delivery vehicles. , , , and : denote, respectively, total number of retailers, minimum order interval period, maximum order cycle length of the retailer, and maximum capacity of the delivery vehicles. : denotes wholesale price per unit of the retailers’ order on the franchise chain mode. , : denote, respectively, the constant deterioration rate of agriculture products and deteriorating treatment cost per unit of deteriorating items. , : denote, respectively, constant order cost of distributor and retailers for each time. , : denote, respectively, inventory holding cost per unit per unit time of distributor and retailers. , : denote, respectively, inventory shortage cost and salvage value of surplus item per unit. , : denote, respectively, the customer’s basic demand, demand, and inventory correlation coefficient for retailer . , : denote, respectively, wholesale price per unit of the distributor’s order and retail price per unit of customers’ order. , : denote, respectively, the minimum distance and single vehicle freight between retailer and retailer . , , : denote, respectively, single vehicle freight per distance unit between different retailers, start-up costs of single vehicle, and freight per unit of the distributor’s order.

*Variables and Symbols* , : denote, respectively, order period’s length and order quantity of retailer . , : denote, respectively, order period’s length and order quantity of the distributor. : distribution route, , where is the adjacency relationship of single vehicle between retailer and retailer , ; is the length of distribution cycle. : order symbol of retailer in the periodic interval , . , : denote, respectively, the retailer ’s time of the inventory level decreased to zero and retailer ’s order cycle. , : denote, respectively, the distributor’s order cycle coefficient and the length of delivery cycle. , : denote, respectively, the customers’ demand and inventory level of retailer at time . , : denote, respectively, the distributor’s profit and retailer ’s profit. , : denote, respectively, the distributor’s average profit and retailer ’s average profit. : average profit of supple chain system.

*Assumption.* (1) The retailers’ demand is independent, and the demand rate is related to inventory level. Padmanabhan and Vrat’s [14] demand model is adopted; at any time , demand of the retailer ’s customer, , is , where is demand and inventory correlation coefficient, , , is basic demand, . Without loss of generality, profit is minus when , that is, the retailer cannot gain profit without customers’ basic demand.

(2) Considering the metamorphism of agricultural products, the longest length of retailers’ order cycle is . At the ending of every order cycle, the surplus inventory is treatment at salvage value .

(3) Agriculture products inventory of retailers deteriorates at constant deterioration rate , . The deteriorated items can be treated in time, and the treatment cost is per deteriorated unit.

(4) Wholesale price per unit of distributor is , and retailer price per unit is . Inventory holding cost per unit per unit time of distributor and retailers is and , . For franchise chain mode, wholesale price per unit of retailer’s order is . Then, .

(5) On franchise chain mode, distributor and retailers are risk neutral, sharing information based on wholesale contract. The distributor is leader, and the retailers act as the follower. For the distributor, shortage is not allowed and bear all freight. The average profit of distributor and retailer is concave functions of order cycle.

(6) Retailers’ ordering lead time is zero. Both distributor and retailers adopt equal periodic order, and the order period is integral multiple of the minimum interval period . The distributor’s order cycle is integral multiple of the retailers’ order cycle :

(7) Delivery vehicle capacity is . Single vehicle transportation cost between retailer and retailer , , is in proportion to the distance. In view of vehicle start-up costs ,

From assumptions above, the retailer’s maximum inventory level equal to order quantity . Define as time of the inventory level decreased to zero; we have , . With the boundary condition , then we have Accordingly, the retailer’s maximum inventory level and order quantity are

Define as adjacent relationship in order interval period and vehicle : .

Define as distribution route:

#### 3. Model on Franchise Chain Mode

On franchise chain mode, supply chain is decentralized; the optimal order quantity and order cycle rely on wholesale price. The distributor delivery products according to the retailers’ demand, and determine the distributor’s optimal order quantity and order cycle.

##### 3.1. Profit Analysis on Retailor

Proposition 1. *On franchise chain mode, as far as single order cycle of retailer is concerned, when profit of retailer is maximumzied, time of the inventory level decreased to zero, , satisfies
*

From Proposition 1, profit is maximized when , profit of retailer , , is

The partials of (9) are in sequence of sales revenue, purchase cost, deteriorating treatment cost, inventory holding cost, constant order cost. From (4), (5), and (9), we have the average profit of retailer : where From assumption (6), Let ; we have Then, when profit of retailer is maximumzied, the optimal order cycle satisfies (13). According to the constant order interval , we can find the optimal length of order cycle , and approach or reach the maximum value correspondingly:where and denote, respectively, top rounding and round down.

Correspondingly, optimal profit of retailer is

##### 3.2. Profit Analysis on Distributor

From assumption (5) and Equation (1), the distributor’s order quantity equals his retailers’ total demand in one order cycle: Define as order symbol of retailer in order interval period : At the beginning of order period , the distributor’s delivery quantity is , so Profit of the distributor is

The partials of (18) are in sequence of sales revenue, purchase cost, inventory holding cost, freight of purchase products, delivery cost, and constant order cost. From (17) and (18), we have the average profit of the distributor:

From (19), The average profit of distributor is concave functions of . We can find the optimal , , and approach or reach the maximum value correspondingly. Let , we have where

##### 3.3. Mathematical Model

On franchise chain mode, the retailers determine their order interval and order quantity according to wholesale price , then the distributor determines optimal order interval , order quantity , and distribute route . The mathematical model of inventory-distribution routing problem is s.t.

Constraints (23) to (26) relate to optimal strategy of the retailer. Constraint (26) ensures that each retailer’s profit is positive. Constraints (27) to (29) relate to optimal strategy of the distributor. Constraint (30) is capacity limit of delivery vehicle. Constraints (31) to (32) limit that one retailer is visited by exactly one vehicle. Constraint (33) ensures the equation of flow between retailers. Constraints (34) and (35) guarantee that the starting point and the terminal point of every distribute route are the distribute center. Finally, restrictions (34) to (38) define the nature of the variables.

#### 4. Model on Regular Chain Mode

Proposition 2. *On regular chain mode, when the average profit of supply chain is maximumzied, there is no surplus products at terminal time of order cycle. That is, the relationship between any delivery cycle of retailer, , and retailer time of the inventory level decreased to zero, , satisfies
*

Within one distribution cycle , the sales revenue of retailer minus inventory holding cost, shortage cost, and deteriorating treatment cost, we have Then, we have the average profit of retailer : The distributor’s order quantity, , equals the total delivery quantity in one order cycle : The cost of distributor is

The partials of (43) are in sequence of purchase cost, freight of purchase products, delivery cost, inventory holding cost, and constant order cost. Then, we have the average profit of the distributor: From (41) and (44), we have the average profit of supply chain: From (45), the average profit of supply chain is concave functions of . So, for constant order cycle of retailers, , we can find the optimal , , and approach or reach the maximum value correspondingly. Let ; we have where On regular mode, the optimal problem is to determine the optimal order quantity and order cycle , delivery quantity , , delivery cycle , and distribution route , which maxmize the average profit of supply chain. The mathematical model of inventory-distribution routing problem is s.t.

Constraints (49) to (52) illustrate the relationship between and , , . Constraint (53) is capacity limit of delivery vehicle. Constraints (54) and (55) limit that one retailer is visited by exactly one vehicle. Constraint (56) ensures the equation of flow between retailers. Constraints (57) and (58) guarantee that the starting point and the terminal point of every distribute route are the distribute center. Constraint (59) is length limit of retailer’s order cycle. Finally, restrictions (60) to (62) define the nature of the variables.

#### 5. Solution

In the following, improved genetic algorithms are developed to solve inventory-distribution routing problem of agriculture products supply chain.

##### 5.1. HAGA for Franchise Chain Mode

On franchise chain mode, the optimal order quantity and order cycle rely on wholesale price, so the key to solve the optimal problem is distribution routing. A heuristic adaptive genetic algorithm (HAGA) is developed for it. Heuristic rules mean that adding some routes which obtained by nearest neighbor algorithm and saving algorithm to initial population. Adaptive rules are that crossover ratio and mutation ratio vary with the population’s evolution state.

Natural number code is adopted, and the chromosome structure is where denotes serial number of task, 0 denotes distribution center, and gene fragment between two adjacent 0 is a delivery route.

To improve quality and stability of evolution, elitist model and elitist selection strategy is adopted.

PMX operator is used in crossover operation, and reversed operator is used in mutation operation. Crossover ratio and mutation ratio are expressed as follows: where , are constant, , . is the average fitness value of the population. is the fitness value of the best chromosome in the population. is the better one in the cross couple where , are constant, , .

Take time limitation of calculating or generations-stagnancy as algorithm termination rule. The algorithm procedure is as follows.

*Step 1. *According to (23) to (25), determine the optimal order cycle and order quantity of the retailers. Then, determine the distribution cycle and tasks in the order interval period. Furthermore, obtain the value of via (29).

*Step 2. *If , let order cycle coefficient of the distributor and obtain the optimal order cycle and order quantity of the distributor. Then, call subroutine of HAGA, seeking the optimal distribution route of every delivery interval period, go to Step 4.

*Step 3. *If , let and and calculate, respectively, the optimal order cycle and order quantity of the distributor. Then, call subroutine of HAGA, seeking the optimal distribution route of every delivery interval period; calculate the corresponding distributor’s average profit. Furthermore, determine the optimal value of .

The algorithm procedure of HAGA is as follows. Step (1): yield initial population, evaluate every chromosome, and save the elitist chromosome. Step (2): selection, crossover, and mutation operation, yield the new population. Evaluate the new population, find the elitist chromosome in the new population, and refresh the elitist chromosome saved. Step (3): if the elitist model or the super iteration number reaches the upper limitation go to Step (5). Step (4): go to Step (2). Step (5): output the optimal solution.

*Step 4. *Output the optimal solution: include in the optimal order cycle, optimal order quantity of the distributor and retailers, and the optimal distribution routes.

##### 5.2. Two-Layer Genetic Algorithm Based on Oddment Modification for Regular Chain Mode

On regular chain mode, the supply chain is concentrated, and it is needed to seek the optimal solution of all decision variables. On the other hand, owing to the capacity limitation and vehicle start-up costs, sometimes the delivery quantity of some retailer will be less than that have ordered to avoid the case of distribution route with little delivery quantity. Therefore, it is more difficult to solve the optimal problem on regular chain mode than that on franchise chain mode. A two-layer genetic algorithm based on oddment modification is developed to solve it. The algorithm procedure of the upper layer is as follows.

*Step 1. *In the upper layer, yield initial population and calculate the initial delivery quantity of every retailer according to (23).

*Step 2. *The upper layer transfers the initial delivery quantity of every retailer to the lower layer and obtains the modification schemes from the lower layer. Then, evaluate the modification schemes. If the current best solution is better than the maintaining optimum individual, refresh the optimum individual.

*Step 3. *If calculating time or generations-stagnancy reaches the upper limitation go to Step 5.

*Step 4. *Selection, crossover, and mutation operation yield the new population; go to Step 2.

*Step 5. *Output the optimal solution.

The algorithm procedure of the lower layer is as follows. Step (1): according to the order cycle and order quantity of the retailers transferred by the upper layer, determine the distribution cycle and delivery tasks in every order interval period by (49) to (52). Then, calculate by (52). Step (2): if , let order cycle coefficient of the distributor and obtain the optimal order cycle and order quantity of the distributor. Then, call subroutine of HAGA, seeking the optimal distribution route of every delivery interval period; go to Step (4). Step (3): if , let and , calculate, respectively, the optimal order cycle and order quantity of the distributor. Then, call subroutine of HAGA, seeking the optimal distribution route of every delivery interval period, caculate the corresponding distributor’s average profit. Furthermore, determine the optimal value of . Step (4): check the distribution scheme obtained by HAGA subroutine and divide the total delivery quantity in every distribution interval period by vehicle capacity ; if the remainders do not exceed the threshold , go to Step (6). Step (5): relaxing the vehicle capacity limitation to , call subroutine of HAGA and calculate again (put the current best distribution routes into initial population). Compare the new distribution routes with vehicle capacity and set the surplus delivery quantity as oddment. Then, by selecting retailers which have the lowest shortage cost and reducing their delivery quantity, obtain the modification delivery quantity. Furthermore, compare the optimal results after oddment modification with those of unmodified. If the new scheme is worse than the old, let the modification delivery quantity be zero. Step (6): transfer the optimal result to the upper layer and include in the modification delivery quantity of retailers, the optimal order cycle and quantity of the distributor, and the optimal distribution routes.

#### 6. Numerical Study

To illustrate the frontal model and algorithm, we consider a distribution network with one distributor and twenty retailers. Some parameter values are as follows: , , , , , , , ,, , , , , , and . Other relevant parameter values are shown in Tables 1 and 2 in the appendix.

On franchise chain mode, the parameters of HAGA algorithm are as follows: the number of initial population is 30, , , , upper limit of the elitist model is 15, and super iteration number is 150.

In Table 3, the optimization results of order cycle length, order quantity, and average profit for every retailer are listed. Correspondingly, the optimal average profit of the retailers sums up to 3457.24. For the distributor, the optimal order cycle length , the optimal order quantity , and the optimal average profit is 6880.468. On franchise chain mode, optimal average profit of the supply chain is 10337.71. An optimal distribution route schedule of the distributor, in which , is shown in Table 4.

On regular chain mode, the parameters of the upper layer algorithm are as follows: the number of initial population is 40, , , , and upper limit of the elitist model is 20. The lower layer algorithm has the same parameters as those of algorithm on franchise chain mode and the oddment modification threshold .

In Table 5, the optimization results of order cycle length and order quantity for every retailer are listed. Correspondingly, for the distributor, the optimal order cycle length and the optimal order quantity . On regular chain mode, optimal average profit of the supply chain is 11290.3. An optimal distribution route schedule of the distributor, in which , is shown in Table 6.

To illustrate the validity of oddment modification, we let the vehicle capacity to be 1000, then use the two-layer genetic algorithm based on oddment modification and without oddment modification, respectively, to calculate the problem of regular chain mode. The optimization results are shown in Table 7, in which oddment modification is done when ; two routes are combined, and the corresponding modification delivery quantity is 85.

From Table 7, when the tasks of some routes are not adequate, by reducing the number of distribution routes, oddment modification may save more transportation cost at the cost of lesser shortage. It contributes to improvement of the supply chain’s total profit.

For supply chain, the character of centralized control is better than that of decentralized control. In the frontal case, the average profit of supply chain on regular chain mode, 11290.3, is higher than that on franchise chain mode, 10337.7. However, a fixed order cost, , is considered for every retailer on franchise chain mode, while no order cost is considered on regular chain mode. Further, we remove the retailers’ fixed order cost on franchise chain, that is, let . Owing to no transportation cost, shorter order cycle means less cost, so the retailers’ optimal length of order cycle is 1. Hence the distributor’s optimal length of order cycle and distribution cycle will be 1. The corresponding optimal distribution routes are 0-2-4-5-9-6-17-11-12-10-14-20-0 and 0-1-3-13-7-15-19-8-16-18-0, the distributor’s optimal average profit is 6587.65, and the optimal average profit of supply chain is 10361.03, which is higher than that with .

Table 8 shows the average profit with different wholesale price on franchise chain mode. From Table 8, while wholesale price contract cannot coordinate the supply chain on franchise chain mode, profit distribution can be regulated by changing the wholesale price. For retailers, higher wholesale price means less profit. For the distributor, the opposite tendency is true in most cases, but owing to transportation cost, the profit on is less than that of . The average profit of supply chain reaches the maximum (10377.23) at , which is less than that on regular chain mode.

#### 7. Conclusions

We have discussed the inventory-distribution routing problem of agriculture products supply chain with one distributor and multiple retailers, based on franchise chain mode and regular chain mode. The corresponding mathematical models are presented.

For the franchise chain model, the optimal order cycle and order quantity of the retailers are dependent on wholesale price; therefore the key to solve the optimal problem is to solve the static multiperiod distribution routing problem. Then, an heuristic adaptive genetic algorithm is proposed for the model of franchise chain. For the regular chain model, a two-layer genetic algorithm based on oddment modification is proposed, which searches for the optimal distribution routes, the optimal order cycle, and order quantity for both the retailers and the distributor. The upper layer provides the distribution cycle and delivery quantity for the retailers, and the lower layer seeks the optimal order cycle, order quantity, distribution routes, and the rational oddment modification number for the distributor. The validity of the algorithms is also demonstrated by numerical examples.

The supply chain on regular chain mode is centralized controlling, and its average profit is higher than that on franchise chain mode, which is decentralized controlling. On franchise chain mode, profit distribution between the retailers and the distributor can be regulated by changing the wholesale price.

#### Appendix

For more details see Table 2.