Method and device for determining transport vehicle stowage scheme based on genetic algorithm

By constructing a virtual loading box and determining the optimal loading plan based on a genetic algorithm, the problem of unreasonable loading of transport vehicles is solved and the cargo loading efficiency is improved.

CN118586809AInactive Publication Date: 2024-09-03ZHONGKE YUNGU TECH

Patent Information

Application Number
CN202411062059.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the stowage of transport vehicles is unreasonable, resulting in the inability to load goods and affecting the loading efficiency.

Method used

A method based on genetic algorithms is used to construct a virtual loading box by obtaining the cargo order and the body size of the transport vehicle, determine multiple stowage options to be selected, and select the optimal stowage plan based on fitness and constraints to ensure the safety of the goods. Reasonable loading.

Benefits of technology

It improves cargo loading efficiency, ensures the rationality of transport vehicle loading, and avoids the situation where cargo cannot be loaded.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586809A
    Figure CN118586809A
Patent Text Reader

Abstract

The invention relates to the technical field of logistics transportation, and provides a method and device for determining a transport vehicle stowage scheme based on a genetic algorithm. The method comprises the following steps: constructing a plurality of virtual loading box bodies with different box body sizes according to the vehicle body sizes of a plurality of cargo transport vehicles in a cargo transport order; for each virtual loading box body, determining a plurality of to-be-selected stowage schemes under the virtual loading box body based on a genetic algorithm according to the loading sequence of the plurality of cargoes, the cargo size of each cargo and the box body size of the virtual loading box body; determining a corresponding optimal stowage scheme according to the fitness of each stowage scheme to be selected under each virtual loading box body; the average stowage rate of each optimal stowage scheme is determined according to the box body number of each optimal stowage scheme and the cargo volume of each cargo block in each virtual loading box body; and the final stowage scheme of the cargo order is determined according to the box quantity and the average stowage rate of each optimal stowage scheme, so that the vehicle stowage is more reasonable, and the cargo loading efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of logistics and transportation technology, and in particular to a method, device and storage medium for determining a loading plan for a transportation vehicle based on a genetic algorithm. Background Art

[0002] In the prior art, a batch of goods is loaded onto transport vehicles with the goal of maximizing the loading rate of the transport vehicles, and the estimated number of transport vehicles required for the batch of goods and the loading information of each transport vehicle are obtained, so as to actually load the batch of goods.

[0003] However, although the packing plan obtained in this way can maximize the loading rate of the transport vehicle, when the goods are actually loaded based on the packing plan, the planned loading rate is too large, which may lead to unreasonable loading of the transport vehicle, and the goods may not be loaded, affecting the loading efficiency of subsequent goods. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device and storage medium for determining a transport vehicle loading scheme based on a genetic algorithm, so as to solve the problem of unreasonable transport vehicle loading in the prior art.

[0005] In order to achieve the above-mentioned object, the first aspect of the present application provides a method for determining a transport vehicle loading scheme based on a genetic algorithm, comprising: Obtaining a cargo order, the cargo order including a plurality of cargoes to be loaded and cargo dimensions of each cargo; Obtaining the body size of a transport vehicle transporting multiple goods, and constructing multiple virtual loading boxes with different box sizes for the multiple goods according to the body size; For each virtual loading box, based on a genetic algorithm, multiple loading schemes to be selected under the virtual loading box are determined according to the loading order of multiple goods, the size of each goods and the size of the virtual loading box; For each virtual loading box, determine the optimal loading plan for the cargo order under the virtual loading box according to the fitness of each loading plan to be selected under the virtual loading box; Determine the average loading rate of each optimal loading solution according to the number of virtual loading boxes used in each optimal loading solution and the cargo volume of each cargo block in each virtual loading box; The final loading plan for the cargo order is determined according to the number of virtual loading boxes used in each optimal loading plan and the corresponding average loading rate.

[0006] In an embodiment of the present application, the method also includes: for each loading scheme to be selected, determining the total cargo volume of each virtual loading box according to the cargo volume of each cargo block in each virtual loading box in the loading scheme to be selected; for each loading scheme to be selected, determining the rated loading volume of each virtual loading box according to the box size of each virtual loading box in the loading scheme to be selected; determining the penalty value of each loading scheme to be selected for violating the loading constraints, wherein the loading constraints include box weight limit constraints, pressure resistance constraints and loading sequence constraints; determining the adaptability of each loading scheme to be selected according to the penalty value of each loading scheme to be selected, the number of boxes of the virtual loading box, the total cargo volume of each virtual loading box and the rated loading volume.

[0007] In the embodiment of the present application, the fitness of each loading scheme to be selected is determined by formula (1): Formula (1) in, It refers to the fitness of each loading scheme to be selected. is a constant, Refers to the number of virtual loading boxes in each loading solution to be selected. It refers to The transport quantity of goods in virtual loading boxes, It refers to The length dimension included in the cargo dimensions of the i-th cargo of a virtual loading box, It refers to The width dimension included in the cargo dimensions of the ith cargo of a virtual loading box, It refers to The height dimension included in the cargo dimensions of the i-th cargo of the virtual loading box, It refers to The cargo volume of the i-th cargo in a virtual loading box, It refers to The total cargo volume of the virtual loading box, It refers to The rated loading volume of a virtual loading box, It refers to the penalty value for each alternative loading scheme that violates the loading constraints.

[0008] In an embodiment of the present application, each optional loading scheme also includes the cargo weight of each cargo block in each virtual loading box, and determining the penalty value of each optional loading scheme violating the loading constraint condition includes: determining a first penalty value for each virtual loading box violating the box weight limit constraint according to the cargo weight of each cargo block in each virtual loading box in each optional loading scheme and the rated loading weight of each virtual loading box; for each virtual loading box in each optional loading scheme, determining a cargo penalty value between each two cargoes in the virtual loading box according to a first pressure resistance coefficient and a second pressure resistance coefficient of each two cargoes whose loading positions are adjacent to each other in the virtual loading box; and determining a penalty value for each virtual loading box according to a first pressure resistance coefficient and a second pressure resistance coefficient of each two cargoes whose loading positions are adjacent to each other in the virtual loading box. The corresponding penalty values ​​of all goods determine the second penalty value for violating the pressure resistance constraint in each virtual loading box; for each virtual loading box in each optional loading scheme, the loading penalty value for violating the loading sequence constraint for every arbitrary two goods in the virtual loading box is determined according to the first loading sequence attribute value and the second loading sequence attribute value of every arbitrary two goods in the virtual loading box; the third penalty value for violating the loading sequence constraint for each virtual loading box is determined according to the total loading penalty values ​​corresponding to each virtual loading box; the penalty value for violating the loading constraint for each optional loading scheme is determined according to all the first penalty values, all the second penalty values ​​and all the third penalty values ​​corresponding to each optional loading scheme.

