Method, device and computer equipment for site selection of logistics distribution center

By performing mutation operations on particles in the later stages of particle swarm search, the particle swarm algorithm is optimized to solve the local optimal problem in logistics distribution center location selection, achieve more accurate logistics distribution center location selection, and improve the accuracy and efficiency of the algorithm.

CN114547954BActive Publication Date: 2024-09-13CHINA MOBILE GROUP ZHEJIANG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011329615.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-24
Publication Date
2024-09-13
Estimated Expiration
2040-11-24

AI Technical Summary

Technical Problem

Existing location selection algorithms for logistics distribution centers are prone to falling into local optimal solutions. Especially when the particle swarm algorithm deals with discrete optimization problems, the population diversity decreases after iterations, making it difficult to find the global optimal solution.

Method used

By performing mutation operations on particles in the later stages of particle swarm search calculations, the particle swarm algorithm is optimized, a target fitness function is established to represent the relationship between unit transportation cost and transportation volume and total cost, the particle swarm is initialized, the speed and position are updated, and when the particle swarm is reached, The mutation operation is performed when the number of iterations is preset, a mutated particle swarm is generated, and the fitness value is recalculated to determine the global optimal position.

Benefits of technology

It avoids the trap of local optimality, makes the location selection of the logistics distribution center more accurate, improves the accuracy and efficiency of the algorithm, and can more effectively find the logistics distribution center with the lowest total cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114547954B
    Figure CN114547954B
Patent Text Reader

Abstract

The embodiment of the present invention relates to the field of logistics and distribution technology, and discloses a method for selecting a logistics distribution center site, which includes: establishing a target fitness function, initializing the position and speed of each initial particle in the initial particle group; calculating the corresponding first fitness value according to the initial position and speed of each initial particle and the target fitness function, and determining the global optimal initial position; updating the speed and position of each initial particle until the global optimal initial position remains unchanged for a preset number of iterations, performing a mutation operation on the initial particles in the initial particle group; calculating the second fitness value of the mutated particles, and determining the global optimal mutation position; updating the speed and position of the mutated particles until the preset number of iteration cycles is reached, and determining the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center. Through the above method, the embodiment of the present invention achieves the beneficial effect of more accurate site selection of logistics distribution centers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of logistics and distribution, and specifically to a method, device, and computer equipment for site selection of a logistics and distribution center. Background Art

[0002] Today, when supply chains are prevalent, logistics distribution centers play a vital role as a link between upstream and downstream. Reasonable site selection can effectively save costs and ensure the efficient operation of the logistics system, which is of great significance to the supply chain. The current site selection models and algorithms can be roughly divided into two methods: using continuous models to select locations and using discrete models to select locations.

[0003] However, in the existing logistics distribution center site selection, the single use of particle swarm algorithm is prone to the problem of local optimal solution. In addition, the particle swarm algorithm does not handle discrete optimization problems well. After a certain number of iterations, the population diversity will decrease rapidly and it is easy to fall into the local optimal solution. Summary of the invention

[0004] In view of the above problems, an embodiment of the present invention provides a method for selecting a location for a logistics distribution center, which is used to solve the technical problem that the algorithm for selecting a location for a logistics distribution center in the prior art is not accurate enough.

[0005] According to one aspect of an embodiment of the present invention, a method for selecting a location for a logistics distribution center is provided, the method comprising:

[0006] Establishing a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point;

[0007] Initialize the position and speed of each initial particle in the initial particle group; wherein each of the initial particles respectively represents the unit transportation cost and transportation volume from the logistics center corresponding to each logistics center to be screened to each demand point;

[0008] According to the initialization position and speed of each initial particle and the target fitness function, the corresponding first fitness value is calculated to determine the global optimal initial position;

[0009] Update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and when the global optimal initial position remains unchanged for a preset number of iterations, perform a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group;

