#### Abstract

The allocation issues of the location of the cargo have affected the operational efficiency of retail e-commerce warehouses tremendously. Adjusting the cargo location with the change of the order and the operation of the warehouse is a significant research area. A novel approach employing the FP-Tree and the Artificial Fish Swarm Algorithms is proposed. Firstly, energy consumption and shelf stability are employed for the location-allocation. Secondly, the association rules among product items are obtained by the FP-Tree Algorithm to mine frequent list of items. Furthermore, the frequency and the weight of product items are taken into account to ensure the local stability of the shelf during data mining. Thirdly, another method of the location-allocation is obtained with the objectives of the energy consumption and the overall shelf stability along with the frequent items stored nearby that is conducted by the Artificial Fish Swarm Algorithm. Finally, the picking order distance is obtained through two methods of the location-allocation above. The performance and efficiency of the novel introduced method have been confirmed by running the experiment. The outcomes of the simulation suggest that the introduced method has a higher performance concerning criterion called the picking order distance.

#### 1. Introduction

Based on the newly introduced retail model, buyers have much higher demands for the timely manner of the distribution of online shopping based on the widespread use of it. The directors at the e-commerce warehouse deal with finding the better economical means that try to minimize the costs that are composed of some components, which are called the energy consumption, the distance, and/or time. One of the subsystems of the logistics system, called the sorting, has a key functionality in picking the orders satisfying the expectations of accuracy and being in timely manner. It has been reported that the time of picking the order has accounted for nearly 50% on the average [1], which is the biggest ratio in the operation links of the warehousing composed of both loading and unloading and information crunching. Besides, the travel time accounts for nearly 50% of the order related to some processes such as starting, searching, traveling, and sorting, which is the most time-consuming function requiring the highest labor necessity. Customer satisfaction is one of the critical evaluation measures used in the retail e-commerce by warehouses where the accuracy and timeliness of the orders get the highest attention. Therefore, the optimization of cargo location-allocation taking into account the association rules has affected the management of the warehouse and operations tremendously.

The allocation issue of the cargo location has received higher attention concerning some criteria such as the turnover efficiency of the cargo, the shelf stability, the picking routes, and the storage strategy of the warehouse. Xie et al. [2] proposed an operative method called the Restricted Neighborhood Tabu Search algorithm to resolve the assignment problem of the storage location by using the Grouping Constraints. Elisa and Cristiano Alexandre [3] studied a class-based storage process employing a cube-per-order index. Li and Ma [4] employed the traditional genetic algorithm combining with a virus coevolutionary genetic algorithm to resolve the problem regarding the cargo location. Yubo et al. [5] constructed an integrated optimization model to minimize the completion time of the command sequence taking into account the influence of assignment of the storage location and sorting the command sequence on the operation time comprehensively. Lei et al. [6] studied the packing of mixed cargo whose location assignment uses the integrated approach. Yang et al. [7] researched the location assignment and sequencing in multishuttle automated storage/retrieval systems under the modified 2nd-command cycle pattern employing the integrated optimization problem. Bortolini et al. [8] studied the so-called unit-load assignment problem for industrial warehouses located in the seismic fields employing a novel integer linear programming model. The optimization outcomes of the PSO, the GA, and the AFSA were compared for the space allocation of cargo problems by Zhang et al. [9]. The findings suggested that the optimization impact of the AFSA was more significant than were the PSO and the GA. This manuscript proposed a method that employs both the AFSA and association rules to optimize cargo location utilizing the distance of order picking as an assessment standard.

