Contract settlement full excess material transfer control method and computer storage medium
Through the control method of converting excess material to the contract with full contract, the data from the contract and the static table of small amounts is used to determine the contract conditions, and the conversion of excess material to the binary graph maximum power matching algorithm is solved, and the steel enterprises can complete the contract settlement, The inefficiency problem during the process of full-load and excessive material conversion has improved the speed of contract delivery and reduced material waste.
Patent Information
- Application Number
- CN202310763609.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-26
- Publication Date
- 2024-12-27
AI Technical Summary
Steel enterprises have problems such as inefficiency, large labor load and error-prone in the process of contract closing, contract full-time and excessive material conversion. The existing technology is difficult to effectively solve the full process cross-process conversion matching of multiple processes and multiple types of materials. question.
Provide a control method for converting excess materials to be converted into full contracts by obtaining data from contracts and small amount static tables, and determine whether the contract meets the closing or full conditions, and converting the transfer of the transferable excess materials to be used. Matching to other contracts, the iterative algorithm of the bipartite graph maximum weight matching is used to convert it.
Accelerate the speed of contract delivery, reduce material waste, reduce corporate inventory, shorten contract delivery time, and improve work efficiency.
Smart Images

Figure CN119204471A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of metallurgical automation technology, and in particular to a contract closing and excess material conversion control method for steel enterprises and a computer storage medium. Background Art
[0002] There are often tens of thousands of contracts in operation in steel enterprises, and tens of thousands of online materials involved. At the same time, the data of contracts and materials are scattered and stored in different data tables in the database. For business such as contract closing, contract filling, and excess material conversion, the traditional method that relies on planners' manual operations has many problems such as low efficiency, heavy labor load, and easy errors. It is urgent to propose a method and system that can automatically process to assist manual decision-making.
[0003] Some domestic enterprises and research institutions have conducted relevant research on the issues of contract closing and material diversion. Chinese patent CN202111456988.9 discloses a work order closing method, device, equipment and readable storage medium, which is mainly aimed at the automatic processing of orders on e-commerce platforms, which is essentially different from the contract closing scenario of steel enterprises, and also lacks discussion on contract fullness and excess material diversion. Chinese patent CN201210101494.3 discloses a slab and contract diversion matching method for improving the utilization rate of slabs in steel enterprises, which is mainly aimed at the diversion matching of slabs produced by the steelmaking process, but the excess materials referred to in the present invention are multi-process and multi-type materials, including not only slabs, but also hot-rolled coils (output from hot rolling process), cold-rolled coils (output from cold rolling process), hot-dip galvanized coils (output from hot-dip galvanizing process), and continuous unwinding coils (output from continuous unwinding process). Excess material diversion involves full-process and cross-process diversion matching, not just the diversion matching of a single process such as slabs, and the technical methods involved are essentially different. Summary of the invention
[0004] The purpose of the present invention is to solve the problems of low efficiency, heavy workload and easy errors in contract closing, contract filling, excess material diversion and other businesses. The present invention provides a contract closing, contract filling, excess material diversion control method and computer storage medium, which can speed up contract delivery, reduce material waste, reduce enterprise inventory and shorten contract delivery period.
[0005] To solve the above technical problems, an embodiment of the present invention discloses a control method for the conversion of excess materials when a contract is closed and filled, comprising: obtaining data from a static table of contracts and small shortages, wherein the contract data includes the order weight of the contract, the order weight range, the lower limit of the delivery tolerance, and the shortage of each process of the contract; determining the final small shortage corresponding to the current contract data; judging whether the contract meets the closing conditions; if the contract meets the closing conditions, judging whether the contract has excess materials that can be converted; if the contract does not meet the closing conditions, judging whether the contract meets the filling conditions; if the contract meets the filling conditions, judging whether the contract has excess materials that can be converted; converting the convertible excess materials and matching them to other contracts; and ending the contract if the contract does not meet the filling conditions.
[0006] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a control method for diverting excess materials when a contract is closed, wherein the static table of small shortages includes at least the lower limit of the order weight, the upper limit of the order weight, the lower limit of the order weight, the upper limit of the order weight, the maximum allowable shortage and the shortage mode of the contract.
[0007] According to another specific embodiment of the present invention, an embodiment of the present invention discloses a control method for the diversion of excess materials at contract closing, wherein determining the final small shortage corresponding to the current contract data includes: determining the calculated small shortage corresponding to the current contract data; determining the order weight negative tolerance corresponding to the current contract data; comparing the calculated small shortage with the order weight negative tolerance; if the calculated small shortage is greater than the order weight negative tolerance, determining the order weight negative tolerance value as the final small shortage; if the calculated small shortage is less than or equal to the order weight negative tolerance, determining the calculated small shortage as the final small shortage.
[0008] According to another specific embodiment of the present invention, an embodiment of the present invention discloses a method for controlling the diversion of excess materials at the end of a contract, wherein the determination of the calculated small shortage corresponding to the current contract data comprises: searching for corresponding records in the small shortage static table according to the contract data; determining that the shortage mode corresponding to the contract is the first mode; the first calculated small shortage is N1, N1=W×N m / 100; determine that the under-volume mode corresponding to the contract is the second mode; the second calculated under-volume is N2, N2 = N m ; Where W represents the order weight of the current contract, N m Indicates the maximum allowable shortfall; selects the smallest record between the value of the first calculated shortfall and the value of the second calculated shortfall as the calculated shortfall.
[0009] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a control method for diversion of excess materials at contract closing, wherein determining the negative tolerance of the order weight corresponding to the current contract data comprises: obtaining the lower limit of the delivery tolerance of the contract; the negative tolerance of the order weight is N3, N3=W×H / 100, wherein W represents the order weight of the current contract, and H represents the lower limit of the delivery tolerance of the current contract.
[0010] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a method for controlling the diversion of excess materials at the time of contract closing, wherein the judgment on whether a contract meets the closing conditions includes: obtaining the shortfall in the permitted process of the contract; comparing the final small shortfall with the shortfall in the permitted process of the contract; if the final small shortfall is greater than or equal to the shortfall in the permitted process of the contract, the contract meets the closing conditions; if the final small shortfall is less than the shortfall in the permitted process of the contract, the contract does not meet the closing conditions.
[0011] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a control method for diverting excess materials when closing a contract and filling it up, wherein if the contract does not meet the closing conditions, judging whether the contract meets the filling conditions includes: obtaining the shortage of each process of the contract; determining the first quantity of the adjacent process of the contract; the first quantity is N4, N4=QP, wherein Q represents the shortage of the current process, and P represents the inventory quantity of the current process; and determining the filling process.
[0012] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a control method for diversion of excess materials for filling up at contract closing, wherein determining the filling process comprises: determining the current process; comparing the shortage of the previous process with the final small shortage; comparing the shortage of the current process with the final small shortage; comparing the first quantity with the final small shortage; if the shortage of the previous process is less than or equal to the final small shortage, and the shortage of the current process is greater than the final small shortage, and the first quantity is less than or equal to the final small shortage, then determining that the current process is the filling process; otherwise, the current process does not meet the filling condition; repeating the process of determining the filling process until the current process is determined to be the first process, and ending if the first process does not meet the filling condition.
[0013] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a method for controlling the diversion of excess materials at the end of a contract, wherein determining that the current process is a full process also includes: setting the shortage of the process before the full process to 0.
[0014] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a method for controlling the diversion of excess materials when a contract is closed, wherein the judgment as to whether the contract has excess materials that can be diverted comprises: obtaining excess materials; determining material diversion rules, wherein the material diversion rules are used to verify whether the excess materials can be diverted; and judging whether the excess materials can be diverted.
[0015] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a control method for the conversion of excess materials when a contract is closed and filled, wherein the acquisition of excess materials includes: determining that the contract meets the closing conditions; acquiring the inventory quantities of all processes of the contract, and adding the work-in-progress materials of all processes of the contract to the excess material set; determining that the contract meets the filling conditions; acquiring the inventory quantities of the preceding processes of the filling process of the contract, and adding the work-in-progress materials of the preceding processes to the excess material set; acquiring the sorting of the inventory quantities of the work-in-progress materials of the filling process; and judging whether the work-in-progress materials are added to the excess material set.
[0016] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a control method for the use of excess materials at the end of a contract, and judging whether the work-in-process material is added to the excess material set includes: determining the second quantity of the filling process; the second quantity is N5, N5=X-(YI), wherein X represents the shortage of the filling process, Y represents the inventory of the filling process, and I represents the current weight of the work-in-process material; comparing the second quantity with the final small shortage; if the second quantity is less than or equal to the final small shortage, adding the current work-in-process material to the excess material set; determining to update the current inventory of the filling process to Y i , Y i =YI; repeat the process of determining whether the work-in-process material should be added to the excess material set until the second amount is greater than the final small shortage amount, and then the current work-in-process material will not be added to the excess material set.
[0017] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a method for controlling the diversion of excess materials at the end of a contract, wherein the material diversion rules include at least one of the following: materials in the production plan cannot be converted, materials in the transfer warehouse cannot be converted, materials on emergency contracts cannot be converted, and materials in transit cannot be converted.
[0018] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a method for controlling the diversion of excess materials at the closing of a contract, and obtaining the sorting of the inventory quantities of the work-in-progress materials in the filling process includes: sorting the inventory quantities of the work-in-progress materials in an ascending order.
[0019] According to another specific embodiment of the present invention, the embodiment of the present invention discloses a method for controlling the diversion of excess materials when a contract is closed, wherein the diversion of transferable excess materials and matching them to other contracts include: adopting diversion rule configuration and bipartite graph maximum weight matching iterative algorithm to implement the diversion.
[0020] According to another specific embodiment of the present invention, an embodiment of the present invention discloses a method for controlling the diversion of excess materials at the time of contract closing, wherein searching for corresponding records in the static table of small shortages includes: determining optional rules for small shortages, and the optional rules for small shortages are used to verify whether the corresponding records can be selected; wherein the optional rules for small shortages are that the contract order weight range has an intersection with the upper and lower limits of the order weight in the static table of small shortages, and the contract order weight range has an intersection with the upper and lower limits of the order weight in the static table of small shortages.
[0021] An embodiment of the present invention further discloses a computer storage medium, including a memory and a processor, wherein the memory is suitable for storing computer instructions, and the processor is suitable for executing any of the above-mentioned methods for controlling the diversion of excess materials after contract closure when running the computer instructions.
[0022] As described above, the present invention provides a method for controlling the use of excess materials when a contract is closed and filled, including obtaining contract data; determining the final small shortage corresponding to the current contract data; judging whether the contract meets the closing conditions; if the contract meets the closing conditions, judging whether the contract has excess materials that can be transferred; if the contract does not meet the closing conditions, judging whether the contract meets the filling conditions; if the contract meets the filling conditions, judging whether the contract has excess materials that can be transferred; implementing the transfer of excess materials and matching them with other contracts; if the contract does not meet the filling conditions, ending the contract.
[0023] By adopting the above technical scheme, the present invention speeds up the contract delivery by timely identifying the contracts that meet the closing conditions; at the same time, it timely identifies the contracts that meet the process filling conditions to avoid the waste caused by excess materials in the previous process; finally, it identifies the excess and excess materials on the closed and filled contracts and transfers them to serve as other contracts, which is beneficial to reducing the company's inventory and shortening the contract delivery time, and is also of great significance to improving work efficiency.
[0024] In order to make the above contents of the present invention more clearly understood, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 The process of the method for controlling the use of excess materials after contract closing is shown in the embodiment of the present invention. Figure 1 .
[0026] Figure 2The process of the method for controlling the use of excess materials after contract closing is shown in the embodiment of the present invention. Figure 2 .
[0027] Figure 3 The process of the method for controlling the use of excess materials after contract closing is shown in the embodiment of the present invention. Figure 3 .
[0028] Figure 4 The process of the method for controlling the use of excess materials after contract closing is shown in the embodiment of the present invention. Figure 4 .
[0029] Figure 5 The process of the method for controlling the use of excess materials after contract closing is shown in the embodiment of the present invention. Figure 5 .
[0030] Figure 6 The process of the method for controlling the use of excess materials after contract closing is shown in the embodiment of the present invention. Figure 6 .
[0031] Figure 7 A block diagram of an electronic device provided by an embodiment of the present invention is shown.
[0032] Figure 8 A block diagram of a system on chip (SoC) provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0033] The following specific embodiments illustrate the implementation of the present invention, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Although the description of the present invention will be introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to this implementation. On the contrary, the purpose of introducing the invention in conjunction with the implementation is to cover other options or modifications that may extend based on the claims of the present invention. In order to provide a deep understanding of the present invention, the following description will include many specific details. The present invention can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present invention, some specific details will be omitted in the description. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0034] It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0035] In the description of this embodiment, it should be noted that the terms "upper", "lower", "inner", "bottom", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the inventive product is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0036] The terms “first”, “second”, etc. are only used for distinguishing descriptions and should not be understood as indicating or implying relative importance.
[0037] In the description of this embodiment, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this embodiment can be understood according to specific circumstances.
[0038] To make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0039] At present, steel enterprises mainly organize production by contract, that is, users put forward order requirements, and then steel enterprises integrate the order requirements of various users, merge similar items, and convert them into production contracts. Contract production requires multiple processes such as ironmaking, steelmaking, hot rolling, cold rolling, hot-dip galvanizing, continuous annealing, and finishing to finally produce products that meet user requirements. Its typical characteristics are long production cycles and multiple processes. At the same time, each process has multiple production lines to choose from, thus forming multiple processes (or process routes). A contract can have only one process or multiple processes at the same time. Different processes can meet the contract requirements. Usually one is the main process and the rest are sub-processes. In the contract production process, there are two key nodes, contract closing and contract fullness.
[0040] Contract closure means that if the quantity shortfall in the quasi-shipment process meets the contract's small quantity delivery conditions, the contract can be closed, that is, the contract can be shipped to the user without the need for additional material production in the previous process. This not only helps to speed up the contract delivery, but also avoids unnecessary waste caused by continued production of work-in-progress. At the same time, excess materials in the contract (called excess materials) can also be transferred to other contracts to shorten the delivery period of other contracts. Of course, if the excess materials cannot be transferred, they can also be de-contracted and converted into surplus materials.
[0041] Contract production needs to go through multiple processes. Unlike contract closing, contract filling is aimed at a specific process. If a process meets the filling conditions, the process can be marked as full, that is, the shortage of the process before the process is cleared, and the previous process is not allowed to continue to feed materials for production. At the same time, the previous process is also prohibited from performing operations such as material filling, thereby avoiding the waste caused by excess material feeding in the previous process. In addition, similar to contract closing, the excess materials before the filling process can also be transferred to other contracts, or become surplus materials after the contract is cancelled.
[0042] refer to Figure 1 The present invention provides a method for controlling the use of excess materials after a contract is closed. Figure 1 The following is a flow chart of a method for controlling the use of excess materials after contract closing in an embodiment of the present application. Figure 1 , the specific implementation examples of the contract closing, full placement and excess material diversion control of this application are explained.
[0043] like Figure 1 As shown, the contract closing and excess material diversion control method provided in the embodiment of the present application includes the following steps:
[0044] S1: Get the contract data.
[0045] Here, the contract may include the steel demand for multiple processes. For example, Contract A includes the demand for four processes: steelmaking, hot rolling, cold rolling and continuous annealing, and each process has a corresponding shortage of steel.
[0046] In some embodiments of the present application, the acquired contract data may include but is not limited to the contract's order weight, order weight range, delivery tolerance lower limit, and static tables of shortage and small shortage of each process of the contract. Exemplarily, the fields of the small shortage static table include but are not limited to: order weight lower limit, order weight upper limit, order weight lower limit, order weight upper limit, maximum shortage allowed, and shortage mode.
[0047] S2: Determine the final small deficit corresponding to the current contract data.
[0048] Here, the final small shortage is used to determine whether the shortage of the product's delivery process meets the contractual small shortage delivery conditions. Figure 2 The method for determining the final small amount of shortfall corresponding to the current contract data according to the acquired contract data may include the following steps:
[0049] S201: Determine the calculated small deficit corresponding to the current contract data.
[0050] According to the contract data obtained in step S1, such as the contract order weight range, the order weight range and other data, the corresponding record is searched in the small shortage static table. Exemplarily, in the present application, to search for the corresponding record in the small shortage static table, it is first necessary to determine the small shortage optional rule, which is used to verify whether the corresponding record in the small shortage static table can be selected. Among them, the small shortage optional rule is that the contract order weight range has an intersection with the upper and lower limits of the order weight in the small shortage static table, and the contract order weight range has an intersection with the upper and lower limits of the order weight in the small shortage static table.
[0051] It should be noted that, in some possible embodiments, for the same contract, there may be multiple records in the small shortage static table that meet the above judgment criteria.
[0052] The under-quantity mode of the present application includes a first mode and a second mode. For example, the under-quantity mode in the small under-quantity static table of the present application includes a percentage mode (first mode) and a numerical mode (second mode).
[0053] For example, when it is determined that the current contract corresponding to the shortfall mode is the first mode (ie, the percentage mode), the first calculated shortfall is N1, where N1 = W × N m / 100. When it is determined that the shortfall mode corresponding to the current contract is the second mode (ie, the numerical mode), the second calculated shortfall is N2, N2 = N m ; Where W represents the order weight of the current contract, N m Indicates the maximum allowed shortage. Generally speaking, for contracts with larger order quantities, such as 200 tons, the corresponding shortage mode is the first mode (i.e. percentage mode), and for contracts with smaller order quantities, the corresponding shortage mode is the second mode (i.e. numerical mode).
[0054] At this time, the smallest record between the first calculated small shortfall value and the second calculated small shortfall value is selected, that is, the smallest value of the allowed maximum shortfall needs to be selected from multiple records that meet the conditions as the calculated small shortfall.
[0055] S202: Determine the negative tolerance of the order weight corresponding to the current contract data.
[0056] The negative order weight tolerance corresponding to the current contract data is determined according to the contract order weight and the lower limit of the delivery tolerance in the contract data obtained in step S1. For example, the negative order weight tolerance corresponding to the current contract data is N3, N3 = W × H / 100, where W represents the order weight of the current contract and H represents the lower limit of the delivery tolerance of the current contract.
[0057] S203: Compare the calculated under-quantity N1 with the negative tolerance N3 of the order weight.
[0058] The calculated small shortage N1 determined according to step S201 is compared with the order weight negative tolerance N3 determined according to step S202.
[0059] S204: If the calculated under-quantity is greater than the negative tolerance of the order weight, the negative tolerance value of the order weight is determined as the final under-quantity.
[0060] In some possible implementations, if the calculated small shortage N1 is greater than the negative tolerance N3 of the order weight, then in order to ensure smooth delivery of the contract, the smallest of the two values is determined as the final small shortage. That is, the negative tolerance N3 of the order weight is the final small shortage.
[0061] S205: If the calculated small shortage is less than or equal to the negative tolerance of the order weight, the calculated small shortage is determined as the final small shortage.
[0062] In some possible implementations, if the calculated small shortage N1 is less than or equal to the negative tolerance N3 of the order weight, then in order to smoothly deliver the contract, the smallest of the two is determined as the final small shortage. That is, the calculated small shortage N1 is the final small shortage.
[0063] S3: Determine whether the contract meets the conditions for closing the case.
[0064] Here, contract closure means that when the shortfall in the quasi-shipping process of the product meets the contract's small shortfall delivery conditions (i.e. the above-mentioned final small shortfall), the contract can be closed, that is, the contract can be shipped to the user without the need for additional material production in the previous process. This not only helps to speed up the contract delivery, but also avoids unnecessary waste caused by the continued production of work-in-progress. At the same time, the excess materials in the contract (i.e. the excess materials mentioned later) can also be transferred to other contracts to shorten the delivery period of other contracts.
[0065] In some embodiments of the present application, reference Figure 3 , the method of judging whether the contract meets the conditions for case closing may include the following steps:
[0066] S33: Obtain the shortage of the ready-to-ship process of the contract.
[0067] According to the contract data obtained in step S1, the shortage quantity of the ready-to-ship process of the main process product of the contract is obtained.
[0068] S331: Compare the final small shortage with the shortage in the contracted process.
[0069] S332: If the final shortfall is greater than or equal to the shortfall of the contract's authorized process, the contract meets the conditions for closing; if the final shortfall is less than the shortfall of the contract's authorized process, the contract does not meet the conditions for closing.
[0070] The shortfall of the qualified dispatching process obtained in step S33 is compared with the final shortfall determined in step S203. In some possible implementations, if the final shortfall is greater than or equal to the shortfall of the qualified dispatching process in the contract, the contract closing condition is met, and the process proceeds to step S31 described below.
[0071] S333: If the final shortfall is less than the shortfall in the contracted process, the contract does not meet the closing conditions and the process goes to step S32 described later.
[0072] S31: If the contract meets the closing conditions, determine whether there is excess material in the contract that can be transferred.
[0073] In some embodiments of the present application, reference Figure 4 S5: The method for determining whether there is excess material available for transfer under the contract may include the following steps:
[0074] S51: Obtain excess material.
[0075] If it is determined according to the above step S3 that the current contract meets the closing conditions, all the work-in-progress materials (including slabs, hot coils, cold coils, etc.) on the contract will be regarded as excess materials.
[0076] S52: Determine the material transfer rules.
[0077] Here, the material transfer rule is used to check whether the excess material can be transferred. The material transfer rule can be configured through the rule platform, or can be solidified in the program through coding. Exemplarily, the material transfer rule includes at least one of the following: materials in the production plan cannot be transferred, materials in the transfer warehouse cannot be transferred, materials on the emergency contract cannot be transferred, and materials on the way cannot be transferred.
[0078] S53: Determine whether the excess material can be used.
[0079] According to the material transfer rules in step S52, it is determined in turn whether the excess material obtained in step S51 can be transferred.
[0080] S54: If the excess material meets the material transfer rules, the transferable excess material is transferred and matched to other contracts. The specific algorithm uses the transfer rule configuration and the bipartite graph maximum weight matching iterative algorithm to implement the transfer.
[0081] If the excess materials do not meet the material transfer rules, the excess materials will not be transferred.
[0082] Here, if the excess material cannot be diverted, the contract can be terminated and converted into surplus material.
[0083] S32: If the contract does not meet the closing conditions, determine whether the contract meets the full conditions.
[0084] Here, contract production needs to go through multiple processes. Unlike contract closing, contract filling is aimed at a specific process. If a process meets the filling conditions, the process can be marked as full, that is, the shortage of the process before the process is cleared, and the previous process is not allowed to continue to feed materials for production. At the same time, the previous process is also prohibited from performing operations such as material filling, thereby avoiding the waste caused by excess material feeding in the previous process. In addition, similar to contract closing, the excess materials before the filling process can also be transferred to other contracts, or become surplus materials after the contract is cancelled.
[0085] In some embodiments of the present application, reference Figure 5 The method for determining whether a contract satisfies the full condition may include the following steps:
[0086] S321: Obtain the shortage of each process in the contract.
[0087] According to the contract data obtained in step S1, the under-quantity of each process in the main and sub-processes of the contract is obtained, and the under-quantity of each process in the main and sub-processes of the contract is added up to form the process under-quantity without distinguishing the process.
[0088] It should be noted that steel production usually goes through multiple processes, and each process has multiple different production lines to choose from. The serial production of multiple processes and different production lines constitutes a process path, which is called a process. A contract often contains multiple processes, one of which is the main process and the rest are sub-processes.
[0089] S322: Determine the first quantity of the adjacent processes of the contract.
[0090] Here, the first quantity of the adjacent process is the difference between the shortage of the current process and the inventory of the current process. For example, the first quantity is N3, N3 = QP, where Q represents the shortage of the current process, and P represents the inventory of the current process. The shortage Q of the current process and the inventory P of the current process can both be obtained from the contract data obtained in step S1.
[0091] S323: Determine the filling process.
[0092] In some embodiments of the present application, continue to refer to Figure 5 , the method for determining the filling process may include the following steps:
[0093] S324: Determine the current process, start from the final process (i.e., the last process) and work backwards until the current process is determined to be the first process (i.e., the first process). And obtain the shortage and inventory quantity of each process based on the contract data obtained in step S1. Compare the shortage of the previous process with the final small shortage; compare the shortage of the current process with the final small shortage; compare the first quantity with the final small shortage.
[0094] If the shortage of the previous process is less than or equal to the final small shortage, and the shortage of the current process is greater than the final small shortage, and the first quantity is less than or equal to the final small shortage, then the process is determined to be a full process; otherwise, the process does not meet the full conditions.
[0095] In other words, only when a process satisfies the following three conditions at the same time: the shortage of the previous process is less than or equal to the final small shortage, the shortage of the current process is greater than the final small shortage, and the first quantity is less than or equal to the final small shortage, the process meets the full condition. When a process does not meet any one or more of the above three conditions, the process does not meet the full condition.
[0096] S325: Repeat the process of determining the full process until the current process is determined to be the first process.
[0097] After the full process is determined according to step S325 and step S324, the shortfall of the process before the full process is set to 0 to avoid further material input or diversion of the previous process, resulting in material waste. In some possible embodiments, if the full condition is still not met when the first process is traced back, it means that the contract does not meet the full condition and ends.
[0098] If the contract meets the full condition, according to step S31: determine whether there is excess material in the contract that can be transferred.
[0099] In some embodiments of the present application, continue to refer to Figure 4 , S5: The method for determining whether there is excess material available for transfer in the contract may include the following steps:
[0100] S51: Obtain excess material.
[0101] According to the above step S32, it is determined that the current contract meets the full condition. In some embodiments of the present application, reference Figure 6 Step S51: The method for obtaining excess material may further include the following steps:
[0102] S511: Obtain the inventory quantity of the preceding process of the filling process of the contract, and add the work-in-progress materials of the preceding process to the excess material collection.
[0103] According to the contract data obtained in step S1, the inventory of the previous process (i.e., all processes before the filling process) is obtained, and the work-in-progress materials of the previous process are added to the excess material set. For example, all materials in the excess material set can be regarded as excess materials.
[0104] S512: Obtain the order of the inventory quantity of the work-in-process materials for the filling process.
[0105] Exemplarily, a method for obtaining the sorting of the in-stock quantities of the work-in-process materials for a filling process is to sort the in-stock quantities of the work-in-process materials in ascending order of weight.
[0106] S513: Determine whether the work-in-progress material is added to the excess material set.
[0107] In some embodiments of the present application, continue to refer to Figure 6 S513: The method for determining whether the work-in-progress material is added to the excess material set may include the following steps:
[0108] S514: Determine the second quantity for filling the process.
[0109] Exemplarily, the second quantity is N4, N4=X-(YI), wherein X represents the shortfall of the filling process, Y represents the on-stock quantity of the filling process, and I represents the current weight of the work-in-progress material. The shortfall X of the filling process and the on-stock quantity Y of the filling process can both be obtained according to the contract data acquired in step S1, and the current weight I of the work-in-progress material can be obtained according to step S512.
[0110] S515: Compare the second amount with the final small shortage amount.
[0111] S516: If the second quantity is less than or equal to the final small shortage, the current work-in-progress material is added to the excess material set.
[0112] The second quantity N4 of the filling process determined in step S514 is compared with the final small shortage determined in step S2. If the second quantity N4 is less than or equal to the final small shortage, the current work-in-process material is added to the excess material set, that is, the current work-in-process material can be used as excess material. If the second quantity N4 is greater than the final small shortage, the current material cannot be used as excess material, and the process of determining whether the work-in-process material is added to the excess material set is stopped.
[0113] S517: Update the current inventory quantity of the filling process.
[0114] After step S516, the current inventory quantity Y of the filling process is updated to Y i , Y i =YI, where Y represents the inventory quantity for the filling process and I represents the current weight of the work-in-progress material.
[0115] S518: Repeat the process of determining whether the WIP material should be added to the excess material set until the second quantity is greater than the final small shortage quantity, and then the current WIP material will not be added to the excess material set.
[0116] According to step S517, the current inventory quantity Y of the filling process is determined iAfter that, return to step S513 to determine whether the next work-in-process material is added to the excess material set. In some possible embodiments, if the second quantity N4 corresponding to the next work-in-process material is greater than the final small shortage, the current material work-in-process cannot be used as excess material, and the process of determining whether the work-in-process material is added to the excess material set stops.
[0117] S52: Determine the material transfer rules.
[0118] Here, the material transfer rule is used to check whether the excess material can be transferred. The material transfer rule can be configured through the rule platform, or can be solidified in the program through coding. Exemplarily, the material transfer rule includes at least one of the following: materials in the production plan cannot be transferred, materials in the transfer warehouse cannot be transferred, materials on the emergency contract cannot be transferred, and materials on the way cannot be transferred.
[0119] S53: Determine whether the excess material can be used.
[0120] According to the material transfer rules in step S52, it is determined in turn whether the excess material obtained in step S51 can be transferred.
[0121] If the excess material meets the material transfer rules:
[0122] S54: Implement transfer service for the transferable excess materials and match them to other contracts. The specific algorithm uses service rule configuration and bipartite graph maximum weight matching iterative algorithm to implement transfer service.
[0123] If the excess materials do not meet the material transfer rules, the excess materials will not be transferred.
[0124] Here, if the excess material cannot be diverted, the contract can be terminated and converted into surplus material.
[0125] The following is a detailed description of the excess material diversion control method for contracts that meet the closing conditions in the present application through a specific embodiment (Example 1). In Example 1 of the present application, the contract order quantity is 290 tons, the lower limit of the delivery tolerance is 5 (unit: %), the order weight range is [5,10], there is only one main process, and the processes involved include steelmaking, hot rolling, cold rolling, continuous withdrawal, and product delivery. Table 1 below is the relevant information table of the contract that meets the closing conditions, which gives the shortage and inventory quantity of each process of the contract and the shortage of the product delivery process; Table 2 is a static table of small shortages, which lists the lower limit of order weight, the upper limit of order weight, the lower limit of order weight, the upper limit of order weight, the maximum allowable shortage and shortage mode.
[0126] It should be noted that there is no contract shortfall in the iron-making process because iron-making is not linked to a specific contract and is mainly based on the stable production of molten iron in accordance with the blast furnace capacity and the balance between iron and steel.
[0127] The steps of the main control method are as follows:
[0128] Table 1 Case closing contract information
[0129]
[0130] Table 2 Small shortage static table
[0131]
[0132] (1) Based on the above information, two records can be found in the small shortage static table (as shown in Table 3 below), which meet the conditions that the contract order weight is within the upper and lower limits of the order weight in the small shortage table, and the contract order weight range intersects with the upper and lower limits of the order weight in the small shortage table.
[0133] Table 3 Small shortage static table records corresponding to this contract
[0134]
[0135]
[0136] (2) Select the smallest shortfall from multiple records that meet the conditions.
[0137] According to the calculation formula for calculating the small shortfall, the calculated small shortfall of record 1 and record 2 in Table 3 above is updated as follows:
[0138] The calculated shortfall of record 1 is N1 = W × N m / 100=290*6.5 / 100=18.85
[0139] The calculated small deficit of record 2 is N1 = W × N m / 100=290*6 / 100=17.4
[0140] Select the smallest value of the maximum allowable shortfall as the small shortfall. It can be seen that the smallest small shortfall in the two records is 17.4, that is, the small shortfall is 17.4.
[0141] (3) According to the calculation formula of the negative tolerance of contract order weight, the negative tolerance of contract order weight is updated as follows:
[0142] The negative tolerance of the contract order weight N3 = W × H / 100 = 290*5 / 100 = 14.5, and the minimum value of the negative tolerance of the contract order weight N3 and the calculated under-quantity calculated in (2) is taken as the final under-quantity of the contract.
[0143] Therefore, the final small deficit of the contract = min(17.4,14.5) = 14.5.
[0144] (4) Determine whether the contract meets the conditions for closing based on the contract's quasi-legal process shortfalls and the contract's final shortfalls.
[0145] Get the shortage of the contract main process product's qualified release process. According to the information in Table 1 above, the shortage of the contract qualified release process is 5. Because 5 (contract qualified release process shortage) ≤ 14.5 (contract small shortage), the contract meets the contract closing conditions.
[0146] (5) Determine whether there is excess material in the contract that can be diverted.
[0147] First, obtain excess materials. Since the contract meets the contract closing conditions, all work-in-progress materials on the contract are considered excess materials. According to the information in Table 1 above, the inventory of cold rolling and continuous annealing processes is greater than 0. It should be noted that the inventory of the process refers to the inventory of the raw material warehouse of this process. Therefore, it can be seen that there are two excess materials in this contract, 20 tons of hot coils (cold rolling process raw materials) and 12 tons of cold coils (continuous annealing process raw materials). Then determine whether the excess materials can be converted based on the configured conditions.
[0148] (6) Assuming that the excess hot-rolled coils and cold-rolled coils in (5) meet the conversion conditions, the cross-process conversion is implemented based on the bipartite graph maximum weight matching iterative algorithm proposed in patent CN202210017717.1.
[0149] The following is another specific embodiment (Example 2) to explain in detail the excess material diversion control method for contracts that meet the full conditions in the present application scheme. In Example 2 of the present application, the contract order quantity is 290 tons, the lower limit of the delivery tolerance is 5 (unit: %), the order weight range is [5,10], there are one main and one deputy process, and the processes involved include steelmaking, hot rolling, cold rolling, continuous annealing, and product delivery. Table 4 below is the relevant information table of the contract that meets the closing conditions, which gives the information such as the shortage and inventory quantity of each process of the main and deputy processes of the contract; the static table of small shortages is the same as Table 2 above.
[0150] The steps of the main control method are as follows:
[0151] Table 4 Full Contract Information
[0152]
[0153] (2) Select the smallest shortfall from multiple records that meet the conditions. Two records can be found in the shortfall static table as shown in Table 3.
[0154] According to the calculation formula for calculating the small shortfall, the calculated small shortfall of record 1 and record 2 in Table 3 above is updated as follows:
[0155] The calculated shortfall of record 1 is N1 = W × N m / 100=290*6.5 / 100=18.85
[0156] The calculated small deficit of record 2 is N1 = W × N m / 100=290*6 / 100=17.4
[0157] Select the smallest value of the maximum allowable shortfall as the small shortfall. It can be seen that the smallest small shortfall in the two records is 17.4, that is, the small shortfall is 17.4.
[0158] (3) According to the calculation formula of the negative tolerance of contract order weight, the negative tolerance of contract order weight is updated as follows:
[0159] The negative tolerance of the contract order weight N3 = W × H / 100 = 290*5 / 100 = 14.5, and the minimum value of the negative tolerance of the contract order weight N3 and the calculated under-quantity calculated in (2) is taken as the final under-quantity of the contract.
[0160] Therefore, the final small deficit of the contract = min(17.4,14.5) = 14.5.
[0161] (4) Determine whether the contract meets the conditions for closing based on the contract's shortfall in the final process and the contract's shortfall in the final process.
[0162] Obtain the shortage of the contract main process product's ready-to-ship process. According to the information in Table 4 above, the shortage of the contract ready-to-ship process is 290. Because 290 (contract ready-to-ship process shortage)>14.5 (contract small shortage), the contract does not meet the contract closing conditions.
[0163] (5) Determine whether the contract satisfies the conditions for full completion.
[0164] Obtain the shortage of each process in the main and secondary processes of the contract, and add up the shortage and inventory of each process in the main and secondary processes of the contract to form the shortage and inventory of each process regardless of the process. According to the information in Table 4 above,
[0165] Steelmaking process shortage = main process steelmaking process shortage + auxiliary process steelmaking process shortage = 0 + 0 = 0
[0166] Hot rolling process shortage = main process hot rolling process shortage + auxiliary process hot rolling process shortage = 0 + 0 = 0
[0167] Cold rolling process shortage = main process cold rolling process shortage + auxiliary process cold rolling process shortage = 298.9 + 0 = 298.9
[0168] The shortage of continuous retreat process = the shortage of continuous retreat process of main process + the shortage of continuous retreat process of auxiliary process = 297.917 + 0 = 297.917
[0169] Steelmaking process inventory = main process steelmaking process inventory + auxiliary process steelmaking process inventory = 0 + 0 = 0
[0170] Hot rolling process inventory = main process hot rolling process inventory + auxiliary process hot rolling process inventory = 0 + 0 = 0
[0171] Cold rolling process inventory = main process cold rolling process inventory + auxiliary process cold rolling process inventory = 330 + 0 = 330
[0172] The inventory of the continuous retreat process = the inventory of the main process continuous retreat process + the inventory of the auxiliary process continuous retreat process = 0 + 0 = 0
[0173] Start from the continuous retreat process (i.e. the final process), work backwards from the back to the front, and identify the full process.
[0174] Continuous retreat process:
[0175] Comparing the shortage in the previous process (cold rolling process) with the final small shortage, it can be seen that 298.9>14.5 (not satisfied); comparing the shortage in the current process (continuous withdrawal process) with the final small shortage, it can be seen that 297.917>14.5 (satisfied); comparing the first quantity N3 with the final small shortage, it can be seen that the first quantity N3=QP=297.917-0=297.917>14.5 (not satisfied).
[0176] It can be seen that the continuous withdrawal process does not meet the full condition, and the previous process (cold rolling process) continues to be judged.
[0177] Cold rolling process:
[0178] Comparing the shortage in the previous process (hot rolling process) with the final small shortage, it can be seen that 0≤14.5 (satisfied); comparing the shortage in the current process (cold rolling process) with the final small shortage, it can be seen that 298.9>14.5 (satisfied); comparing the first quantity N3 with the final small shortage, it can be seen that the first quantity N3=QP=298.9-330=-31.1≤14.5 (satisfied).
[0179] It can be seen that the cold rolling process meets the full condition. The process shortage before the full process is set to 0 to avoid further feeding or diversion of the previous process.
[0180] (5) Determine whether there is excess material in the contract that can be diverted.
[0181] First, obtain the excess materials, and add the work-in-progress materials in the process before the cold rolling process (filling process) to the excess material collection as excess materials. Since the inventory of steelmaking and hot rolling processes is 0, there is no excess material in the previous process. In the cold rolling process (filling process), make the following judgment:
[0182] The materials in stock for the cold rolling process are sorted by weight from small to large, as shown in Table 5 below.
[0183] Table 5 Material information after inventory sorting in cold rolling process (filling process)
[0184] Material No. Material weight / ton Material Type 1 18 Hot Rolled Coil 2 18 Hot Rolled Coil 3 18 Hot Rolled Coil 4 19 Hot Rolled Coil 5 19 Hot Rolled Coil 6 20 Hot Rolled Coil 7 20 Hot Rolled Coil 8 21 Hot Rolled Coil 9 21 Hot Rolled Coil 10 22 Hot Rolled Coil 11 22 Hot Rolled Coil 12 22 Hot Rolled Coil 13 22 Hot Rolled Coil 14 22 Hot Rolled Coil 15 23 Hot Rolled Coil 16 23 Hot Rolled Coil
[0185] Then judge according to the order of materials:
[0186] It can be seen that the second quantity of the full process N4 = X-(YI) = 298.9-(330-18) = -13.1 ≤ 14.5, so add material 1 to the excess material set, then update the current inventory quantity of the full process to: Yi = Yi = YI = 330-18 = 312, and continue to determine the next material;
[0187] It can be seen that the second amount N4 of the filling process = X-(Y i -I)=298.9-(312-18)=4.9≤14.5, then add material 2 to the excess material set, then update the current full process inventory to: Yi=Yi=YI=312-18=294, and continue to determine the next material;
[0188] It can be seen that the second amount N4 of the filling process = X-(Y i -I)=298.9-(294-18)=22.9>14.5, then material 3 cannot be added into the excess material set as excess material, and the process of judging whether the work-in-progress material should be added into the excess material set is stopped. Therefore, the excess materials are material 1 and material 2.
[0189] Then determine whether the excess material can be used based on the configuration conditions.
[0190] (6) Assuming that the above-mentioned excess materials in (5) all meet the diversion conditions, the cross-process diversion is implemented based on the bipartite graph maximum weight matching iterative algorithm proposed in patent CN202210017717.1.
[0191] In addition, the present invention also provides a computer storage medium, including a memory and a processor, wherein the memory is suitable for storing computer instructions, and the processor is suitable for executing the contract closing, filling and excess material diversion control method described in any of the above embodiments when running the computer instructions.
[0192] Reference now Figure 7, shown is a block diagram of an electronic device 600 according to an embodiment of the present application. The electronic device 600 may include one or more processors 601 coupled to a controller hub 603. For at least one embodiment, the controller hub 603 communicates with the processor 601 via a multi-drop bus such as a front side bus (FSB), a point-to-point interface such as a QuickPath Interconnect (QPI), or a similar connection 606. The processor 601 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 603 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown) and an input / output hub (IOH) (which may be on a separate chip) (not shown), wherein the GMCH includes a memory and a graphics controller and is coupled to the IOH.
[0193] The electronic device 600 may also include a coprocessor 602 and a memory 604 coupled to a controller hub 603. Alternatively, one or both of the memory and the GMCH may be integrated within the processor (as described in this application), with the memory 604 and the coprocessor 602 being directly coupled to the processor 601 and the controller hub 603, with the controller hub 603 being in a single chip with the IOH.
[0194] The memory 604 may be, for example, a dynamic random access memory (DRAM), a phase change memory (PCM), or a combination of the two. The memory 604 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. The computer-readable storage medium stores instructions, specifically, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one of the processors, causing the electronic device 600 to implement the following: Figure 1 The instructions of the control method for contract closing, filling and excess material diversion are shown. When the instructions are executed on a computer, the computer executes the method disclosed in any one of the above embodiments or combined embodiments to control contract closing, filling and excess material diversion.
[0195] In one embodiment, the coprocessor 602 is a special-purpose processor, such as, for example, a high-throughput MIC (Many Integrated Core) processor, a network or communication processor, a compression engine, a graphics processor, a GPGPU (General-purpose computing on graphics processing units), or an embedded processor. The optional nature of the coprocessor 602 is indicated by a dashed line in FIG. Figure 7 middle.
[0196] In one embodiment, the electronic device 600 may further include a network interface (NIC, Network Interface Controller) 606. The network interface 606 may include a transceiver for providing a radio interface for the electronic device 600, and then communicating with any other suitable device (such as a front-end module, an antenna, etc.). In various embodiments, the network interface 606 may be integrated with other components of the electronic device 600. The network interface 606 may implement the functions of the communication unit in the above-mentioned embodiments.
[0197] The electronic device 600 may further include an input / output (I / O) device 605. The I / O 605 may include: a user interface designed to enable a user to interact with the electronic device 600; a peripheral component interface designed to enable peripheral components to interact with the electronic device 600; and / or a sensor designed to determine environmental conditions and / or location information related to the electronic device 600.
[0198] It is worth noting that Figure 7 This is for illustrative purposes only. Figure 7 It is shown that the electronic device 600 includes multiple devices such as a processor 601, a controller hub 603, a memory 604, etc.; however, in actual applications, the device using the methods of the present application may include only a portion of the devices in the electronic device 600, for example, it may include only the processor 601 and the network interface 606. Figure 7 The properties of optional devices are shown with dashed lines.
[0199] Reference now Figure 8 , which is a block diagram of a SoC (System on Chip) 700 according to an embodiment of the present application. Figure 8 In the FIG, similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SoCs. Figure 8In the embodiment, the SoC includes: an interconnect unit 750, which is coupled to a processor 710; a system agent unit 780; a bus controller unit 790; an integrated memory controller unit 740; a group or one or more coprocessors 720, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (SRAM) unit 730; and a direct memory access (DMA) unit 760. In one embodiment, the coprocessor 720 includes a special-purpose processor, such as, for example, a network or communication processor, a compression engine, a GPGPU (General-purpose computing on graphics processing units), a high-throughput MIC processor, or an embedded processor.
[0200] Static random access memory (SRAM) unit 730 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. The computer-readable storage medium stores instructions, and more specifically, stores temporary and permanent copies of the instructions. The instructions may include: when executed by at least one of the processors, causing the SoC to implement the following: Figure 1 The instructions of the control method for the transfer of excess materials when the contract is closed are shown. When the instructions are run on a computer, the computer executes the method disclosed in the above embodiment.
[0201] Each method implementation mode of the present application can be implemented in the form of software, magnetic components, firmware, etc.
[0202] Program code can be applied to input instructions to perform each function described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For the purpose of this application, the processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0203] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described herein is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0204] One or more aspects of at least one embodiment may be implemented by representative instructions stored on a computer-readable storage medium, which represent various logics in a processor, and when the instructions are read by a machine, the machine makes logic for performing the technology herein. These representations, known as "IP (Intellectual Property, Intellectual Property) cores", may be stored on a tangible computer-readable storage medium and provided to multiple customers or production facilities to be loaded into a manufacturing machine that actually manufactures the logic or processor.
[0205] In some cases, the instruction converter can be used to convert instructions from a source instruction set to a target instruction set. For example, the instruction converter can transform (e.g., using static binary transformation, dynamic binary transformation including dynamic compilation), deform, simulate, or otherwise convert instructions into one or more other instructions to be processed by the core. The instruction converter can be implemented in software, hardware, firmware, or a combination thereof. The instruction converter can be on the processor, outside the processor, or partially on the processor and partially outside the processor.
[0206] Although the present invention has been illustrated and described with reference to certain preferred embodiments of the present invention, it should be understood by those skilled in the art that the above is a further detailed description of the present invention in conjunction with specific embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. Those skilled in the art may make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present invention.
Claims
1. A method for controlling the use of excess materials after contract closing, used in electronic equipment, characterized in that: The method comprises: Acquire data of the static table of contracts and small shortages, wherein the contract data includes the order weight, order weight range, delivery tolerance lower limit and shortages of each process of the contract; Determine the final small deficit corresponding to the current contract data; Determine whether the contract meets the conditions for closing the case; If the contract meets the closing conditions, determine whether there is excess material in the contract that can be transferred; If the contract does not meet the closing conditions, determine whether the contract meets the full conditions; If the contract meets the full condition, determine whether there is excess material in the contract that can be transferred; The excess materials that can be transferred can be transferred and matched to other contracts; If the contract does not meet the full conditions, it ends.
2. The method for controlling the use of excess materials after contract closing according to claim 1 is characterized in that: The small shortage static table includes at least the lower limit of the order weight, the upper limit of the order weight, the lower limit of the order weight, the upper limit of the order weight, the maximum allowable shortage and the shortage mode of the contract.
3. The method for controlling the use of excess materials after contract closing according to claim 2 is characterized in that: Determining the final small amount of debt corresponding to the current contract data includes: Determine the calculated shortfall corresponding to the current contract data; Determine the negative tolerance of the order weight corresponding to the current contract data; Comparing the calculated under-quantity with the negative tolerance of the order weight; If the calculated under-quantity is greater than the negative tolerance of the order weight, the negative tolerance value of the order weight is determined as the final under-quantity; If the calculated small shortage is less than or equal to the negative tolerance of the order weight, the calculated small shortage is determined as the final small shortage.
4. The method for controlling the use of excess materials after contract closing according to claim 3 is characterized in that: Determining the calculated small amount corresponding to the current contract data includes: According to the contract data, search for corresponding records in the small shortage static table; Determining that the under-volume mode corresponding to the contract is the first mode; The first calculated small deficit is N1, N1 = W × N m / 100; Determining that the under-volume mode corresponding to the contract is the second mode; The second calculated small deficit is N2, N2=N m ; Where W represents the order weight of the current contract, N m Indicates the maximum allowable undersupply; The smallest record between the first calculated small shortfall value and the second calculated small shortfall value is selected as the calculated small shortfall value.
5. The method for controlling the use of excess materials after contract closing according to claim 3 is characterized in that: Determining the negative tolerance of the order weight corresponding to the current contract data includes: Obtain the lower limit of delivery tolerance for the contract in question; The negative tolerance of the order weight is N3, N3 = W × H / 100, where W represents the order weight of the current contract and H represents the lower limit of the delivery tolerance of the current contract.
6. The method for controlling the use of excess materials after contract closing according to claim 3 is characterized in that: The judgment of whether the contract meets the closing conditions includes: Obtain the shortfall in the ready-to-ship process of the contract; Compare the final small shortage with the contracted delivery process shortage; If the final shortfall is greater than or equal to the shortfall of the contracted process, the contract meets the closing conditions; If the final shortfall is less than the shortfall in the contract's approved process, the contract does not meet the closing conditions.
7. The method for controlling the use of excess materials after contract closing is described in claim 1, characterized in that: If the contract does not meet the closing conditions, determining whether the contract meets the full conditions includes: Obtain the shortage of each process of the contract; determining a first quantity of an adjacent process of the contract; The first quantity is N4, N4=QP, where Q represents the shortage of the current process and P represents the inventory quantity of the current process; Determine the filling process.
8. The method for controlling the use of excess materials after contract closing according to claim 7 is characterized in that: The step of determining fullness comprises: Determine the current process; Compare the shortfall of the previous process with the final small shortfall; Compare the shortfall of the current process with the final small shortfall; Comparing the first amount with the final shortfall amount; If the shortage of the previous process is less than or equal to the final small shortage, and the shortage of the current process is greater than the final small shortage, and the first quantity is less than or equal to the final small shortage, then the current process is determined to be a full process; Otherwise, the current process does not meet the full condition; The process of determining the full process is repeated until the current process is determined to be the first process. If the first process does not meet the full condition, the process ends.
9. The method for controlling the use of excess materials after contract closing according to claim 8 is characterized in that: The determining that the current process is a full process also includes: The process shortage before the full process is set to 0.
10. The method for controlling contract closing, full placement and excess material diversion according to claim 1, characterized in that: The determination of whether there is excess material available for transfer under the contract includes: Obtain excess material; Determine a material transfer rule, wherein the material transfer rule is used to verify whether the excess material can be transferred; Determine whether the excess material can be diverted.
11. The method for controlling the use of excess materials after contract closing according to claim 10, characterized in that: The obtaining of excess material comprises: Determining that the contract meets the conditions for closing the case; Obtain the inventory quantity of all processes of the contract, and add the work-in-progress materials of all processes of the contract to the excess material collection; Determining that the contract satisfies a fill condition; Obtain the inventory quantity of the preceding process of the filling process of the contract, and add the work-in-progress materials of the preceding process to the excess material set; Obtaining the order of the inventory quantity of the work-in-process materials of the filling process; Determine whether the work-in-progress material is added to the excess material set.
12. The method for controlling the use of excess materials after contract closing according to claim 11, characterized in that: Determining whether the work-in-progress material is to be added to the excess material set includes: determining a second quantity of the filling process; The second quantity is N5, N5=X-(YI), where X represents the shortage of the filling process, Y represents the inventory of the filling process, and I represents the current weight of the work-in-progress material; comparing the second amount with the final small shortage amount; If the second quantity is less than or equal to the final short quantity, adding the current work-in-progress material to the excess material set; Update the current inventory quantity of the filling process to Y i , Y i =YI; The process of determining whether to add the work-in-process material to the excess material set is repeated until the second amount is greater than the final small shortage amount, and then the current work-in-process material is not added to the excess material set.
13. The method for controlling the use of excess materials after contract closing is completed according to claim 10, characterized in that: The material transfer rules include at least one of the following: materials in the production plan cannot be transferred, materials in the transfer warehouse cannot be transferred, materials on emergency contracts cannot be transferred, and materials in transit cannot be transferred.
14. The method for controlling the use of excess materials after contract closing is completed according to claim 11, characterized in that: Acquiring the sorting of the in-stock quantities of the work-in-process materials of the filling process includes: sorting the in-stock quantities of the work-in-process materials according to a rule from small to large.
15. The method for controlling the use of excess materials after contract closing is described in claim 1, characterized in that: The said transfer of excess transferable materials to other contracts includes: The transfer function is implemented by using the configuration of the role rule and the bipartite graph maximum weight matching iterative algorithm.
16. The method for controlling the use of excess materials after contract closing according to claim 4, characterized in that: The searching for corresponding records in the static table of small shortages includes: determining optional rules for small shortages, and the optional rules for small shortages are used to verify whether the corresponding records can be selected; wherein, the optional rules for small shortages are that the contract order weight range has an intersection with the upper and lower limits of the order weight in the static table of small shortages, and the contract order weight range has an intersection with the upper and lower limits of the order weight in the static table of small shortages.
17. A computer storage medium, characterized in that: It includes a memory and a processor, wherein the memory is suitable for storing computer instructions, and the processor is suitable for executing the contract closing and excess material diversion control method as described in any one of claims 1 to 16 when running the computer instructions.