[0010] Calculating the second fitness value of the mutated particle according to the target fitness function, and determining the global optimal mutation position;

[0011] Update the speed and position of the mutant particle, recalculate the second fitness value, determine the global optimal mutation position, until the preset number of iteration cycles is reached, determine the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center.

[0012] In an optional manner, a target fitness function is established, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point, including:

[0013] Establish the unit transportation cost from the logistics center to be screened to each demand point and the objective function between the transportation volume and total cost from the logistics center to be screened to each demand point;

[0014] Determine a penalty function according to the unit transportation cost and the constraint relationship between the transportation volume and the total cost;

[0015] An objective fitness function is established according to the objective function and the penalty function.

[0016] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0017] Calculate the distance between each initial particle;

[0018] When the distance between the target particles is less than a set value, a random number is generated for the target particle; the target particle is any one of the initial particles;

[0019] When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0020] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0021] A crossover mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0022] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0023] The position of the target particle is mutated to generate a mutant particle of the mutant particle group.

[0024] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0025] The updated position of the initial particle at the k+1th iteration is:

[0026]

[0027]

[0028] in, is the individual optimal position of the kth iteration, is the global optimal position obtained in the kth iteration; is the current location, is the latest speed of the k+1th iteration, is the latest position of the k+1th iteration, γ1 and γ2 are acceleration factors.

[0029] According to another aspect of an embodiment of the present invention, a device for selecting a location for a logistics distribution center is provided, comprising:

[0030] A fitness function building module is used to establish a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point;

[0031] An initialization module is used to initialize the position and speed of each initial particle in the initial particle group; wherein each of the initial particles represents the unit transportation cost and transportation volume from the logistics center corresponding to each logistics center to be screened to each demand point;

[0032] A first calculation module is used to calculate the corresponding first fitness value according to the initialization position and speed of each initial particle and the target fitness function, and determine the global optimal initial position;

[0033] A mutation module is used to update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and perform a mutation operation on the initial particles in the initial particle group until the global optimal initial position remains unchanged for a preset number of iterations to obtain mutant particles of the mutant particle group;

[0034] A second calculation module, used to calculate the second fitness value of the mutated particle according to the target fitness function, and determine the global optimal mutation position;

[0035] A determination module is used to update the speed and position of the mutant particle, recalculate the second fitness value, and determine the global optimal mutation position until a preset number of iteration cycles is reached, and then determine the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center.

[0036] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0037] Calculate the distance between each initial particle;

[0038] When the distance between the target particles is less than a set value, a random number is generated for the target particle; the target particle is any one of the initial particles;

[0039] When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0040] According to another aspect of an embodiment of the present invention, a logistics distribution center site selection device is provided, comprising:

[0041] A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0042] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the above-mentioned logistics distribution center site selection method.

[0043] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium. When the executable instruction is executed on a logistics distribution center site selection device / apparatus, the logistics distribution center site selection device / apparatus performs the operation of the above-mentioned logistics distribution center site selection method.

[0044] The embodiment of the present invention optimizes the particle swarm algorithm by mutating particles in the later stage of particle swarm search calculation to solve the logistics center to be screened with the lowest total cost, avoiding the trap of local optimality and making the location selection of the logistics distribution center more accurate.

[0045] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0047] Figure 1 A schematic diagram showing a flow chart of a method for selecting a location for a logistics distribution center provided by an embodiment of the present invention;

[0048] Figure 2 A schematic diagram showing the structure of a logistics distribution center site selection device provided by an embodiment of the present invention is shown;

[0049] Figure 3 A schematic structural diagram of a logistics distribution center site selection device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0050] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0051] Figure 1 The flowchart of the method for selecting a location for a logistics distribution center according to the present invention is shown. The method is executed by a logistics distribution center selection device. Figure 1 As shown, the method comprises the following steps:

[0052] Step 110: Establish a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and transportation volume and the total cost from the logistics center to be screened to each demand point.