Besides, many types of research employing distinct algorithms in this discipline have been utilized to reduce logistics cost and to increase the efficacy of order picking. Homsi et al. [10] investigated the generic routing problem of ships and benchmark suite utilizing the segments of real shipping in maritime logistics, which proposed an exact branch-and-price algorithm and a hybrid metaheuristic to resolve the problem. Lei et al. [11] suggested a two-layer genetic algorithm to resolve an optimization model providing the shortest outbound time of all outbound orders in certain historical periods. Leng et al. [12] constructed a biobjective model, which helps achieve cost saving, energy saving, and emission reduction for the cold chain-based low-carbon location-routing problem that was a simple and efficient framework combining seven well-known multiobjective evolutionary algorithms. Haoxiang et al. [13] put forward an adaptive multiobjective genetic algorithm aiming at reaching the highest efficacy and shelf stability for the efficiency of warehousing. Shang et al. [14] proposed a memetic algorithm incorporating both genetic search and local intensification to attain an optimal/near-optimal solution for realistic sizes within a reasonable period. It was observed that the distribution network size of cargo delivery amplifies when the number of constraints and variables increases drastically. Karaenke et al. [15] employed the available maximizing cardinal utility framework to a retail logistics problem whose outcomes provide the randomized matching mechanisms with an effective tool to reduce waiting times at warehouses. Lam et al. [16] suggested an operation system of order picking to assist devising a plan of order picking and batch handling sequence. Matthews Visagie [17] dealt with the problem of minimizing pickers’ travel distance to pick all orders in this system, which employed a relaxation of this IP formulation to find a lower bound of an optimal solution.

A rule mining has been successfully implemented on several problems in business and engineering such as agriculture, medicine, and computer network. However, a relatively small amount of research on picking a route and the order distance based on data mining can be found in the literature. Zhou et al. [18] combined their well-known methods, which are called the genetic algorithm, the ant colony algorithm, and the cuckoo algorithm, to compute the minimization of the picking path in the form of a fishbone layout. Hossein et al. [19] employed the rule mining to compute the relations between orders concerning their due date. Hence, coming up with a solution procedure of the Traveling Salesman Problem integrated with genetic algorithm was employed to determine the travel path. Chen et al. [20] described the development of an order batching approach based on data mining and integer programming.

Several researchers primarily studied the assignment of the cargo location using the turnover efficiency of the cargo, the shelf stability, and the strategy of the warehouse storage to minimize the total distance. The manuscript has suggested implementing the data mining method to the space issue of the warehouse. Hence, the contributions of it can be articulated as follows:(1)A new approach employing both the FP-Tree Algorithm and the Artificial Fish Swarm Algorithm was proposed whose objective is to find the best location of cargo in a shelf represented in three dimensions.(2)Association rule between product items was obtained by the FP-Tree Algorithm to minimize the picking order distance. Specifically, the weight difference of items was taken into account to ensure the local stability of the shelf during data mining.

Then, the manuscript is organized as follows. Section 2 explains the problem. Section 3 deals with the fundamentals of the constructed mathematical model by providing some notations and definitions. The proposed algorithm is explained in Section 4. Section 5 provides the outputs of numerical experiments and analysis. Section 6 gives a conclusion and mentions the future work.

#### 2. The Description of the Problem

Suppose that a retail e-commerce warehouse using a shelf represented in a space composed of three dimensions is depicted in Figure 1. While one dimension called *X* denotes the depth of the shelf, the other dimension called *Y* describes the width of it. The last dimension called *Z* represents the height of it. Some issues can be observed in the allocation of the cargo locations, which are as follows: (1) in the preoptimization stage, items with the higher frequencies of warehousing are stored in the location near to the input/output (I/O) point. When these stored items are sold out, new items should be sequentially placed to such vacant cargo locations. (2) Concerning the long-term operation of the warehouse, the shelves will be “heavier on the top, lighter on the bottom” due to the salability of various items changing based on the seasons, and thus the quantity of the product items on the shelf varies widely. It is essential to reassign product items stored on the shelf to the cargo locations in time. (3) The warehouse adopts random storage, which does not take the factor of the association rule into account. (4) The problems of the wrong picking, the missing picking, and the delayed delivery could occur frequently in the process of picking the order, which results in a low timeliness rate and accuracy.

Hence, a multiobjective model to improve shelf stability and to minimize both energy consumption and the distance of frequent items due to warehouse operation is constructed, which aims at choosing an optimal method for allocation of cargo location to minimize the distance of order picking when the local stability of the shelf is satisfied.

#### 3. The Steps of Modeling

##### 3.1. The Assumptions of the Model

