Factory replenishment path optimization method
By improving the whale optimization algorithm and combining with variable neighborhood search, a factory path planning model is constructed, which solves the problems of high logistics costs and complex path selection within the enterprise, achieves optimal path planning, significantly reduces logistics costs, and improves transportation efficiency.
Patent Information
- Application Number
- CN202410711270.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology ignores the optimization of intra-enterprise logistics, resulting in high logistics costs within the factory. Forklift drivers face complex path selection problems and find it difficult to effectively plan vehicle paths to reduce time delays and fuel consumption.
Improve the whale optimization algorithm, build a factory path planning model by introducing convergence factors and variable neighborhood search algorithms, and optimize the trailer operation path to achieve the shortest path and lowest cost.
It avoids the local optimum and low convergence accuracy problems of the traditional whale optimization algorithm, improves the understanding accuracy and convergence speed, and obtains the optimal path, which significantly reduces logistics costs and improves transportation efficiency.
Smart Images

Figure CN118628012A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of factory logistics paths, and in particular to a factory replenishment path optimization method. Background Art
[0002] According to relevant statistics, the logistics cost of Chinese automobile manufacturers accounts for more than 15% of their total sales, while that of European and American countries is 8% and that of Japan is 5%. It can be seen that there is a huge gap in logistics costs between China and abroad, which is enough to show that there is a lot of room for improvement in the logistics of China's automobile manufacturing industry. For manufacturing companies, the efficiency of in-plant logistics plays a decisive role in the daily production and manufacturing of the factory, and is also the key to the factory's realization of on-time and efficient lean production and manufacturing.
[0003] In current research, the focus is mainly on optimizing the external logistics and transportation system of enterprises, while the internal transportation logistics of enterprises are ignored. The main reasons are: (1) Most managers believe that the proportion of external logistics of enterprises is high and the effect is quick; (2) In-plant logistics is generally classified as enterprise logistics or production logistics, and most researchers have not conducted separate research on in-plant logistics; (3) Due to the application of third-party logistics and fourth-party logistics in manufacturing enterprises, outsourced logistics is no longer regarded as in-plant logistics by managers. However, in large manufacturing enterprises, the daily demand for raw materials and auxiliary materials is large, there are many semi-finished products and finished products, the frequency of in-plant transportation is high, and there are many operation points with high timeliness requirements. This leads to the fact that the internal logistics costs of enterprises also account for a high proportion of the entire enterprise's logistics costs. Therefore, reducing the cost of in-plant logistics is of great significance to improving the overall efficiency of enterprises.
[0004] In the current automotive parts production and distribution environment, forklift drivers face changing traffic conditions, complex distribution routes and limited time windows, which make route selection particularly complicated. In this context, how to effectively plan the vehicle's driving route has become an important issue in reducing time delays, reducing fuel consumption and improving transportation efficiency. Summary of the invention
[0005] The purpose of the present invention is to provide a method for optimizing the replenishment path in a factory area. With the shortest trailer operation path and the lowest operation cost as the goal, a factory path planning model is constructed, and the solution is obtained through an improved whale optimization algorithm, thereby avoiding the problem that the traditional whale optimization algorithm is prone to fall into local optimality and low convergence accuracy, improving the solution accuracy and convergence speed, and obtaining the optimal path.
[0006] To achieve the above object, the present invention provides a method for optimizing a factory replenishment path, the steps comprising:
[0007] S1. Improve the whale optimization algorithm;
[0008] S2, build a factory path planning model;
[0009] S3. Based on the improved whale optimization algorithm, the factory path planning model is solved and the factory path is optimized.
[0010] Preferably, in step S1, the individual whales are optimized by improving the convergence factor and introducing a variable neighborhood search algorithm.
[0011] Preferably, the method for optimizing individual whales is:
[0012] Whale hunting includes encirclement hunting, bubble net hunting and searching for prey;
[0013] Encirclement predation uses the prey position or its vicinity as the best candidate solution and adjusts the position of the individual whale accordingly. The mathematical model is:
[0014] D=|C·X * (t)-X(t)| (1)
[0015] X(t+1)=X*(t)-A·D (2)
[0016] A=2a·ra (3)
[0017] C=2·r (4)
[0018]
[0019] Where t represents the number of generations; D represents the distance vector between the individual whale and the current optimal solution; X represents the position vector of the individual whale; X * represents the position vector of the current optimal solution; C and A represent adjustment coefficients, and C∈[0,2], A∈[-a,a]; a is an adjustment parameter whose value decreases linearly from 2 to 0 as the number of iterations increases; r represents a random number, r∈[0,1], t max represents the maximum number of iterations, γ and Two parameters, with values of 0.5 and 0 respectively;
[0020] Bubble net predation includes two updating methods: spiral updating and shrinking and surrounding. The shrinking and surrounding is achieved by adjusting the value of a. When |A|≤1, the individual whale uses formula (2) to move to the optimal solution position, simulating the shrinking and surrounding of the prey.
[0021] Spiral update, its mathematical model is:
[0022] D'=|X*(t)-X(t)| (6)
[0023] X(t+1)=D'·e bl ·cos(2πl)+X*(t) (7)
[0024] Where D' represents the distance vector between the individual whale and the current optimal solution; b represents the constant coefficient of the spiral shape; l represents a random number, l∈[-1,1];
[0025] The whale simultaneously performs two position update strategies, namely, shrinking and encircling and spiral updating, and selects the same probability p to implement these two position update strategies. The mathematical model is:
[0026]
[0027] Where p represents a random number, p∈[0,1];
[0028] Search for prey, introduce variable neighborhood search algorithm to realize jump search, enhance disturbance mechanism, define neighborhood structure set N k , k=1,2,3, determine the termination condition of the algorithm, if the termination condition is met, the algorithm terminates, if the termination condition is not met, continue to iterate, during which the mathematical model of the whale position update is:
[0029] D=|C·X rand -X| (9)
[0030] X(t+1)=X rand -A·D (10)
[0031] Among them, X rand Represents the position vector of a randomly selected individual whale in the current whale group.
[0032] Preferably, in step S2, a factory path planning model is constructed with the shortest trailer operation path and the lowest operation cost as the goal, and its objective function is:
[0033]
[0034]
[0035] Considering the vehicle's driving cost, fixed cost, and penalty factors for vehicles arriving at the service point early or late, the formula is:
[0036]
[0037] The maximum load capacity of the vehicle is limited, and the formula is:
[0038]
[0039] The distribution task is limited, and the formula is:
[0040]
[0041] When the delivery task is completed, it returns to the distribution center. The formula is:
[0042]
[0043] In the formula, m represents the number of vehicles, n represents, k represents the vehicle set, c represents the fixed cost per vehicle, b represents the driving cost per unit distance, The driving variable indicating whether vehicle k passes through the road section (i, j), If the vehicle passes through the road section (i, j), then on the contrary, x ij ∈{0,1},i,j∈{1,2,...,N}, d ij represents the straight-line distance between node i and node j, P1 represents the penalty coefficient for arriving earlier than the earliest planned time window, P2 represents the penalty coefficient for arriving later than the latest planned time window, and q i represents the material demand at task point i; Q represents the maximum loading capacity of delivery vehicle k; A i represents the time when the vehicle first arrives at the warehouse, T k represents the actual running time of the vehicle, [e i ,l i ] represents the time window specified by the production task, where e i is the planned departure time of the task, l i is the planned completion time of the task, A variable indicating whether vehicle k serves production line i, If the vehicle serves production line i, then on the contrary i∈{1,2,...,N},
[0044] Preferably, step S3 includes:
[0045] S31, inputting relevant parameters for constructing a factory path planning model;
[0046] S32, initializing population and parameters;
[0047] S33, performing neighborhood search, and updating the current solution and the optimal solution according to the neighborhood search results;
[0048] S34, shrinking the search space;
[0049] S35, updating the position of the whale;
[0050] S36, monitor and correct the position;
[0051] S37. Return the optimal path.
[0052] Preferably, step S33 includes two search methods, specifically:
[0053] The first search method N1 selects any two non-adjacent nodes in the delivery path and flips the path between them to obtain a new delivery path;
[0054] The second search method N2 selects any two nodes on the delivery path, swaps the positions of the two nodes, and keeps the other nodes unchanged to obtain a new delivery path.
[0055] Therefore, the present invention adopts the above-mentioned factory replenishment path optimization method, based on the traditional whale optimization algorithm, introduces a nonlinear strategy, improves the convergence factor, and at the same time, introduces a variable neighborhood search algorithm to jointly improve the whale optimization algorithm. With the shortest trailer operation path and the lowest operation cost as the goal, a factory path planning model is constructed, and the solution is solved by the improved whale optimization algorithm, avoiding the problem that the traditional whale optimization algorithm is easy to fall into local optimality and low convergence accuracy, improving the solution accuracy and convergence speed, and obtaining the optimal path.
[0056] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A convergence factor variation trend diagram of an embodiment of the present invention;
[0058] Figure 2 A diagram showing a two-element operation neighborhood structure according to an embodiment of the present invention;
[0059] Figure 3 A neighborhood structure diagram of the exchange method according to an embodiment of the present invention;
[0060] Figure 4 This is a graph showing a change in the objective function of the VSN-WOA algorithm according to an embodiment of the present invention;
[0061] Figure 5 It is a roadmap of the optimal distribution solution of the VSN-WOA algorithm according to an embodiment of the present invention;
[0062] Figure 6 This is a trend diagram of the objective function of the WOA algorithm according to an embodiment of the present invention;
[0063] Figure 7 This is a roadmap for the optimal delivery solution of the WOA algorithm according to an embodiment of the present invention. DETAILED DESCRIPTION
[0064] Example
[0065] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0066] A method for optimizing a factory replenishment path, comprising the following steps:
[0067] S1. Improve the whale optimization algorithm, specifically by improving the convergence factor and introducing a variable neighborhood search algorithm to optimize the whale individual. Improve the convergence factor a, introduce a nonlinear strategy, make it decay quickly in the early iteration, speed up the convergence speed, enhance the global search ability, in the later iteration, the decay speed of a slows down, improve the local development ability, the change trend of the convergence factor is as follows Figure 1 The basic idea of the variable neighborhood search algorithm is to start from an initial solution and improve the solution by searching in the current neighborhood. When the solution cannot be improved further, the algorithm switches to a new neighborhood structure and continues searching to find a better solution.
[0068] The implementation method is:
[0069] Whale hunting includes encirclement hunting, bubble net hunting and searching for prey;
[0070] Encirclement predation uses the prey position or its vicinity as the best candidate solution and adjusts the position of the individual whale accordingly. Its mathematical model is: The improved convergence factor is shown in formula (21):
[0071] D=|C·X * (t)-X(t)| (17)
[0072] X(t+1)=X*(t)-A·D (18)
[0073] A=2a·ra (19)
[0074] C=2·r (20)
[0075]
[0076] Where t represents the number of generations; D represents the distance vector between the individual whale and the current optimal solution; X represents the position vector of the individual whale; X * represents the position vector of the current optimal solution; C and A represent adjustment coefficients, and C∈[0,2], A∈[-a,a]; a is an adjustment parameter whose value decreases linearly from 2 to 0 as the number of iterations increases; r represents a random number, r∈[0,1], t max represents the maximum number of iterations, γ and Two parameters, with values of 0.5 and 0 respectively;
[0077] Bubble net predation includes two updating methods: spiral updating and shrinking surrounding. The shrinking surrounding is achieved by adjusting the value of a. When |A|≤1, the individual whale uses formula (18) to move to the optimal solution position, simulating the shrinking surrounding of the prey.
[0078] Spiral update, its mathematical model is:
[0079] D'=|X*(t)-X(t)| (22)
[0080] X(t+1)=D'·e bl ·cos(2πl)+X*(t) (23)
[0081] Where D' represents the distance vector between the individual whale and the current optimal solution; b represents the constant coefficient of the spiral shape; l represents a random number, l∈[-1,1];
[0082] The whale simultaneously performs two position update strategies, namely, shrinking and encircling and spiral updating, and selects the same probability p to implement these two position update strategies. The mathematical model is:
[0083]
[0084] Where p represents a random number, p∈[0,1];
[0085] Search for prey, introduce variable neighborhood search algorithm to realize jump search, enhance disturbance mechanism, define neighborhood structure set N k , k=1,2,3, determine the termination condition of the algorithm, if the termination condition is met, the algorithm terminates, if the termination condition is not met, continue to iterate, during which the mathematical model of the whale position update is:
[0086] D=|C·X rand -X| (25)
[0087] X(t+1)=X rand -A·D (26)
[0088] Among them, X rand Represents the position vector of a randomly selected individual whale in the current whale group.
[0089] S2. Construct a factory path planning model.
[0090] Under the premise of satisfying all replenishment tasks (without overtime) and that a single-trip task does not exceed the maximum load of the vehicle, the factory path planning model is constructed with the shortest trailer operation path and the lowest operation cost as the goal. Its objective function is:
[0091]
[0092]
[0093] In vehicle routing optimization, the main factors affecting vehicle delivery costs are vehicle driving costs and vehicle fixed costs, and the vehicle driving costs mainly depend on the vehicle's route selection. Considering the main factors such as vehicle driving costs, fixed costs, and penalties for vehicles arriving at the service point early or late, the penalty fee is positively correlated with the length of time the vehicle arrives early or late, and its formula is:
[0094]
[0095] The maximum load capacity of the vehicle is limited. The cargo loaded on each vehicle cannot exceed the maximum load capacity of the vehicle. The formula is:
[0096]
[0097] The delivery task is limited. A delivery task can only be accessed by one vehicle and can only be accessed once. The formula is:
[0098]
[0099] When the delivery task is completed, it returns to the distribution center. The formula is:
[0100]
[0101] In the formula, m represents the number of vehicles, n represents, k represents the vehicle set, k = {1, 2, 3, ..., m}, c represents the fixed cost per vehicle, b represents the driving cost per unit distance, The driving variable indicating whether vehicle k passes through the road section (i, j), If the vehicle passes through the road section (i, j), then on the contrary, x ij ∈{0,1},i,j∈{1,2,...,N}, d ij represents the straight-line distance between node i and node j, P1 represents the penalty coefficient for arriving earlier than the earliest planned time window, P2 represents the penalty coefficient for arriving later than the latest planned time window, and q i represents the material demand at task point i; Q represents the maximum loading capacity of delivery vehicle k; A i represents the time when the vehicle first arrives at the warehouse, T k represents the actual running time of the vehicle, [e i ,l i ] represents the time window specified by the production task, where e i is the planned departure time of the task, l i is the planned completion time of the task, A variable indicating whether vehicle k serves production line i, If the vehicle serves production line i, then on the contrary i∈{1,2,...,N},
[0102] S3. Based on the improved whale optimization algorithm, the factory path planning model is solved to achieve the optimization of the factory path.
[0103] S31. Input the relevant parameters for building the plant path planning model, where the decision variables are and
[0104] S32, initializing the population and parameters, the parameters including the maximum number of iterations, the shrinkage factor, the current solution and the optimal solution.
[0105] S33, performing neighborhood search, and updating the current solution and the optimal solution according to the neighborhood search results;
[0106] There are two search methods. The first search method N1 selects any two non-adjacent nodes in the distribution path and flips the path between them to obtain a new distribution path. Take the distribution of 7 customer points as an example, assuming that the customer points are numbered 1 to 7. The current optimal solution S is {1, 2, 3, 4, 5, 6, 7}. Randomly select nodes 2 and 5, reverse the path between them, keep the path before node 2 unchanged, flip the path number from node 2 to node 5 and add it to the new path, and the path after node 5 remains unchanged. Therefore, the new path S1 obtained is {1, 5, 4, 3, 2, 6, 7}, as shown in Figure 2 shown.
[0107] The second search method N2, selects any two nodes on the distribution path, swaps the positions of the two nodes, and keeps the other nodes unchanged to obtain a new distribution path. Select any two nodes on the distribution path, swap the positions of the two nodes, and keep the other nodes unchanged to generate a new solution. Assume that the current optimal solution is S, S is {1, 2, 3, 4, 5, 6, 7}. Randomly select nodes 2 and 6, swap their positions, and the new path S2 obtained is {1, 6, 3, 4, 5, 2, 7}, such as Figure 3 shown.
[0108] S34, shrinking the search space;
[0109] S35, updating the position of the whale;
[0110] S36, monitor and correct the position;
[0111] S37. Return the optimal path.
[0112] In order to verify the effect of the improved whale optimization algorithm on path optimization, the scheduling task data of a certain production period in a workshop of an automobile parts company is selected as the case of this article. There are 50 replenishment tasks within 20 minutes. The relative coordinates of the layout within the factory are established based on the relative position of each shelf to the warehouse. The corresponding task points are shown in Table 1.
[0113] Table 1 Replenishment task data table
[0114]
[0115]
[0116] The whale population data is set to 100, the maximum number of iterations is set to 300, and the shrinkage factor is set to 2 to verify the efficiency and accuracy of the improved algorithm. The objective function value changes with the number of iterations as follows: Figure 4 As shown, the final route is Figure 5 As shown, the routes of vehicle operation correspond to those shown in Table 2. Figure 4 It can be seen that the curve begins to converge at the 150th generation, and the optimal distance objective function value is 1730.1132. Figure 5 As can be seen, the total number of vehicles used in the 50 task sequences is 9.
[0117] Table 2. Vehicle route allocation table of VSN-WOA algorithm
[0118]
[0119] Comparing the traditional whale optimization algorithm with the improved whale optimization algorithm, the objective function change diagram of the traditional whale optimization algorithm is as follows: Figure 6 As shown in the figure, the optimal delivery route map of the algorithm is as follows Figure 7 The vehicle route allocation table is shown in Table 3.
[0120] Table 3 WOA vehicle route allocation table
[0121]
[0122] from Figure 6 It can be seen that the curve of the traditional whale optimization algorithm begins to converge at 184, and the optimal objective function value is 1869.7299. Therefore, the convergence effect of the whale optimization algorithm based on variable neighborhood search is obviously better than that of the whale optimization algorithm. The search method based on the improved whale optimization algorithm has a smaller loss than the traditional method in the initial iteration, and it is close to convergence at the 150th generation, while the traditional method is close to convergence at the 184th generation.
[0123] The comparison of the results of the improved whale optimization algorithm, the traditional whale optimization algorithm and the taboo search algorithm is shown in Table 4 below:
[0124] Table 4 Comparison of results of different algorithms
[0125]
[0126] According to the data in Table 4, the optimized whale optimization algorithm shows significant improvement over the traditional whale algorithm in a specific period of a single day. This improvement is expected to continue over time, which will further significantly improve production efficiency and reduce logistics costs.
[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for optimizing a factory replenishment path, characterized in that the steps include: S1. Improve the whale optimization algorithm; S2, build a factory path planning model; S3. Based on the improved whale optimization algorithm, the factory path planning model is solved to achieve the optimization of the factory path.
2. A factory replenishment path optimization method according to claim 1, characterized in that: In step S1, the individual whales are optimized by improving the convergence factor and introducing a variable neighborhood search algorithm.
3. A factory replenishment path optimization method according to claim 2, characterized in that: The optimization method for individual whales is as follows: Whale hunting includes encirclement hunting, bubble net hunting and searching for prey; Encirclement predation uses the prey position or its vicinity as the best candidate solution and adjusts the position of the individual whale accordingly. The mathematical model is: D=|C·X * (t)-X(t)| (1) X(t+1)=X*(t)-A·D (2) A=2a·ra (3) C=2·r (4) Where t represents the number of generations; D represents the distance vector between the individual whale and the current optimal solution; X represents the position vector of the individual whale; X * represents the position vector of the current optimal solution; C and A represent adjustment coefficients, and C∈[0,2], A∈[-a,a]; a is an adjustment parameter whose value decreases linearly from 2 to 0 as the number of iterations increases; r represents a random number, r∈[0,1], t max represents the maximum number of iterations, γ and Two parameters, with values of 0.5 and 0 respectively; Bubble net predation includes two updating methods: spiral updating and shrinking and surrounding. The shrinking and surrounding is achieved by adjusting the value of a. When |A|≤1, the individual whale uses formula (2) to move to the optimal solution position, simulating the shrinking and surrounding of the prey. Spiral update, its mathematical model is: D'=|X*(t)-X(t)| (6) X(t+1)=D'·e bl ·cos(2πl)+X*(t) (7) Where D' represents the distance vector between the individual whale and the current optimal solution; b represents the constant coefficient of the spiral shape; l represents a random number, l∈[-1,1]; The whale simultaneously performs two position update strategies, namely, shrinking and encircling and spiral updating, and selects the same probability p to implement these two position update strategies. The mathematical model is: Where p represents a random number, p∈[0,1]; Search for prey, introduce variable neighborhood search algorithm to realize jump search, enhance disturbance mechanism, define neighborhood structure set N k , k = 1, 2, 3, determine the termination condition of the algorithm, if the termination condition is met, the algorithm terminates, if the termination condition is not met, continue to iterate, during which the mathematical model of the whale position update is: D=|C·X rand -X| (9) X(t+1)=X rand -A·D (10) Among them, X rand Represents the position vector of a randomly selected individual whale in the current whale group.
4. A factory replenishment path optimization method according to claim 1, characterized in that: In step S2, the factory path planning model is constructed with the shortest trailer operation path and the lowest operation cost as the goal, and its objective function is: Considering the vehicle's driving cost, fixed cost, and penalty factors for vehicles arriving at the service point early or late, the formula is: The maximum load capacity of the vehicle is limited, and the formula is: The distribution task is limited, and the formula is: When the delivery task is completed, it returns to the distribution center. The formula is: In the formula, m represents the number of vehicles, n represents, k represents the vehicle set, c represents the fixed cost per vehicle, b represents the driving cost per unit distance, The driving variable indicating whether vehicle k passes through the road section (i, j), If the vehicle passes through the road section (i, j), then on the contrary, x ij ∈{0,1},i,j∈{1,2,...,N}, d ij represents the straight-line distance between node i and node j, P1 represents the penalty coefficient for arriving earlier than the earliest planned time window, P2 represents the penalty coefficient for arriving later than the latest planned time window, and q i represents the material demand at task point i; Q represents the maximum loading capacity of delivery vehicle k; A i represents the time when the vehicle first arrives at the warehouse, T k represents the actual running time of the vehicle, [e i ,l i ] represents the time window specified by the production task, where e i is the planned departure time of the task, l i is the planned completion time of the task, A variable indicating whether vehicle k serves production line i, If the vehicle serves production line i, then on the contrary 5. A factory replenishment path optimization method according to claim 4, characterized in that: Step S3 includes: S31, inputting relevant parameters for constructing a plant path planning model; S32, initializing population and parameters; S33, performing neighborhood search, and updating the current solution and the optimal solution according to the neighborhood search results; S34, shrinking the search space; S35, updating the position of the whale; S36, monitor and correct the position; S37. Return the optimal path.
6. A factory replenishment path optimization method according to claim 5, characterized in that: Step S33 includes two search methods, specifically: The first search method N1 selects any two non-adjacent nodes in the delivery path and flips the path between them to obtain a new delivery path; The second search method N2 selects any two nodes on the delivery path, swaps the positions of the two nodes, and keeps the other nodes unchanged to obtain a new delivery path.
Citation Information
Cited By
Fresh agricultural product distribution path optimization method and system based on real-time road condition detection
CN118917515A
