The Optimization of the Location of the Cargo in Three-Dimension Shelf: Employing the FP-Tree and the Artificial Fish Swarm Algorithms

. The allocation issues of the location of the cargo have aﬀected the operational eﬃciency of retail e-commerce warehouses tremendously. Adjusting the cargo location with the change of the order and the operation of the warehouse is a signiﬁcant research area. A novel approach employing the FP-Tree and the Artiﬁcial 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 Artiﬁcial Fish Swarm Algorithm. Finally, the picking order distance is obtained through two methods of the location-allocation above. The performance and eﬃciency of the novel introduced method have been conﬁrmed 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.


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. e 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 timeconsuming 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. erefore, the optimization of cargo location-allocation taking into account the association rules has affected the management of the warehouse and operations tremendously. e 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-perorder 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. e optimization outcomes of the PSO, the GA, and the AFSA were compared for the space allocation of cargo problems by Zhang et al. [9]. e findings suggested that the optimization impact of the AFSA was more significant than were the PSO and the GA.
is 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 lowcarbon 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. e 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.
en, 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. e 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.

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. e 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) e warehouse adopts random storage, which does not take the factor of the association rule into account. (4) e 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.

e 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.

e Definitions of the Symbols.
e variables of the model are as follows.
e notations of h, d, and w are called the height of and the depth of and the width of the cargo, respectively. w i : the weight related to the ith (i � 1, 2, . . . , n) p i : the frequency related to the ith during a certain time x: the xth row of the shelf (x � 1, 2, . . . , a) y: the yth column of the shelf (y � 1, 2, . . . , b) z: the zth layer of the shelf (z � 1, 2, . . . , c) μ: the friction coefficient g: the acceleration due to gravity e xyz " the energy consumption per unit mass from the origin of the item to the location (x, y, z) N: the number of frequent itemsets I: the number of product items in each frequent itemset L: the distance of center lines of the adjacent shelf passages D x : the designated cargo having the distance from inbound and outbound points in the x-direction a, b, and c are the total number of row shelves, the total number of column shelves, and the total number of layer shelves, respectively.

e Consumption Model for Energy.
e 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. e model for energy consumption expands the general formulation of the cargo location-allocation issues by adding x parity constraint. e following mathematical model is defined: (1) e consumption of the energy used for a unit mass of an item from the location to the input/output point is as follows: x is an odd number, x is an even number.
3.3.2. e Stability Model. By optimizing the cargo location, it is essential to ensure the stability of the shelves by storing Journal of Control Science and Engineering 3 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. e mathematical model is defined by

e Frequent Items
Model. e 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. e strategy of the association storage becomes an essential way to improve the operational efficiency of warehousing and customer satisfaction. e relationships between product items from customer orders can be extracted by employing the association rule mining. e 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:

e 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. e transformation of the target functions is defined by where,

e 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]. e reason is that the FP-Tree Algorithm only scans the dataset twice no matter what size the dataset would be. is 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. us, 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. e first stage is the construction of an FP tree using two gradients that are called the entries and the F- Table. e second stage performs the mining recursively on the FP-Tree and generates a frequent list of items. e third stage filters the frequent list of items meeting a given condition. Searching and constructing trees determine the frequent keywords recursively. e fundamentals of the FP-Tree are as follows: e input is the database of transaction and the minisupport e 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 e 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][28][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. us, the application range is wider. erefore, 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 popsizestepvisualtry numbermax gende ta,fishnum.
Step 3: to calculate the fitness value for each initial Fish Swarm called obj value(i).
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,value gbest.
Step 7: to update global optimal Artificial Fish called value zbest.
Step 8: to determine whether the termination condition for the condition is met. en, stop. Otherwise, return to the fifth step.

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.
e 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 (h) is 1.6 m, the width (w) is 1 m, and the depth (d) is 1.2 m. e numbers of rows (a), columns (b), and layers (c) on the shelves are 6. e distance between the adjacent shelves (L) is 3.7 m. e friction coefficient μ is 0.5. e acceleration due to gravity g is 10.
e parameters called the population size N, Maxgen, Try number, Visual, and Deta are assigned to 60, 500, 100, 100, and 0.8, respectively. When association rule is a concern, (α 1 , α 2 ) is assigned to (0.5, 0.5) in the simulation experiment. When it is not, (α 1 , α 2 , α 3 ) is assigned to (0.35, 0.35, 0.3) 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.

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. e threshold value (min imum support) is set to 4. Provided that I 1 ⇒I 2 support value is higher than the min imum support, it implies that product items I 1 and I 2 are simultaneously included in order frequently. e FP-Tree Algorithm is implemented to obtain frequent 1-itemset, 2-itemset, and larger itemset, whose counts are greater than or equal to 4. en, 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 (|m i − m j | ≤ min m i , m j ) to ensure the local stability of the shelf. To sum up, e 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: { } 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).

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. e total target value refers to the weighted optimal value of objective 1 and objective 2 in the comparative experiment. e parameters of the AFSA are called Fish Swarm size N, maximum heuristic times trynumber, visual field range visual, crowding factor deta, maximum iteration times max gen, and step size step. However, the parameter step size can be ignored since it is  Journal of Control Science and Engineering 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 max gen 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. e Fish Swarm size N is adjusted to attain the most appropriate value. en, the other parameters are equated to those values that are trynumber � 110, visual � 120, deta � 0.8, and max gen � 500. 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 N increases. When the scale of Artificial Fish Swarm N is assigned to 90, both the total target value and the convergence rate can reach a better state.
e maximum heuristic times denoted by trynumber are adjusted to attain the most appropriate value. en, the other parameters are assigned to N � 90, visual � 120, deta � 0.8, and max gen � 500, respectively. Figure 3 shows that trynumber � 110 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 visual � 120 and deta � 0.8 in the AFSA can lead to having a better solution.