To simplify the model, the following assumptions are assumed:(1)Only one cargo location exists and each item is stored in one cargo location.(2)Full boxes are used to store items.(3)The front row is the inbound and outbound points. The zero (0) floor and column of the shelf are located at the bottom left corner in the warehouse zone.(4)Each cargo location is the same.(5)The volume of each product item cannot outnumber the storage capacity.(6)One transaction order corresponds to the product items bought during the visit to the one store.(7)All order data are acknowledged earlier.(8)All items are placed into the system.

##### 3.2. The Definitions of the Symbols

The variables of the model are as follows.

The notations of , , and are called the height of and the depth of and the width of the cargo, respectively. : the weight related to the ith : the frequency related to the ith during a certain time : the row of the shelf : the column of the shelf : the layer of the shelf : the friction coefficient : the acceleration due to gravity ” the energy consumption per unit mass from the origin of the item to the location : the number of frequent itemsets : the number of product items in each frequent itemset : the distance of center lines of the adjacent shelf passages : the designated cargo having the distance from inbound and outbound points in the *x*-direction

, , and are the total number of row shelves, the total number of column shelves, and the total number of layer shelves, respectively.

##### 3.3. Modeling

###### 3.3.1. The Consumption Model for Energy

The optimization of the cargo location is a readjustment process of the cargo location to lower the energy consumption and the labor cost for items and the warehouse, respectively. The model for energy consumption expands the general formulation of the cargo location-allocation issues by adding parity constraint. The following mathematical model is defined:

The consumption of the energy used for a unit mass of an item from the location to the input/output point is as follows:

###### 3.3.2. The Stability Model

By optimizing the cargo location, it is essential to ensure the stability of the shelves by storing items with a large span of the weight reasonably. In other words, the distance from the center of the gravity point of the shelves to the ground in the *z*-direction should be minimized. Generally, the heavier items should be stored in the lower location, while the lighter items should be stored in a higher location. The mathematical model is defined by

###### 3.3.3. The Frequent Items Model

The optimization of the cargo location means that items are reasonably distributed to the corresponding cargo locations. By doing so, it improves the efficiency of the cargo delivery by reducing the picking distance of the test order.

The strategy of the association storage becomes an essential way to improve the operational efficiency of warehousing and customer satisfaction. The relationships between product items from customer orders can be extracted by employing the association rule mining. The product items with higher support have higher relations. Hence, with higher support they are potentially required to be stored nearby, decreasing the distance and reducing the error probability of the picking process. Higher efficacy can be achieved by employing storing frequent items nearby.

Besides, it needs to be ensured that weight difference of frequent items is less than the minimum weight of the two items:

##### 3.4. The Target Function Transformation

To deal with all at the same time, this manuscript constructs an evaluation function by using the ideal point method that allows the different targets to be employed. The transformation of the target functions is defined bywhere, , , , , when is an odd number , otherwise, when .

Besides, .

#### 4. Algorithms

##### 4.1. The FP-Tree Algorithm

In 2000, the proposed FP-Tree Algorithm was called a classic association mining method that was an effective tool to mine the frequent list of items employing an extended prefix-tree structure that helps store the important information about patterns observed frequently titled the frequent-pattern tree (FP-Tree) [21]. When compared with others, namely, the a priori Algorithm and the Tree Projection, the FP-Tree outnumbers them when the high volume of data is a concern [22]. The reason is that the FP-Tree Algorithm only scans the dataset twice no matter what size the dataset would be. This algorithm obtains frequent patterns without generating a lot of candidate sets. It resolves the problem using the a priori algorithm that will generate a higher number of candidate sets. Many types of research available in the literature employing the FP-Tree method extract association rules between items. Lu and Guo [23] suggested an improved association rule algorithm utilizing the FP-Tree to improve the efficacy of the user’s behavior pattern dealing with the extraction of rules in a big-data environment. Syakur et al. [24] examined customer relationships utilizing purchased products. Thus, it presented a discussion for the comparison of time complexity between the FP-Tree Algorithms and a priori algorithms. Yanling and Hongxia [25] employed the FP-Tree Algorithm to attain products that have a high demand utilizing a large number of transaction records. Feng et al. [26] put forward a method in acquiring algorithms by improving the temporally correlated rules of the FP-Tree that are utilized in tracking customers’ behavior. Hence, the FP-Tree Algorithm is adopted to identify the connections between product items herein for the optimization of the cargo location.