[0009] In the embodiment of the present application, the first penalty value is determined by formula (2): Formula (2) in, It refers to The first penalty value of a virtual loading box violating the box weight limit constraint, It refers to The weight of the i-th cargo in a virtual loading box, It refers to The rated load weight of a virtual loading box, It refers to The safety weight limit of a virtual loading box, It refers to The total weight of the cargo on the virtual loading box, It refers to the weight of the i-th cargo on the corresponding virtual loading box.

[0010] In the embodiment of the present application, the cargo penalty value is determined by formula (3): Formula (3) in, It refers to the penalty value of goods. Refers to the first withstand voltage coefficient, Refers to the second withstand voltage coefficient, Refers to a constant.

[0011] In the embodiment of the present application, the loading penalty value is determined by formula (4): Formula (4) in, is the loading penalty value, Refers to the first load order attribute value, Refers to the second load order attribute value, Refers to a constant.

[0012] In an embodiment of the present application, the number of virtual loading boxes used in the final loading plan is the target number of transport vehicles required to load multiple goods. Determining the final loading plan for the cargo order based on the number of virtual loading boxes used in each optimal loading plan and the corresponding average loading rate includes: selecting the optimal loading plan with the least number of virtual loading boxes among all the optimal loading plans as the pending loading plan; when the number of pending loading plans is one, using the pending loading plan as the final loading plan for the cargo order; when there are multiple pending loading plans, selecting the pending loading plan with the largest average loading rate as the final loading plan for the cargo order.

[0013] In an embodiment of the present application, for each virtual loading box, based on a genetic algorithm, according to the loading order of multiple goods, the cargo size of each cargo and the box size of the virtual loading box, multiple loading schemes to be selected under the virtual loading box are determined, including: determining the types of multiple goods, and determining the loading order according to the types of multiple goods; for each virtual loading box, constructing the placement conditions of the virtual loading box based on the preset cargo positioning coordinates, the cargo size of each cargo and the box size of the virtual loading box; in the process of loading each cargo in turn according to the loading order, determining whether each cargo meets the placement conditions; When the placement conditions are not met, a new virtual loading box is activated until each cargo meets the placement conditions and each cargo is placed in the corresponding virtual loading box; when all cargoes are placed according to the loading sequence, a plurality of loading schemes to be selected under the loading sequence are obtained, each of which includes the number of virtual loading boxes used and the cargo volume of each cargo block in each virtual loading box; the loading sequence is adjusted, and the process of loading each cargo in turn according to the loading sequence is returned to the step of judging whether each cargo meets the placement conditions, and a plurality of loading schemes to be selected under the virtual loading box are obtained.

[0014] In an embodiment of the present application, for each virtual loading box, determining the optimal loading plan for the cargo order under the virtual loading box according to the fitness of each to-be-selected loading plan under the virtual loading box includes: for each virtual loading box, constructing an initial population based on all to-be-selected loading plans under the virtual loading box; determining the loading plan corresponding to the fitness within a preset range in the initial population as the loading plan to be processed; performing cross processing and mutation processing on the loading plans other than the loading plan to be processed to obtain a new loading plan; updating the initial population to the loading plan to be processed and the new loading plan; judging whether the preset termination condition for selecting the optimal loading plan under the virtual loading box is met; if the preset termination condition is not met, returning to the step of determining the loading plan corresponding to the fitness within the preset range in the initial population as the loading plan to be processed; if the preset termination condition is met, determining the optimal loading plan from the loading plan with the largest fitness in the final population corresponding to when the preset termination condition is met.

[0015] In an embodiment of the present application, the transport vehicle includes a flatbed truck.

[0016] A second aspect of the present application provides a device for determining a transport vehicle loading scheme based on a genetic algorithm, comprising: a memory configured to store instructions; and The processor is configured to call instructions from the memory and implement the above-mentioned method for determining the loading plan of the transport vehicle based on the genetic algorithm when executing the instructions.

[0017] A third aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configures the processor to execute the above-mentioned method for determining a transport vehicle loading scheme based on a genetic algorithm.

[0018] Through the above technical solution, a cargo order is obtained, the body size of a transport vehicle for transporting multiple cargoes is obtained, and multiple virtual loading boxes with different box sizes for multiple cargoes are constructed according to the body size; for each virtual loading box, based on a genetic algorithm, multiple optional loading schemes under the virtual loading box are determined according to the loading order of multiple cargoes, the cargo size of each cargo, and the box size of the virtual loading box; for each virtual loading box, the optimal loading scheme for the cargo order under the virtual loading box is determined according to the fitness of each optional loading scheme under the virtual loading box; the average loading rate of each optimal loading scheme is determined according to the number of boxes of the virtual loading box used in each optimal loading scheme and the cargo volume of each cargo block in each virtual loading box; the final loading scheme for the cargo order is determined according to the number of boxes of the virtual loading box used in each optimal loading scheme and the corresponding average loading rate, so that the loading of cargo on the transport vehicle is more reasonable and the cargo loading efficiency is improved.

[0019] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings: Figure 1 A schematic diagram of a process of determining a transport vehicle loading scheme based on a genetic algorithm according to an embodiment of the present application is shown; Figure 2 A schematic diagram of a virtual loading box according to an embodiment of the present application is schematically shown; Figure 3 A schematic diagram schematically shows a result of cross processing according to an embodiment of the present application; Figure 4 A schematic diagram of a process of determining a transport vehicle loading scheme based on a genetic algorithm according to another embodiment of the present application is shown; Figure 5 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0022] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0023] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0024] Figure 1 The flowchart of the method for determining the loading scheme of a transport vehicle based on a genetic algorithm according to an embodiment of the present application is schematically shown. Figure 1 As shown, in one embodiment of the present application, a method for determining a transport vehicle loading scheme based on a genetic algorithm is provided, comprising the following steps: Step 101: Obtain a cargo order, which includes a plurality of cargoes to be loaded and the cargo size of each cargo.