[0053] Specifically, the following steps are included:

[0054] Step 1101: Establish an objective function between the unit transportation cost from the logistics center to be screened to each demand point and the transportation volume and total cost from the logistics center to be screened to each demand point.

[0055] The total cost objective function is listed by unit transportation cost and transportation volume. The model of the objective function is as follows:

[0056]

[0057] Among them, C jrepresents the unit transportation cost between the logistics center i to be screened and the demand point j; X j represents the transportation volume from the logistics center i to the demand point j; H(y) represents the total cost; m represents the number of logistics centers to be screened and n represents the number of demand points. The logistics centers to be screened are several known logistics distribution centers.

[0058] The constraints of the objective function are as follows:

[0059]

[0060]

[0061] Among them, a i represents the number of products to be screened in logistics center i; b j represents the demand quantity of demand point j.

[0062] Step 1102: Determine a penalty function according to the constraint conditions of the objective function.

[0063] Among them, the penalty function is determined according to the constraint conditions of the objective function, that is, the constraint conditions are processed into a penalty function P(X) to remove the constraints. X represents the maximum value of the transportation volume from the logistics center to the demand point to be screened in the penalty function. The constraint conditions are processed as a penalty function method, and the idea of ​​the processing method is: adding an obstacle function to the original objective function to obtain an augmented objective function. The function of the penalty function is to give a maximum value to non-feasible points or points that attempt to cross the boundary and escape from the feasible domain, that is, to transform the constrained optimization problem into a problem for solving unconstrained optimization. The present invention does not specifically limit the way to obtain the penalty function according to the constraint conditions, and technicians in this field can make corresponding settings according to specific scenarios.

[0064] Step 1103: Establish an objective fitness function according to the objective function and the penalty function.

[0065] After obtaining the objective function and the penalty function, a target fitness function can be established according to the objective function and the penalty function.

[0066] The formula of the objective fitness function is:

[0067]

[0068] Among them, X represents the maximum value of the transportation volume from the logistics center to the demand point in the penalty function, and x is the transportation volume from any logistics center to any demand point. F(x) is the fitness calculated by the objective function, and F(X) is the new fitness after considering the penalty function P(X).

[0069] Step 120: Initialize the position and velocity of each initial particle in the initial particle group; wherein each of the initial particles respectively represents the unit transportation cost and transportation volume from each logistics center to be screened to each demand point.

[0070] The embodiment of the present invention adopts a particle swarm algorithm to determine the target logistics distribution center. The particle swarm algorithm is improved on the basis of the PSO particle swarm algorithm, so as to make it easier to process discrete variables.

[0071] Specifically, the size of the initial particle swarm is set to M, that is, M particles are selected as the initial number of particles in the initial particle swarm; the maximum number of iterations is set to T, and the current position vector of the i-th particle is X i =(x i,1 ,x i,2 ,x i,3 ,…,x i,d ),i=1,2,3,...,M; the flying speed of the i-th particle is V i =(v i,1 ,v i,2 ,v i,3 ,…,v i,d ),i=1,2,3,...,M. Randomly initialize the position of the initial particle and randomly initialize the flight speed of each particle. In the embodiment of the present invention, the value of M is not specifically limited. For example, the general value of M is between 10-40; depending on the parameter conditions, 10 particles can be selected for most problems. For cases where the controllable variable parameters are more complex, the number of particles can also be 100-200, etc. The larger the particle scale, the more accurate the calculation, but the higher the performance requirements of the system and the slower the calculation speed. The maximum flight speed of the particle is generally the range width of the particle. d represents the D-dimensional data of the initial particle. For example, for the unit transportation cost from the logistics center to be screened to each demand point and the transportation volume from the logistics center to be screened to each demand point, d=2.

[0072] Step 130: Calculate the corresponding first fitness value according to the initialization position and speed of each initial particle and the target fitness function, and determine the global optimal initial position.