Employing the divide-and-conquer mechanism is the key step of the implementation of the FP-Tree composed of three stages. The first stage is the construction of an FP tree using two gradients that are called the entries and the F-Table. The second stage performs the mining recursively on the FP-Tree and generates a frequent list of items. The third stage filters the frequent list of items meeting a given condition. Searching and constructing trees determine the frequent keywords recursively.

The fundamentals of the FP-Tree are as follows: The input is the database of transaction and the mini-support The output is the frequent pattern set How to run the FP-Tree method is summarized as follows: Step 1: to construct the FP-Tree composed of the following: (1) define the FP-Tree consisting of a root node, the item prefix son tree of the item, and its header table; (2) each node of the item prefix son tree consists of its name, its node count, and its node chain where the node count refers to the nodes numbers and node chain points to the next node with the same item name in the tree; (3) every entry of the item head table includes its name, node chain, and the header pointing to the first node in the tree Step 2: to mine the FP-Tree that gets the 1-length frequent pattern, to generate its conditional pattern base (a subdatabase), and then to establish its conditional FP-Tree and recursively mine the tree; employing the suffix mode and the frequent pattern from the conditional FP-Tree, a connection could be achieved for pattern growth Step 3: to judge the condition and to discover the frequent 2-itemset satisfying the conditions of the local stability

##### 4.2. The Artificial Fish Swarm Algorithm

Artificial Fish Swarm Algorithm (AFSA) is an effective method to resolve optimization problems employed for facility location-allocation, traveling salesman problem, and sorting of activities [27–29]. Besides, Wang et al. [28] concluded that the AFSA has a strong global search ability and fast convergence rate and attains a better solution whose performance can be summarized as follows: (1) the fast convergence speed and its applicability to practical problems, (2) quickly attainable outcomes though not having higher precision, and (3) ease of construction of the model. Thus, the application range is wider. Therefore, the AFSA emerging as a practical method to resolve the assignment of cargo location is proposed. Utilizing Zhang et al. [9], the steps of Artificial Fish Swarm Algorithms are presented as follows: Step 1: to set ,. Step 2: to initialize Fish Swarm utilizing . Step 3: to calculate the fitness value for each initial Fish Swarm called . Step 4: to record the optimal initial Artificial Fish information. Step 5: to use preying, swarming, following, and random behavior. Step 6: to update the Artificial Fish optimal fitness,. Step 7: to update global optimal Artificial Fish called . Step 8: to determine whether the termination condition for the condition is met. Then, stop. Otherwise, return to the fifth step.

#### 5. The Simulation

##### 5.1. Data Processing

###### 5.1.1. Data Acquisition and Setting Parameter

In this subsection, we expect to obtain the features of the items of the data including the weights, the amount of goods, and the original locations of each type of goods in the warehouse. Moreover, the warehouse attributes are necessary including the dimensions, the layout, and the distance between the adjacent shelf passages. Lastly, the AFSA is set as follows.

The initial information of the items in the warehouse is shown in Table 1, which mainly includes the initial coordinates of the cargo locations, the quantity of the items, and the frequencies of the items. Besides, the height of each position () is 1.6 m, the width () is 1 m, and the depth () is 1.2 m. The numbers of rows (), columns (), and layers () on the shelves are 6. The distance between the adjacent shelves () is 3.7 m. The friction coefficient is 0.5. The acceleration due to gravity is 10.

The parameters called the population size , , , , and are assigned to 60, 500, 100, 100, and 0.8, respectively. When association rule is a concern, is assigned to in the simulation experiment. When it is not, is assigned to in the simulation experiment. Moreover, 10 independent experiments are conducted for each case and the average value of each is computed as the final value to eliminate the effect of randomness.