[0025] A transport vehicle refers to a vehicle used to transport goods. There may be many types of goods, and the corresponding goods may be loaded on the transport vehicle according to the loading requirements of each type of goods. Goods include, but are not limited to, non-detachable objects such as excavators, loaders, and harvesters. Multiple goods are sent to a unified transportation destination. When loading multiple goods, the types of transport vehicles that can be selected are the same, and the number of transport vehicles of the same type that can be selected is not limited. In an embodiment of the present application, the transport vehicle includes a flatbed truck. When determining the loading plan of the transport vehicle, the processor may obtain a cargo order. The cargo order includes multiple goods to be loaded and the cargo size of each cargo. Among them, the cargo size of each cargo may include cargo length, cargo width, and cargo height.

[0026] The transport vehicles of this embodiment include traditional transport vehicles and new energy vehicles used in the field of transport vehicles, such as new energy logistics vehicles, new energy trucks, new energy flatbed trucks, etc.; in addition, the transport vehicles of this embodiment also belong to intelligent networked vehicles. The transport vehicles include sensing / perception systems, communication systems, etc., and collect vehicle operation data and vehicle surrounding environment information through the sensing / perception systems in the vehicle. The network connection with other vehicles and the cloud is achieved through the communication system, and the collected vehicle operation data, vehicle surrounding environment information, etc. are shared to the cloud and other authorized vehicles to realize data sharing, remote analysis, intelligent driving and other operations.

[0027] Step 102: Obtain the body size of a transport vehicle for transporting a plurality of goods, and construct a plurality of virtual loading boxes with different box sizes for the plurality of goods according to the body size.

[0028] The processor may obtain the body size of a transport vehicle for transporting multiple goods. Specifically, the type of transport vehicle for transporting multiple goods may be selected first, and the body size of the transport vehicle of this type may be obtained. The body of the transport vehicle refers to the part used to load goods, and the body size of the transport vehicle includes the maximum length, maximum width, and maximum height of the transport vehicle for loading goods.

[0029] The processor can construct multiple virtual loading boxes of different box sizes for multiple goods according to the body size of the transport vehicle. That is, the body of the transport vehicle can be changed into virtual boxes of different sizes, and the volume and quantity of the goods loaded by the transport vehicle also change accordingly.

[0030] For example, Figure 2 As shown, a schematic diagram of two virtual loading boxes is illustrated, taking the transport vehicle as a flatbed truck. Figure 2 The dotted part is the constructed virtual loading box. Figure 2 The placement space of the virtual loading box shown on the left side is obviously larger than the placement space of the virtual loading box shown on the right side.

[0031] Step 103: for each virtual loading box, based on a genetic algorithm, multiple loading schemes to be selected under the virtual loading box are determined according to the loading sequence of multiple goods, the size of each goods and the box size of the virtual loading box.

[0032] One cargo order corresponds to multiple virtual loading boxes. For each virtual loading box, the processor can determine multiple optional loading schemes under the virtual loading box based on the genetic algorithm according to the loading order of multiple cargoes, the cargo size of each cargo, and the box size of the virtual loading box. That is, using one virtual loading box can correspond to multiple optional loading schemes for the transport vehicle.

[0033] In an embodiment of the present application, for each virtual loading box, based on a genetic algorithm, according to the loading order of multiple goods, the cargo size of each cargo and the box size of the virtual loading box, multiple loading schemes to be selected under the virtual loading box are determined, including: determining the types of multiple goods, and determining the loading order according to the types of multiple goods; for each virtual loading box, constructing the placement conditions of the virtual loading box based on the preset cargo positioning coordinates, the cargo size of each cargo and the box size of the virtual loading box; in the process of loading each cargo in turn according to the loading order, determining whether each cargo meets the placement conditions; When the placement conditions are not met, a new virtual loading box is activated until each cargo meets the placement conditions and each cargo is placed in the corresponding virtual loading box; when all cargoes are placed according to the loading sequence, a plurality of loading schemes to be selected under the loading sequence are obtained, each of which includes the number of virtual loading boxes used and the cargo volume of each cargo block in each virtual loading box; the loading sequence is adjusted, and the process of loading each cargo in turn according to the loading sequence is returned to the step of judging whether each cargo meets the placement conditions, and a plurality of loading schemes to be selected under the virtual loading box are obtained.

[0034] The processor may determine the types of multiple goods, and may determine the loading order for the multiple goods according to the types of the multiple goods. For example, the size of each type of goods may be obtained first, and the loading order for the multiple goods may be determined according to the rule that the smaller the size of the goods, the earlier the loading order, and the larger the size of the goods, the later the loading order, so as to improve the subsequent vehicle loading rate. For another example, the shipping priority of each type of goods may be obtained, and the loading order for the multiple goods may be determined according to the shipping priority of each type of goods, wherein the higher the shipping priority, the more the goods need to be unloaded first, and the loading order corresponding to the type of goods is reliable, so that when the transport vehicle reaches the transport destination, the type of goods can be unloaded and shipped first.

[0035] For each virtual loading box, the placement conditions of the virtual loading box are constructed based on the preset cargo positioning coordinates, the cargo size of each cargo, and the box size of the virtual loading box. The preset cargo positioning coordinates are determined by the coordinate value of the lower left rear corner of the virtual loading box when the cargo is loaded into a certain virtual loading box after the coordinate system for each virtual loading box is established based on the right-hand rule.

[0036] In one embodiment, the placement condition of each virtual loading box can be defined by the following formula:

[0037] in, It refers to the x-axis coordinate value of the coordinate system of the virtual loading box when the i-th cargo included in the preset cargo positioning coordinates is loaded into the virtual loading box. It means that the i-th cargo is loaded into the When a virtual loading box is The y-axis coordinate value of the coordinate system of the virtual loading box, It means that the i-th cargo is loaded into the When a virtual loading box is The z-axis coordinate value of the coordinate system of the virtual loading box, It refers to The length of the virtual loading box, It refers to The width of the virtual loading box, It refers to The height of a virtual loading box.

[0038] In the process of loading each cargo in sequence according to the loading order, the processor can determine whether each cargo meets the placement condition. In the case that each cargo does not meet the placement condition, it is determined that there is no placement space in the virtual loading box to place the cargo, and the processor can activate a new virtual loading box until each cargo meets the placement condition and places each cargo in the corresponding virtual loading box. That is, in the process of loading each cargo in sequence, if the placement space of a virtual loading box is full, another virtual loading box of the same type can be activated to load the subsequent cargo.

[0039] When all the goods are placed according to the loading sequence, although each of the goods is loaded according to the loading sequence, the placement position of each of the goods may change during loading, so the processor can obtain multiple optional loading schemes under the loading sequence. The optional loading schemes include the number of virtual loading boxes used and the cargo volume of each cargo block in each virtual loading box. The cargo block includes multiple goods of the same type.