[0073] The fitness value of each initial particle in the initial particle swarm is calculated according to the target fitness function, and the local optimal solution and the global optimal solution of the initial particle swarm are updated.

[0074] Specifically, the first fitness value of each initial particle in the initial particle group is calculated according to the above target fitness function, so as to find the individual optimal initial position P currently searched by the i-th initial particle. rd , and the global optimal initial position searched by the entire initial particle swarm.

[0075] Step 140: Update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and when the global optimal initial position remains unchanged for a preset number of iterations, perform a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group.

[0076] The speed and position of the initial particles in the initial particles are updated, and the individual optimal initial position and the global optimal initial position obtained each time are compared and updated. The global optimal solution obtained in each search is stored.

[0077] Among them, the following formula is used to update the velocity of the initial particle:

[0078]

[0079] For the position update of the initial particle, the position of the initial particle is updated in the following way: First, the particle speed is mapped to between 0 and 1 using the sigmoid function:

[0080]

[0081] Among them, k represents the current iteration number, γ1 and γ2 are acceleration factors.

[0082] Then the updated position of the initial particle at the k+1th iteration can be expressed as:

[0083]

[0084] in, is the individual optimal position of the kth iteration, is the global optimal position obtained in the kth iteration. is the current location, is the latest speed of the k+1th iteration, is the latest position of the k+1th iteration. This setting makes it easier for the initial particle swarm to handle discrete variables. The initial particle is updated by its velocity and position, and then the above iterative update steps are re-executed. In each iteration, the initial particle updates itself by tracking two "extreme values". The first is the individual optimal solution found by the initial particle itself. The other extreme value is the global optimal solution found by the entire population

[0085] When the global optimal initial position remains unchanged for a preset number of iterations, the optimization of the initial particle group may fall into the trap of the local optimum, and it is necessary to perform a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group. In this embodiment of the present invention, the preset number of iterations is not specifically limited, and technicians in this field can make corresponding settings according to actual scenarios. For example, in an embodiment of the present invention, the preset number of iterations can be 5, and when the global optimal initial position remains unchanged for 5 iterations, a mutation operation is performed.

[0086] In the embodiment of the present invention, performing the mutation operation specifically includes the following steps:

[0087] Step 1401: Calculate the distance between each initial particle. The distance between each initial particle can be calculated using the Euclidean distance formula.

[0088] Step 1402: When the distance between target particles is less than a set value, a random number is generated for the target particle; the target particle is any particle among the initial particles. The random number r is a value between 0 and 1, that is, r∈[0,1].

[0089] Step 1403: When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0090] The target particles in the initial particle group are mutated to generate mutant particles of the mutant particle group by mutating the position of the target particles to generate mutant particles of the mutant particle group. In the embodiment of the present invention, the target particles are cross-mutated to exchange the position values ​​of the mutant particles. For example, for two target particles that need to be mutated, the position values ​​of the mutant particles are exchanged for the two particles that need to be mutated.

[0091] In the embodiment of the present invention, the set value and the variation probability are not specifically limited, and those skilled in the art may make corresponding settings according to actual scenarios.

[0092] Since PSO has a very fast search speed in the early stage, it can quickly converge to a very small area. However, its obvious disadvantage is that in the later stage of the search, all particles tend to be unified and lose diversity, which makes the convergence speed in the later stage significantly slower, so that the search longitude can no longer be improved, and the accuracy that the algorithm can achieve is lower than that of the genetic algorithm. Therefore, the embodiment of the present invention introduces a mutation factor in the later stage and performs a mutation operation to regain the diversity of particles. Mutation as a random search can make particles jump out of the local optimal area, allowing the algorithm to search unknown space. Each initial particle has a mutation probability that is inversely proportional to its own fitness. Whether the initial particle will mutate is determined based on the mutation probability. It is equivalent to introducing the rebirth and death of the initial particle, thereby changing the unreasonable phenomenon that has always existed in the original algorithm.