###### 5.1.2. Determining the Frequent List of Items

Two concepts can be stated for the convenience as follows: many orders are randomly selected from the data of the order of a certain month of the warehouse using the “rand” function to take the samples for data mining, which are called sample orders. Additionally, many orders are randomly selected from the order data of the warehouse in the next month to test the picking distance of ways of cargo location-allocation, which are called test orders.

An illustrative example shown in a python program presents an order database including 60 orders of 50 different items. To obtain the frequencies of items and frequent list of items of the 50 items, we conducted several experiments of data mining for 60 sample orders. Firstly, the information including the data of 60 sample orders and the weight of 50 items are imported into the FP-Tree Algorithm program. Secondly, the “FOR” loop statement is used to accumulate the number of items in the sample order. Hence, the number of items is obtained as the corresponding frequencies of items in and out of the storage. The threshold value () is set to 4. Provided that support value is higher than the , it implies that product items and are simultaneously included in order frequently. The FP-Tree Algorithm is implemented to obtain frequent 1-itemset, 2-itemset, and larger itemset, whose counts are greater than or equal to 4. Then, screening out the frequent 2-itemset makes preparations for the association rules simulation of the experiments. Finally, the experiment also set the threshold of the weight difference of frequent items () to ensure the local stability of the shelf. To sum up, The FP-Tree Algorithm obtains the number of times of 50 items out of storage and the frequent 2-itemset of the support degree greater than or equal to 4. In the simulation experiment taking into account the association rules, it is potentially required to take the counts as the frequency of 50 items and take the frequent 2-itemset stored nearby as the third target. By using the FP-Tree Algorithm, the final frequent list of items and corresponding supports are obtained as follows:

, , , , , , (i.e., refers to the number of times that items no. 2 and no. 8 are simultaneously included in the same order is 4. Additionally, the number of times of 50 items acquired by the FP-Tree algorithm is taken as the frequency of the corresponding items, and it is denoted in Table 1).

##### 5.2. Adjusting the Algorithm Parameters

It is a fact that the parameter values have a great impact on the performance of the algorithm, which is a principal challenge for the algorithm affected by the design details. Hence, adjusting parameters for AFSA needs to be done. Two performance measures for parameters are employed, which are called the total objective optimized value and the algorithm convergence rate in general. The total target value refers to the weighted optimal value of objective 1 and objective 2 in the comparative experiment. The parameters of the AFSA are called Fish Swarm size , maximum heuristic times , visual field range , crowding factor , maximum iteration times , and step size . However, the parameter step size can be ignored since it is mainly employed in the continuous problems. In the manuscript, the problem called the cargo position optimization is a discrete type of problem. Besides, employing the parameter is not necessary since it is related to the convergence of the algorithm. Figures 2–5 present the impacts of the four parameters on the total objective optimized value and the convergence speed of the algorithm.

The Fish Swarm size is adjusted to attain the most appropriate value. Then, the other parameters are equated to those values that are , , , and . When N increases, how the total target value and iteration speed are altered can be observed. Figure 2 shows that the total target value and the iteration speed have a downward trend when the Fish Swarm size increases. When the scale of Artificial Fish Swarm is assigned to 90, both the total target value and the convergence rate can reach a better state.

The maximum heuristic times denoted by are adjusted to attain the most appropriate value. Then, the other parameters are assigned to , , , and , respectively. Figure 3 shows that is the most reasonable when the curve of total target value and convergence rate is a concern.

Similarly, Figures 4 and 5 show that setting and in the AFSA can lead to having a better solution.

##### 5.3. The Contrast Experiment

In this subsection, the simulation experiment first obtains a new allocation way for the optimization targets of energy consumption and the overall shelf stability. Afterward, the present optimization targets extend the general targets by adding the association rules mining, which obtains another allocation way. The performances of these two approaches of the cargo location-allocation are primarily compared based on the travel distance of test orders. Lastly, a statistical test was employed to verify the outcomes of the analysis and the validity of the model and the method in this manuscript.