[0040] The processor can adjust the loading order and return to the step of determining whether each cargo meets the placement condition in the process of loading each cargo in sequence according to the loading order, and obtain multiple loading schemes to be selected under the virtual loading box. For example, first load Class A cargo, then Class B cargo, and generate 10 loading schemes to be selected. Then modify the loading order, first load Class B cargo, then load Class A cargo, and then Class A cargo. At this time, 10 loading schemes to be selected are still generated. Then, when using the virtual loading box to load Class A cargo and Class B cargo, the number of loading schemes to be selected is 20, and the loading schemes to be selected correspond to the initial population in the genetic algorithm.

[0041] Step 104: for each virtual loading box, determine the optimal loading solution for the cargo order under the virtual loading box according to the fitness of each loading solution to be selected under the virtual loading box.

[0042] For each virtual loading box, the processor may first determine the fitness of each optional loading scheme under the virtual loading box. Then, the processor may select a loading scheme from multiple loading schemes under the virtual loading box according to the fitness of each loading scheme under the virtual loading box, and the selected loading scheme is the optimal loading scheme for the cargo order under the virtual loading box.

[0043] In an embodiment of the present application, the method also includes: for each loading scheme to be selected, determining the total cargo volume of each virtual loading box according to the cargo volume of each cargo block in each virtual loading box in the loading scheme to be selected; for each loading scheme to be selected, determining the rated loading volume of each virtual loading box according to the box size of each virtual loading box in the loading scheme to be selected; determining the penalty value of each loading scheme to be selected for violating the loading constraints, wherein the loading constraints include box weight limit constraints, pressure resistance constraints and loading sequence constraints; determining the adaptability of each loading scheme to be selected according to the penalty value of each loading scheme to be selected, the number of boxes of the virtual loading box, the total cargo volume of each virtual loading box and the rated loading volume.

[0044] For each loading scheme to be selected, the processor may determine the total cargo volume of each virtual loading box according to the cargo volume of each cargo block in each virtual loading box in the loading scheme to be selected. The processor may determine the rated loading volume of each virtual loading box according to the box size of each virtual loading box in the loading scheme to be selected. The rated loading volume refers to the optimal volume of the corresponding virtual loading box to carry the cargo. Specifically, the product of the box length, box width and box height of each virtual loading box is determined to obtain the rated loading volume of each virtual loading box.

[0045] The processor may determine the penalty value for each selected loading scheme violating the loading constraint condition, wherein the loading constraint condition includes a box weight limit constraint, a pressure resistance constraint condition, and a loading order constraint condition. The box weight limit constraint condition is used to limit the total types of goods loaded in each virtual loading box to a certain range of the weight limit of each virtual loading box. The pressure resistance constraint condition is used to limit the pressure resistance of two goods that are relatively located above and below after the goods are loaded, so as to ensure that the loaded goods are not damaged as much as possible.

[0046] In an embodiment of the present application, each optional loading scheme also includes the cargo weight of each cargo block in each virtual loading box, and determining the penalty value of each optional loading scheme violating the loading constraint condition includes: determining a first penalty value for each virtual loading box violating the box weight limit constraint according to the cargo weight of each cargo block in each virtual loading box in each optional loading scheme and the rated loading weight of each virtual loading box; for each virtual loading box in each optional loading scheme, determining a cargo penalty value between each two cargoes in the virtual loading box according to a first pressure resistance coefficient and a second pressure resistance coefficient of each two cargoes whose loading positions are adjacent to each other in the virtual loading box; and determining a penalty value for each virtual loading box according to a first pressure resistance coefficient and a second pressure resistance coefficient of each two cargoes whose loading positions are adjacent to each other in the virtual loading box. The corresponding penalty values ​​of all goods determine the second penalty value for violating the pressure resistance constraint in each virtual loading box; for each virtual loading box in each optional loading scheme, the loading penalty value for violating the loading sequence constraint for every arbitrary two goods in the virtual loading box is determined according to the first loading sequence attribute value and the second loading sequence attribute value of every arbitrary two goods in the virtual loading box; the third penalty value for violating the loading sequence constraint for each virtual loading box is determined according to the total loading penalty values ​​corresponding to each virtual loading box; the penalty value for violating the loading constraint for each optional loading scheme is determined according to all the first penalty values, all the second penalty values ​​and all the third penalty values ​​corresponding to each optional loading scheme.

[0047] The processor can determine the first penalty value for each virtual loading box violating the box weight limit constraint according to the cargo weight of each cargo block in each virtual loading box in each optional loading scheme and the rated loading weight of each virtual loading box. The rated loading weight refers to the optimal weight of the corresponding virtual loading box loaded with cargo. Specifically, for each virtual loading box in each optional loading scheme, the total cargo weight of all cargo blocks in the virtual loading box can be determined, and the safety weight limit of the virtual loading box, that is, the maximum tolerable cargo weight, can be determined according to the rated loading weight of the virtual loading box. Afterwards, the total cargo weight can be compared with the rated loading weight and the safety weight limit of the virtual loading box, respectively, so as to determine the first penalty value for the virtual loading box violating the box weight limit constraint.

[0048] Specifically, if the rated loading weight of the virtual loading box is greater than or equal to the total cargo weight of the virtual loading box, the first penalty value for the virtual loading box violating the box weight limit constraint is a preset value, which may be 1. If the rated loading weight of the virtual loading box is less than the total cargo weight of the virtual loading box, and the total cargo weight of the virtual loading box is less than or equal to the safety weight limit, the first penalty value for the virtual loading box violating the box weight limit constraint may be determined according to the total cargo weight of the virtual loading box and the rated loading weight of the virtual loading box.

[0049] Specifically, in the embodiment of the present application, the first penalty value is determined by formula (2): Formula (2) in, It refers to The first penalty value of a virtual loading box violating the box weight limit constraint, It refers to The weight of the i-th cargo in a virtual loading box, It refers to The rated load weight of a virtual loading box, It refers to The safety weight limit of a virtual loading box, It refers to The total weight of the cargo on the virtual loading box, It refers to the weight of the i-th cargo on the corresponding virtual loading box.

[0050] For each virtual loading box in each optional loading scheme, the processor can determine the cargo penalty value between each two cargoes in the virtual loading box according to the first pressure resistance coefficient and the second pressure resistance coefficient of each two cargoes whose loading positions are adjacent to each other in the virtual loading box. The first pressure resistance coefficient is the pressure resistance coefficient of the cargo at the top, and the second pressure resistance coefficient is the pressure resistance coefficient of the cargo at the bottom. The pressure resistance coefficient of each cargo can be configured in advance based on the attribute parameters of the cargo itself. For example, if the cargo is construction machinery, it can be determined based on the softness and hardness of the cargo's own material.

