Iron and steel enterprise element cost measuring and calculating method and system based on rule chain
By using a rule-based chain approach, material balance diagrams are transformed into material data objects. Combined with energy-intermediate balance and dynamic price updates, an automated cost calculation system is built, which solves the efficiency and accuracy problems of traditional factor cost analysis and enables rapid response and multi-scheme evaluation.
Patent Information
- Application Number
- CN202511840514.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-08
- Publication Date
- 2026-03-20
AI Technical Summary
Traditional factor cost analysis is inefficient and of low quality, data is prone to confusion, calculation results are difficult to trace, response is not timely, multi-scheme simulation and evaluation is inconvenient, it is easy to lead to decision-making errors, and the analysis results are difficult to retain and archive.
By adopting a rule-chain-based approach, materials in the material balance diagram are discretized into material data objects, rule relationships and message routing between materials and energy media are created, prices are dynamically imported, and factor cost tables and sales revenue tables are generated. An automated and systematic cost calculation system is built through rule chains.
It enables end-to-end automated calculation from production data to cost results, improving calculation efficiency and accuracy, supporting dynamic evaluation of multiple scenarios, simplifying data processing procedures, and enhancing the scientific nature and speed of decision-making.
Smart Images

Figure CN121707658A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of enterprise information technology, specifically to a method and system for calculating factor costs for steel enterprises based on rule chains. Background Technology
[0002] The digital economy and digital technologies are becoming the commanding heights of a new round of global industrial competition. Faced with the enormous impact of the digital transformation wave, competition in the steel engineering technology service industry is intensifying. Economic efficiency is the core concern of steel enterprise clients, and it is crucial in determining the strategic direction of their production and operations. In the digital age, answering clients' economic questions effectively in the steel engineering technology service industry faces several challenges: First, it requires improving the efficiency of cost analysis and answering cost questions more nimbly; second, it requires greater flexibility to adapt to various production process scenarios, providing clients with optimal investment and operation solutions that combine technology and economics; and third, it requires more real-time access to market prices and changes to obtain more accurate financial analysis results.
[0003] Traditional factor cost analysis relies on Excel tools, and the analytical approaches of different analysts may vary in detail, resulting in low efficiency and quality. It is highly susceptible to problems such as chaotic data referencing, fragmented data, inconsistent version updates, difficulty in tracing the calculation process, and difficulty in verifying and auditing the results. Furthermore, traditional factor cost analysis methods require recalculation from scratch when material balance plans are updated, leading to slow responses to technical changes. In addition, traditional methods and approaches greatly inconvenience multi-scenario simulation and evaluation, making it highly susceptible to significant deviations in the overall analysis results due to minor errors or omissions, potentially leading to decision-making errors and substantial losses. The analysis results are also scattered and stored among analysts, failing to be effectively archived and used for future business learning and reference.
[0004] Therefore, there is an urgent need in this field for a factor cost calculation method and system that can deeply integrate the complex physical production process of steel enterprises with cost calculation logic, and achieve rapid response to changes, improve the efficiency and quality of factor cost analysis, and conduct dynamic evaluation of multiple options. Summary of the Invention
[0005] The purpose of this invention is to provide a method and system for calculating factor costs of steel enterprises based on rule chains, so as to solve the problems of low efficiency and quality in current factor cost analysis.
[0006] To address the aforementioned technical problems, in a first aspect, this invention provides a method for calculating factor costs for steel enterprises based on rule chains, comprising:
[0007] S1: Discretize all materials in the material balance diagram into material data objects, and calculate the input and output quantities of each material;
[0008] S2: Create energy medium data objects, and based on material data objects, create rule relationships and message routing between energy medium data objects and material data objects, and calculate the consumption and recovery of energy medium in each process;
[0009] S3: Dynamically import the unit prices of various materials and energy media from the price library to generate price data objects; and based on the material data objects and energy media data objects, create rule relationships and message routes between the prices and the material data objects and energy media data objects respectively, and calculate the cost amount and sales amount of each material data and the cost amount and sales amount of each energy media.
[0010] S4: Generate the element cost table and sales revenue table based on the attribute type of each material, the input and output of each material, the attribute type of each energy medium, the consumption and recovery of each energy medium, the cost and sales amount of each material, and the cost and sales amount of each energy medium.
[0011] Furthermore, the material data object includes material name, material ID, process to which it belongs, equipment to which it belongs, input / output point type, quantity, and attribute type.
[0012] Furthermore, the calculation model for the energy consumption in each process is as follows:
[0013]
[0014] The calculation model for the recovery amount of energy medium in each process is as follows:
[0015] .
[0016] Further, step S4 includes: calculating the difference between the total input and total output of all materials respectively. ;
[0017] If the attribute type of the i-th material is raw material, then the i-th material and its cost amount are directly included in the element cost table.
[0018] like Then the i-th material and its cost amount will be included in the factor cost table;
[0019] like If the i-th item and its sales amount are recorded in the sales revenue statement;
[0020] like If so, the factor cost table or sales revenue table shall not be included.
[0021] Further, step S4 includes: calculating the difference between the total consumption and the total recovery of all energy media. ;
[0022] like Then the i-th energy and its cost amount will be included in the factor cost table;
[0023] like If the i-th item and its sales amount are included in the sales revenue statement;
[0024] like If so, the factor cost table or sales revenue table shall not be included.
[0025] Furthermore, the method also includes calculating the manufacturing cost amount and including the manufacturing cost amount in the factor cost table;
[0026] The calculation of manufacturing costs includes equipment depreciation and building depreciation;
[0027] Equipment depreciation The calculation model is as follows:
[0028] ;
[0029] in, Indicates equipment cost. Indicates construction cost. This indicates other basic construction costs. This indicates a contingency fund. Indicates the depreciation period of the equipment. Indicates the equipment residual value rate;
[0030] Building depreciation The calculation model for the fee is as follows:
[0031] ;
[0032] in, Indicates the building's depreciation period. This indicates the residual value rate of a building.
[0033] Furthermore, the method also includes calculating the amount of labor costs and including these costs in the factor cost table; the amount of labor costs... The calculation model is as follows:
[0034] ;
[0035] in, This represents the salary of the nth employee. This represents the salary of the nth cooperating member.
[0036] Furthermore, the method also includes step S5:
[0037] Establish multiple different factor cost calculation schemes, import the balance diagrams of different schemes respectively, and then repeat steps S1-S4 to calculate the factor costs and sales revenue under different balance diagram schemes.
[0038] Financial evaluations of factor costs and sales revenue under different balance sheet schemes are conducted to select the optimal scheme.
[0039] Secondly, this invention provides a rule-chain-based system for calculating factor costs in steel enterprises, comprising:
[0040] The balance diagram import and parsing module is used to import and parse balance diagrams to obtain discretized material data objects.
[0041] The energy-medium balance calculation module is used to create energy-medium data objects.
[0042] The price dynamic update module is used to dynamically collect market prices of materials and energy media, and bind and update the collected market prices with material data objects and energy media data objects;
[0043] The rule chain construction module is used to build rule relationships and message routing between energy data objects and material data objects, as well as between prices and energy data objects and material data objects, to form a rule chain; and to calculate factor costs and sales revenue based on the rule chain.
[0044] The visual interaction module is used to provide a visual interactive interface, receive user input commands, and trigger the calculation method provided in the first aspect above.
[0045] Furthermore, the rule chain supports dynamic expansion, allowing users to customize rule relationships and message routing between different data objects through an interactive interface.
[0046] The beneficial effects of this invention are as follows: By automatically obtaining material data objects from the balance diagram, and then deeply integrating the physical material and energy balance with the financial price and cost calculation through the rule chain (rule relationship and message routing), an automated and systematic cost calculation method is constructed. This realizes end-to-end automatic calculation from production data to cost results, completely changing the efficiency and quality limitations of the traditional manual and static accounting method, and greatly improving the efficiency and accuracy of the calculation. Attached Figure Description
[0047] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, use the same reference numerals to denote the same or similar parts. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0048] Figure 1This is a flowchart illustrating an embodiment of the present invention.
[0049] Figure 2 This is a schematic diagram of the framework of one embodiment of the present invention.
[0050] Figure 3 This is a schematic diagram of the rule chain process according to an embodiment of the present invention.
[0051] Figure 4 This is a schematic diagram of the measurement results according to an embodiment of the present invention. Detailed Implementation
[0052] like Figure 1 The method for calculating factor costs for steel enterprises based on rule chains, as shown, includes:
[0053] S1: Discretize all materials in the material balance diagram into material data objects, and calculate the input and output quantities of each material;
[0054] S2: Create energy medium data objects, and based on material data objects, create rule relationships and message routing between energy medium data objects and material data objects, and calculate the consumption and recovery of energy medium in each process.
[0055] S3: Dynamically import the unit prices of various materials and energy media from the price library to generate price data objects; and based on the material data objects and energy media data objects, create rule relationships and message routes between the prices and the material data objects and energy media data objects respectively, and calculate the cost amount and sales amount of each material data and the cost amount and sales amount of each energy media.
[0056] S4: Generate the element cost table and sales revenue table based on the attribute type of each material, the input and output of each material, the attribute type of each energy medium, the consumption and recovery of each energy medium, the cost and sales amount of each material, and the cost and sales amount of each energy medium.
[0057] By automatically acquiring material data objects from the balance diagram, and then deeply integrating the physical material and energy balance with the financial price and cost calculations through rule chains (rule relationships and message routing), an automated and systematic cost calculation method has been constructed. This method achieves end-to-end automatic calculation from production data to cost results, completely changing the inefficiency and quality limitations of traditional manual and static accounting methods, and greatly improving the efficiency and accuracy of the calculation.
[0058] According to one embodiment of this application, the material data object includes material name, material ID, process to which it belongs, equipment to which it belongs, input / output point type, quantity, and attribute type (raw material / auxiliary material / fuel and power / energy medium). The material data object is also bound to rule relationships, including calculation logic relationships between materials, material quantity statistical relationships, and value transfer and deduction relationships. The material data objects are shown in Table 1.
[0059] Table 1
[0060]
[0061] This material data object will serve as the basis for subsequent element cost accounting. By defining a clearly defined material data object, a unified and reliable data foundation is provided for all subsequent automatic calculations based on rule relationships, ensuring the consistency and accuracy of data flow within the system.
[0062] According to one embodiment of this application, the data object with the attribute type of energy medium in step S1 is automatically identified and captured, and a common basic energy medium data object is created to form the final energy medium data object. Then, based on the real value of energy medium at the input / output points, the energy medium unit consumption parameter configuration and the recovery coefficient, the energy medium balance calculation is performed to calculate the total consumption and total recovery of all energy medium in the whole plant and each process.
[0063] The calculation model for the energy consumption in each process is as follows:
[0064]
[0065] If the energy medium belongs to the material in the material data object (e.g., coal), its consumption value can be obtained by directly parsing the input value of the material object; if the energy medium is an independent energy medium and does not belong to the material in the material data object (e.g., electricity), it is necessary to calculate it by multiplying the product output of the equipment by the energy medium unit consumption.
[0066] The calculation model for the recovery amount of energy medium in each process is as follows:
[0067] ;
[0068] If the medium is a material within the material data object (e.g., coal), its recovery value can be obtained by directly parsing the output value of the material object; if the medium is an independent medium and does not belong to the material data object (e.g., natural gas), it is necessary to calculate it by multiplying the product output of the equipment by the medium recovery coefficient.
[0069] This method allows users to manually modify the relevant parameters for energy balance calculations and to manually configure the calculation model for consumption / recovery.
[0070] According to one embodiment of this application, step S4 includes: calculating the difference between the total input and the total output of all materials respectively. ;
[0071] If the attribute type of the i-th material is raw material, then the i-th material and its cost amount are directly included in the element cost table.
[0072] like Then the i-th material and its cost amount will be included in the factor cost table;
[0073] like If the i-th item and its sales amount are recorded in the sales revenue statement;
[0074] like The corresponding energy is offset during the process, and the factor cost table or sales revenue table are not considered.
[0075] Based on the above logical judgment It can automatically identify whether materials are net consumption (included in factor costs) or net output (included in sales revenue), and can directly classify them according to attributes (such as raw materials), avoiding errors and omissions that may occur due to manual judgment, and ensuring the completeness and accuracy of factor cost tables and sales revenue tables.
[0076] According to one embodiment of this application, step S4 includes: calculating the difference between the total consumption and the total recovery of all energy media. ;
[0077] like Then the i-th energy and its cost amount will be included in the factor cost table;
[0078] like If the i-th item and its sales amount are included in the sales revenue statement;
[0079] like If so, the factor cost table or sales revenue table shall not be included.
[0080] Based on the above logical judgment It can automatically identify whether the energy medium is net consumed energy (included in factor costs) or surplus recovered energy that can be sold as a product (included in sales revenue), solving the problem of ambiguous energy medium value identification in traditional cost accounting and more realistically reflecting the company's energy utilization efficiency and profit structure.
[0081] According to one embodiment of this application, the method further includes calculating the manufacturing cost amount and including the manufacturing cost amount in the factor cost table; the calculation of the manufacturing cost amount includes equipment depreciation and building depreciation;
[0082] The manufacturing cost is designed with several basic parameters, which are automatically calculated after being input by the user;
[0083] For example, the input parameters are as follows:
[0084] Equipment investment = 1000
[0085] Construction & Installation Investment: 2000
[0086] (Investment in Other Construction) Other basic construction costs = 1000
[0087] (Investment in Contingency) Contingency Fund = 1000
[0088] Therefore, the system calculates the static investment (INV, Investment) as follows:
[0089] = 5000
[0090] User inputs VAT rate Then, the value-added tax (Vat) can be calculated.
[0091]
[0092] Depreciation period of input devices and residual value rate If you select the annual average depreciation calculation method, the system will automatically calculate the equipment depreciation. for:
[0093]
[0094] User inputs building depreciation period and residual value rate The system will automatically calculate building depreciation. for:
[0095]
[0096] in, Indicates equipment cost. Indicates construction cost. This indicates other basic construction costs. This indicates a contingency fund. Indicates the depreciation period of the equipment. This represents the equipment residual value rate; where, Indicates the building's depreciation period. This indicates the residual value rate of a building.
[0097] According to one embodiment of this application, the method further includes calculating the amount of labor costs and including the amount of labor costs in the factor cost table; the amount of labor costs The calculation model is as follows:
[0098] ;
[0099] in, This represents the salary of the nth employee. This represents the wage of the nth cooperating worker. The labor cost calculation is performed by calling the system's wage and surcharge calculation module. By inputting parameters such as staffing levels, cooperating workers, and wages, the system obtains the total wages and surcharges for the entire plant. The system can automatically summarize the total wages of all staff and cooperating workers and include them in the factor costs, simplifying the tedious manual statistics and data entry process of traditional methods.
[0100] According to one embodiment of this application, the method can also call the system's sales expense calculation module, and automatically calculate the sales expense and management expense by calling the sales revenue calculation result and inputting the corresponding sales expense management rate.
[0101] This step, through parameterized input and formulaic calculation, can automatically summarize the total wages of all factory staff and auxiliary personnel and include them in factor costs, simplifying the tedious manual statistics and data entry process of the traditional method.
[0102] According to one embodiment of this application, the method further includes step S5:
[0103] Establish multiple different factor cost calculation schemes, import the balance diagrams of different schemes respectively, and then repeat steps S1-S4 to calculate the factor costs and sales revenue under different balance diagram schemes.
[0104] Financial evaluations of factor costs and sales revenue under different balance sheet schemes are conducted to select the optimal scheme.
[0105] This step enables companies to simulate various market scenarios before investing or producing, and to conduct rapid financial feasibility analyses of multiple possible scenarios, significantly improving the ability and speed of scientific decision-making.
[0106] Secondly, this invention provides a rule-chain-based system for calculating factor costs in steel enterprises, comprising:
[0107] The balance chart import and parsing module is used to import and parse balance charts to obtain discretized material data objects. When importing balance charts into the system, users can set modes such as phased import, merged import, and overwrite import to facilitate determining the calculation range of the balance chart based on actual conditions. When importing balance charts multiple times, the system can automatically identify duplicate material parts and prompt the user whether to choose to overwrite or retain the existing material structure. After importing the balance chart, users can manually adjust cost items / sales items, performing operations such as adding, deleting, adjusting the order, and modifying values.
[0108] The energy-medium balance calculation module is used to create energy-medium data objects and calculate energy-medium balance.
[0109] The price dynamic update module is used to dynamically collect market prices of materials and energy media, and bind and update the collected market prices with material data objects and energy media data objects. Based on the associated material / energy media ID, price date, region and other attribute information, the system automatically generates the price of the corresponding item. If the imported price needs to be adjusted, the imported price is corrected through adjustment logic, and the system automatically calculates the amount corresponding to the corrected price scheme.
[0110] The rule chain construction module is used to build rule relationships and message routing between energy data objects and material data objects, as well as between prices and energy data objects and material data objects, to form a rule chain; and to calculate factor costs and sales revenue based on the rule chain.
[0111] The visual interaction module provides a visual interactive interface, receives user input commands, and triggers the calculation methods provided in the first aspect (including data import, numerical input / modification, module calculation, rule modification and configuration, result browsing and export, etc.). In the generated final element cost table and sales revenue table, users can export the results and compare and evaluate multiple solutions.
[0112] Users manage various data information during system operation through the data management module. This module enables unified collection, storage, management, updating, and service distribution of user data, including dynamic collection of external price data, recording of user behavior, storage of rule events, real-time saving of calculation results, and summarization and export of calculation results. It employs relational databases and file databases for unified data storage, supporting multiple data structures.
[0113] According to one embodiment of this application, the rule chain supports dynamic expansion, allowing users to customize the rule relationships and message routing between different data objects through an interactive interface.
[0114] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for calculating factor costs in steel enterprises based on rule chains, characterized in that, include: S1: Discretize all materials in the material balance diagram into material data objects, and calculate the input and output quantities of each material; S2: Create an energy medium data object, and based on the material data object, create a rule relationship and message routing between the energy medium data object and the material data object, and calculate the consumption and recovery of energy medium in each process; S3: Dynamically import the unit prices of various materials and energy media from the price library to generate price data objects; and based on the material data objects and energy media data objects, create rule relationships and message routes between the prices and the material data objects and energy media data objects respectively, and calculate the cost amount and sales amount of each material data and the cost amount and sales amount of each energy media. S4: Generate the element cost table and sales revenue table based on the attribute type of each material, the input and output of each material, the attribute type of each energy medium, the consumption and recovery of each energy medium, the cost and sales amount of each material, and the cost and sales amount of each energy medium.
2. The method for calculating factor costs of steel enterprises based on rule chains according to claim 1, characterized in that, The material data object includes material name, material ID, process, equipment, input / output point type, quantity, and attribute type.
3. The method for calculating factor costs of steel enterprises based on rule chains according to claim 1 or 2, characterized in that, The calculation model for the energy consumption in each process is as follows: The calculation model for the recovery amount of the energy medium in each process is as follows: 。 4. The method for calculating factor costs of steel enterprises based on rule chains according to claim 1, characterized in that, Step S4 includes: calculating the difference between the total input and total output of all materials. ; If the attribute type of the i-th material is raw material, then the i-th material and its cost amount are directly included in the element cost table. like Then the i-th material and its cost amount will be included in the factor cost table; like If the i-th item and its sales amount are recorded in the sales revenue statement; like If so, the factor cost table or sales revenue table shall not be included.
5. The method for calculating factor costs of steel enterprises based on rule chains according to claim 1 or 4, characterized in that, Step S4 includes: calculating the difference between the total consumption and the total recovery of all energy media. ; like Then the i-th energy and its cost amount will be included in the factor cost table; like If the i-th item and its sales amount are included in the sales revenue statement; like If so, the factor cost table or sales revenue table shall not be included.
6. The method for calculating factor costs of steel enterprises based on rule chains according to claim 1, characterized in that, The method also includes calculating the manufacturing cost amount and including the manufacturing cost amount in the factor cost table; The manufacturing cost calculation includes equipment depreciation and building depreciation; The equipment depreciation cost The calculation model is as follows: ; in, Indicates equipment cost. Indicates construction cost. This indicates other basic construction costs. This indicates a contingency fund. Indicates the depreciation period of the equipment. Indicates the equipment residual value rate; The building depreciation The calculation model for the fee is as follows: ; in, Indicates the building's depreciation period. This indicates the residual value rate of a building.
7. The method for calculating factor costs of steel enterprises based on rule chains according to claim 1 or 6, characterized in that, The method also includes calculating the amount of labor costs and including the amount of labor costs in the factor cost table; the amount of labor costs The calculation model is as follows: ; in, This represents the salary of the nth employee. This represents the salary of the nth cooperating member.
8. The method for calculating factor costs of steel enterprises based on rule chains according to claim 1, characterized in that, The method also includes step S5: Establish multiple different factor cost calculation schemes, import the balance diagrams of different schemes respectively, and then repeat steps S1-S4 to calculate the factor costs and sales revenue under different balance diagram schemes. Financial evaluations of factor costs and sales revenue under different balance sheet schemes are conducted to select the optimal scheme.
9. A rule-based cost calculation system for steel enterprises, characterized in that, include: The balance diagram import and parsing module is used to import and parse balance diagrams to obtain discretized material data objects. The energy-medium balance calculation module is used to create energy-medium data objects. The price dynamic update module is used to dynamically collect the market prices of materials and energy media, and bind and update the collected market prices with the material data object and energy media data object; The rule chain construction module is used to construct rule relationships and message routes between energy data objects and material data objects, as well as between prices and energy data objects and material data objects, to form a rule chain; and to calculate factor costs and sales revenue based on the rule chain. A visual interaction module is used to provide a visual interactive interface, receive user input commands, and trigger the calculation method according to any one of claims 1-8.
10. The rule-chain-based factor cost calculation system for steel enterprises according to claim 9, characterized in that, The rule chain supports dynamic expansion, allowing users to customize the rule relationships and message routing between different data objects through an interactive interface.