The fitness function of AFSA is constructed by the distance between the optimal value and the actual point. The optimal values of the Target 1 and Target 2 are calculated by using AFSA and the results are 80527 and 1.1095, respectively.

Comparing two methods provides some useful insights. Firstly, optimal results are attained not utilizing the association rules in the experiment after adjusting the parameters. On the other hand, the parameters of the experiment employing association rules are consistent with those of the first experiment. Secondly, the average value of 20 runs of the experiment was selected as the final optimization value of the two methods.

###### 5.3.1. Experiment without Taking into Account the Association Rules

When just taking into account both Target 1 and Target 2 in the above model, the results of the experimentation are obtained by AFSA shown in both Figures 6(a) and 6(b). When compared with Figure 1, seen in Figure 6(a) are most of the items allocated in the cargo locations near to the I/O point greatly reducing the energy consumption of the items in and out of the storage. Meanwhile, they are placed in the location at the bottom of the shelf meaning that the overall stability of the shelf is significantly improved. Additionally, according to the iteration curve of AFSA presented in Figure 6(b), the algorithm can converge stably within 500 iterations.

**(a)**

**(b)**

The final results show that the value of Target 1 is optimized from the initial value 202258.5205 to an optimized value 91807.0375, which decreased by 54.6091%. The value of Target 2 is optimized from 4.7211 to 1.5894, which decreased by 66.3341%. The new method of cargo location-allocation is obtained shown in Table 2. The 50 items are stored in the corresponding cargo locations in the new allocation way. The result of the experiments suggests that the distance of the test order is 840 by the allocation way of the optimized cargo location and the distance of the test order is 900 by the allocation way of the initial cargo location decreased by 6.6667%.

###### 5.3.2. Experiments Taking into Account the Association Rules

Based on the above experiments, the optimization targets extend the above targets by adding frequent items stored nearby in this experiment. When taking into account both Target 1 and Target 2 and the frequent items stored nearby in Target 3, the results of the experimentations also are obtained by AFSA shown in Figures 7(a) and 7(b), respectively. When compared with Figure 1, seen in Figure 7(a) are most of the items allocated in the cargo locations near to the I/O point greatly reducing the energy consumption of items in and out of the storage. Meanwhile, they are placed in the location at the bottom of the shelf meaning that the overall stability of the shelf is significantly improved. Additionally, according to the iteration curve of AFSA in Figure 7(b), the algorithm can converge stably within 500 iterations.

**(a)**

**(b)**

The final results show that the value of Target 1 is optimized from the initial value 202258.5205 to optimized value 90787.6995 decreased by 55.1130%. The value of Target 2 is optimized from 4.7211 to 1.5870 decreased by 66.3855%. The new way of the cargo location-allocation is obtained as shown in Table 2. The 50 items are stored in the corresponding cargo locations in the new allocation way. The results of the experiments suggest that the distance of the test order is 615 by the allocation way of the optimized cargo location and the distance of the test order is 900 by the allocation way of initial cargo location decreased by 31.6667%.

###### 5.3.3. The Comparisons of the Two Experiments

is the complexity of comparing the algorithms of the experiments. The time complexity in the programming language is represented by , which is composed of being the number of Artificial Fish Swarm and being the maximum number of iterations used by the algorithm. Hence, was used. The FP-Tree Algorithm was employed to extract association rules, which would increase the time complexity in this research. On the other hand, was used as the number of sample orders. Thus, the time complexity of the method suggested in this manuscript becomes . Since and belong to the same order of magnitude, the method proposed herein has witnessed a small increment in time complexity based on the comparison algorithm. Besides, the running time of the comparing experiment was 186.2675. On the other hand, the experiment adopting the FP-Tree Algorithm and AFSA was 657.3835, whose difference was 471.116 that was higher than the former. As a result, when compared with the AFSA, the proposed method can attain an approximate optimal effect regarding the distance of order picking within a certain computation time. Hence, it adds less time complexity. Therefore, the optimized effects of energy consumption and shelf stability are close to the outcome of the AFSA.