[0051] In one embodiment, the Indicates the horizontal plane where the lower left corner of the ith cargo is located, which can be expressed as Indicates The horizontal plane where the lower left rear corner of the cargo is located. , then the i-th item and the The horizontal planes of the ith cargo overlap. At this time, if the z-axis coordinate value of the lower left rear corner of the ith cargo is greater than that of the ith cargo, The z-axis coordinate value of the lower left rear corner of the ith product, and the z-axis coordinate value of the lower left rear corner of the ith product is the same as the z-axis coordinate value of the lower left rear corner of the ith product. The difference between the z-axis coordinate values ​​of the lower left rear corner of the cargo is The height of the goods, then we can determine the i-th goods in the Above the goods, The goods are below the i-th goods.

[0052] If the first pressure resistance coefficient is greater than or equal to zero and less than or equal to the second pressure resistance coefficient, the corresponding cargo penalty value may be a preset value, which may be 1. If the first pressure resistance coefficient is greater than the second pressure resistance coefficient, the corresponding cargo penalty value may be determined based on the first pressure resistance coefficient and the second pressure resistance coefficient. Specifically, in the embodiment of the present application, the cargo penalty value is determined by formula (3): Formula (3) in, It refers to the penalty value of goods. Refers to the first withstand voltage coefficient, Refers to the second withstand voltage coefficient, Refers to a constant. Can be set to 1.

[0053] For each virtual loading box in each loading scheme to be selected, the processor may determine the second penalty value for violating the pressure resistance constraint condition in each virtual loading box according to the penalty values ​​of all goods corresponding to each virtual loading box. Specifically, the processor may calculate the average value of the penalty values ​​of all goods corresponding to each virtual loading box, and use the average value as the second penalty value for violating the pressure resistance constraint condition in each virtual loading box.

[0054] For each virtual loading box in each loading scheme to be selected, the processor may determine the loading penalty value for each arbitrary two goods in the virtual loading box that violate the loading order constraint according to the first loading order attribute value and the second loading order attribute value of each arbitrary two goods in the virtual loading box. The first loading order attribute value is the order attribute value of the goods that need to be loaded first, and the second loading order attribute value is the loading order attribute value of the goods that need to be loaded later.

[0055] The earlier the loading order of a cargo is, the larger the corresponding loading order attribute value can be set. The loading order attribute value of each cargo can be configured in advance based on actual needs. For example, if the shipping priority of a cargo is lower, it means that the cargo needs to be loaded earlier. At this time, the loading order can be set earlier, that is, the larger the loading order attribute value is set, so that the transport vehicle can be unloaded first when it arrives at the transport destination, thereby improving the shipping efficiency of the cargo.

[0056] Specifically, if the first loading order attribute value is greater than or equal to the second loading order attribute value, and the second loading order attribute value is greater than or equal to zero, the loading penalty value of the corresponding goods can be determined to be a preset value, and the preset value can be 1. If the first loading order attribute value is less than the second loading order attribute value, the loading penalty value of the corresponding goods can be determined according to the first loading order attribute value and the second loading order attribute value. In the embodiment of the present application, the loading penalty value is determined by formula (4): Formula (4) in, is the loading penalty value, Refers to the first load order attribute value, Refers to the second load order attribute value, Refers to a constant.

[0057] The processor may determine the third penalty value for each virtual loading box violating the loading order constraint according to all loading penalty values ​​corresponding to each virtual loading box. Specifically, the processor may calculate the average value of all loading penalty values ​​corresponding to each virtual loading box, and use the average value as the second penalty value for violating the loading order constraint in each virtual loading box.

[0058] The processor may determine the penalty value of each candidate loading scheme for violating the loading constraint condition according to all first penalty values, all second penalty values, and all third penalty values ​​corresponding to each candidate loading scheme. Specifically, the processor may determine the mean of all first penalty values, the mean of all second penalty values, and the mean of all third penalty values, and calculate the product of all the mean values ​​to obtain the penalty value of each candidate loading scheme for violating the loading constraint condition.

[0059] When determining the penalty value of each candidate loading scheme violating the loading constraint condition, the processor may determine the fitness of each candidate loading scheme according to the penalty value of each candidate loading scheme, the number of boxes of the virtual loading box, the total cargo volume of each virtual loading box, and the rated loading volume. Specifically, in the embodiment of the present application, the fitness of each candidate loading scheme is determined by formula (1): Formula (1) in, It refers to the fitness of each loading scheme to be selected. is a constant, Refers to the number of virtual loading boxes in each loading solution to be selected. It refers to The transport quantity of goods in virtual loading boxes, It refers to The length dimension included in the cargo dimensions of the i-th cargo of a virtual loading box, It refers to The width dimension included in the cargo dimensions of the ith cargo of a virtual loading box, It refers to The height dimension included in the cargo dimensions of the i-th cargo of the virtual loading box, It refers to The cargo volume of the i-th cargo in a virtual loading box, It refers to The total cargo volume of the virtual loading box, It refers to The rated loading volume of a virtual loading box, Refers to the penalty value of each candidate loading scheme violating the loading constraint condition. is an integer greater than 1.

[0060] In an embodiment of the present application, for each virtual loading box, determining the optimal loading plan for the cargo order under the virtual loading box according to the fitness of each to-be-selected loading plan under the virtual loading box includes: for each virtual loading box, constructing an initial population based on all to-be-selected loading plans under the virtual loading box; determining the loading plan corresponding to the fitness within a preset range in the initial population as the loading plan to be processed; performing cross processing and mutation processing on the loading plans other than the loading plan to be processed to obtain a new loading plan; updating the initial population to the loading plan to be processed and the new loading plan; judging whether the preset termination condition for selecting the optimal loading plan under the virtual loading box is met; if the preset termination condition is not met, returning to the step of determining the loading plan corresponding to the fitness within the preset range in the initial population as the loading plan to be processed; if the preset termination condition is met, determining the optimal loading plan from the loading plan with the largest fitness in the final population corresponding to when the preset termination condition is met.

[0061] For each virtual loading box, the processor may construct an initial population based on all the loading schemes to be selected under the virtual loading box. Afterwards, the processor may determine the loading scheme corresponding to the fitness within a preset range in the initial population as the loading scheme to be processed. The preset range may be set based on actual needs. The processor may perform cross processing and mutation processing on the loading schemes other than the loading scheme to be processed to obtain a new loading scheme.