[0093] Step 150: Calculate the second fitness value of the mutated particle according to the target fitness function, and determine the global optimal mutation position.

[0094] Among them, for the mutated particle group after the mutation operation, the second fitness value is recalculated to determine the global optimal mutation position.

[0095] Step 160: Update the speed and position of the mutant particle, recalculate the second fitness value, determine the global optimal mutation position, and when the preset number of iteration cycles is reached, determine the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center.

[0096] Among them, the global optimal mutation position is the optimal logistics center location address calculated by the particle swarm algorithm. Therefore, the logistics center to be screened corresponding to the global optimal mutation position is the target logistics distribution center.

[0097] The embodiment of the present invention optimizes the particle swarm algorithm by mutating particles in the later stage of particle swarm search calculation to solve the logistics center to be screened with the lowest total cost, avoiding the trap of local optimality and making the location selection of the logistics distribution center more accurate.

[0098] Figure 2 FIG. 1 is a schematic diagram showing a structure of an embodiment of a site selection device for a logistics distribution center according to the present invention. Figure 2 As shown, the device 200 includes: a fitness function construction module 210, an initialization module 220, a first calculation module 230, a mutation module 240, a second calculation module 250 and a determination module 260.

[0099] The fitness function building module 210 is used to establish a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point;

[0100] Initialization module 220, used to initialize the position and speed of each initial particle in the initial particle group; wherein each of the initial particles respectively represents the unit transportation cost and transportation volume from each logistics center to be screened to each demand point;

[0101] A first calculation module 230 is used to calculate the corresponding first fitness value according to the initialization position and speed of each initial particle and the target fitness function, and determine the global optimal initial position;

[0102] A mutation module 240 is used to update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and perform a mutation operation on the initial particles in the initial particle group until the global optimal initial position remains unchanged for a preset number of iterations to obtain a mutant particle of the mutant particle group;

[0103] A second calculation module 250 is used to calculate the second fitness value of the mutated particle according to the target fitness function and determine the global optimal mutation position;

[0104] Determination module 260 is used to update the speed and position of the mutant particle, recalculate the second fitness value, and determine the global optimal mutation position until a preset number of iteration cycles is reached, and determine that the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations is the target logistics distribution center.

[0105] In an optional manner, a target fitness function is established, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point, including:

[0106] Establish the unit transportation cost from the logistics center to be screened to each demand point and the objective function between the transportation volume and total cost from the logistics center to be screened to each demand point;

[0107] Determine a penalty function according to the unit transportation cost and the constraint relationship between the transportation volume and the total cost;

[0108] An objective fitness function is established according to the objective function and the penalty function.

[0109] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0110] Calculate the distance between each initial particle;

[0111] When the distance between the target particles is less than a set value, a random number is generated for the target particle; the target particle is any one of the initial particles;

[0112] When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0113] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0114] A crossover mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0115] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0116] The position of the target particle is mutated to generate a mutant particle of the mutant particle group.

[0117] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0118] The updated position of the initial particle at the k+1th iteration is:

[0119]

[0120]

[0121] in, is the individual optimal position of the kth iteration, is the global optimal position obtained in the kth iteration; is the current location, is the latest speed of the k+1th iteration, is the latest position of the k+1th iteration, γ1 and γ2 are acceleration factors.

[0122] The working process of the logistics distribution center site selection device in the embodiment of the present invention is the same as the execution process of the above-mentioned method steps, which will not be repeated here.

[0123] The embodiment of the present invention optimizes the particle swarm algorithm by mutating particles in the later stage of particle swarm search calculation to solve the logistics center to be screened with the lowest total cost, avoiding the trap of local optimality and making the location selection of the logistics distribution center more accurate.

[0124] Figure 3 The schematic diagram of the structure of the embodiment of the site selection device for the logistics distribution center of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the site selection device for the logistics distribution center.

