Method, system, equipment and medium for planning container turnover before loading
Through the rummaging planning method before container loading, the reverse order list and target row selection are used to generate a rummaging operation plan, which solves the problem of low rummaging efficiency in the existing technology and achieves orderly storage and safe stacking of bays. Reduce the number of rummaging and transportation costs.
Patent Information
- Application Number
- CN202410986307.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-23
AI Technical Summary
In the existing technology, container tumbling and sorting before shipping mainly relies on the manual work of the yard driver, resulting in low quality and low efficiency of the tumbling solution, and cannot effectively solve the problem of misalignment between the storage status of the container and the order of shipping and shipping.
Provides a method for rummaging planning before container loading. By obtaining the location information of the container, marking the shipping serial number, determining the rummaging constraints, traversing the reverse order list, selecting the target row, turning the container out or into it, and generating the rummage The operation plan ensures that the stacking status is orderly, the number of steps for turning boxes is minimal, the handling cost is low, and the stacking height is safe.
While keeping the shell position unchanged, through a series of rummaging operation steps, the stacking state is changed from chaos to order, reducing the number of rummagings, reducing transportation costs, ensuring a high level of stacking safety, and meeting the requirements for shipment without temporary The need for rummaging.
Smart Images

Figure CN118521010B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to container turning technology at a large container terminal, and in particular to a method, system, equipment and medium for planning turning of containers before loading onto a ship. Background Art
[0002] In the window period before container loading and after the stowage plan is completed, due to various uncontrollable factors, the storage status of some bays in the terminal yard may not conform to the order of container dispatch. In order to reduce or eliminate the number of container flipping during loading as much as possible, these containers need to be flipped in advance so that the containers loaded first are stacked above the containers loaded later, so as to achieve the purpose of improving the operation efficiency during loading.
[0003] At present, the method of turning over and sorting containers before loading is mainly determined manually by the yard crane driver. The quality of the turning over plan is not high and the efficiency of turning over is low. Therefore, it is necessary to formulate a corresponding turning over strategy. Under the premise of keeping the container position unchanged, a set of turning over operation steps can be calculated to change the storage state from chaos to order in view of the possible misalignment between the storage state of the bay position and the order of loading and dispatching. At the same time, the number of turning over operation steps is as small as possible, the handling cost is as low as possible, and the stacking height does not leave safety hazards. It can be used to guide the terminal to prepare a turning over operation plan before loading and dispatching, so as to meet the need of no temporary turning over of containers when loading and dispatching. Summary of the invention
[0004] In view of the problem that the prior art manually determines the way in which container turning and sorting are performed before loading, resulting in low quality of container turning scheme and low efficiency, the present invention provides a method, system, equipment and medium for planning container turning before loading.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present invention provides a method for planning container turnover before loading a container, comprising:
[0007] Obtain the location information of each container in the bay and mark the dispatch serial number of each container;
[0008] Determine the container turning constraint conditions based on the number of bays and the floor height limit;
[0009] Traverse the reverse order list of containers arranged from large to small by dispatch serial number, and take the corresponding containers as the current container one by one to perform the following processing to convert them into fixed containers:
[0010] If the current container meets the preset fixed container identification rules, the current container is marked as a fixed container and traverses to the next container, unless the current container is specified to be forced to turn over, wherein the fixed container identification rules include: if the current container and the container with the same number are stacked on the bottom layer or on the fixed container, and are not on the temporary position, and the row does not reach the layer height limit, it is identified as a fixed container;
[0011] If the current box does not meet the fixed box identification rules, then find out whether there is a box with the same number that meets the fixed box identification rules. If so, replace the box with the same number that meets the rules with the current box and mark it as a fixed box. If not, try to switch the box with the same number that meets the preset priority processing conditions to the current box.
[0012] Based on the preset row selection strategy, select the target row for the current box;
[0013] If there are boxes on the current box and / or the fixed box of the target row, then based on the preset clearing strategy and subject to the box turning constraint, all boxes on the current box and the fixed box of the target row are turned over to other rows, and other rows are turned over to sequential rows as much as possible, and then the current box is turned over to the target row and marked as a fixed box;
[0014] If there is no pressing box on the current box and the fixed box in the target row, the current box is turned into the target row and marked as a fixed box;
[0015] If all rows except the outermost row are stacked or have no containers, the traversal will not be repeated. Otherwise, the traversal will continue until all containers are marked as fixed containers.
[0016] When necessary, the bay is subjected to peak load shaving and valley filling operation under the condition of satisfying the container turnover constraint, so that the bay meets the preset safety standards and can clear the containers on the temporary position in the bay;
[0017] Based on all the box turning actions in the previous steps, a target box turning operation plan is generated.
[0018] Further, in the step of selecting a target row for the current box, it is not allowed to select a temporary row as the target row, and it is not allowed to select a row with fixed boxes stacked to a layer height limit as the target row;
[0019] The step of selecting a target row for the current box based on a preset row selection strategy includes:
[0020] Try to select a relatively inner row without boxes as the target row. The selected row without boxes should meet the requirement that the current box will not exceed the height limit of the row if it is flipped into the row.
[0021] If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the lowest, closest and relatively inner fixed row as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box;
[0022] If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the fixed row that is lower, closer and relatively inner as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box;
[0023] If the target row is not selected in the above steps, try to select the row with the smallest box dispatching number among the rows with fixed boxes pressing single boxes, and the row that is relatively low, close and relatively inside as the target row, and the current box should not exceed the layer height limit of the row after it is flipped into the row;
[0024] If the target row is not selected in the above steps, the row with the least number of boxes pressed on the fixed boxes, the smallest box dispatching number on the lowest layer, and relatively close to the inside is selected as the target row, and non-sequential stacking rows are given priority.
[0025] Furthermore, the preset row clearing strategy, under the condition of satisfying the case turning constraint, turns out all the pressed cases on the current case and the fixed case of the target row to other rows, and turns other rows into sequential stacking rows as much as possible, including:
[0026] If there are other fixed rows besides the target row, try to flip the top container that is immediately after the current container in the reverse order list into the fixed row;
[0027] If the above steps fail to flip, try to select a top-level box in the current row, target row or non-sequential row and flip it into the sequential row;
[0028] If the above steps fail to flip, try to select a top-level box in the current row or target row and flip it into another suitable row:
[0029] If the above steps fail to turn over, reselect a new target row for the current box and continue to follow the above steps. The original target row needs to be excluded when reselecting. If the above steps can turn over, after turning over, the corresponding box turning action is registered in the box turning operation step;
[0030] If all the rows except the outermost row are stacked in order or have no boxes, the stacking will not continue;
[0031] If the row being flipped out or in becomes a fixed row and is not the target row, reselect the target row for the current box and continue flipping according to the above steps. There is no need to exclude the original target row when reselecting; otherwise, repeat the above steps to continue flipping until there are no boxes pressed on the current box and the fixed box of the target row.
[0032] Furthermore, the attempt to flip the container immediately following the current container and at the top layer in the reverse order list of containers into the fixed row includes:
[0033] Count the number of empty spaces on other fixed rows where fixed boxes can be stacked;
[0034] Starting from the container immediately following the current container, traverse the reverse order list of containers backwards until the container at the top of the non-sequential stack is found, or the number of traversals reaches the number of empty spaces;
[0035] Turn out the traversed container, and choose other fixed rows that are lower, closer, and relatively inner to turn it in.
[0036] Further, the trying to select a top-level press box of a current row, a target row or a non-sequential stacking row to be turned into a sequential stacking row includes:
[0037] Select the box to be turned over. The dispatching serial number of the box to be turned over should be equal to the dispatching serial number of the top box in the row to be turned over. Select the relatively outer row to turn over. The top boxes of the current row and the target row are given priority.
[0038] Alternatively, the dispatching serial number of the box to be turned over should be greater than or equal to the dispatching serial number of the top box on the single box row and the non-sequential stacking row, and greater than or equal to the dispatching serial number of all the boxes on the current box and the target row of fixed boxes. The relatively outer row is selected for turning over, and the top boxes on the current row and the target row are given priority;
[0039] Alternatively, the reverse stacking row after flipping can become a forward stacking row, and the dispatching sequence number of the second-layer box of the forward stacking row should be greater than or equal to the dispatching sequence number of the second-layer box of the original reverse stacking row, and greater than or equal to the dispatching sequence number of the top-layer box of the current row and the target row, and the row relatively close to the outside is selected for flipping;
[0040] Select the top box whose shipping number is closest to the box to be turned over, and turn it into the stack in the lowest, closest and innermost order. After turning it in, it will still be stacked in the order.
[0041] Further, the attempt to select a top-level press box of a current row or a target row and flip it into another suitable row includes:
[0042] Select the box to be turned over. The box to be turned over is the one with the smallest dispatching number among the top boxes in the current row and the target row. Select the relatively outer row to turn over.
[0043] Turn into the temporary row where the temporary position is not occupied or the top box has the same dispatch serial number;
[0044] Alternatively, the reverse stacking row after turning in is still a reverse stacking row, and the largest box number among the boxes on the fixed box should be less than or equal to the largest box number among the boxes on other rows and the number of boxes on other rows should be the least, and the nearest relatively outer row should be turned in;
[0045] Alternatively, if the top row is not a fixed box or a box with the same number, the largest box number among the boxes on the fixed box should be less than or equal to the largest box number of other boxes and the number of boxes should be the least, and the box should be transferred from the nearest relatively outer row;
[0046] Alternatively, when the top row is not a fixed box or a box of the same number, the number of boxes on the fixed box or the box of the same number should be the least, and the nearest relatively outer row should be used for the transfer;
[0047] Alternatively, the top box with the closest dispatch number to the box to be turned over is turned over in the temporary row. After turning over, it is either a single box or stacked upside down as much as possible;
[0048] Alternatively, the maximum number of boxes to be shipped in the upper box of the fixed box should be less than or equal to the maximum number of boxes to be shipped in other rows of boxes and the number of boxes to be shipped should be the least, and the box should be shipped in from the nearest relatively outer row;
[0049] Alternatively, the number of boxes on a fixed box or a box of the same number should be the least, and the nearest relatively outer row should be used for loading;
[0050] Alternatively, the number of boxes pressed onto the fixed box should be the least, and they should be flipped into the nearest relatively outer row.
[0051] Further, the peak shaving and valley filling operation on the bay position includes:
[0052] Try to flip the surface boxes of other rows into the super-low trough to fill the super-low trough into a non-super-low trough;
[0053] If the above steps fail to flip it, try flipping the top box of the super peak into the appropriate safety row:
[0054] If the above steps fail to flip, the super-peak top container with the largest shipping number is used as the current container, the fixed container mark of the current container and subsequent containers with smaller flipping numbers is cancelled, and the reverse list of containers is traversed from the current container, and each container is converted into a fixed container as the current container one by one, wherein the super-peak top container as the current container can only be marked as a fixed container after being specified to be flipped forcibly;
[0055] The above steps are repeatedly performed until the preset safety standards are met and the containers on the temporary positions in the bays can be emptied.
[0056] Further, the attempt to flip the surface boxes of other rows into the ultra-low valley to fill the ultra-low valley into a non-ultra-low valley includes:
[0057] Count the number of filling boxes required to fill each super-low valley into a non-super-low valley;
[0058] For each ultra-low valley, find out the top boxes in other rows with a dispatch sequence number less than or equal to the top box as the boxes to be turned over in this ultra-low valley, and sort them from the smallest row to the largest row to form the list of boxes to be turned over corresponding to this ultra-low valley;
[0059] Select a group of boxes to be turned over from the list of boxes to be turned over in the ultra-low valley to formulate a plan for turning over boxes. The number of boxes in each group is the number of boxes in the valley filling, and the order is consistent with the list of boxes to be turned over. The boxes to be turned over between different plans for turning over boxes will not be repeated.
[0060] In the plan for boxes to be turned over, if the boxes to be turned over are piled at the super-high side of the adjacent row of the current super-low valley, and the super-low valley can still be filled after removing the last box in this group of boxes to be turned over, then the last box is removed;
[0061] If there are boxes to be turned over in the plan that are pressed under other boxes not in the plan, or the plan to be turned over cannot reduce the number of super peaks and super valleys, then the plan to be turned over will be ignored;
[0062] From the various plans for box turnover, a plan for box turnover is selected which has the least number of super-peaks and super-low valleys after valley filling, the least number of boxes to be turned over, the largest number of boxes turned out in reverse stacking, the largest total number of box dispatching serial numbers to be turned over, and is located relatively close to the outside;
[0063] All the combinations of boxes to be turned over in the selected plan are turned over to the corresponding super-low valley. Each time, the top box with the largest box number in the combination of boxes to be turned over is turned over to the super-low valley until all the boxes are turned over;
[0064] Repeat the above steps until all ultra-low valleys that meet the conditions have become non-ultra-low valleys.
[0065] Further, the attempt to flip the super-peak top box into a suitable safety row includes:
[0066] For each super peak, find out the safety row of top boxes whose dispatching sequence number is greater than or equal to the top boxes of the super peak as the target row of the top boxes of the super peak, and form the plan for the boxes to be turned over during the super peak.
[0067] From all the plans for boxes to be turned over, select the one with the least number of super-peaks and super-low valleys after peak shaving, the least number of remaining temporary places, the largest serial number of boxes to be turned over, the closest to the top box in the target row, and the one that is relatively close to the outside.
[0068] Transfer the boxes to be turned over in the selected plan to the corresponding target row.
[0069] Furthermore, before generating a target box turning operation plan based on all the box turning actions, the method further includes optimizing the box turning actions in the box turning operation step according to the following steps, including:
[0070] Starting from the first box-turning action, go through all the box-turning actions;
[0071] If a container is on a temporary landing row between two front and rear container turning actions, and only the container is turning over during the period, try to replace the temporary landing row with a row that has not had any container turning action during the period, has not reached the floor height limit, and is closest to the final landing row;
[0072] If a container is turned in and out of multiple rows, and only the container is turned over on these rows, then these turning actions are merged;
[0073] Abandon the box-turning action that has the same number for both the number in and the number out;
[0074] Continue traversing until all box-turning actions are completed.
[0075] In a second aspect, the present invention provides a container turn-over planning system before loading a container, comprising:
[0076] The data preparation module is used to obtain the location information of each container in the bay, mark the dispatch serial number of each container, and determine the container turning constraint conditions based on the number of rows and floor height limits of the bay;
[0077] The fixed box marking module is used to traverse the reverse order list of containers arranged from large to small according to the dispatch sequence number, and perform the following processing on the corresponding containers one by one as the current container to convert them into fixed boxes:
[0078] If the current container meets the preset fixed container identification rules, the current container is marked as a fixed container and traverses to the next container, unless the current container is specified to be forced to turn over, wherein the fixed container identification rules include: if the current container and the container with the same number are stacked on the bottom layer or on the fixed container, and are not on the temporary position, and the row does not reach the layer height limit, it is identified as a fixed container;
[0079] If the current box does not meet the fixed box identification rules, then find out whether there is a box with the same number that meets the fixed box identification rules. If so, replace the box with the same number that meets the rules with the current box and mark it as a fixed box. If not, try to switch the box with the same number that meets the preset priority processing conditions to the current box.
[0080] Based on the preset row selection strategy, select the target row for the current box;
[0081] If there are boxes on the current box and / or the fixed box of the target row, then based on the preset clearing strategy and subject to the box turning constraint, all boxes on the current box and the fixed box of the target row are turned over to other rows, and other rows are turned over to sequential rows as much as possible, and then the current box is turned over to the target row and marked as a fixed box;
[0082] If there is no pressing box on the current box and the fixed box in the target row, the current box is turned into the target row and marked as a fixed box;
[0083] If all rows except the outermost row are stacked or have no containers, the traversal will not be repeated. Otherwise, the traversal will continue until all containers are marked as fixed containers.
[0084] A peak-shaving and valley-filling module is used to perform peak-shaving and valley-filling operations on the bay when necessary and under the condition that the container turnover constraint is met, so that the bay meets the preset safety standards and can clear the containers on the temporary position in the bay;
[0085] A plan generation module is used to generate a target box turning operation plan based on all box turning actions performed by the fixed box marking module and the peak shaving and valley filling module.
[0086] In a third aspect, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the box turning planning method as described above when executing the computer program.
[0087] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the box turning planning method as described above.
[0088] By adopting the above technical solution, the present invention has the following beneficial effects:
[0089] Under the premise of keeping the container position unchanged, the present invention can change the storage state from chaos to order through a series of box turning operation step planning for the misalignment between the storage state of the bay position and the order of loading and dispatching. At the same time, the number of box turning operation steps is as small as possible, the handling cost is as low as possible, and the stacking height does not leave any safety hazards. The final storage state does not need to be pre-set, and there is no need to specify that a certain container will eventually be turned over to a specific box position. It only needs to meet the ultimate goal of the problem, that is, no more box turning during loading. In addition, based on the characteristics of the ship container position, multiple groups of operable dispatching sequences are allowed during loading. The terminal can use the solution of the present invention to first derive multiple groups of corresponding box turning operation steps for multiple groups of dispatching sequences, and then select a group of box turning operation steps with the minimum number of box turning steps, and then formulate a set of box turning operation plans based on this, and determine the corresponding loading and dispatching plans. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 This is a schematic diagram of the container area in the yard;
[0091] Figure 2A A schematic diagram of performing a box turning action according to the present invention;
[0092] Figure 2B A schematic diagram of performing another box-turning action according to the present invention;
[0093] Figure 2C A schematic diagram of performing another box-turning action according to the present invention;
[0094] Figure 2D A schematic diagram of performing another box-turning action according to the present invention;
[0095] Figure 2E A schematic diagram of performing another box-turning action according to the present invention;
[0096] Figure 2F A schematic diagram of performing another box-turning action according to the present invention;
[0097] Figure 2G A schematic diagram of performing another box-turning action according to the present invention;
[0098] Figure 2H A schematic diagram of performing another box-turning action according to the present invention;
[0099] Fig.2I A schematic diagram of performing another box-turning action according to the present invention;
[0100] Figure 2J A schematic diagram of performing another box-turning action according to the present invention;
[0101] Figure 2K A schematic diagram of performing another box-turning action according to the present invention;
[0102] Figure 2L A schematic diagram of performing another box-turning action according to the present invention;
[0103] Figure 3 This is a flow chart of a method for planning container turnover before container loading according to the present invention;
[0104] Figure 4 It is a structural diagram of the electronic device in the present invention. DETAILED DESCRIPTION
[0105] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0106] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms "a", "the" and "the" used in the present disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0107] Usually, the yard in a container terminal is divided into multiple blocks, such as Figure 1 The figure shows a schematic diagram of a container area, which is divided into bays, rows and tiers. The location information of a slot includes the container area number, bay, row and tier height information. Among them, a bay is only allowed to stack containers of the same size and length, and a slot is only occupied by one container. Stacking upwards is impossible to be suspended in the air. According to the operating characteristics of the stacking machinery (generally called the yard crane), it is impossible to directly flip out the compressed container from the interlayer, but the top container on any row can be grabbed. The number of rows and tier height of a bay are limited, depending on the operating limit of the yard crane.
[0108] For safety reasons, this embodiment sets the following safety standards: the height difference between adjacent rows is not allowed to exceed M layers (M is a preset value, such as M=2), the outermost row (the row adjacent to the lane, that is, the smallest row, generally counting the row number from 1) is not allowed to stack to more than N layers (N is a preset value, such as N=3), and the innermost row (that is, the largest row) is allowed to exceed the layer height limit of P layers (P is a preset value, such as P=1), because there is no operation of climbing over the row. In addition, if there are k layers of container spaces in the stacking bay, at least k-1 empty container spaces are left in the bay for container turning operations; the lane is used as a temporary row for container turning, and the stacking height can exceed the layer height limit by 1 layer. Among them, the layer height limit refers to the maximum number of layers allowed for stacking in the form of multi-row and multi-layer direct stacking, except for the innermost row. For example, for a bay with 6 rows and 5 layers, the layer height limit is 5 layers. The maximum allowed stacking of rows 1 to 5 is 5 layers, and the maximum allowed stacking of row 6 is 5+P layers. If P is preset to 1, the maximum allowed stacking of row 6 is 6 layers.
[0109] The present invention aims to develop a set of corresponding container turning schemes for the misalignment between the storage state of the storage position and the order of loading and dispatching containers, under the premise of keeping the container position unchanged, so as to change the storage state from chaos to order (the containers loaded first are stacked above the containers loaded later) through a series of container turning operation steps. At the same time, the number of container turning operation steps is as small as possible, the handling cost is as low as possible, and the stacking height does not leave any safety hazards. The final storage state does not need to be pre-set, and there is no need to specify that a certain container will eventually be turned over to a specific box position. It only needs to meet the ultimate goal of the problem, that is, no more container turning during loading.
[0110] In addition, based on the characteristics of the ship's container positions, multiple sets of operable container dispatching sequences are allowed during loading. The terminal can use the results of the present invention to first derive multiple sets of corresponding container turning operation steps for these multiple container dispatching sequences, and then select a set of container turning operation steps with the minimum number of container turning steps, and accordingly formulate a set of container turning operation plans to determine the corresponding shipping container dispatching plan.
[0111] Before introducing the container turn-over planning method before container loading of the present invention, the following first introduces the relevant definitions involved in the present invention:
[0112] (1) Rules for determining temporary positions:
[0113] The box spaces on the lanes are temporary spaces;
[0114] When the outermost row of N layers or below (including N layers) are fixed containers, the container spaces above N layers are temporary spaces.
[0115] (2) Rules for determining temporary placement:
[0116] The lanes are temporary rows;
[0117] When the outermost row exceeds N layers and the N layers below are all stacked containers, it is a temporary row.
[0118] (3) Rules for determining no box row:
[0119] Temporary rows do not count as rows without boxes, even if there are no boxes in reality;
[0120] In addition to the above, a boxless row is a boxless row.
[0121] (4) Rules for identifying stacked containers:
[0122] The single box on the row is a stacked box;
[0123] The box whose dispatching serial number is less than or equal to the box on the lower layer is stacked.
[0124] (5) Rules for determining stacking order:
[0125] The lane does not belong to the pile-by row, even if it is actually piled;
[0126] When the outermost row exceeds N layers, it does not belong to the sequential stacking row, even if it is actually sequentially stacked;
[0127] The no-box row is not a stacking row;
[0128] In addition to the above, the entire row is stacked with boxes.
[0129] (6) Rules for determining reverse stacking:
[0130] The lane belongs to reverse stacking, even if it is actually turned over and actually stacked;
[0131] When the outermost row is more than N layers high and there are fixed boxes below N layers, it is considered as reverse stacking, even if it is actually emptied or stacked in the normal direction;
[0132] For single boxes or more, the top-level box number is larger than the second-level box number. If they are the same, continue to compare downwards until the upper-level box number is larger than the lower-level box number, and then temporarily exclude it.
[0133] (7) Rules for determining super peaks:
[0134] When there are boxes in the temporary seats, the row is in super peak period;
[0135] Compare the number of layers of boxes stacked in adjacent rows. The row with a height difference of M layers above any adjacent row is considered to be a super-high peak. The innermost row is only compared with the outer adjacent rows.
[0136] The outermost row is considered super high if it is more than N floors high.
[0137] (8) Rules for determining the ultra-low point:
[0138] The temporary row does not count as an ultra-low valley, even if it is actually ultra-low;
[0139] Comparing the number of layers of boxes stacked in adjacent rows, the row with a height difference of less than two layers from any adjacent row is considered to be an ultra-low valley;
[0140] The outermost rows only compare their inner neighbor rows;
[0141] The innermost row is compared only to its outer neighboring rows.
[0142] (9) Rules for identifying boxes with the same number:
[0143] Boxes with the same shipping serial number as the current box;
[0144] Fixed boxes that have been identified are not considered boxes of the same number.
[0145] (10) Rules for identifying fixed boxes:
[0146] Containers in temporary locations cannot be considered fixed containers;
[0147] The row has reached the floor height limit and cannot be considered a fixed box;
[0148] Only recognized in the current box and boxes with the same number;
[0149] The current box and the box with the same number must either be stacked on the bottom layer or pressed on the fixed box to be recognized.
[0150] (11) Rules for determining fixed rows:
[0151] The boxless row is a fixed row;
[0152] The entire row is a non-temporary row of fixed boxes.
[0153] (12) Rules for identifying single-box rows:
[0154] A temporary row does not count as a single-box row, even if it is actually a single box;
[0155] A row with only one single box and a non-fixed box is a single-box row;
[0156] The reverse stacking with only one pressing box (i.e. a pressed container) on the fixed box is called a single box stacking.
[0157] (13) Rules for identifying safety rows:
[0158] The temporary platoon is not a safety platoon;
[0159] The row that will not form an ultra-high peak after a single box is flipped in is considered a safe row.
[0160] (14) Box turning constraints:
[0161] Turning over fixed boxes is not allowed;
[0162] Flipping to your own row is not allowed;
[0163] It is not allowed to turn over to a row with a box of the same number in the pressure box, unless it is also a box of the same number;
[0164] It is not allowed to flip to the row and position that was flipped out in the previous box flipping action;
[0165] It is not allowed to turn over to a row that has reached the floor height limit, and the innermost row can be one floor higher than the limit;
[0166] It is not allowed to flip into a row that will be stacked in the same row but will exceed the height limit of the row.
[0167] (15) Rules for determining floor height limits:
[0168] Determine the situation where the stacking may become an extreme peak or an extreme valley;
[0169] First, count the number of non-fixed boxes to be processed, i.e., the number of boxes to be processed;
[0170] If the current row is an ultra-high peak, count the number of filling boxes needed to fill the ultra-low valleys on both sides into a normal row;
[0171] If the current row is in an ultra-low valley, count the number of filling boxes needed to fill the ultra-low valley into a normal row;
[0172] Then, if the number of boxes to be processed does not reach the ultra-low valley filling number, it is determined to have exceeded the floor height limit.
[0173] Example 1
[0174] This embodiment provides a method for planning container turnover before loading a container, based on the idea of a greedy algorithm. The greedy algorithm is a common method for finding the optimal solution to a problem. This method mode generally divides the solution process into several steps, and a greedy strategy is applied to each step to select the best / optimal feasible strategy under the current state. Once a decision is made, it will no longer be changed, and the global optimum is achieved through the local optimum of each step. The implementation framework of the greedy algorithm is relatively simple, and the computational efficiency is very high. It goes step by step to the end without any backing off or trial and error. The difficulty in applying the idea of a greedy algorithm lies in how to decompose the steps to obtain an unchangeable local optimal method, and how to find a set of greedy strategies suitable for the current special scenario to maximize the possibility of achieving the global optimal method. This is the core of the present invention.
[0175] In the decomposition steps of this embodiment, the containers on the bay are first sorted from large to small according to the dispatch sequence number (the larger the dispatch sequence number, the later the container is dispatched), forming a container queue, and then the queue is traversed from large to small (or from front to back), and the traversed container is defined as the current container (the row it is in is the current row). According to the storage status of the current container, a series of container turning operations are performed to make it meet the conditions for being marked as a fixed container (that is, it meets the identification rules for fixed containers).
[0176] The steps of the container turning operation in this embodiment can be specifically divided into large steps and small steps. A large step contains a series of small steps of container turning operations for the current container and its storage status, and the goal is to mark the current container as a fixed container. Because only the container with a small shipping serial number can be marked as a fixed container when it is pressed on a large shipping serial number, the fixed container must be marked layer by layer from the bottom layer to the top layer. When the queue traversal is completed, all containers are marked as fixed containers, and the entire bay finally reaches an orderly storage state.
[0177] In this embodiment, the so-called big step refers to the process of marking the current box as a fixed box. The general method is to turn the current box over to a row without boxes or press it onto a fixed box (the row where the current box is located after moving is the target row). If the current box is already a single box on the row or is pressed on a fixed box, and it is not specified to be forced to turn over, there is no need to turn it over, and it is directly marked as a fixed box. If there is a box with the same number pressed on it, the box with the same number will be exchanged for the current box and processed first. Because the current box is traversed from the largest box sending sequence number, all the boxes that have been traversed before have been marked as fixed boxes. Therefore, when it is marked as a fixed box, the row it is in must be a fixed row (that is, the entire row is fixed boxes), and it is basically impossible to turn it over again.
[0178] like Figure 2AAs shown in FIG. 1 , it is a schematic diagram of the intermediate state of the bay position traversed according to this embodiment, and the bay position is a bay position with 6 rows and 5 layers. Among them, the numbers in each bay position represent the shipping serial number of the corresponding container, and the shipping serial number of each container should remain unchanged. Figure 2A In the figure, a large grid represents a container, the small grid filled with small grids is a fixed container, the underlined one is the current container with the shipping number 006 or a container with the same number, the dotted box represents the position of the current container before turning over, and the end of the arrow represents the position of the current container after turning over. After executing a large step, the current container should be marked as a fixed container. When the status of the position is as follows Figure 2B As shown, that is, after the container with the dispatching serial number 002 is flipped from the lane to the top layer of the target row 6, all the containers loaded earlier are stacked on the containers loaded later, and the traversal stops.
[0179] In this embodiment, the so-called small step is the process of turning over all the pressed boxes to expose the current box and the fixed boxes in the target row to become the top boxes (if there is no fixed box in the target row, the whole row will be vacated to become an empty row) in order to meet the operation conditions of the large step (i.e., to achieve the large step), and the process of turning over other non-sequential stacking rows to sequential stacking rows as much as possible may also be interspersed during this period. The box turning operation of the small step can be more than one step, and it can only be completed when the operation conditions of the large step are met.
[0180] like Figure 2C As shown, in order to flip the current box 013 onto the fixed box 014 in the target row (the target row is indicated by a set of parallel downward arrows in the figure), it is necessary to flip the 007 and 003 pressure boxes in the second row and the 008 pressure box in the first row. Figure 2C The steps shown have moved the 007 box to the driveway.
[0181] This embodiment designs two major box turning strategies based on the operation characteristics of large steps and small steps, which are called row selection strategy and row clearing strategy. The row selection strategy is to select the appropriate target row for the current box; the row clearing strategy is to provide a decision basis for which specific box to turn over, and analyze which row of top boxes needs to be turned over at the moment, and which row is appropriate to turn over. Each decision made determines a box turning action in which the top box (i.e., the box to be turned over) of a certain row (i.e., the turn-out row) is turned over to a specified row (i.e., the turn-in row). Figure 2D As shown in FIG. 1 , after turning over boxes 007, 003, and 008, the current box 013 and the target row fixed box 014 are exposed (i.e., located on the top layer). Figure 2E As shown, after the 013 current box is turned over to the 014 fixed box in the target row, the 013 current box turned into the target row can be marked as a fixed box.
[0182] The row selection strategy in this embodiment will only be triggered when the current box cannot be directly marked as a fixed box. At this time, the current box cannot be a single box on the row, nor can it be pressed on a fixed box, or it is specified to be forcibly turned over before it can be marked as a fixed box. It is necessary to find a target row that can mark itself as a fixed box after turning it over. In principle, the row selection strategy should have no pressed boxes in the target row, or even if there are pressed boxes, turn them over as little as possible. After turning them in, they can also reduce the peak and fill the valley. The pressed boxes that have been turned over should also be controlled not to be turned over again. For example, target rows are reserved for boxes of the same number that will become the current boxes. These target rows try to avoid turning over pressed boxes, otherwise they will have to be turned over again; in addition, try to avoid selecting the rows in the same stack as the target rows, because the pressed boxes in the same stack state will most likely be turned over again after being turned over; and so on, all these situations are taken into consideration when compiling the rules for the row selection strategy. Figure 2F As shown, according to the row selection strategy, the 1st row is the most suitable target row for the current box 013, and there is only one 008 pressure box on the fixed box 014 that needs to be turned over.
[0183] The clearing strategy in this embodiment is triggered only when the boxes need to be turned over one by one after the target row is selected by the row selection strategy. The clearing strategy is used every time a box is turned over, including the time when other rows are tried to be turned over into straight-stacked rows. In principle, the clearing strategy is to keep the straight-stacked rows as straight-stacked as much as possible, and the reverse-stacked rows as reverse-stacked as much as possible, and the top-level boxes between the rows turned in and out should have similar box numbers as much as possible. In rule making, it is necessary to avoid turning over more and more reverse-stacked rows during the turning process, and to allow more rows to become straight-stacked rows during the turning process, and to make full use of the temporary landing effect of temporary positions (mainly lanes, and the outermost rows above three layers are also temporary positions). Figure 2G As shown in the figure, according to the clearing strategy, the top box of row 5, 001, is too small and should not be turned over first. Instead, it is more advantageous to turn the top box of row 3, 004, to row 2 first. Figure 2H As shown, according to the clearing strategy, the top-level box 010 cannot be flipped over to the lane or to the 4th and 5th rows, because the maximum serial numbers of the boxes in these rows, 013 and 012, are larger than 011 in the 2nd row.
[0184] In the process of traversing the container queue from front to back and marking each container as a fixed container, if the rows other than the outermost row are either stacked rows or rows without containers, the traversal is terminated. After the traversal is terminated, the peak-shaving and valley-filling processing stage can be entered to meet the requirement that the stacking height does not leave safety hazards.
[0185] Specifically, peak shaving and valley filling is triggered when there are still super peaks and / or super valleys in the bay after the container queue is stopped. The specific method is to fill the valley first (if there is a super valley), then shave the peak (if there is a super peak), and clean up the temporary position, and repeat this process until there are no super peaks and super valleys in the entire bay, and no temporary positions, then the peak shaving and valley filling is terminated.
[0186] The valley filling strategy adopted in this embodiment is to enumerate all the combinations of boxes to be turned over (the top box and the boxes with the same dispatching serial number in the lower layer) that can fill the super low valley into non-super low valley, and select a combination with the least number of super high peaks and super low valleys after valley filling, the least number of boxes to be turned over, the largest number of boxes turned out in the reverse stacking (equivalent to temporary positions), the largest total number of boxes to be turned over, and the combination that is relatively close to the outside, and turn it into the super low valley according to the dispatching serial number from large to small, and it is still in the forward stacking after filling. Fig.2I As shown, for the fifth row of ultra-low valleys, according to the valley filling method, filling with the surface boxes of the adjacent row is the least number of steps, and one up and one down is equivalent to flipping in two boxes. Figure 2J As shown, for the 5th row of ultra-low valleys, according to the valley filling method, filling it with the 3rd row 004 top box is killing two birds with one stone, and the reverse stacking row is turned into a forward stacking row at the same time.
[0187] The peak shaving strategy adopted in this embodiment is to enumerate all the paired combinations of super-peak top boxes (i.e. boxes to be turned over) and safe rows suitable for turning in (rows that will not become super-peak after turning in, i.e. destination rows), and select a combination with the least number of super-peaks and super-low valleys after peak shaving, the least number of remaining temporary positions, the largest number of boxes to be turned over, the closest to the top box of the destination row (if there is no box row, the number of boxes to be turned over is equivalent to the largest), and the combination that is relatively close to the outside is turned over, and the super-peak is gradually cut off, and the destination row is still a straight stacking row. Figure 2K As shown, according to the peak shaving method, turning over the top box of the 4th row of super-peak 007 is a two-pronged approach, and the reverse stacking is turned into a forward stacking. Figure 2L As shown, according to the peak shaving method, the lane is also treated equally as a super peak, and its processing priority is higher than that of the second row of super peaks.
[0188] If the container cannot be turned over (i.e., the corresponding strategy fails to turn over the container), the top container with the largest dispatching sequence number is found as the current container, the fixed container mark of the current container and the subsequent smaller dispatching sequence numbers is cancelled, and the container queue is traversed from the current container, and the process of turning over the containers is returned to the large step of marking fixed containers one by one and the small step of embedding. At this time, the top container with the highest peak as the current container is specified to be forcibly turned over before it can be marked as a fixed container.
[0189] After the peak shaving and valley filling is completed, the above generated set of box turning operation steps need to be further sorted out to optimize the temporary box turning actions, try to shorten the handling distance and reduce the number of box turning times. The specific method is that if a box temporarily lands in a row before finally landing on the target row, you can try to temporarily land it in a row closer to the target row; if a box finally lands on the target row after multiple flips, you can try to merge the intermediate box turning actions to reduce the number of box turning times. The sorting process starts from the first box turning action and ends with the last box turning action.
[0190] After sorting out the steps for container turning operations, the terminal can formulate a container turning operation plan and determine the corresponding shipping and dispatching plan.
[0191] Based on the above ideas, the specific process of the container turnover planning method before container loading provided by this embodiment is shown in FIG. 2, including:
[0192] S1. Prepare data, including:
[0193] S11. Obtain the location information and loading and dispatching sequence of all containers in the bay, and mark the dispatching sequence of each container in ascending order according to the dispatching sequence, with the starting dispatching sequence number marked as 1.
[0194] S12. Based on the number of bays and the floor height limit, determine the aforementioned container turning constraints (see definition clause 14).
[0195] S13. According to the location information and dispatch serial number of each container, mark the forward stacking row, reverse stacking row, super peak row, safe row, super valley row, no container row, and single container row in the location.
[0196] S2, traverse the reverse order list of containers (i.e., container queue) arranged from largest to smallest by dispatch serial number, and transform the traversed containers into fixed containers after performing the following processing one by one as the current container:
[0197] S21. Unless the current container is specified to be forcibly turned over, if the current container can be directly marked as a fixed container (i.e., it complies with the aforementioned fixed container identification rules, see Article 10 of the previous definition), it will be marked as a fixed container, and traverse to the next container as the current container to continue execution.
[0198] S22. If the current box cannot be marked as a fixed box (i.e., it does not meet the aforementioned fixed box identification rules), determine whether there is a box with the same number (the identification of boxes with the same number is defined in Article 10 above) that can be marked as a fixed box. If so, exchange the box with the same number that can be marked as a fixed box with the current box (the original current box becomes a box with the same number) and mark it as a fixed box. Then continue to process the remaining boxes with the same number in this way until there are no boxes with the same number that can be marked as fixed boxes, and execute step S23.
[0199] S23, try to exchange the box with the same number that meets the preset priority processing conditions (such as the least number of boxes, the smallest number of boxes sent from the top of the row, and the box is located on the outside, the priority of the three is: least number of boxes > smallest number of boxes sent from the top of the row > outside) with the current box. If there is no box with the same number that meets the priority processing conditions, no exchange will be made, and the original current box will continue to be the current box.
[0200] S24, based on the preset sorting strategy, select the target row for the current box, and then go to step S25. The sorting strategy includes:
[0201] S241. Set to exclude or not exclude the old target row as needed.
[0202] S242. The target platoon should not be a temporary platoon.
[0203] S243. Fixed boxes on the target row cannot be stacked to the layer height limit.
[0204] S244. When selecting a target row, first, try to select a relatively inner row without boxes as the target row for subsequent turning into the current box, wherein the selected row without boxes should satisfy the requirement that the current box will not exceed the height limit of the row after turning into the row. In this embodiment, selecting relatively inner / outer means that when there are two or more corresponding rows to choose from, first try to select the row that is relatively inner / outer. If the selected row does not meet the corresponding requirement, then select the row that is relatively the second inner / outer, and so on. If there is only one corresponding row to choose from, there is no need to determine whether it is inner / outer, and the row can be directly selected.
[0205] S245. If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the ultra-low valley fixed row that is relatively low, nearby and relatively inner (this row should meet the requirements of both ultra-low valley and fixed row) as the target row, unless there is only one empty space left and there is a row with a single box on top of a fixed box.
[0206] S246. If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the fixed row that is lower, closer, and relatively inner (the priority of the three is lower>closer>relatively inner) as the target row, unless there is only one empty space left and there is a row with a single box on top of the fixed row.
[0207] S247. If the target row is not selected in the above steps, try to select the row with the smallest dispatching serial number of the single box (i.e., single container) in the row with fixed boxes pressing on it, and the row that is relatively low, close, and relatively inner as the target row, and if the current box is flipped into this row, it should not exceed the layer height limit of this row.
[0208] S248. If the target row is not selected in the above steps, select the row with the least number of boxes pressed on the fixed boxes, the smallest serial number of the lowest layer of boxes, and the row relatively close to the inside (the priority of the three is the least number of boxes pressed on the fixed boxes > the smallest serial number of the lowest layer of boxes > relatively close to the inside) as the target row, and non-sequential stacking rows are given priority.
[0209] S25. After the target row is determined, based on the preset row clearing strategy, all the pressed boxes on the current box and the fixed boxes of the target row are turned over to other rows while satisfying the aforementioned box turning constraints, and other rows are turned over to sequential stacking rows as much as possible. The specific process is as follows:
[0210] S251. In addition to the target row, if there are other fixed rows, the following steps S2511-2513 can be used to try to turn the container that is immediately after the current container in the reverse order list and is at the top layer into the fixed row:
[0211] S2511. Count the number of empty spaces on other fixed rows where fixed boxes can be stacked.
[0212] S2512. Starting from the container immediately following the current container, traverse the reverse order list of containers backwards until a container located at the top layer of the non-sequential stack is found, or the number of traversals reaches the number of empty spaces.
[0213] S2513, turn over the traversed containers, and select other fixed rows that are lower, closer, or relatively inner (the priority of the three is lower > closer > relatively inner) to turn over.
[0214] S252. If the above steps fail to turn over (i.e., the turning-in / turn-out step is not performed), try to select a top-level box of the current row, target row, or non-sequential row to turn into the sequential row according to the following steps S2521-S2524:
[0215] S2521. First, select the box to be turned over. The box number should be equal to the box number of the top box in the row to be turned over. Select a relatively outer row to turn over. The top boxes of the current row and the target row are prioritized as the boxes to be turned over.
[0216] S2522, either, the dispatching serial number of the box to be turned over should be greater than or equal to the dispatching serial number of the top box on the single box row and the non-sequential stacking row, and greater than or equal to the dispatching serial number of all the boxes on the current box and the target row of fixed boxes, and the outer row is selected for turning over, and the top boxes on the current row and the target row are prioritized as the boxes to be turned over.
[0217] S2523. Either, the reverse stacking row can become the forward stacking row after turning over, and the dispatching serial number of the second layer box should be greater than or equal to the second layer box of the reverse stacking row and greater than or equal to the top layer box of the current row and the target row, and the outer row is selected for turning out.
[0218] S2524. Select the top box with the closest dispatching number to the box to be turned over, and turn it into the stack in the lowest, nearest and relatively inner position. After turning it in, it will still be in the stack.
[0219] S253. If the above steps fail to turn over, select a top box of a current row or a target row and turn it into another suitable row according to steps S2531-2539:
[0220] S2531, the box to be turned over is the one with the smallest dispatching number among the top boxes in the current row and the target row, and the box is turned over from the relatively outer row.
[0221] S2532. First, turn over to the temporary row where the temporary position is not occupied or the top box has the same dispatch number.
[0222] S2533. Either, the reverse stacking row after turning in is still a reverse stacking row, the largest box number among the boxes on the fixed boxes should be less than or equal to the largest box number among the boxes on other rows and the number of boxes should be the least, and the boxes should be turned in from the nearest relatively outer row.
[0223] S2534. Either, when the top row is not a fixed box or a box with the same number, the largest box number among the boxes on the fixed box should be less than or equal to the largest box number among the boxes on other rows and the number of boxes on other rows should be the least, and then the box should be transferred from the nearest relatively outer row.
[0224] S2535. Or, if the top row is not a fixed box or a box with the same number, the number of boxes on top of the fixed box or the box with the same number should be the least, and you can turn it in from the nearest relatively outer row.
[0225] S2536. Either, turn over the top box whose dispatch number is closest to the box to be turned over and put it in the nearest temporary arrangement. After turning it in, it should be either a single box or stacked upside down as much as possible.
[0226] S2537, or, the largest box number among the boxes on the fixed box should be less than or equal to the largest box number among the boxes in other rows and the number of boxes should be the least, and the box should be transferred from the nearest relatively outer row.
[0227] S2538. Either, the number of boxes to be loaded onto a fixed box or a box of the same number should be the least, and they should be loaded from the nearest relatively outer row.
[0228] S2539. Either, the number of boxes pressed onto the fixed boxes should be the least, and they should be placed in the nearest relatively outer row.
[0229] S254. If the above steps fail to flip, return to step S24 and reselect a new target row for the current box according to the aforementioned row selection strategy, and then continue to execute the above steps S251-S253. Here, the old target row needs to be excluded when reselecting a new target row.
[0230] S255. If the above steps can be turned over, then after turning over, the corresponding box turning action is registered in the box turning operation steps.
[0231] S256. After flipping, update the marks of forward stacking, reverse stacking, super peak, safe row, super valley, no box row, and single box row.
[0232] S257. If after turning over, except for the outermost row, all other rows are stacked in order or have no boxes, then no further turning will be performed, i.e., step S25 is executed, otherwise, step S258 will be executed.
[0233] S258. If the row turned out or turned in becomes a fixed row and is not the target row, return to step S24 to reselect the target row for the current box and then continue to turn over according to step S25 (it is not necessary to exclude the old target row when reselecting the target row here); otherwise, directly repeat step S25 to continue turning over until there are no boxes on the current box and the fixed box of the target row.
[0234] S26. If, except for the outermost row, all other rows in the bay are stacked in sequence or have no boxes, the traversal will not continue.
[0235] S27. If there is no box on the current box or on the fixed box in the target row, the current box is turned into the target row and marked as a fixed box.
[0236] S28. After the current box is turned into the target row, the corresponding box turning action (including the action of turning out the current box and all the pressed boxes on the fixed boxes in the target row, and the action of turning the current box into the target row) is registered in the box turning operation steps.
[0237] S29. After flipping, update the marks of forward stacking, reverse stacking, super peak, safety row, super valley, no box row, and single box row.
[0238] S210. If, except for the outermost row, all other rows in the bay are stacked in sequence or have no containers, the traversal will not continue (i.e., the traversal is terminated); otherwise, the traversal will continue until all containers are marked as fixed containers.
[0239] S3. When necessary (i.e. when there is an ultra-low valley and / or ultra-high peak in the bay), the bay is subjected to peak-shaving and valley-filling operations under the condition of satisfying the container turnover constraint, so that the bay meets the previously set safety standards (such as the outermost row does not exceed 3 layers, and the height difference between rows does not exceed 2 layers), and the containers on the temporary positions in the bay can be cleared. The specific implementation process is as follows:
[0240] S31. When there is an ultra-low valley in the bay, turn the surface boxes of other rows into the ultra-low valley according to steps S311-S3110 to fill the ultra-low valley into a non-ultra-low valley:
[0241] S311. Count the number of valley-filling boxes required to fill each ultra-low valley into a non-ultra-low valley.
[0242] S312. For each ultra-low valley, find out the top boxes in other rows whose dispatching sequence number is less than or equal to the top box (equivalent to the maximum if there is no box row) as the boxes to be turned over in the ultra-low valley, and sort them from the smallest row to the largest row to form a list of boxes to be turned over in the ultra-low valley.
[0243] S313, select a group of boxes to be turned over from the list of boxes to be turned over at the ultra-low valley level to formulate a plan for boxes to be turned over at the ultra-low valley level. The number of boxes in each combination is the number of boxes for filling the valley, and the order is consistent with the list of boxes to be turned over. The boxes to be turned over between plans will not be repeated.
[0244] S314, in the plan for boxes to be turned over, if the boxes to be turned over are piled at the super-high side of the adjacent row of the current super-low valley, then one up and one down is equivalent to turning in two boxes. In this case, if the super-low valley can still be filled after removing the last box of this group of boxes to be turned over, then remove it.
[0245] S315. If there are boxes to be turned over in the plan that are pressed under other boxes outside the plan, or the plan to be turned over cannot reduce the number of super peaks and super lows, then this plan will be ignored.
[0246] S316. From these combinations of plans for boxes to be turned over, select a plan with the least number of super-peaks and super-low valleys after valley filling, the least number of boxes to be turned over, the largest number of boxes turned out from the reverse stacking, the largest total number of box numbers to be turned over, and the plan that is relatively close to the outside (the priority is the least number of super-peaks and super-low valleys > the least number of boxes to be turned over > the largest number of boxes turned out from the reverse stacking > the largest total number of box numbers to be turned over > the plan that is relatively close to the outside).
[0247] S317, all the combinations of boxes to be turned over in the selected plan are turned over to the super-low valley of the plan, and each time the top box with the largest box number in the combination is selected to be turned over to the super-low valley, until all the boxes are turned over.
[0248] S318: After turning over, the current box turning action is registered into the box turning operation steps.
[0249] S319. After turning over, mark the forward stacking row, reverse stacking row, super peak row, safety row, super valley row, no box row, and single box row.
[0250] S3110. Repeat the above steps until all ultra-low valleys that meet the conditions have become non-ultra-low valleys.
[0251] S32. If the above steps fail to flip (there is no ultra-low valley in the bay, only an ultra-high peak), try to flip the ultra-high peak top box into a suitable safety row through the following steps S321-S323:
[0252] S321. For each super peak, find the safety row of top boxes (equivalent to the maximum if there is no row of boxes) with a dispatching number greater than or equal to the top box of the super peak as the target row of the top box of the super peak, and form a plan for the boxes to be turned over for each super peak.
[0253] S322. From these combinations of plans for boxes to be turned over, select a plan with the least number of super-peaks and super-low valleys after peak shaving, the least number of remaining temporary places, the largest serial number of boxes to be turned over, the closest to the top boxes in the target row, and the nearest and relatively outside (the priority is the least number of super-peaks and super-low valleys after peak shaving > the least number of remaining temporary places > the largest serial number of boxes to be turned over > the closest to the top boxes in the target row > the nearest and relatively outside).
[0254] S323, transferring the selected boxes to be transferred into the target row.
[0255] S33. If the above steps fail to turn over (i.e., the super-peak top container fails to turn over into the appropriate safety row), the super-peak top container with the largest dispatching sequence number is used as the current container, the fixed container mark of the current container and subsequent containers with smaller turning over sequence numbers is revoked, and the reverse list of containers is traversed from the current container (return to step S2), and the traversed containers are converted into fixed containers one by one (the super-peak top container as the current container can only be marked as a fixed container after forced turning over).
[0256] S34. If the above steps can be turned over (i.e., the top box of the super peak is turned over to the appropriate safety row), after turning over, the corresponding box turning actions involved in peak shaving and valley filling are registered in the box turning operation steps.
[0257] S35. After turning over, mark the forward stacking row, reverse stacking row, super peak row, safety row, super valley row, no box row, and single box row.
[0258] S36. The above steps are repeated until the preset safety standards are met and the containers on the temporary positions in the bays can be emptied.
[0259] S4. Sort out the steps of box turning operation, optimize the box turning action of temporary landing, try to shorten the handling distance and reduce the number of box turning times:
[0260] S41, starting from the first box turning action, traversing the box turning actions in the box turning operation steps.
[0261] S42. If a temporary drop row is located between two front and rear container turning actions of a container, and only the container is turned over during the two front and rear container turning actions of the container, then try to replace the temporary drop row with a row that has not experienced any container turning action during the period, has not reached the floor height limit, and is closest to the final drop row.
[0262] S43. If a container is turned in and out of multiple rows, and only the container is turned over in these rows, then these turning actions are merged, and the first turning-in row number is replaced with the last turning-in row number, and then the redundant actions except the first one are discarded.
[0263] S44. Abandon the box-turning action with the same turn-in number and turn-out number.
[0264] S45. Continue traversing until all box-turning actions are completed.
[0265] S5. Return the sorted out container turning operation steps (including all optimized container turning actions), based on which a target container turning operation plan can be formulated to guide the container turning operation at the terminal and meet the need for no temporary container turning during shipment.
[0266] As described above, the greedy algorithm (Greedy Alogorithm) adopted by the present invention provides decision-making for the box turning action through an original box turning strategy. Each step of the box turning action is determined, and finally the only determined box turning operation steps are obtained. On the premise of ensuring that the number of box turning steps is as small as possible, it also takes into account the problem of keeping the transportation cost as low as possible (that is, the box turning distance is as short as possible) and leaving no safety hazards in the stacking height (that is, the height difference between adjacent rows does not exceed 2 layers), thus achieving a balance between the three.
[0267] The comprehensiveness of the problem solved by the present invention makes it practically usable in the actual operation of terminal production. Not only that, it also has obvious advantages in computing time and space costs. The present invention does not perform repeated trial and error, does not search, does not build a search tree, does not calculate weights, and does not perform weight sorting. It can quickly obtain a solution through the box-turning strategy. The entire method is linear in time complexity and space complexity, which meets the real-time operating environment of terminal production. The present invention has high computing performance and execution efficiency at the millisecond level. Moreover, when the initial stockpile chaos reaches the limit, the calculation can be completed within hundreds of milliseconds, and the performance is stable. In addition, the present invention also requires very little storage space for calculations, and the hardware investment is negligible, and it can completely borrow existing idle resources.
[0268] Example 2
[0269] This embodiment provides a container turn-over planning system before loading a container, including:
[0270] The data preparation module is used to obtain the location information of each container in the bay, mark the dispatch serial number of each container, and determine the container turning constraint conditions based on the number of rows and floor height limits of the bay;
[0271] The fixed box marking module is used to traverse the reverse order list of containers arranged from large to small according to the dispatch sequence number, and perform the following processing on the corresponding containers one by one as the current container to convert them into fixed boxes:
[0272] If the current container meets the preset fixed container identification rules, the current container is marked as a fixed container and traverses to the next container, unless the current container is specified to be forced to turn over, wherein the fixed container identification rules include: if the current container and the container with the same number are stacked on the bottom layer or on the fixed container, and are not on the temporary position, and the row does not reach the layer height limit, it is identified as a fixed container;
[0273] If the current box does not meet the fixed box identification rules, then find out whether there is a box with the same number that meets the fixed box identification rules. If so, replace the box with the same number that meets the rules with the current box and mark it as a fixed box. If not, try to switch the box with the same number that meets the preset priority processing conditions to the current box.
[0274] Based on the preset row selection strategy, select the target row for the current box;
[0275] If there are boxes on the current box and / or the fixed box of the target row, then based on the preset clearing strategy and subject to the box turning constraint, all boxes on the current box and the fixed box of the target row are turned over to other rows, and other rows are turned over to sequential rows as much as possible, and then the current box is turned over to the target row and marked as a fixed box;
[0276] If there is no pressing box on the current box and the fixed box in the target row, the current box is turned into the target row and marked as a fixed box;
[0277] If all rows except the outermost row are stacked or have no containers, the traversal will not be repeated. Otherwise, the traversal will continue until all containers are marked as fixed containers.
[0278] A peak-shaving and valley-filling module is used to perform peak-shaving and valley-filling operations on the bay when necessary and under the condition that the container turnover constraint is met, so that the bay meets the preset safety standards and can clear the containers on the temporary position in the bay;
[0279] A plan generation module is used to generate a target box turning operation plan based on all box turning actions performed by the fixed box marking module and the peak shaving and valley filling module.
[0280] In an practicable manner, in the step of selecting a target row for the current box, it is not allowed to select a temporary row as the target row, and it is not allowed to select a row where the boxes are stacked to a layer height limit as the target row;
[0281] The step of selecting a target row for the current box based on a preset row selection strategy includes:
[0282] Try to select a relatively inner row without boxes as the target row. The selected row without boxes should meet the requirement that the current box will not exceed the height limit of the row if it is flipped into the row.
[0283] If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the lowest, closest and relatively inner fixed row as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box;
[0284] If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the fixed row that is lower, closer and relatively inner as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box;
[0285] If the target row is not selected in the above steps, try to select the row with the smallest box dispatching number among the rows with fixed boxes pressing single boxes, and the row that is relatively low, close and relatively inside as the target row, and the current box should not exceed the layer height limit of the row after it is flipped into the row;
[0286] If the target row is not selected in the above steps, the row with the least number of boxes pressed on the fixed boxes, the smallest box dispatching sequence number on the lowest layer, and relatively close to the inside is selected as the target row, and non-sequential stacking rows are given priority.
[0287] In an practicable manner, the preset row clearing strategy, under the condition of satisfying the case turning constraint, turns out all the pressed cases on the current case and the fixed cases of the target row to other rows, and turns other rows into sequential stacking rows as much as possible, including:
[0288] If there are other fixed rows besides the target row, try to flip the top container that is immediately after the current container in the reverse order list into the fixed row;
[0289] If the above steps fail to flip, try to select a top-level box in the current row, target row or non-sequential row and flip it into the sequential row;
[0290] If the above steps fail to flip, try to select a top-level box in the current row or target row and flip it into another suitable row:
[0291] If the above steps fail to turn over, reselect a new target row for the current box and continue to follow the above steps. The original target row needs to be excluded when reselecting. If the above steps can turn over, after turning over, the corresponding box turning action is registered in the box turning operation step;
[0292] If all the rows except the outermost row are stacked in order or have no boxes, the stacking will not continue;
[0293] If the row being flipped out or in becomes a fixed row and is not the target row, reselect the target row for the current box and continue flipping according to the above steps. There is no need to exclude the original target row when reselecting; otherwise, repeat the above steps to continue flipping until there are no boxes pressed on the current box and the fixed box of the target row.
[0294] In an practicable manner, the attempt to flip the container immediately following the current container and located at the top layer in the reverse order list of containers into the fixed row includes:
[0295] Count the number of empty spaces on other fixed rows where fixed boxes can be stacked;
[0296] Starting from the container immediately following the current container, traverse the reverse order list of containers backwards until the container at the top of the non-sequential stack is found, or the number of traversals reaches the number of empty spaces;
[0297] Turn out the traversed container, and choose other fixed rows that are lower, closer, and relatively inner to turn it in.
[0298] In an practicable manner, the attempt to select a top-level press box of a current row, a target row, or a non-sequential stacking row to be turned into a sequential stacking row includes:
[0299] Select the box to be turned over. The dispatching serial number of the box to be turned over should be equal to the dispatching serial number of the top box in the row to be turned over. Select the relatively outer row to turn over. The top boxes of the current row and the target row are given priority.
[0300] Alternatively, the dispatching serial number of the box to be turned over should be greater than or equal to the dispatching serial number of the top box on the single box row and the non-sequential stacking row, and greater than or equal to the dispatching serial number of all the boxes on the current box and the target row of fixed boxes. The relatively outer row is selected for turning over, and the top boxes on the current row and the target row are given priority;
[0301] Alternatively, the reverse stacking row after flipping can become a forward stacking row, and the dispatching sequence number of the second-layer box of the forward stacking row should be greater than or equal to the dispatching sequence number of the second-layer box of the original reverse stacking row, and greater than or equal to the dispatching sequence number of the top-layer box of the current row and the target row, and the row relatively close to the outside is selected for flipping;
[0302] Select the top box whose shipping number is closest to the box to be turned over, and turn it into the stack in the lowest, closest and innermost order. After turning it in, it will still be stacked in the order.
[0303] In one practicable manner, the attempt to select a top-level press box of a current row or a target row and flip it into another suitable row includes:
[0304] Select the box to be turned over. The box to be turned over is the one with the smallest dispatching number among the top boxes in the current row and the target row. Select the relatively outer row to turn over.
[0305] Turn into the temporary row where the temporary position is not occupied or the top box has the same dispatch serial number;
[0306] Alternatively, the reverse stacking row after turning in is still a reverse stacking row, and the largest box number among the boxes on the fixed box should be less than or equal to the largest box number among the boxes on other rows and the number of boxes on other rows should be the least, and the nearest relatively outer row should be turned in;
[0307] Alternatively, if the top row is not a fixed box or a box with the same number, the largest box number among the boxes on the fixed box should be less than or equal to the largest box number of other boxes and the number of boxes should be the least, and the box should be transferred from the nearest relatively outer row;
[0308] Alternatively, when the top row is not a fixed box or a box of the same number, the number of boxes on the fixed box or the box of the same number should be the least, and the nearest relatively outer row should be used for the transfer;
[0309] Alternatively, the top box with the closest dispatch number to the box to be turned over is turned over in the temporary row. After turning over, it is either a single box or stacked upside down as much as possible;
[0310] Alternatively, the maximum number of boxes to be shipped in the upper box of the fixed box should be less than or equal to the maximum number of boxes to be shipped in other rows of boxes and the number of boxes to be shipped should be the least, and the box should be shipped in from the nearest relatively outer row;
[0311] Alternatively, the number of boxes on a fixed box or a box of the same number should be the least, and the nearest relatively outer row should be used for loading;
[0312] Alternatively, the number of boxes pressed onto the fixed box should be the least, and they should be flipped into the nearest relatively outer row.
[0313] In an practicable manner, the peak shaving and valley filling operation on the bay position includes:
[0314] Try to flip the surface boxes of other rows into the super-low trough to fill the super-low trough into a non-super-low trough;
[0315] If the above steps fail to flip it, try flipping the top box of the super peak into the appropriate safety row:
[0316] If the above steps fail to flip, the super-peak top container with the largest shipping number is used as the current container, the fixed container mark of the current container and subsequent containers with smaller flipping numbers is cancelled, and the reverse list of containers is traversed from the current container, and each container is converted into a fixed container as the current container one by one, wherein the super-peak top container as the current container can only be marked as a fixed container after being specified to be flipped forcibly;
[0317] The above steps are repeatedly performed until the preset safety standards are met and the containers on the temporary positions in the bays can be emptied.
[0318] In one practicable manner, the attempt to flip the surface boxes of other rows into the ultra-low valley to fill the ultra-low valley into a non-ultra-low valley includes:
[0319] Count the number of filling boxes required to fill each super-low valley into a non-super-low valley;
[0320] For each ultra-low valley, find out the top boxes in other rows with a dispatch sequence number less than or equal to the top box as the boxes to be turned over in this ultra-low valley, and sort them from the smallest row to the largest row to form the list of boxes to be turned over corresponding to this ultra-low valley;
[0321] Select a group of boxes to be turned over from the list of boxes to be turned over in the ultra-low valley to formulate a plan for turning over boxes. The number of boxes in each group is the number of boxes in the valley filling, and the order is consistent with the list of boxes to be turned over. The boxes to be turned over between different plans for turning over boxes will not be repeated.
[0322] In the plan for boxes to be turned over, if the boxes to be turned over are piled at the super-high side of the adjacent row of the current super-low valley, and the super-low valley can still be filled after removing the last box in this group of boxes to be turned over, then the last box is removed;
[0323] If there are boxes to be turned over in the plan that are pressed under other boxes not in the plan, or the plan to be turned over cannot reduce the number of super peaks and super valleys, then the plan to be turned over will be ignored;
[0324] From the various plans for box turnover, a plan for box turnover is selected which has the least number of super-peaks and super-low valleys after valley filling, the least number of boxes to be turned over, the largest number of boxes turned out in reverse stacking, the largest total number of box dispatching serial numbers to be turned over, and is located relatively close to the outside;
[0325] All the combinations of boxes to be turned over in the selected plan are turned over to the corresponding super-low valley. Each time, the top box with the largest box number in the combination of boxes to be turned over is turned over to the super-low valley until all the boxes are turned over;
[0326] Repeat the above steps until all ultra-low valleys that meet the conditions have become non-ultra-low valleys.
[0327] In one practicable manner, the attempt to flip the super-peak top box into a suitable safety row includes:
[0328] For each super peak, find out the safety row of top boxes whose dispatching sequence number is greater than or equal to the top boxes of the super peak as the target row of the top boxes of the super peak, and form the plan for the boxes to be turned over during the super peak.
[0329] From all the plans for boxes to be turned over, select the one with the least number of super-peaks and super-low valleys after peak shaving, the least number of remaining temporary places, the largest serial number of boxes to be turned over, the closest to the top box in the target row, and the one that is relatively close to the outside.
[0330] The boxes to be turned over in the selected plan are turned over to the corresponding target row.
[0331] Furthermore, the system further includes: an optimization module, which is used to optimize the box turning actions in the box turning operation step according to the following steps before generating a target box turning operation plan based on all box turning actions, including:
[0332] Starting from the first box-turning action, go through all the box-turning actions;
[0333] If a container is on a temporary landing row between two front and rear container turning actions, and only the container is turning over during the period, try to replace the temporary landing row with a row that has not had any container turning action during the period, has not reached the floor height limit, and is closest to the final landing row;
[0334] If a container is turned in and out of multiple rows, and only the container is turned over on these rows, then these turning actions are merged;
[0335] Abandon the box-turning action that has the same number for both the number in and the number out;
[0336] Continue traversing until all box-turning actions are completed.
[0337] Under the premise of keeping the container position unchanged, this embodiment can change the storage state from chaos to order through a series of box turning operation steps planning for the misalignment between the storage state of the bay position and the order of loading and dispatching. At the same time, the number of box turning operation steps is as small as possible, the handling cost is as low as possible, and the stacking height does not leave any safety hazards. The final storage state does not need to be pre-set, and there is no need to specify that a certain container will eventually be turned over to a specific box position. It only needs to meet the ultimate goal of the problem, that is, no more box turning during loading. In addition, based on the characteristics of the ship container position, multiple groups of operable dispatching sequences are allowed during loading. The terminal can use the solution of the present invention to first derive multiple groups of corresponding box turning operation steps for multiple groups of dispatching sequences, and then select a group of box turning operation steps with the minimum number of box turning steps, and then formulate a set of box turning operation plans and determine the corresponding loading and dispatching plans.
[0338] Example 3
[0339] This embodiment provides an electronic device, which can be expressed in the form of a computing device (for example, a server device), including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the box turning planning method provided in Embodiment 1 can be implemented when the processor executes the computer program.
[0340] Figure 4 FIG. 4 shows a schematic diagram of the hardware structure of this embodiment. Figure 4 As shown, the electronic device 30 specifically includes:
[0341] At least one processor 31, at least one memory 32, and a bus 33 for connecting different system components (including the processor 31 and the memory 32), wherein:
[0342] The bus 33 includes a data bus, an address bus, and a control bus.
[0343] The memory 32 includes a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .
[0344] The memory 32 also includes a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0345] The processor 31 executes various functional applications and data processing by running the computer program stored in the memory 32, such as the steps of the box turning planning method provided in Embodiment 1 of the present invention.
[0346] The electronic device 30 can further communicate with one or more external devices 34 (e.g., keyboards, pointing devices, etc.). Such communication can be performed through an input / output (I / O) interface 35. In addition, the electronic device 30 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 36. The network adapter 36 communicates with other modules of the electronic device 30 through a bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0347] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0348] Example 4
[0349] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the box turning planning method provided in Embodiment 1 are implemented.
[0350] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0351] In a possible implementation manner, the present invention may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the box turning planning method provided in Example 1.
[0352] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0353] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A method for planning container turnover before loading a container, characterized in that: include: Obtain the location information of each container in the bay and mark the dispatch serial number of each container; Determine the container turning constraint conditions based on the number of bays and the floor height limit; Traverse the reverse order list of containers arranged from large to small by dispatch serial number, and take the corresponding containers as the current container one by one to perform the following processing to convert them into fixed containers: If the current container meets the preset fixed container identification rules, the current container is marked as a fixed container and traverses to the next container, unless the current container is specified to be forced to turn over, wherein the fixed container identification rules include: if the current container and the container with the same number are stacked on the bottom layer or on the fixed container, and are not on the temporary position, and the row does not reach the layer height limit, it is identified as a fixed container; If the current box does not meet the fixed box identification rules, then find out whether there is a box with the same number that meets the fixed box identification rules. If so, replace the box with the same number that meets the rules with the current box and mark it as a fixed box. If not, try to switch the box with the same number that meets the preset priority processing conditions to the current box. Based on the preset row selection strategy, select the target row for the current box; If there are boxes on the current box and / or the fixed box of the target row, then based on the preset clearing strategy and subject to the box turning constraint, all boxes on the current box and the fixed box of the target row are turned over to other rows, and other rows are turned over to sequential rows as much as possible, and then the current box is turned over to the target row and marked as a fixed box; If there is no pressing box on the current box and the fixed box in the target row, the current box is turned into the target row and marked as a fixed box; If all rows except the outermost row are stacked or have no containers, the traversal will not be repeated. Otherwise, the traversal will continue until all containers are marked as fixed containers. When necessary, the bay is subjected to peak load shaving and valley filling operation under the condition of satisfying the container turnover constraint, so that the bay meets the preset safety standards and can clear the containers on the temporary position in the bay; Based on all the box turning actions in the previous steps, a target box turning operation plan is generated; Wherein, in the step of selecting a target row for the current box, it is not allowed to select a temporary row as the target row, and it is not allowed to select a row with fixed boxes stacked to a layer height limit as the target row; The step of selecting a target row for the current box based on a preset row selection strategy includes: Try to select a relatively inner row without boxes as the target row. The selected row without boxes should meet the requirement that the current box will not exceed the height limit of the row if it is flipped into the row. If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the lowest, closest and relatively inner fixed row as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box; If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the fixed row that is lower, closer and relatively inner as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box; If the target row is not selected in the above steps, try to select the row with the smallest box dispatching number among the rows with fixed boxes pressing single boxes, and the row that is relatively low, close and relatively inside as the target row, and the current box should not exceed the layer height limit of the row after it is flipped into the row; If the target row is not selected in the above steps, the row with the least number of boxes pressed on the fixed boxes, the smallest box dispatching number on the lowest layer, and relatively close to the inside is selected as the target row, and non-sequential stacking rows are given priority.
2. The box turning planning method according to claim 1, characterized in that: The preset row clearing strategy, under the condition of satisfying the case turning constraint, turns out all the pressed cases on the current case and the fixed cases of the target row to other rows, and turns other rows into sequential stacking rows as much as possible, including: If there are other fixed rows besides the target row, try to flip the top container that is immediately after the current container in the reverse order list into the fixed row; If the above steps fail to flip, try to select a top-level box in the current row, target row or non-sequential row and flip it into the sequential row; If the above steps fail to flip, try to select a top-level box in the current row or target row and flip it into another suitable row: If the above steps fail to turn over, reselect a new target row for the current box and continue to follow the above steps. The original target row needs to be excluded when reselecting. If the above steps can turn over, after turning over, the corresponding box turning action is registered in the box turning operation step; If all the rows except the outermost row are stacked in order or have no boxes, the stacking will not continue; If the row being flipped out or in becomes a fixed row and is not the target row, reselect the target row for the current box and continue flipping according to the above steps. There is no need to exclude the original target row when reselecting; otherwise, repeat the above steps to continue flipping until there are no boxes pressed on the current box and the fixed box of the target row.
3. The box turning planning method according to claim 2, characterized in that: The attempt to flip the container immediately following the current container and located at the top layer in the reverse order list of containers into the fixed row includes: Count the number of empty spaces on other fixed rows where fixed boxes can be stacked; Starting from the container immediately following the current container, traverse the reverse order list of containers backwards until the container at the top of the non-sequential stack is found, or the number of traversals reaches the number of empty spaces; Turn out the traversed container, and choose other fixed rows that are lower, closer, and relatively inner to turn it in.
4. The box turning planning method according to claim 2, characterized in that: The attempt to select a top-level pressing box of a current row, a target row or a non-sequential stacking row to be turned into a sequential stacking row includes: Select the box to be turned over. The dispatching serial number of the box to be turned over should be equal to the dispatching serial number of the top box in the row to be turned over. Select the relatively outer row to turn over. The top boxes of the current row and the target row are given priority. Alternatively, the dispatching serial number of the box to be turned over should be greater than or equal to the dispatching serial number of the top box on the single box row and the non-sequential stacking row, and greater than or equal to the dispatching serial number of all the boxes on the current box and the target row of fixed boxes. The relatively outer row is selected for turning over, and the top boxes on the current row and the target row are given priority; Alternatively, the reverse stacking row after flipping can become a forward stacking row, and the dispatching sequence number of the second-layer box of the forward stacking row should be greater than or equal to the dispatching sequence number of the second-layer box of the original reverse stacking row, and greater than or equal to the dispatching sequence number of the top-layer box of the current row and the target row, and the row relatively close to the outside is selected for flipping; Select the top box whose shipping number is closest to the box to be turned over, and turn it into the stack in the lowest, closest and innermost order. After turning it in, it will still be stacked in the order.
5. The box turning planning method according to claim 2, characterized in that: The attempt is to select a top-level box of a current row or a target row and flip it into another row as appropriate, including: Select the box to be turned over. The box to be turned over is the one with the smallest dispatching number among the top boxes in the current row and the target row. Select the relatively outer row to turn over. Turn into the temporary row where the temporary position is not occupied or the top box has the same dispatch serial number; Alternatively, the reverse stacking row after turning in is still a reverse stacking row, and the largest box number among the boxes on the fixed box should be less than or equal to the largest box number among the boxes on other rows and the number of boxes on other rows should be the least, and the nearest relatively outer row should be turned in; Alternatively, if the top row is not a fixed box or a box with the same number, the largest box number among the boxes on the fixed box should be less than or equal to the largest box number of other boxes and the number of boxes should be the least, and the box should be transferred from the nearest relatively outer row; Alternatively, when the top row is not a fixed box or a box of the same number, the number of boxes on the fixed box or the box of the same number should be the least, and the nearest relatively outer row should be used for the transfer; Alternatively, the top box with the closest dispatch number to the box to be turned over is turned over in the temporary row. After turning over, it is either a single box or stacked upside down as much as possible; Alternatively, the maximum number of boxes to be shipped in the upper box of the fixed box should be less than or equal to the maximum number of boxes to be shipped in other rows of boxes and the number of boxes to be shipped should be the least, and the box should be shipped in from the nearest relatively outer row; Alternatively, the number of boxes on a fixed box or a box of the same number should be the least, and the nearest relatively outer row should be used for loading; Alternatively, the number of boxes pressed onto the fixed box should be the least, and they should be flipped into the nearest relatively outer row.
6. The box turning planning method according to claim 1, characterized in that: The peak shaving and valley filling operation on the bay position comprises: Try to flip the surface boxes of other rows into the super-low trough to fill the super-low trough into a non-super-low trough; If the above steps fail to flip it, try flipping the top box of the super peak into the appropriate safety row: If the above steps fail to flip, the super-peak top container with the largest shipping number is used as the current container, the fixed container mark of the current container and subsequent containers with smaller flipping numbers is cancelled, and the reverse list of containers is traversed again from the current container, and each container is converted into a fixed container as the current container one by one, wherein the super-peak top container as the current container can only be marked as a fixed container after being specified to be forcibly flipped; The above steps are repeatedly performed until the preset safety standards are met and the containers on the temporary positions in the bays can be emptied.
7. The box turning planning method according to claim 6, characterized in that: The attempt to flip the surface boxes of other rows into the super-low valley to fill the super-low valley into a non-super-low valley includes: Count the number of filling boxes required to fill each super-low valley into a non-super-low valley; For each ultra-low valley, find out the top boxes in other rows with a dispatch sequence number less than or equal to the top box as the boxes to be turned over in this ultra-low valley, and sort them from the smallest row to the largest row to form the list of boxes to be turned over corresponding to this ultra-low valley; Select a group of boxes to be turned over from the list of boxes to be turned over in the ultra-low valley to formulate a plan for turning over boxes. The number of boxes in each group is the number of boxes in the valley filling, and the order is consistent with the list of boxes to be turned over. The boxes to be turned over between different plans for turning over boxes will not be repeated. In the plan of boxes to be turned over, if the boxes to be turned over are piled at the super-high side of the adjacent row of the current super-low valley, and the super-low valley can still be filled after the last box in this group of boxes to be turned over is removed, the last box is removed; If there are boxes to be turned over in the plan that are pressed under other boxes not in the plan, or the plan to be turned over cannot reduce the number of super peaks and super valleys, then the plan to be turned over will be ignored; From the various plans for box turnover, a plan for box turnover is selected which has the least number of super-peaks and super-low valleys after valley filling, the least number of boxes to be turned over, the largest number of boxes turned out in reverse stacking, the largest total number of box dispatching serial numbers to be turned over, and is located relatively close to the outside; All the combinations of boxes to be turned over in the selected plan are turned over to the corresponding super-low valley. Each time, the top box with the largest box number in the combination of boxes to be turned over is turned over to the super-low valley until all the boxes are turned over; Repeat the above steps until all ultra-low valleys that meet the conditions have become non-ultra-low valleys.
8. The box turning planning method according to claim 7, characterized in that: Said attempt to roll the top box of the super peak into a suitable safe row includes: For each super peak, find the safety row of top boxes whose dispatching sequence number is greater than or equal to the top box of the super peak as the target row of the top box of the super peak, and form the plan for each box to be turned over during the super peak; From all the plans to be turned over, select a plan with the least number of super-peaks and super-low valleys after peak shaving, the least number of remaining temporary digits, the largest number of boxes to be turned over, the closest to the top box in the target row, and the closest plan to the outside; The boxes to be turned over in the selected plan are turned over to the corresponding target row.
9. The box turning planning method according to claim 1, characterized in that: Before generating a target box turning operation plan based on all box turning actions, the method further includes optimizing the box turning actions in the box turning operation step according to the following steps, including: Starting from the first box-turning action, go through all the box-turning actions; If a container is on a temporary landing row between two front and rear container turning actions, and only the container is turning over during the period, try to replace the temporary landing row with a row that has not had any container turning action during the period, has not reached the floor height limit, and is closest to the final landing row; If a container is turned in and out of multiple rows, and only the container is turned over on these rows, then these turning actions are merged; Abandon the box-turning action that has the same number for both the number in and the number out; Continue traversing until all box-turning actions are completed.
10. A container turn-over planning system before loading, which is characterized by: The system comprises: The data preparation module is used to obtain the location information of each container in the bay, mark the dispatch serial number of each container, and determine the container turning constraint conditions based on the number of rows and floor height limits of the bay; The fixed box marking module is used to traverse the reverse order list of containers arranged from large to small according to the dispatch sequence number, and perform the following processing on the corresponding containers one by one as the current container to convert them into fixed boxes: If the current container meets the preset fixed container identification rules, the current container is marked as a fixed container and traverses to the next container, unless the current container is specified to be forced to turn over, wherein the fixed container identification rules include: if the current container and the container with the same number are stacked on the bottom layer or on the fixed container, and are not on the temporary position, and the row does not reach the layer height limit, it is identified as a fixed container; If the current box does not meet the fixed box identification rules, then find out whether there is a box with the same number that meets the fixed box identification rules. If so, replace the box with the same number that meets the rules with the current box and mark it as a fixed box. If not, try to switch the box with the same number that meets the preset priority processing conditions to the current box. Based on the preset row selection strategy, select the target row for the current box; If there are boxes on the current box and / or the fixed box of the target row, then based on the preset clearing strategy and subject to the box turning constraint, all boxes on the current box and the fixed box of the target row are turned over to other rows, and other rows are turned over to sequential rows as much as possible, and then the current box is turned over to the target row and marked as a fixed box; If there is no pressing box on the current box and the fixed box in the target row, the current box is turned into the target row and marked as a fixed box; If all rows except the outermost row are stacked or have no containers, the traversal will not be repeated. Otherwise, the traversal will continue until all containers are marked as fixed containers. A peak-shaving and valley-filling module is used to perform peak-shaving and valley-filling operations on the bay when necessary and under the condition that the container turnover constraint is met, so that the bay meets the preset safety standards and can clear the containers on the temporary position in the bay; A plan generation module, used for generating a target box turning operation plan based on all box turning actions performed by the fixed box marking module and the peak shaving and valley filling module; Wherein, in the step of selecting a target row for the current box, it is not allowed to select a temporary row as the target row, and it is not allowed to select a row with fixed boxes stacked to a layer height limit as the target row; The step of selecting a target row for the current box based on a preset row selection strategy includes: Try to select a relatively inner row without boxes as the target row. The selected row without boxes should meet the requirement that the current box will not exceed the height limit of the row if it is flipped into the row. If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the lowest, closest and relatively inner fixed row as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box; If the target row is not selected in the above steps, but the current box is on the top layer, or the remaining spaces in all fixed rows can accommodate the current box and all boxes with the same number, then try to select the fixed row that is lower, closer and relatively inner as the target row, unless there is only one empty space and there is a row with a fixed box on top of a single box; If the target row is not selected in the above steps, try to select the row with the smallest box dispatching number among the rows with fixed boxes pressing single boxes, and the row that is relatively low, close and relatively inside as the target row, and the current box should not exceed the layer height limit of the row after it is flipped into the row; If the target row is not selected in the above steps, the row with the least number of boxes pressed on the fixed boxes, the smallest box dispatching number on the lowest layer, and relatively close to the inside is selected as the target row, and non-sequential stacking rows are given priority.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the box turning planning method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the box turnover planning method according to any one of claims 1 to 9 are implemented.