The outputs of the simulation experiments compared are shown in Table 3. We report that the experiment taking into account the association rules can achieve less travel distance for the test order than not taking into account the association rules where energy consumption does not increase and shelf stability does not decrease. The value of Target 1 in the simulation experiment not taking into account the association rules is optimized by 54.6091% when compared with the initial value, while the value of Target 1 in the simulation experiment taking into account the association rules is optimized by 55.1130% when compared with the initial value. On the other hand, the value of Target 2 in the simulation experiment not taking into account the association rules is optimized by 66.3341% when compared with the initial value, while the value of Target 2 in the simulation experiment taking into account the association rules is optimized by 66.3855%. Therefore, the optimization outcomes of both goal 1 and goal 2 in the two experiments are the same. The travel distance of the test order obtained by the first simulation experiment is optimized by 6.6667% when compared with the initial value. The travel distance of the test order obtained by the second simulation experiment is optimized by 31.6667%, which is improved by 25% when compared with the former. The results of simulation experiments taking into account the association rules are better than the results of simulation experiments not taking into account the association rules for the picking distance of the test order when the energy consumption of the items in and out of the storage and the shelf stability reach the same optimization value, which can be explained as follows.

We first started with assigning the weights of the algorithms in contrast experiment to and the weights of the algorithm in the latter experiment, respectively. When compared with energy consumption in Target 1 and the shelf stability in Target 2, the weight of related goods in the nearby storage in Target 3 is smaller. Hence, Target 3 has very little impact on both Target 1 and Target 2. Secondly, when extracting association rules which is employed to attain a frequent list of items, the weight difference of related goods is limited, which is less than a certain threshold ensuring the local stability of shelves. Moreover, it has little effect on shelf stability. Thirdly, the frequencies of goods with association rules are roughly the same, and the main affecting factor of energy consumption is the frequency of goods. Therefore, it has little impact on energy consumption. Finally, the FP-Tree Algorithm is employed to extract association rules to lower the distance between frequent items, which thus greatly reduces the distance of order picking.

##### 5.4. Verification of the Conclusions

###### 5.4.1. The Experiments for the Different Number of the Items

The usability of the proposed association rules mining is demonstrated for the optimization of the cargo location. Hence, we conduct experiments employing 30, 70, 90, 130, and 170 items apart from 50 items, respectively. Tables 4–7 report the results of our proposed experiment taking into account the association rules and not taking into account the association rules, respectively. The values of both Target 1 and Target 2 and initial and optimal values of the test order distance are obtained for the different number of the items as shown in Table 4.

The optimized values of the single target corresponding to the different number of the items can be attained with the experiment either utilizing the association rules and or not utilizing the ones shown in Table 5 according to the steps of the simulation experiment above.

Then, several simulation experiments were conducted to assess the performance of the FP-Tree. The target values presented in both Tables 4 and 5 were employed to compute the optimized percentages of Target 1, Target 2, and test order picking distance in the simulation experiment either utilizing or not utilizing the association rules, respectively, denoted in Table 6.

Finally, the optimized percentages of Target 1 and Target 2 and test order distance in the simulation experiment not utilizing the association rules in Table 6 are chosen as the benchmarks. The outcomes denote that the benchmarks are subtracted from the optimized percentages of Target 1 and Target 2 and test order distance in the simulation experiment utilizing the association rules denoted in Table 7.

Finally, the comparison results are presented in curves. The results of the experiments by taking into account the association rules lead to a considerable improvement compared to not taking into account the association rules. According to the comparison curves of Target 1 shown in Figure 8, when compared with the curves of the initial and the optimal values, the curves of the optimized values of simulation experiment not taking into account the association rules and taking into account the association rules coincide. According to the comparison curves of Target 2 in Figure 9, when compared with the curves of the initial and the optimal values of Target 2, the curves of the optimized values of the simulation experiment not taking into account the association rules and taking into account the association rules coincide. Additionally, Figure 10 shows the picking distance comparison curves of the test orders over the different numbers of the items. It represents that both picking distances of text orders in the simulation experiment not taking into account the association rules and taking into account the association rules are lower than the initial picking distance. However, the optimization degree of the picking distance in the experiment taking into account the association rules is better than the optimization range of the picking distance in the experiment not taking into account the association rules. Generally, when compared with the simulation experiment not taking into account the association rules, the total distance can be decreased significantly by the experiment employing the association rules not taking into account increasing the energy consumption and decreasing the shelf stability.