[0125] like Figure 3 As shown, the logistics distribution center site selection device may include: a processor (processor) 302, a communication interface (Communications Interface) 304, a memory (memory) 306, and a communication bus 308.

[0126] The processor 302, the communication interface 304, and the memory 306 communicate with each other via the communication bus 308. The communication interface 304 is used to communicate with other devices such as a client or other server network elements. The processor 302 is used to execute the program 310, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for selecting a location for a logistics distribution center.

[0127] Specifically, the program 310 may include program code including computer executable instructions.

[0128] The processor 302 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the logistics distribution center site selection device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0129] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0130] Program 310 can be specifically called by processor 302 to enable the logistics distribution center site selection device to perform the following operations:

[0131] Establishing a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point;

[0132] Initialize the position and speed of each initial particle in the initial particle group; wherein each of the initial particles respectively represents the unit transportation cost and transportation volume from the logistics center corresponding to each logistics center to be screened to each demand point;

[0133] According to the initialization position and speed of each initial particle and the target fitness function, the corresponding first fitness value is calculated to determine the global optimal initial position;

[0134] Update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and when the global optimal initial position remains unchanged for a preset number of iterations, perform a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group;

[0135] Calculating the second fitness value of the mutated particle according to the target fitness function, and determining the global optimal mutation position;

[0136] Update the speed and position of the mutant particle, recalculate the second fitness value, determine the global optimal mutation position, until the preset number of iteration cycles is reached, determine the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center.

[0137] In an optional manner, a target fitness function is established, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point, including:

[0138] Establish the unit transportation cost from the logistics center to be screened to each demand point and the objective function between the transportation volume and total cost from the logistics center to be screened to each demand point;

[0139] Determine a penalty function according to the unit transportation cost and the constraint relationship between the transportation volume and the total cost;

[0140] An objective fitness function is established according to the objective function and the penalty function.

[0141] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0142] Calculate the distance between each initial particle;

[0143] When the distance between the target particles is less than a set value, a random number is generated for the target particle; the target particle is any one of the initial particles;

[0144] When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0145] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0146] A crossover mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0147] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0148] The position of the target particle is mutated to generate a mutant particle of the mutant particle group.

[0149] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0150] The updated position of the initial particle at the k+1th iteration is:

[0151]

[0152]

[0153] in, is the individual optimal position of the kth iteration, is the global optimal position obtained in the kth iteration; is the current location, is the latest speed of the k+1th iteration, is the latest position of the k+1th iteration, γ1 and γ2 are acceleration factors.

[0154] The embodiment of the present invention optimizes the particle swarm algorithm by mutating particles in the later stage of particle swarm search calculation to solve the logistics center to be screened with the lowest total cost, avoiding the trap of local optimality and making the location selection of the logistics distribution center more accurate.

[0155] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a logistics distribution center site selection device / apparatus, the logistics distribution center site selection device / apparatus executes the logistics distribution center site selection method in any of the above-mentioned method embodiments.

[0156] The executable instructions can be specifically used to enable the logistics distribution center site selection device / apparatus to perform the following operations:

[0157] Establishing a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point;

[0158] Initialize the position and speed of each initial particle in the initial particle group; wherein each of the initial particles respectively represents the unit transportation cost and transportation volume from the logistics center corresponding to each logistics center to be screened to each demand point;

[0159] According to the initialization position and speed of each initial particle and the target fitness function, the corresponding first fitness value is calculated to determine the global optimal initial position;

[0160] Update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and when the global optimal initial position remains unchanged for a preset number of iterations, perform a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group;

[0161] Calculating the second fitness value of the mutated particle according to the target fitness function, and determining the global optimal mutation position;

[0162] Update the speed and position of the mutant particle, recalculate the second fitness value, determine the global optimal mutation position, until the preset number of iteration cycles is reached, determine the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center.