e 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. e 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. e fitness function of AFSA is constructed by the distance between the optimal value and the actual point. e 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. Additionally, according to the iteration curve of AFSA presented in Figure 6(   Journal of Control Science and Engineering allocation way of the initial cargo location decreased by 6.6667%.

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 Table 2. e 50 items are stored in the corresponding cargo locations in the new allocation way. e 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%.   Journal of Control Science and Engineering  is represented by m * n, which is composed of n � 90 being the number of Artificial Fish Swarm and m � 500 being the maximum number of iterations used by the algorithm. Hence, m ≈ 5n was used. e FP-Tree Algorithm was employed to extract association rules, which would increase the time complexity O(p) in this research. On the other hand, p � 60 was used as the number of sample orders. us, the time complexity of the method suggested in this manuscript becomes O(n 2 ) + O(n). Since p and n 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.2675s. On the other hand, the experiment adopting the FP-Tree Algorithm and AFSA was 657.3835s, whose difference was 471.116s 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. erefore, the optimized effects of energy consumption and shelf stability are close to the outcome of the AFSA. e 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. e 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%. erefore, the optimization outcomes of both goal 1 and goal 2 in the two experiments are the same. e travel distance of the test order obtained by the first simulation experiment is optimized by 6.6667% when compared with the initial value. e 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. e 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.

e Comparisons of the Two Experiments. O(n
We first started with assigning the weights of the algorithms in contrast experiment (α 1 , α 2 ) to (0.5, 0.5) and the weights of the algorithm (α 1 , α 2 , α 3 ) (0.35, 0.35, 0.3) 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.
irdly, the frequencies of goods with association rules are roughly the same, and the main affecting factor of energy consumption is the frequency of goods. erefore, 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.

e Experiments for the Different Number of the Items.
e 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. e 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.
e 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. en, several simulation experiments were conducted to assess the performance of the FP-Tree.
e 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. e 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. e 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.

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. e 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. e 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) e optimized outcomes of the energy consumption are tested after two experiments are conducted. e null hypothesis and alternative hypothesis are represented as follows:     e comparison |T| > t α/2 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. e optimization outcomes of the energy consumption and shelf stability are the same as the former when compared with the experiments not utilizing association rules.

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. e 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. e results suggest that taking into account the association rules significantly decreases the total travel distance without increasing energy consumption and decreasing the shelf stability. e efficacy of the proposed method is confirmed by the experiment employing different quantities of items extracted from an e-commerce warehouse. erefore, 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. e proposed method is a novel approach to deal with this kind of problem. Furthermore, it can be easily applied to retail ecommerce and has a larger potential value for the applications of the logistics industry.
e proposed method has some limitations: only the binomial frequent list of items is attained to conduct the research when extracting association rules. e problem of cargo location-allocation could become more complicated if the larger frequent list of items stored nearby is also considered. erefore, 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
e data used to support the findings of this study are included within the article.