[0062] For example, Figure 3 As shown, a schematic diagram of the results of cross-processing is provided. Figure 3The upper middle side shows the crossover operation parent generation, that is, any two loading schemes other than the loading scheme to be processed, each of which includes box 1, box 2, and box 3, each of which includes cargo blocks with different numbers, and cargo blocks numbered 1, cargo blocks numbered 2, and cargo blocks numbered 3 represent three different cargoes. Each cargo block includes multiple cargoes of the same type. For a parent generation, the cargo blocks in the parent generation are sorted to obtain the intersection of the parent generation.

[0063] In the right Figure 3 When the two crossover operation parents shown in the upper middle side perform a crossover operation, the corresponding crossover position point is set according to the order of the cargo blocks in any parent generation. If the position of the cargo block with sequence number 5 is randomly selected as the crossover position point, the cargo blocks with sequence numbers 6 to 10 in the two parents are exchanged to obtain Figure 3 The crossover operation offspring shown in the lower middle side are two new loading schemes obtained after crossover and mutation processing.

[0064] When performing mutation processing on the loading schemes other than the loading scheme to be processed, the mutation processing may adopt the basic position mutation method. For example, for a certain loading scheme, randomly select a cargo block in any virtual loading box in the loading scheme, and replace the cargo block in any virtual loading box in another loading scheme with the cargo block. Figure 3 For example, for container No. 1 in the loading scheme on the upper side, if the cargo block with sequence number 3 in container No. 1 is selected, the cargo block with sequence number 3 can be placed in container No. 2 in the loading scheme, or any cargo block in container No. 2 in the loading scheme can be replaced to obtain the mutated loading scheme.

[0065] After obtaining a new loading scheme, the processor may update the initial population to the loading scheme to be processed and the new loading scheme. The processor may determine whether a preset termination condition for selecting the optimal loading scheme under the virtual loading box is reached. The preset termination condition may include the number of iterations for the initial population under the virtual loading box, and / or the maximum fitness obtained from the updated population tends to be stable.

[0066] If the preset termination condition is not met, the processor may return to the step of determining the loading scheme corresponding to the fitness within the preset range in the initial population as the loading scheme to be processed, so as to redetermine the loading scheme to be processed based on the updated initial population. If the preset termination condition is met, the processor may determine the optimal loading scheme as the loading scheme with the largest fitness in the final population corresponding to the preset termination condition.

[0067] Step 105: Determine the average loading rate of each optimal loading solution according to the number of virtual loading boxes used in each optimal loading solution and the cargo volume of each cargo block in each virtual loading box.

[0068] The processor may determine the average loading rate of each optimal loading scheme according to the number of boxes of virtual loading boxes used in each optimal loading scheme and the cargo volume of each cargo block in each virtual loading box. Specifically, the total cargo volume of all cargo blocks in each virtual loading box may be determined, and the rated loading volume of each virtual loading box may be determined according to the box size of each virtual loading box. Afterwards, the ratio of the total cargo volume of each virtual loading box to the rated loading volume of each virtual loading box may be determined to obtain the loading rate of each virtual loading box. Next, the ratio between the loading rates of all virtual loading boxes in each optimal loading scheme and the number of boxes of virtual loading boxes used in each optimal loading scheme may be determined to obtain the average loading rate of each optimal loading scheme.

[0069] Step 106: Determine a final loading plan for the cargo order according to the number of virtual loading boxes used in each optimal loading plan and the corresponding average loading rate.

[0070] The processor may determine a final loading plan for the cargo order according to the number of virtual loading boxes used in each optimal loading plan and the corresponding average loading rate.

[0071] In an embodiment of the present application, the number of virtual loading boxes used in the final loading plan is the target number of transport vehicles required to load multiple goods. Determining the final loading plan for the cargo order based on the number of virtual loading boxes used in each optimal loading plan and the corresponding average loading rate includes: selecting the optimal loading plan with the least number of virtual loading boxes among all the optimal loading plans as the pending loading plan; when the number of pending loading plans is one, using the pending loading plan as the final loading plan for the cargo order; when there are multiple pending loading plans, selecting the pending loading plan with the largest average loading rate as the final loading plan for the cargo order.

[0072] The number of virtual loading boxes used in the final loading plan is the target number of transport vehicles required to load multiple goods. When determining the final loading plan for a cargo order, the processor may select the optimal loading plan with the least number of virtual loading boxes from all optimal loading plans as the pending loading plan. When the number of pending loading plans is one, the processor may use the pending loading plan as the final loading plan for the cargo order. When there are multiple pending loading plans, the processor may select the pending loading plan with the largest average loading rate as the final loading plan for the cargo order.

[0073] like Figure 4 As shown, taking a flatbed truck as an example, another flow chart of a method for determining a loading plan for a transport vehicle based on a genetic algorithm is provided.

[0074] When determining the loading plan for transport vehicles, you can select cargo and flatbed trucks, and set the size of the flatbed truck body. After that, you can load based on the genetic algorithm and output the optimal result of the algorithm. Specifically, when configuring based on the genetic algorithm, the size of the set flatbed body can be equated with a box of variable size, and a placeable space can be constructed for the box. The code of the placeable space can be set to ,in, Indicates the serial number of the box where a certain placeable space is located. Represents the three-dimensional coordinates of a placeable reference point of a placeable space. The three-dimensional size of a placeable space is represented by According to the above coding rules, if a box is numbered i and its three-dimensional dimensions are length L, width W, and height H, the initial coding of the space that can be placed in the box can be set to (i, 0, 0, 0, L, W, H).

[0075] For all the goods to be loaded, they can be sorted according to the approximate loading order, and then loaded in this sequence. If the placement conditions are met, the goods are placed in the corresponding available space, otherwise a new box is used. Among them, the placement conditions are constructed based on the size of the goods and the size of the available space. If a piece of goods is placed in the box, the space occupied by the goods is first deleted, and the three-dimensional data of the available space is recorded during loading. For the same layer, it is placed from left to right, from front to back, and from bottom to top for different layers. When placing goods, it is also necessary to keep the height of the items parallel to the height direction of the box. The same type of goods can be classified into one type according to needs, and the items of this type can be processed in advance according to the remaining space of the available space. When the remaining space of the available space is enough to load this type of goods, they can be loaded together. Before each piece of goods is loaded into the box, if the space requirements are met, the lower left corner of the remaining space of the box should be given priority for placement.

