Marine pipe distribution method, device and equipment, storage medium and product
Through automated pipe distribution combination processing, the problems of low efficiency and low accuracy of manual distribution in ship construction are solved, and efficient and accurate distribution of marine pipes is achieved, reducing waste.
Patent Information
- Application Number
- CN202510034123.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-05-09
AI Technical Summary
During the ship construction process, manual distribution of marine pipes in the prior art is low efficiency and low accuracy, which can easily lead to waste of pipes.
By obtaining the pipe demand information of the ship to be built, obtaining the corresponding pipe inventory information, and using the target execution program to combine the inventory length information, determining the pipe distribution combination, and realizing the automatic distribution of pipes.
Improve the accuracy and efficiency of pipe distribution and reduce pipe waste.
Smart Images

Figure CN119962889A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment, storage medium and product for distributing marine pipes. Background Art
[0002] In the process of shipbuilding, a large number of marine pipes of various specifications are needed to construct various piping systems of the ship. For example, marine pipes can be fuel pipes, steam pipes, fresh water pipes, and seawater pipes.
[0003] The construction department of the ship will submit information such as the type and length of the marine pipes it needs according to the corresponding requirements. However, in the prior art, the pipe warehouse manager mainly finds the marine pipes corresponding to the demand information from the inventory according to the demand information, and manually judges or calculates which marine pipes of each pipe type to distribute according to the length of the marine pipes of each pipe type in the inventory. The above method not only has low distribution efficiency, but also manual judgment easily leads to deviations between the distributed pipes and the required pipes, resulting in low accuracy of pipe distribution and easy waste of pipes. Summary of the invention
[0004] The present invention provides a method, device, equipment, storage medium and product for distributing marine pipes, which realize automatic distribution of marine pipes and improve the accuracy and efficiency of pipe distribution.
[0005] According to one aspect of the present invention, a method for distributing marine pipes is provided, the method comprising:
[0006] Obtaining pipe material demand information of at least one ship to be built;
[0007] Retrieving pipe inventory information corresponding to the pipe demand information, and combining and processing pipe inventory length information in the pipe inventory information based on the target execution program to obtain at least one pipe allocation combination;
[0008] Based on at least one pipe allocation combination and pipe demand information, a target pipe allocation combination corresponding to each pipe type of each ship to be built is determined, and target inventory pipes corresponding to the target pipe allocation combination are issued.
[0009] According to another aspect of the present invention, there is provided a marine pipe distribution device, the device comprising:
[0010] A demand information acquisition module, used to acquire pipe demand information of at least one ship to be built;
[0011] an allocation combination determination module, for retrieving pipe inventory information corresponding to pipe demand information, and combining pipe inventory length information in the pipe inventory information based on a target execution program to obtain at least one pipe allocation combination;
[0012] The target inventory pipe issuing module is used to determine the target pipe allocation combination corresponding to each pipe type of each ship to be built based on at least one pipe allocation combination and pipe demand information, and issue the target inventory pipes corresponding to the target pipe allocation combination.
[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to at least one processor; wherein,
[0016] The memory stores a computer program executable by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the marine pipe distribution method according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the marine pipe distribution method of any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein the computer program, when executed by a processor, implements the method for distributing marine pipes according to any embodiment of the present invention.
[0019] The technical solution of the embodiment of the present invention obtains the pipe demand information of at least one ship to be built, so as to retrieve the corresponding pipe inventory information through the pipe demand information. The target execution program is used to combine and process the pipe inventory lengths of the same pipe type in the pipe inventory information to obtain at least one pipe allocation combination. According to the at least one pipe allocation combination and the pipe demand information, the target pipe allocation combination allocated to each pipe type of each ship to be built is determined, and the target inventory pipes corresponding to the target pipe allocation combination are issued. The present invention solves the problem of low pipe distribution efficiency and accuracy caused by manual distribution of pipes in the prior art, which easily causes pipe waste, realizes the automatic distribution of ship pipes, and improves the accuracy and efficiency of pipe distribution.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a method for distributing marine pipes provided by an embodiment of the present invention;
[0023] Figure 2 is an example diagram of a process for distributing marine pipes provided by an embodiment of the present invention;
[0024] Figure 3 is a flow chart of a method for distributing marine pipes provided by an embodiment of the present invention;
[0025] Figure 4 is a code example diagram for determining a pipe allocation combination provided by an embodiment of the present invention;
[0026] Figure 5 It is a structural schematic diagram of a marine pipe distribution device provided by an embodiment of the present invention;
[0027] Figure 6 It is a structural schematic diagram of an electronic device for implementing the marine pipe distribution method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 This is a flow chart of a method for distributing marine pipes provided in the first embodiment of the present invention. This embodiment can be applied to the case where the marine pipes are not cut, the most suitable target pipe distribution combination is determined according to the pipe demand information and the pipe inventory information, and the pipes are distributed according to the target pipe distribution combination. The method can be executed by a marine pipe distribution device, which can be implemented in the form of hardware and / or software. The marine pipe distribution device can be configured in an electronic device such as a mobile phone, computer or server with an IO communication port, access to a Web service and a display screen. Figure 1 As shown, the method includes:
[0032] S110: Obtain pipe material demand information of at least one ship to be built.
[0033] Among them, the ship to be built can be understood as the ship that needs to be built and processed at present. In the process of shipbuilding, various specifications of marine pipes are usually required. For example, marine pipes can be fuel pipes, steam pipes, fresh water pipes and seawater pipes. The pipe demand information may include: the ship number of the ship to be built, the pipe demand type of the marine pipe required for the ship to be built, and the pipe demand length information corresponding to each pipe demand type. The pipe demand type can be determined according to the pipe name, material and specification of the marine pipe. For example, the pipe name of the current marine pipe is seamless steel pipe, the material is 20#, and the specification is 114*21, then the current marine pipe can be called type A pipe. This is only an example, and there is no specific restriction on the pipe name, material and specification. The pipe demand length information can be understood as the pipe length required for the marine pipe of the current pipe type. For example, the pipe demand length information of type A marine pipe can be 200 meters.
[0034] Specifically, pipe demand information of at least one ship to be built is obtained to determine inventory pipes that meet the pipe demand information according to the ship number in the pipe demand information, the pipe demand type corresponding to the ship number, and the pipe demand length information corresponding to each pipe demand type.
[0035] In an embodiment of the present invention, a method for obtaining pipe demand information may be: based on the order number of the pending demand list, loading the ship number of at least one ship to be built corresponding to the order number, the pipe demand type corresponding to the ship number, and the pipe demand length information corresponding to each pipe demand type, wherein the pending demand list is determined based on the ship construction node of at least one ship to be built and the ship construction drawings; and using the ship number of at least one ship to be built, the pipe demand type, and the pipe demand length information as the pipe demand information.
[0036] The pending demand list may be a pipe demand list containing pipe demand information. Optionally, the pending demand list may be obtained from the ship production management system based on the pipe management system, or may be uploaded by the corresponding ship construction department according to the ship construction node and ship construction drawings of the ship to be built. The obtained pending demand list may be stored in the pipe management system to implement the distribution and processing of marine pipes based on the pipe management system.
[0037] The ship construction node can be used to characterize the key steps in the construction process of the ship to be built. There can be multiple ship construction nodes in the construction process of the ship to be built. The marine pipes required for each ship construction node are different. The ship construction drawings can be used to determine the ship structure, size, required marine pipes and corresponding ship construction processes of the ship to be built. Optionally, the ship construction department can determine the current corresponding pending demand list based on the ship construction node and ship construction drawings of at least one ship to be built.
[0038] It should be noted that if the obtained list of pending demands does not satisfy the current pipe management system, the obtained list of pending demands can be converted into a format that can be recognized and processed by the pipe management system according to the preset list format corresponding to the pipe management system, so as to determine the inventory pipes that need to be issued based on the list of pending demands.
[0039] In the pipe management system, multiple pending demand lists may be included, and each pending demand list corresponds to an order number. The order number is used to uniquely represent the corresponding pending demand list. By determining the order number of the pending demand list, the pipe demand information in the pending demand list can be determined. That is, the ship number of at least one ship to be built, the pipe demand type, and the pipe demand length information corresponding to each pipe demand type. The ship number can be understood as an identifier used to uniquely characterize the ship to be built. The pipe demand type can be understood as the type of pipe required to build the ship to be built. The pipe demand length information can be understood as the pipe length of the current pipe demand type required to build the ship to be built.
[0040] Specifically, according to the order number of the pending demand list in the pipe management system, the ship number of at least one ship to be built corresponding to the order number, the pipe demand type corresponding to the ship number, and the pipe demand length information corresponding to each pipe demand type are loaded. The ship number of at least one ship to be built, the pipe demand type, and the pipe demand length information are used as the pipe demand information to realize the subsequent distribution processing of the marine pipes based on the pipe demand information.
[0041] For example, see Figure 2 , Figure 2 This is an example diagram of the process of distributing marine pipes. The ship construction department can submit a list of pipe requirements in the production management system according to the ship construction drawings of the ship to be built provided by the ship design department and the ship process design data corresponding to each pallet group in each ship construction node, according to the ship number, pallet number, pipe name, pipe material, pipe specification and pipe required length information of a single ship to be built. Among them, the pipe name, pipe material and pipe specification correspond to the pipe requirement types mentioned above. It should be noted that the construction process of the ship to be built includes multiple ship construction nodes, and each ship construction node corresponds to multiple pallet group information. Each pallet group information contains the current pallet number and the ship requirement information corresponding to the pallet number.
[0042] The pipe management system can obtain the pipe requirement list from the production management system, that is, Figure 2The pipe requirement list (SPDM) in SPDM (Ship Production Design and Management) can be understood as ship production design and management. Or receive the pipe requirement list in Excel format imported by the ship construction department. It should be noted that when obtaining or receiving the pipe requirement list, the list format of the pipe requirement list is detected. If the list format of the pipe requirement list is different from the preset list format corresponding to the pipe management system, the list format of the pipe requirement list is converted according to the preset list format to store the converted pipe requirement list in the pipe management system. The pipe requirement list for which pipes have not yet been distributed in the pipe management system is treated as a pending requirement list, and the pipe requirement information corresponding to the order number of the pending requirement list is loaded to realize the distribution and processing of marine pipes according to the pipe requirement information.
[0043] S120: Retrieve pipe inventory information corresponding to the pipe demand information, and perform combination processing on pipe inventory length information in the pipe inventory information based on the target execution program to obtain at least one pipe allocation combination.
[0044] Among them, the pipe inventory information can be retrieved according to the pipe demand information, and the ship number is consistent with the ship number in the pipe demand information, and the pipe inventory type is consistent with the pipe demand type. The pipe inventory information may include the ship number of at least one ship to be built, the pipe inventory type, and the pipe inventory length information corresponding to each pipe inventory type. The pipe inventory type can be understood as the pipe type consistent with the pipe demand type in the pipe warehouse. The pipe inventory length information can be understood as the pipe length of at least one stock pipe corresponding to each pipe inventory type in the pipe warehouse. For example, the pipe demand information can be: the ship number is H2391, the pipe demand type is A type, and the pipe demand length information is 20 meters. Then the pipe inventory information corresponding to the pipe demand information retrieved can be: the ship number is H2391, the pipe inventory type is A type, and the pipe inventory length information includes one A type inventory pipe of 6 meters, 8 meters and 12 meters.
[0045] The target execution program may be a code for combining and processing the pipe inventory length information. The pipe allocation combination may be a pipe allocation combination determined according to the pipe inventory length information. For example, if the pipe inventory length information is one type A inventory pipe of 6 meters, 8 meters, and 12 meters, the obtained pipe allocation combinations may be "6", "8", "12", "6, 8", "6, 12", "8, 12", and "6, 8, 12".
[0046] Specifically, according to the ship number of each ship to be built in the pipe demand information and the pipe demand type corresponding to each ship number, the pipe inventory information that is consistent with the ship number of the ship to be built and the pipe inventory type that is consistent with the pipe demand type is retrieved. According to the target execution program, the pipe inventory length information in the pipe inventory information is combined and processed to obtain at least one pipe allocation combination, so as to issue the inventory pipe that is most suitable for the pipe demand information according to the at least one pipe allocation combination.
[0047] S130: Based on at least one pipe allocation combination and pipe demand information, determine a target pipe allocation combination corresponding to each pipe type of each ship to be built, and issue a target inventory pipe corresponding to the target pipe allocation combination.
[0048] The target pipe allocation combination may be a pipe allocation combination determined in at least one pipe allocation combination that can meet the pipe demand information. The target inventory pipe may be an inventory pipe corresponding to the pipe inventory length information in the target pipe allocation combination.
[0049] Specifically, according to at least one pipe allocation combination, the total length information of the stock pipes that can be issued in each pipe allocation combination is determined. According to the total length information of the stock pipes corresponding to each pipe allocation combination, the pipe allocation combination that can meet the pipe demand length information in the pipe demand information is determined, and the pipe allocation combination is used as the target pipe allocation combination. The stock pipes corresponding to the target pipe allocation combination are issued as the target stock pipes. It should be noted that if there are multiple pipe allocation combinations that meet the pipe demand length information, then according to the number of stock pipes corresponding to the pipe allocation combination and the total length information, the pipe allocation combination corresponding to the least number of stock pipes, or the pipe allocation combination with the smallest length difference between the total length information and the pipe demand length information can be used as the target pipe allocation combination. If there is no pipe allocation combination that meets the pipe demand length information, then according to the total length information of the stock pipes corresponding to each pipe allocation combination, the pipe allocation combination with the largest total length information can be used as the target pipe allocation combination.
[0050] In an embodiment of the present invention, the target pipe allocation combination may be determined in the following manner: for each pipe inventory type of each ship to be built, based on at least one pipe inventory length information in the pipe allocation combination corresponding to the pipe inventory type, the pipe allocation length information corresponding to each pipe allocation combination is determined; when at least one pipe allocation length information satisfies the corresponding pipe requirement length information in the pipe requirement information, the pipe allocation combination with the smallest length difference between the pipe allocation length information and the pipe requirement length information is used as the target pipe allocation combination; when each pipe allocation length information does not meet the pipe requirement length information, based on at least one pipe allocation length information, the maximum pipe allocation length information is determined, and the pipe allocation combination corresponding to the maximum pipe allocation length information is used as the target pipe allocation combination.
[0051] The pipe allocation length information may be determined based on at least one pipe inventory length information in the pipe allocation combination, and the total inventory pipe length information corresponding to the pipe allocation combination. For example, if the pipe allocation combination is "6, 8", the pipe allocation length information is 14 meters. The maximum pipe allocation length information may be the maximum pipe allocation length information among all pipe allocation combinations.
[0052] Specifically, for each pipe inventory type of each ship to be built, the pipe allocation length information corresponding to each pipe allocation combination is determined according to at least one pipe inventory length information in the pipe allocation combination corresponding to the pipe inventory type. If there is a pipe allocation length information that meets the pipe required length information in the pipe demand information, the pipe allocation combination corresponding to the pipe allocation length information is used as the target pipe allocation combination. If there are multiple pipe allocation length information that meet the pipe required length information in the pipe demand information, the length difference between each pipe allocation length information and the pipe required length information is calculated, and the pipe allocation combination corresponding to the minimum length difference is used as the target pipe allocation combination. If no pipe allocation length information meets the pipe length information in the pipe demand information, the pipe allocation combination corresponding to the maximum pipe allocation length information is used as the target pipe allocation combination.
[0053] For example, the ship number is H2391, the pipe inventory type is type A, and the pipe inventory length information corresponding to type A is: one pipe each of 6 meters, 8 meters, and 12 meters. Then, the pipe allocation combinations corresponding to type A are "6", "8", "12", "6, 8", "6, 12", "8, 12", and "6, 8, 12". The pipe allocation length information corresponding to the pipe allocation combination "6" is 6 meters, the pipe allocation length information corresponding to the pipe allocation combination "8" is 8 meters, the pipe allocation length information corresponding to the pipe allocation combination "12" is 12 meters, and the pipe allocation length information corresponding to the pipe allocation combination "6, 8" is 14 meters. The calculation method of the pipe allocation length information of other pipe allocation combinations is similar and will not be repeated here.
[0054] If the required pipe length information in the pipe demand information is 14 meters, the target pipe allocation combination is determined to be "6, 8" according to the pipe allocation length information corresponding to the above pipe allocation combinations, and the 6-meter and 8-meter inventory pipes of type A are issued. If the required pipe length information in the pipe demand information is 30 meters, the target pipe allocation combination is determined to be "6, 8, 12" according to the pipe allocation length information corresponding to the above pipe allocation combinations, and the 6-meter, 8-meter and 12-meter inventory pipes of type A are issued.
[0055] For example, in conjunction with the above examples, see Figure 2 . Load the pending demand list, and determine the inventory pipes in the pipe cut-to-length inventory that are of the same pipe type as the pending demand list based on the pending demand list. Among them, the pipe cut-to-length inventory can include the pipe inventory information obtained after importing the manufacturer's pipe delivery list and the stored pipe inventory information. It should be noted that the manufacturer's pipe delivery list contains pipe information of various materials, specifications, and lengths. When importing the pipe delivery list into the pipe management system, you can first check whether the pipe delivery list in Excel format is consistent with the import list template. If they are consistent, import the pipe delivery list into the pipe management system. If they are inconsistent, you can adjust and edit the pipe delivery list according to the import list template to import the adjusted pipe delivery list into the pipe management system to obtain the pipe cut-to-length inventory. Among them, the import list template specifies the standard format and data specifications of the pipe delivery list imported into the pipe management system.
[0056] Based on the pipe cut-to-length inventory, determine the pipe inventory information that is consistent with the vessel number and pipe demand type in the pipe cut-to-length inventory. Based on the pipe inventory information, determine the stock pipes of the same pipe type. Based on the stock pipes of the same pipe type, determine the pipe allocation combination corresponding to each pipe inventory type, and the pipe allocation length information corresponding to each pipe allocation combination.
[0057] For the current pipe type, determine whether the pipe allocation length information is equal to the pipe requirement length information in the pipe requirement information. If it is equal, the pipe allocation combination corresponding to the current pipe allocation length information is used as the target pipe allocation combination. If not, determine whether the pipe allocation length information is greater than the pipe requirement length information, and the length difference is the smallest. If so, use the pipe allocation length information as the target pipe allocation combination, and determine the pipe distribution list based on the target pipe allocation combination, so as to distribute the target inventory pipes corresponding to the target pipe allocation combination according to the pipe distribution list. If not, continue to compare the pipe allocation length information corresponding to the next pipe type with the pipe requirement length information. When the pipe allocation length information of all pipe types in the current pipe requirement list is traversed, the next pipe requirement list is traversed.
[0058] Optionally, if there are at least two pipe allocation combinations corresponding to the same pipe allocation length information, and the pipe allocation length information satisfies the pipe requirement length information, the target pipe allocation combination is determined based on the number of inventory pipes to be allocated in each pipe allocation combination.
[0059] The inventory pipes to be allocated may be inventory pipes corresponding to the inventory length information of the pipes in the pipe allocation combination.
[0060] Specifically, if there are at least two pipe allocation combinations corresponding to the same pipe allocation length information, and the pipe allocation length information satisfies the pipe requirement length information, then the pipe allocation combination with the smallest number of inventory pipes to be allocated can be used as the target pipe allocation combination based on the number of inventory pipes to be allocated in each pipe allocation combination.
[0061] For example, if the pipe allocation combination includes "6, 8" and "14", and the required pipe length information is 14 meters, since the number of inventory pipes to be allocated corresponding to the pipe allocation combination "14" is 1, the pipe allocation combination "14" can be used as the target pipe allocation combination, and 14 meters of inventory pipes to be allocated can be issued according to the target pipe allocation combination.
[0062] The technical solution of this embodiment obtains the pipe demand information of at least one ship to be built, so as to retrieve the corresponding pipe inventory information through the pipe demand information. The target execution program is used to combine the pipe inventory lengths of the same pipe type in the pipe inventory information to obtain at least one pipe allocation combination. According to at least one pipe allocation combination and the pipe demand information, the target pipe allocation combination allocated to each pipe type of each ship to be built is determined, and the target inventory pipes corresponding to the target pipe allocation combination are issued. The present invention solves the problem of low pipe distribution efficiency and accuracy caused by manual distribution of pipes in the prior art, which easily causes pipe waste, realizes the automatic distribution of ship pipes, and improves the accuracy and efficiency of pipe distribution.
[0063] Embodiment 2
[0064] Figure 3 This is a flow chart of a method for distributing marine pipes provided by Embodiment 2 of the present invention. This embodiment is a preferred embodiment of the above embodiment. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method includes:
[0065] S210: Obtain pipe demand information of at least one ship to be built.
[0066] S220: Based on the ship number of at least one ship to be built and the pipe demand type in the pipe demand information, obtain pipe inventory information that is the same as the ship number and has a pipe inventory type that is consistent with the pipe demand type.
[0067] The pipe inventory information includes at least one ship number of a ship to be built, pipe inventory type, and pipe inventory length information.
[0068] Specifically, according to the ship number of each ship to be built and the pipe demand type in the pipe demand information, the pipe inventory information having the same ship number as the ship to be built and the pipe inventory type consistent with the pipe demand type is determined, so as to perform pipe distribution processing according to the pipe inventory length information in the pipe inventory information.
[0069] S230: Based on the pipe inventory length information corresponding to each pipe inventory type in the pipe inventory information, a first array is established, wherein the total number of elements in the first array is used to represent the number of inventory pipes to be allocated in each pipe inventory type.
[0070] The first array may be a one-dimensional array determined according to the pipe inventory length information. For example, if the pipe inventory type is type A, and the pipe inventory length information is one pipe of 6 meters, 8 meters, and 12 meters, then the first array corresponding to type A is [6, 8, 12]. The inventory pipes to be allocated can be understood as the number of inventory pipes corresponding to the pipe inventory type. For example, the number of the above-mentioned type A inventory pipes to be allocated is 3.
[0071] Specifically, for the current pipe demand type in the pipe demand information, determine the pipe inventory type corresponding to the current pipe demand type from the pipe inventory information, determine the pipe inventory length information of the pipe inventory type, and establish a first array based on the pipe inventory length information of the pipe inventory type.
[0072] For example, according to the current pipe demand type A in the pipe demand information, the inventory length information of type A is determined from the pipe inventory information as 6 meters, 8 meters and 12 meters. The inventory length information is stored in a one-dimensional array to obtain a first array M=[6, 8, 12], and the dimension of the first array M is ANum=3.
[0073] S240, establishing a second array with the same dimension as the first array, assigning each element in the second array to a first preset value, and establishing a pointer for traversing the second array.
[0074] The second array may be a one-dimensional array with the same dimension as the first array. The values of the elements in the second array are used to characterize the positions of the elements in the first array. For example, the first array M = [6, 8, 12], and the second array A = [0, 1, 2], then A[0] represents the position of the first element in the first array, M[A[0]] = 6, A[1] represents the position of the second element in the first array, M[A[1]] = 8, A[2] represents the position of the second element in the first array, M[A[2]] = 12. The first preset value may be a pre-set value. Optionally, the first preset value may be -1.
[0075] Specifically, a second array having the same dimension as the first array is established, each element in the second array is assigned a first preset value, and a pointer for traversing the second array is established.
[0076] Exemplarily, in combination with the above example, the first preset value is -1 and the second array is A. A second array with the same dimension as the first array is established, and each element in the second array is assigned the first preset value to obtain a second array A = [-1, -1, -1]. A pointer P for traversing the second array is established, and P is assigned a value of 0 (P: = 0).
[0077] S250, processing the second array through the pointer and the number of allocable pipes, and modifying the element at the corresponding position of the second array pointed to by the pointer from the first preset value to the second preset value.
[0078] The number of pipes that can be allocated can be determined according to the number of pipes in the inventory to be allocated in the current pipe inventory type. For example, if the number of pipes in the inventory to be allocated is 3, the number of pipes that can be allocated can be 1, 2, or 3. The second preset value can be a pre-set corresponding value. The second preset value is used to characterize the position of the element in the first array. If the first array is M=[6, 8, 12], the second preset value can be 0, 1, or 2.
[0079] Specifically, the second array is traversed by the pointer, and according to the number of pipes that can be allocated, the value of the element at the corresponding position of the second array pointed by the pointer is modified from the first preset value to the second preset value. It should be noted that the number of modifications corresponding to the second preset value is equal to the number of pipes that can be allocated.
[0080] Exemplarily, in combination with the above example, determine whether the value of pointer P is greater than or equal to 0. If the value of pointer P is equal to 0, A[P]=A[0] is the first preset value -1, then A[P] is assigned the second preset value 0. Then A=[0, -1, -1].
[0081] S260: Determine the to-be-used elements at the positions corresponding to the second preset value in the first array, and when the number of the to-be-used elements is consistent with the number of distributable pipes, determine the target character string based on the to-be-used elements.
[0082] The element to be used may be understood as an element at a position in the first array corresponding to the second preset value of the second array. The target character string may be a character string composed of the elements to be used.
[0083] Specifically, according to the second preset value in the second array, the to-be-used element at the position corresponding to the second preset value in the first array is determined. When the number of the to-be-used elements is consistent with the number of distributable pipes, the target character string is obtained according to the to-be-used elements.
[0084] For example, in combination with the above example, the second preset value is 0, the second array A = [0, -1, -1], the first array M = [6, 8, 12], then the element to be used is M[A[0]] = 6. If the current number of pipes that can be allocated is 1, then the target string S = "6".
[0085] S270, adjusting the number of distributable pipes, and repeating the step of determining the target character strings, and obtaining a pipe distribution combination corresponding to each target character string when the number of the target character strings is consistent with a preset number.
[0086] The preset quantity may be determined based on the number of inventory pipes to be allocated of the current pipe type. The preset quantity is used to characterize the number of pipe allocation combinations corresponding to the current pipe type. For example, if the number of inventory pipes to be allocated is 3, the preset quantity is 7.
[0087] Specifically, the number of distributable pipes is adjusted, and the above step of determining the target character string is repeated until the number of the target character strings is consistent with the preset number, and the pipe distribution combination corresponding to each target character string is obtained.
[0088] Exemplarily, in combination with the above example, when the number of distributable pipes is 1 and the second preset values are 0, 1 and 2 respectively, after obtaining the target strings "6", "8" and "12" respectively, the number of distributable pipes is adjusted to 2, so as to obtain the target strings "6, 8", "6, 12" and "8, 12" based on the second preset values at the corresponding positions in the second array. Correspondingly, the number of distributable pipes is adjusted to 3, so as to obtain the target string "6, 8, 12" based on the second preset values at the corresponding positions in the second array. Based on this, according to all the target strings, the pipe allocation combination corresponding to each target string is determined.
[0089] Exemplarily, in combination with the above example, according to the current pipe demand type in the pipe demand information, the inventory length information corresponding to the current pipe demand type is stored in the first array M, and the dimension ANum of the first array M is 3. The pipe allocation combination corresponding to the current pipe demand type is obtained through the following first to eighth steps.
[0090] Step 1: Create a second array A with the same dimensions as the first array M. Step 2: Repeat steps 3 to 8 below ANum times (For X:=0To ANum-1 Do). Step 3: Assign each element in the second array A to -1 (ForI:=0To ANum-1do A[P]:=-1). Step 4: Assign the integer variable P to 0 (P:=0). Step 5: Determine whether the value of P is greater than or equal to 0. If P is greater than or equal to 0, execute step 6. Step 6: If the value of the Pth element in the second array A is -1, there are two cases to deal with: 1. If the value of P is equal to 0, assign the Pth element of the second array A to 0; 2. If P is not equal to 0, add one to the value of the P-1th element of the second array A and assign it to the Pth element (A[p]:=A[p-1]+1). Step 7: Determine the value of the Pth element of the second array A: If the value of the Pth element is greater than or equal to ANum, assign the value of the Pth element of the second array A to -1, and P is reduced by one, and execute step 5; if the value of the Pth element is less than ANum, execute step 8. Step 8: Add one to P. If the value of P is greater than the current value of X, the current value of X can be understood as the number of pipes that can be allocated minus one, then pass Figure 4 The statement shown above obtains a pipe allocation combination. It should be noted that Figure 4 The S in represents the target string mentioned above.
[0091] Repeat the above steps 2 to 8 until the value of X is equal to ANum, then exit the loop and obtain all pipe allocation combinations corresponding to the current pipe type.
[0092] S280. Based on at least one pipe material allocation combination and pipe material demand information, determine the target pipe material allocation combination corresponding to each pipe material type of each ship to be built, and issue the target inventory pipe materials corresponding to the target pipe material allocation combination.
[0093] Optionally, for each pipe material inventory type of each ship to be built, based on at least one pipe material inventory length information in the pipe material allocation combination corresponding to the pipe material inventory type, determine the pipe material allocation length information corresponding to each pipe material allocation combination.
[0094] When all the pipe material allocation length information is less than the corresponding pipe material demand length information in the pipe material demand information, based on at least one pipe material allocation length information, determine the maximum pipe material allocation length information, and use the pipe material allocation combination corresponding to the maximum pipe material allocation length information as the target pipe material allocation combination.
[0095] When at least one pipe material allocation length information meets the corresponding pipe material demand length information in the pipe material demand information, use the pipe material allocation combination with the smallest length difference between the pipe material allocation length information and the pipe material demand length information as the target pipe material allocation combination. The selection process of the above target pipe material allocation combination can be as follows:
[0096] The first step: Assign the pipe material demand length information to variable F1. The second step: Assign the pipe material allocation length information of the first pipe material allocation combination among all pipe material allocation combinations to variable F2. The third step: Assign the length difference between variable F2 and variable F1 to variable F3, and variable F3 determines the measurement standard of the target pipe material allocation combination. The fourth step: If the number of pipe material allocation combinations is 1, use this pipe material allocation combination as the target pipe material allocation combination and execute the tenth step, otherwise obtain the second pipe material allocation combination. The fifth step: Assign the pipe material allocation length information of the current pipe material allocation combination to variable F2. The sixth step: If F2 is greater than or equal to F1, handle it in two cases: If F3 is greater than 0, determine the value of F3 (F3 := F2 - F1) and record the current pipe material allocation combination; if the difference between F2 and F1 is less than F3 corresponding to the previous pipe material allocation combination ((F2 - F1) < F3), update the value of F3 (F3 := F2 - F1) and record the current pipe material allocation combination. The seventh step: Take the next pipe material allocation combination and execute the fifth step until all pipe material allocation combinations are traversed once. The eighth step: Select the target pipe material allocation combination by judging the value of F3: If F3 is greater than or equal to 0, select the current pipe material allocation combination recorded in the sixth step, otherwise use the pipe material allocation combination corresponding to the maximum pipe material allocation length information as the target pipe material allocation combination.
[0097] For the pipe material demand length information of the next pipe material type, repeat the above fifth step to the eighth step to achieve the cut-to-length issuance of inventory pipe materials without cutting the inventory pipe materials.
[0098] In an embodiment of the present invention, the target inventory pipes may be issued in a manner as follows: based on the target pipe allocation combination, the pipe demand type corresponding to the target pipe allocation combination, and the ship number of the ship to be built corresponding to the pipe demand type, a pipe issuance list is generated, and the target inventory pipes corresponding to the pipe issuance list are issued.
[0099] The target inventory pipes may be inventory pipes corresponding to the target pipe allocation combination.
[0100] Specifically, a pipe distribution list is generated according to the target pipe allocation combination, the pipe demand type corresponding to the target pipe allocation combination, and the ship number of the ship to be built corresponding to the pipe demand type, so as to perform target inventory pipe distribution processing according to the target inventory pipes corresponding to the target pipe allocation combination in the pipe distribution list.
[0101] The technical solution of this embodiment is to obtain the pipe demand information of at least one ship to be built, and to obtain the pipe inventory information with the same ship number and the same pipe inventory type as the pipe demand type through the ship number and pipe demand type of at least one ship to be built in the pipe demand information. A first array is established based on the pipe inventory length information corresponding to each pipe inventory type in the pipe inventory information, and the total number of elements in the first array is used to characterize the number of inventory pipes to be allocated in each pipe inventory type. A second array with the same dimension as the first array is established, and each element in the second array is assigned a first preset value, and a pointer for traversing the second array is established. The second array is processed through the pointer and the number of allocable pipes, and the element at the corresponding position of the second array pointed to by the pointer is modified from the first preset value to the second preset value. The to-be-used element at the position corresponding to the second preset value in the first array is determined, and when the number of elements of the to-be-used element is consistent with the number of allocable pipes, the target string is determined based on the to-be-used element. The number of distributable pipes is adjusted, and the step of determining the target character string is repeated, and when the number of the target character string is consistent with the preset number, the pipe allocation combination corresponding to each target character string is obtained. According to at least one pipe allocation combination and pipe demand information, the target pipe allocation combination allocated to each pipe type of each ship to be built is determined, and the target inventory pipes corresponding to the target pipe allocation combination are issued. The present invention solves the problem of low pipe distribution efficiency and accuracy caused by manual pipe distribution in the prior art, which easily causes pipe waste, realizes the automatic distribution of ship pipes, and improves the accuracy and efficiency of pipe distribution.
[0102] Embodiment 3
[0103] Figure 5 Schematic diagram of the structure of a marine pipe distribution device provided by the third embodiment of the present invention. Figure 5As shown, the device includes: a demand information acquisition module 310, an allocation combination determination module 320 and a target inventory pipe delivery module 330.
[0104] The demand information acquisition module 310 is used to acquire the pipe demand information of at least one ship to be built; the allocation combination determination module 320 is used to retrieve the pipe inventory information corresponding to the pipe demand information, and combine the pipe inventory length information in the pipe inventory information based on the target execution program to obtain at least one pipe allocation combination; the target inventory pipe issuing module 330 is used to determine the target pipe allocation combination corresponding to each pipe type of each ship to be built based on at least one pipe allocation combination and the pipe demand information, and issue the target inventory pipe corresponding to the target pipe allocation combination.
[0105] The technical solution of this embodiment obtains the pipe demand information of at least one ship to be built, so as to retrieve the corresponding pipe inventory information through the pipe demand information. The target execution program is used to combine the pipe inventory lengths of the same pipe type in the pipe inventory information to obtain at least one pipe allocation combination. According to at least one pipe allocation combination and the pipe demand information, the target pipe allocation combination allocated to each pipe type of each ship to be built is determined, and the target inventory pipes corresponding to the target pipe allocation combination are issued. The present invention solves the problem of low pipe distribution efficiency and accuracy caused by manual distribution of pipes in the prior art, which easily causes pipe waste, realizes the automatic distribution of ship pipes, and improves the accuracy and efficiency of pipe distribution.
[0106] On the basis of the above embodiment, optionally, a demand information acquisition module is used to load, based on the order number of the pending demand list, the ship number of at least one ship to be built corresponding to the order number, the pipe demand type corresponding to the ship number, and the pipe demand length information corresponding to each pipe demand type, wherein the pending demand list is determined based on the ship construction node and ship construction drawings of at least one ship to be built; the ship number, pipe demand type and pipe demand length information of at least one ship to be built are used as pipe demand information.
[0107] Optionally, the pipe inventory information includes at least one ship number of a ship to be built, a pipe inventory type, and pipe inventory length information, and the allocation combination determination module is used to obtain pipe inventory information that is the same as the ship number and the pipe inventory type is consistent with the pipe demand type based on the ship number of at least one ship to be built and the pipe demand type in the pipe demand information; based on the pipe inventory length information corresponding to each pipe inventory type in the pipe inventory information, establish a first array, and the total number of elements in the first array is used to represent the number of inventory pipes to be allocated in each pipe inventory type; establish a second array with the same dimension as the first array, and assign each element in the second array to A first preset value is determined, and a pointer is established for traversing the second array; the second array is processed through the pointer and the number of allocable pipes, and the element at the corresponding position of the second array pointed to by the pointer is modified from the first preset value to the second preset value; the to-be-used element at the position corresponding to the second preset value in the first array is determined, and when the number of elements of the to-be-used element is consistent with the number of allocable pipes, the target character string is determined based on the to-be-used element; the number of allocable pipes is adjusted, and the step of determining the target character string is repeated, and when the number of target character strings is consistent with the preset number, the pipe allocation combination corresponding to each target character string is obtained.
[0108] Optionally, the target inventory pipe issuing module includes: a target pipe allocation combination determining unit, which is used to determine, for each pipe inventory type of each ship to be built, the pipe allocation length information corresponding to each pipe allocation combination based on at least one pipe inventory length information in the pipe allocation combination corresponding to the pipe inventory type; when at least one pipe allocation length information meets the corresponding pipe requirement length information in the pipe requirement information, the pipe allocation combination with the smallest length difference between the pipe allocation length information and the pipe requirement length information is used as the target pipe allocation combination; when each pipe allocation length information does not meet the pipe requirement length information, the maximum pipe allocation length information is determined based on at least one pipe allocation length information, and the pipe allocation combination corresponding to the maximum pipe allocation length information is used as the target pipe allocation combination.
[0109] Optionally, the target pipe allocation combination determination unit is further used to determine the target pipe allocation combination based on the number of inventory pipes to be allocated in each pipe allocation combination if there are at least two pipe allocation combinations whose corresponding pipe allocation length information is consistent and the pipe allocation length information meets the pipe requirement length information.
[0110] Optionally, the target inventory pipe distribution module includes an inventory pipe distribution unit, which is used to generate a pipe distribution list based on the target pipe allocation combination, the pipe demand type corresponding to the target pipe allocation combination, and the ship number of the ship to be built corresponding to the pipe demand type, and distribute the target inventory pipes corresponding to the pipe distribution list.
[0111] The marine pipe distribution device provided in the embodiment of the present invention can execute the marine pipe distribution method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0112] Embodiment 4
[0113] Figure 6 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0114] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0115] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0116] The processor 11 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a marine pipe distribution method.
[0117] In some embodiments, the marine pipe distribution method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the marine pipe distribution method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the marine pipe distribution method in any other appropriate manner (e.g., by means of firmware).
[0118] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0119] The computer program for implementing the marine pipe distribution method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or completely on a remote machine or server.
[0120] Embodiment 5
[0121] Embodiment 5 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a method for distributing marine pipes, the method comprising:
[0122] Obtain pipe demand information of at least one ship to be built; retrieve pipe inventory information corresponding to the pipe demand information, and combine and process pipe inventory length information in the pipe inventory information based on a target execution program to obtain at least one pipe allocation combination; determine a target pipe allocation combination corresponding to each pipe type of each ship to be built based on the at least one pipe allocation combination and the pipe demand information, and issue a target inventory pipe corresponding to the target pipe allocation combination.
[0123] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0124] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0125] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0126] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0127] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0128] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for distributing marine pipes, characterized in that: include: Obtaining pipe material demand information of at least one ship to be built; Retrieving pipe inventory information corresponding to the pipe demand information, and combining and processing pipe inventory length information in the pipe inventory information based on a target execution program to obtain at least one pipe allocation combination; Based on the at least one pipe allocation combination and the pipe demand information, a target pipe allocation combination corresponding to each pipe type of each ship to be built is determined, and target inventory pipes corresponding to the target pipe allocation combination are issued.
2. The method according to claim 1, characterized in that The obtaining of pipe material demand information of at least one ship to be built includes: Based on the order number of the waiting demand list, loading the ship number of at least one ship to be built corresponding to the order number, the pipe requirement type corresponding to the ship number, and the pipe requirement length information corresponding to each pipe requirement type, wherein the waiting demand list is determined based on the ship construction node and the ship construction drawing of the at least one ship to be built; The ship number of the at least one ship to be built, the required pipe type and the required pipe length information are used as pipe requirement information.
3. The method according to claim 1, characterized in that The pipe inventory information includes at least one ship number of a ship to be built, a pipe inventory type, and pipe inventory length information. The retrieving the pipe inventory information corresponding to the pipe demand information and combining the pipe inventory length information in the pipe inventory information based on the target execution program to obtain at least one pipe allocation combination includes: Based on the ship number of at least one ship to be built and the pipe demand type in the pipe demand information, obtaining pipe inventory information having the same ship number and the same pipe inventory type as the pipe demand type; Based on the pipe inventory length information corresponding to each pipe inventory type in the pipe inventory information, a first array is established, wherein the total number of elements in the first array is used to represent the number of inventory pipes to be allocated in each pipe inventory type; Establishing a second array having the same dimension as the first array, assigning each element in the second array a first preset value, and establishing a pointer for traversing the second array; The second array is processed by the pointer and the number of pipes that can be allocated, and the element at the corresponding position of the second array pointed by the pointer is modified from the first preset value to the second preset value; Determine the to-be-used elements at the positions corresponding to the second preset value in the first array, and when the number of the to-be-used elements is consistent with the number of dispensable pipes, determine the target character string based on the to-be-used elements; The number of distributable pipes is adjusted, and the step of determining the target character string is repeated, and when the number of the target character string is consistent with the preset number, a pipe distribution combination corresponding to each target character string is obtained.
4. The method according to claim 1, characterized in that: The step of determining a target pipe allocation combination corresponding to each pipe type of each ship to be built based on the at least one pipe allocation combination and the pipe demand information comprises: For each pipe inventory type of each of the ships to be built, based on at least one pipe inventory length information in the pipe allocation combination corresponding to the pipe inventory type, determine the pipe allocation length information corresponding to each of the pipe allocation combinations; When at least one of the pipe allocation length information satisfies the corresponding pipe requirement length information in the pipe requirement information, taking the pipe allocation combination with the smallest length difference between the pipe allocation length information and the pipe requirement length information as the target pipe allocation combination; When each of the pipe allocation length information does not meet the pipe required length information, the maximum pipe allocation length information is determined based on at least one of the pipe allocation length information, and the pipe allocation combination corresponding to the maximum pipe allocation length information is used as the target pipe allocation combination.
5. The method according to claim 4, characterized in that The method further comprises: If there are at least two of the pipe allocation combinations whose corresponding pipe allocation length information is consistent and the pipe allocation length information satisfies the pipe requirement length information, a target pipe allocation combination is determined based on the quantity of inventory pipes to be allocated in each of the pipe allocation combinations.
6. The method according to claim 1, characterized in that The sending of the target inventory pipes corresponding to the target pipe allocation combination includes: Based on the target pipe allocation combination, the pipe demand type corresponding to the target pipe allocation combination and the ship number of the ship to be built corresponding to the pipe demand type, a pipe distribution list is generated, and the target inventory pipes corresponding to the pipe distribution list are distributed.
7. A marine pipe distribution device, characterized in that: include: A demand information acquisition module, used to acquire pipe demand information of at least one ship to be built; an allocation combination determination module, configured to retrieve pipe inventory information corresponding to the pipe demand information, and perform combination processing on pipe inventory length information in the pipe inventory information based on a target execution program to obtain at least one pipe allocation combination; The target inventory pipe issuing module is used to determine the target pipe allocation combination corresponding to each pipe type of each ship to be built based on the at least one pipe allocation combination and the pipe demand information, and issue the target inventory pipes corresponding to the target pipe allocation combination.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the marine pipe distribution method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the marine pipe distribution method according to any one of claims 1 to 6 when executed.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the marine pipe distribution method according to any one of claims 1 to 6.