###### 5.4.2. Running Statistical Test

To judge whether the conclusion provided above is reliable or not, the statistical test, called the paired sample mean test, is conducted to determine whether there is a significant difference between the optimization effects of the association rules and experiments not utilizing association rules. The optimization effects of experiments deal with the energy consumption, the shelf stability, and the distance of the order picking. Hence, the objective is to decide whether the optimization effects of energy consumption, the shelf stability, and the distance of the order picking behave the same as the ones whose optimized effect is in the experiments not utilizing association rules. The optimized percentage of each target employs 30, 50, 70, 90, 130, and 170 products, respectively, and conditions of the two experiments are presented in Table 6.(1)The optimized outcomes of the energy consumption are tested after two experiments are conducted. The null hypothesis and alternative hypothesis are represented as follows: represents the standard deviation of the difference variable employing the data presented in Table 7, which is defined and computed by The statistic is defined and computed by The following result is attained by looking up the table at the significance level of with *n* − 1 degree of freedom: The comparison showing the acceptance of the null hypothesis implies that there is no significant difference in the optimization effect of energy consumption between the experiments utilizing the association rules and not utilizing the association rules, respectively.(2)The optimized results of shelf stability after running a statistical test using the data in Table 7 are denoted by The comparison showing the acceptance of the null hypothesis implies that there is no significant difference in the optimization effect of shelf stability between the experiments utilizing the association rules and not utilizing the association rules, respectively.(3)Similarly, the optimized results of shelf stability after running statistical test employing the data in Table 7 are denoted by

The comparison showing the rejection of the null hypothesis implies that there is a significant difference in the optimization effect of the distance of order picking between the experiments utilizing the association rules and not utilizing the association rules, respectively.

It can be said that the optimization results of the distance of order picking are better in the experiments utilizing association rule. The optimization outcomes of the energy consumption and shelf stability are the same as the former when compared with the experiments not utilizing association rules.

#### 6. Conclusion

In this manuscript, an approach based on the proposed FP-Tree Algorithm and AFSA can obtain a much better allocation way of cargo location to significantly reduce the picking order distance. The FP-Tree Algorithm, called a data mining technique, is employed to determine the relation rules implying demand structure extracted directly from the customer data. Besides, the frequent list of items generated by the FP-Tree Algorithm not only corresponds to some requirements of minimum support but also provides the local stability of the shelf. The results suggest that taking into account the association rules significantly decreases the total travel distance without increasing energy consumption and decreasing the shelf stability. The efficacy of the proposed method is confirmed by the experiment employing different quantities of items extracted from an e-commerce warehouse. Therefore, employing the FP-Tree Algorithm and AFSA looks more effective in finding the solution to the issue of cargo location-allocation than does the AFSA. The proposed method is a novel approach to deal with this kind of problem. Furthermore, it can be easily applied to retail e-commerce and has a larger potential value for the applications of the logistics industry.

The proposed method has some limitations: only the binomial frequent list of items is attained to conduct the research when extracting association rules. The problem of cargo location-allocation could become more complicated if the larger frequent list of items stored nearby is also considered. Therefore, the suggested method is more suitable for small retail enterprises having less number of product categories. Besides, test orders are drawn from a known dataset. However, unpredictability is a widely encountered situation when dealing with actual orders, which has a great effect on the distance of order picking. It would be more practical to combine the optimization of order position with the actual strategy of order picking. Future work will focus on dealing with these issues.

#### Data Availability

The data used to support the findings of this study are included within the article.

#### Conflicts of Interest

The authors declare no conflicts of interest.

#### Acknowledgments

This research was funded by Anhui province “excellent six, a top” outstanding talent cultivating innovation project (grant number SK2018A0064); Anhui University of Technology quality project (grant number 20184900004); and Anhui University of Technology education teaching research project (grant number 2018jy19).