[0076] After loading the goods, multiple loading plans can be obtained. Each loading plan includes multiple boxes used to transport the goods. Each loading plan can be represented by n matrices, that is, the number of boxes used. Each row in each matrix can represent a cargo block. For example, it can be represented as: {i, q, l, w, h, v, g, x, y, z}, where i represents the serial number corresponding to the cargo, q represents the number of cargo in the cargo block, l, w, h correspond to the length, width and height of the cargo respectively, v represents the volume of the cargo block, g represents the weight of the cargo block, and x, y, z represent the initial coordinates of the cargo block after placement.

[0077] For any box in each loading scheme, the penalty value of each box violating the box load-bearing constraint, pressure resistance constraint and loading order constraint can be determined first, so as to obtain the penalty value of each loading scheme violating the box load-bearing constraint, pressure resistance constraint and loading order constraint. After that, the fitness of each loading scheme can be determined based on the penalty value of each loading scheme and the corresponding objective function. Then, based on the fitness of each loading scheme, a part of the best individuals can be retained and directly copied to the next generation, and the remaining individuals form a new group for subsequent crossover and mutation. Specifically, through the selection operation, individuals with high fitness can be inherited to the next generation with a greater probability. Specifically, the optimal preservation strategy can be used to ensure that the current optimal solution is directly copied to the next generation, and the fitness will not be reduced due to crossover and mutation operations. Single-point crossover can be used to perform crossover operations on the box code string where the item is located. The specific operation process is that the box strings of two parent generations are crossed to generate two box strings of the child generation. The basic bit mutation method can be adopted to mutate the box serial number where the item is located, change the gene value at certain positions, and thus generate new individuals. After the selection, crossover and mutation processes, the fitness values ​​of all individuals in the current population can be evaluated until the termination condition is met and the optimal individual is output.

[0078] After obtaining the optimal result of the algorithm, the size of the vehicle body setting can be continuously changed. Each time the size of the vehicle body setting is changed, the genetic algorithm can be used for loading, and all loading plans after the vehicle body size is changed are output, that is, multiple loading plans are rebuilt and the optimal individual is re-output. Then, the loading plan with the lowest average load and the least number of vehicles can be queried as the final loading plan for the goods. The goods can be loaded according to the corresponding final loading plan and the corresponding waybill can be generated. After that, the dispatch, arrival and receipt of the goods can be managed based on the waybill of the goods.

[0079] Through the above technical solution, a cargo order is obtained, the body size of a transport vehicle for transporting multiple cargoes is obtained, and multiple virtual loading boxes with different box sizes for multiple cargoes are constructed according to the body size; for each virtual loading box, based on a genetic algorithm, multiple optional loading schemes under the virtual loading box are determined according to the loading order of multiple cargoes, the cargo size of each cargo, and the box size of the virtual loading box; for each virtual loading box, the optimal loading scheme for the cargo order under the virtual loading box is determined according to the fitness of each optional loading scheme under the virtual loading box; the average loading rate of each optimal loading scheme is determined according to the number of boxes of the virtual loading box used in each optimal loading scheme and the cargo volume of each cargo block in each virtual loading box; the final loading scheme for the cargo order is determined according to the number of boxes of the virtual loading box used in each optimal loading scheme and the corresponding average loading rate, so that the loading of cargo on the transport vehicle is more reasonable and the cargo loading efficiency is improved.

[0080] Figure 1 and 4 FIG. 1 is a flow chart of a method for determining a transport vehicle loading scheme based on a genetic algorithm in one embodiment. Figure 1 and 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 and 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0081] In one embodiment, a device for determining a transport vehicle loading scheme based on a genetic algorithm is provided, comprising: a memory configured to store instructions; and The processor is configured to call instructions from the memory and implement the above-mentioned method for determining the loading plan of the transport vehicle based on the genetic algorithm when executing the instructions.

[0082] In one embodiment, a storage medium is provided, on which a program is stored, and when the program is executed by a processor, the method for determining a transport vehicle loading scheme based on a genetic algorithm is implemented.

[0083] In one embodiment, a processor is provided, and the processor is used to run a program, wherein when the program is run, the method for determining a transport vehicle loading scheme based on a genetic algorithm is executed.

[0084] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data such as the final loading plan of the cargo order. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a method for determining the loading plan of a transport vehicle based on a genetic algorithm is implemented.

[0085] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0086] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the method steps of determining a transport vehicle loading plan based on a genetic algorithm are implemented.

[0087] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the method steps of determining a transport vehicle loading plan based on a genetic algorithm.

[0088] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0089] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0090] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0092] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0093] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0094] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0095] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0096] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for determining the loading scheme of transport vehicles based on genetic algorithm, It is characterized in that The method comprises: Obtaining a cargo order, the cargo order including a plurality of cargoes to be loaded and cargo dimensions of each cargo; Acquire the body size of a transport vehicle for transporting the plurality of goods, and construct a plurality of virtual loading boxes with different box sizes for the plurality of goods according to the body size; For each virtual loading box, based on a genetic algorithm, a plurality of loading schemes to be selected under the virtual loading box are determined according to the loading order of the plurality of goods, the size of each of the goods, and the size of the virtual loading box; For each virtual loading box, determine the optimal loading solution for the cargo order under the virtual loading box according to the fitness of each loading solution to be selected under the virtual loading box; Determine the average loading rate of each optimal loading solution according to the number of virtual loading boxes used in each optimal loading solution and the cargo volume of each cargo block in each virtual loading box; A final loading plan for the cargo order is determined according to the number of virtual loading boxes used in each optimal loading plan and the corresponding average loading rate.

2. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 1, It is characterized in that The method further comprises: For each loading scheme to be selected, determining the total cargo volume of each virtual loading box according to the cargo volume of each cargo block in each virtual loading box in the loading scheme to be selected; For each loading scheme to be selected, determining the rated loading volume of each virtual loading box according to the box size of each virtual loading box in the loading scheme to be selected; Determine a penalty value for each selected loading scheme that violates a loading constraint condition, wherein the loading constraint condition includes a container weight limit constraint, a pressure resistance constraint condition, and a loading sequence constraint; The fitness of each candidate loading scheme is determined according to the penalty value of each candidate loading scheme, the number of boxes of the virtual loading box, the total cargo volume of each virtual loading box and the rated loading volume.

3. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 2, It is characterized in that The fitness of each candidate loading scheme is determined by formula (1): Formula (1) in, It refers to the fitness of each loading scheme to be selected. is a constant, Refers to the number of virtual loading boxes in each loading solution to be selected. It refers to The transport quantity of goods in virtual loading boxes, It refers to The length dimension included in the cargo dimensions of the i-th cargo of a virtual loading box, It refers to The width dimension included in the cargo dimensions of the ith cargo of a virtual loading box, It refers to The height dimension included in the cargo dimensions of the i-th cargo of the virtual loading box, It refers to The cargo volume of the i-th cargo in a virtual loading box, It refers to The total cargo volume of the virtual loading box, It refers to The rated loading volume of a virtual loading box, It refers to the penalty value for each alternative loading scheme that violates the loading constraints.

4. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 2, It is characterized in that Each of the selected loading solutions also includes the cargo weight of each cargo block in each virtual loading box. The penalty value for violating the loading constraint condition of each of the selected loading solutions includes: Determine a first penalty value for each virtual loading box violating the box weight limit constraint according to the cargo weight of each cargo block in each virtual loading box in each loading scheme to be selected and the rated loading weight of each virtual loading box; For each virtual loading box in each loading scheme to be selected, determine the cargo penalty value between every two cargoes in the virtual loading box according to the first pressure resistance coefficient and the second pressure resistance coefficient of every two cargoes whose loading positions are vertically adjacent in the virtual loading box; Determine a second penalty value for violating the pressure resistance constraint condition in each virtual loading box according to the penalty values ​​of all goods corresponding to each virtual loading box; For each virtual loading box in each loading scheme to be selected, determining a loading penalty value for each arbitrary two goods in the virtual loading box that violates the loading sequence constraint according to the first loading sequence attribute value and the second loading sequence attribute value of each arbitrary two goods in the virtual loading box; Determine a third penalty value for each virtual loading box violating the loading sequence constraint according to all loading penalty values ​​corresponding to each virtual loading box; The penalty value of each candidate loading scheme for violating the loading constraint condition is determined according to all first penalty values, all second penalty values ​​and all third penalty values ​​corresponding to each candidate loading scheme.

5. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 4, It is characterized in that The first penalty value is determined by formula (2): Formula (2) in, It refers to A first penalty value for a virtual loading box violating the box weight limit constraint, It refers to The weight of the i-th cargo in a virtual loading box, It refers to The rated load weight of a virtual loading box, It refers to The safety weight limit of a virtual loading box, It refers to The total weight of the cargo on the virtual loading box, It refers to the weight of the i-th cargo on the corresponding virtual loading box.

6. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 4, It is characterized in that The cargo penalty value is determined by formula (3): Formula (3) in, It refers to the penalty value of goods. Refers to the first withstand voltage coefficient, Refers to the second withstand voltage coefficient, Refers to a constant.

7. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 4, It is characterized in that The loading penalty value is determined by formula (4): Formula (4) in, is the loading penalty value, Refers to the first load order attribute value, Refers to the second load order attribute value, Refers to a constant.

8. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 1, It is characterized in that The number of virtual loading boxes used in the final loading plan is the target number of transport vehicles required to load the multiple goods. The final loading plan for the goods order is determined according to the number of virtual loading boxes used in each optimal loading plan and the corresponding average loading rate, including: The optimal loading scheme with the least number of virtual loading boxes is selected from all the optimal loading schemes as the pending loading scheme; When the number of the pending loading solutions is one, the pending loading solution is used as the final loading solution for the cargo order; When there are multiple pending loading plans, the pending loading plan with the largest average loading rate is selected as the final loading plan for the cargo order.

9. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 1, It is characterized in that For each virtual loading box, based on a genetic algorithm, determining a plurality of loading schemes to be selected under the virtual loading box according to the loading sequence of the plurality of goods, the size of each of the goods, and the box size of the virtual loading box includes: Determining the types of the plurality of goods, and determining the loading order according to the types of the plurality of goods; For each virtual loading box, constructing a placement condition of the virtual loading box based on preset cargo positioning coordinates, cargo dimensions of each cargo, and the box dimensions of the virtual loading box; In the process of loading each cargo in sequence according to the loading sequence, determining whether each cargo satisfies the placement condition; In the case that each cargo does not meet the placement condition, a new virtual loading box is activated until each cargo meets the placement condition, and each cargo is placed in a corresponding virtual loading box; When all the goods are placed according to the loading sequence, a plurality of loading schemes to be selected under the loading sequence are obtained, each of which includes the number of virtual loading boxes used and the cargo volume of each cargo block in each virtual loading box; The loading sequence is adjusted, and the process of loading each cargo in sequence according to the loading sequence is returned to the step of determining whether each cargo satisfies the placement condition, so as to obtain a plurality of loading schemes to be selected under the virtual loading box.

10. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to claim 1, It is characterized in that The step of determining, for each virtual loading box, the optimal loading solution for the cargo order under the virtual loading box according to the fitness of each loading solution to be selected under the virtual loading box includes: For each virtual loading box, construct an initial population based on all loading solutions to be selected under the virtual loading box; Determine the loading scheme corresponding to the fitness within the preset range in the initial population as the loading scheme to be processed; Performing cross processing and mutation processing on the loading schemes other than the loading scheme to be processed to obtain a new loading scheme; Updating the initial population to the loading scheme to be processed and the new loading scheme; Determining whether a preset termination condition for selecting the optimal loading solution under the virtual loading box is met; If the preset termination condition is not met, returning to the step of determining the loading scheme corresponding to the fitness within the preset range in the initial population as the loading scheme to be processed; When the preset termination condition is reached, the optimal loading scheme is determined as the loading scheme with the largest fitness in the final population corresponding to the preset termination condition.

11. The method for determining a transport vehicle loading scheme based on a genetic algorithm according to any one of claims 1 to 10, It is characterized in that The transport vehicle comprises a flatbed truck.

12. A device for determining a transport vehicle loading scheme based on a genetic algorithm, It is characterized in that The device comprises: a memory configured to store instructions; and A processor is configured to call the instructions from the memory and implement the method for determining a transport vehicle loading plan based on a genetic algorithm according to any one of claims 1 to 11 when executing the instructions.

13. A machine-readable storage medium, It is characterized in that The machine-readable storage medium stores instructions for causing a machine to execute the method for determining a transport vehicle loading plan based on a genetic algorithm according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Vehicle loading method and system for cargo loading

    CN111768151A

  • Encasement method and encasement device

    CN114873003A

  • Cargo loading method, device and equipment and storage medium

    CN115271596A

  • Multi-unmanned aerial vehicle emergency material distribution method based on multi-target brainstorm algorithm

    CN118095591A

  • Railway cargo loading efficiency simulation and optimization method based on virtual reality

    CN118260857A

Cited By

  • Intelligent logistics management method based on multimodal transport digital development

    CN121352670A

  • Loading distribution optimization method, system, equipment and medium

    CN122222143A