[0163] In an optional manner, a target fitness function is established, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point, including:

[0164] Establish the unit transportation cost from the logistics center to be screened to each demand point and the objective function between the transportation volume and total cost from the logistics center to be screened to each demand point;

[0165] Determine a penalty function according to the unit transportation cost and the constraint relationship between the transportation volume and the total cost;

[0166] An objective fitness function is established according to the objective function and the penalty function.

[0167] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0168] Calculate the distance between each initial particle;

[0169] When the distance between the target particles is less than a set value, a random number is generated for the target particle; the target particle is any one of the initial particles;

[0170] When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0171] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0172] A crossover mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

[0173] In an optional manner, when the random number is less than the mutation probability, performing a mutation operation on the target particle in the initial particle group to generate a mutant particle of the mutant particle group includes:

[0174] The position of the target particle is mutated to generate a mutant particle of the mutant particle group.

[0175] In an optional manner, the speed and position of each initial particle are updated, the corresponding first fitness value is recalculated, and the global optimal initial position is determined, until the global optimal initial position remains unchanged for a preset number of iterations, the initial particles in the initial particle group are mutated to obtain mutant particles of the mutant particle group, including:

[0176] The updated position of the initial particle at the k+1th iteration is:

[0177]

[0178]

[0179] in, is the individual optimal position of the kth iteration, is the global optimal position obtained in the kth iteration; is the current location, is the latest speed of the k+1th iteration, is the latest position of the k+1th iteration, γ1 and γ2 are acceleration factors.

[0180] The embodiment of the present invention optimizes the particle swarm algorithm by mutating particles in the later stage of particle swarm search calculation to solve the logistics center to be screened with the lowest total cost, avoiding the trap of local optimality and making the location selection of the logistics distribution center more accurate.

[0181] An embodiment of the present invention provides a logistics distribution center site selection device, which is used to execute the above-mentioned logistics distribution center site selection method.

[0182] An embodiment of the present invention provides a computer program, which can be called by a processor to enable a logistics distribution center site selection device to execute the logistics distribution center site selection method in any of the above method embodiments.

[0183] An embodiment of the present invention provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed on a computer, the computer executes the logistics distribution center site selection method in any of the above method embodiments.

[0184] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description made to specific languages ​​above is for disclosing the best mode of the present invention.

[0185] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0186] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than those expressly recited in each claim.

[0187] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0188] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A method for selecting a location for a logistics distribution center, characterized in that: The method comprises: Establishing a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point; Initializing the position and velocity of each initial particle in the initial particle group; wherein each of the initial particles respectively represents the unit transportation cost and transportation volume from each logistics center to be screened to each demand point; According to the initialization position and speed of each initial particle and the target fitness function, the corresponding first fitness value is calculated to determine the global optimal initial position; Update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and when the global optimal initial position remains unchanged for a preset number of iterations, perform a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group; Calculating the second fitness value of the mutated particle according to the target fitness function, and determining the global optimal mutation position; Update the speed and position of the mutated particle, recalculate the second fitness value, determine the global optimal mutation position, and when the preset number of iteration cycles is reached, determine the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center; Establish a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and transportation volume and the total cost from the logistics center to be screened to each demand point, including: Establish the unit transportation cost from the logistics center to be screened to each demand point and the objective function between the transportation volume and total cost from the logistics center to be screened to each demand point; Determining a penalty function according to the constraint conditions of the objective function; Establishing a target fitness function according to the target function and the penalty function; The formula of the target fitness function is: Among them, X represents the maximum value of the transportation volume from the logistics center to the demand point in the penalty function, and x is the transportation volume from any logistics center to any demand point. F(x) is the fitness calculated by the objective function, and F(X) is the new fitness after considering the penalty function P(X).

2. The method according to claim 1, characterized in that Updating the speed and position of each initial particle, recalculating the corresponding first fitness value, determining the global optimal initial position, until the global optimal initial position remains unchanged for a preset number of iterations, performing a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group, including: Calculate the distance between each initial particle; When the distance between the target particles is less than a set value, a random number is generated for the target particle; the target particle is any one of the initial particles; When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

3. The method according to claim 2, characterized in that When the random number is less than the mutation probability, a mutation operation is performed on the target particle in the initial particle group to generate a mutant particle of the mutant particle group, including: A crossover mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

4. The method according to claim 2, characterized in that: When the random number is less than the mutation probability, a mutation operation is performed on the target particle in the initial particle group to generate a mutant particle of the mutant particle group, including: The position of the target particle is mutated to generate a mutant particle of the mutant particle group.

5. The method according to claim 1, characterized in that Update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, until the global optimal initial position remains unchanged for a preset number of iterations, perform a mutation operation on the initial particles in the initial particle group, and obtain a mutant particle of the mutant particle group, including: the position of the initial particle updated at the k+1th iteration is: in, is the individual optimal position of the kth iteration, is the global optimal position obtained in the kth iteration; is the current location, is the latest speed of the k+1th iteration, is the latest position of the k+1th iteration, γ1 and γ2 are acceleration factors.

6. A device for selecting a location for a logistics distribution center, characterized in that: The device comprises: The fitness function building module is used to establish a target fitness function, wherein the target fitness function represents the functional relationship between the unit transportation cost and the transportation volume and the total cost from the logistics center to be screened to each demand point: Among them, an objective function is established between the unit transportation cost from the logistics center to be screened to each demand point and the transportation volume and total cost from the logistics center to be screened to each demand point; a penalty function is determined according to the constraint relationship between the unit transportation cost and the transportation volume and total cost; a target fitness function is established according to the objective function and the penalty function; The formula of the target fitness function is: Among them, X represents the maximum value of the transportation volume from the logistics center to the demand point in the penalty function, and x is the transportation volume from any logistics center to any demand point. F(x) is the fitness calculated by the objective function, and F(X) is the new fitness after considering the penalty function P(X); An initialization module is used to initialize the position and speed of each initial particle in the initial particle group; wherein each of the initial particles represents the unit transportation cost and transportation volume from each logistics center to be screened to each demand point; A first calculation module is used to calculate the corresponding first fitness value according to the initialization position and speed of each initial particle and the target fitness function, and determine the global optimal initial position; A mutation module is used to update the speed and position of each initial particle, recalculate the corresponding first fitness value, determine the global optimal initial position, and perform a mutation operation on the initial particles in the initial particle group until the global optimal initial position remains unchanged for a preset number of iterations to obtain mutant particles of the mutant particle group; A second calculation module, used to calculate the second fitness value of the mutated particle according to the target fitness function, and determine the global optimal mutation position; A determination module is used to update the speed and position of the mutant particle, recalculate the second fitness value, and determine the global optimal mutation position until a preset number of iteration cycles is reached, and then determine the logistics center to be screened corresponding to the global optimal mutation position obtained by the current number of iterations as the target logistics distribution center.

7. The device according to claim 6, characterized in that Updating the speed and position of each initial particle, recalculating the corresponding first fitness value, determining the global optimal initial position, until the global optimal initial position remains unchanged for a preset number of iterations, performing a mutation operation on the initial particles in the initial particle group to obtain mutant particles of the mutant particle group, including: Calculate the distance between each initial particle; When the distance between the target particles is less than a set value, a random number is generated for the target particle; the target particle is any one of the initial particles; When the random number is less than the mutation probability, a mutation operation is performed on the target particles in the initial particle group to generate mutant particles of the mutant particle group.

8. A logistics distribution center site selection device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the logistics distribution center site selection method as described in any one of claims 1-5.

9. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the logistics distribution center site selection device / apparatus, the logistics distribution center site selection device / apparatus performs the operation of the logistics distribution center site selection method as described in any one of claims 1-5.