Element-based pricing management method and system
By using an element-based pricing management method and system, and leveraging multi-element combination matching and machine learning algorithms, the problem of insufficient pricing accuracy in traditional mineral product pricing models has been solved, achieving full-process automation and efficient management of ore pricing.
Patent Information
- Application Number
- CN202511693329.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-03-03
AI Technical Summary
Traditional pricing models for mineral products are mostly based on total grade or single metal content, which cannot flexibly handle the complex deduction rules of multi-element transactions, resulting in insufficient pricing accuracy, excessive manual intervention, and complex data maintenance.
An element-based pricing management method is adopted. By receiving the basic data of the ore to be tested, an element pricing set is generated. Dynamic pricing management with multi-element combination matching is used to dynamically generate the settlement unit price, value and total amount. Combined with machine learning algorithms and a multi-threaded parallel computing framework, the entire process is automated.
It has improved the accuracy and management efficiency of ore pricing, and realized the fully automated calculation of the entire process from raw data to final settlement amount, reducing manual intervention and calculation time.
Smart Images

Figure CN121599686A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of mineral pricing, and in particular to an element-based pricing management method and system. Background Technology
[0002] Because the content of valuable metals and impurities in ores varies greatly, without a pricing system, if all ores were sold by the ton, owners of high-quality ores would lose money, while owners of low-quality ores would profit. To ensure fairness in mineral transactions, pricing needs to be based on the quality of the valuable metals contained in the ore.
[0003] In traditional metal element pricing management systems, the pricing logic is usually quite simple, often calculating directly based on quantity, weight, or unit price. Ore pricing methods include calculation based on grade. Generally, ore grade refers to the percentage of valuable metals contained in the ore, and the actual price is determined at settlement based on the relationship between ore grade and market price.
[0004] However, traditional mineral pricing models are mostly based on total grade or single metal content, which cannot flexibly handle the complex deduction rules of multi-element transactions. In complex business scenarios (such as those where different materials, specifications, sources, and transportation methods affect prices), this can lead to problems such as insufficient pricing accuracy, excessive manual intervention, and complex data maintenance. Summary of the Invention
[0005] In order to improve the accuracy of ore pricing and enhance the management efficiency of metal element pricing management systems, this application provides an element-based pricing management method and system.
[0006] Firstly, this application provides an element-based pricing management method, employing the following technical solution: An element-based pricing management method includes the following steps: Receive basic data of the ore to be tested, and obtain a set of elements to be priced based on the basic data, wherein the set of elements to be priced includes at least one element to be priced; Based on the element to be priced and the corresponding historical pricing data, a corresponding pricing scheme is generated, and the element pricing set is determined according to the element to be priced and the pricing scheme. The settlement unit price, settlement value, and total settlement amount of each element are obtained based on the element pricing set. The settlement data corresponding to the ore to be tested are dynamically summarized based on the settlement unit price, settlement value, and total settlement amount of each element.
[0007] By adopting the above technical solution, a set of various pricing elements is obtained based on the ore to be tested, and dynamic pricing management with multi-element combination matching is adopted to realize the transformation from the collected raw ore data to the final element pricing data. In addition, the metal elements (such as gold, silver, copper, etc.) contained in the ore or concentrate to be tested serve as the pricing basis. By detecting their content, price benchmark and trading rules, the settlement unit price, value, total amount and other result data of each element are generated according to the set pricing scheme, and summarized into contract settlement data. By adopting a flexible multi-element, multi-condition combination pricing method, the actual price of the ore to be tested can be obtained more accurately.
[0008] In some embodiments, generating a corresponding element pricing set based on the set of elements to be priced and the corresponding pricing scheme includes the following steps: The corresponding basic attribute values are determined based on the element to be priced, and the basic attribute values include the metal element type; A corresponding pricing scheme is generated based on the metal element type. The pricing scheme includes several sets of detail types and detail fields, and it is determined whether the detail field is an input type based on the detail type. If the detail field is an input type, an attribute call signal is generated, and the calculated attribute value corresponding to the detail field is called from the basic attribute value based on the attribute call signal; If the detailed field is not an input type, a formula generation signal is generated, and the calculation formula logic of the detailed field is determined based on the formula generation signal. The element pricing set corresponding to the element to be priced is determined based on the calculation formula logic and the calculation attribute value.
[0009] By adopting the above technical solution, based on the basic attribute values of the elements to be priced, a corresponding pricing scheme is generated based on the metal element type. Each detailed type is determined within the pricing scheme, and different data processing signals are generated according to the detailed type. If the detailed type is an input type, an attribute call signal is generated, and the corresponding calculated attribute value is called from the basic attribute values based on the attribute call signal. If the detailed type is not an input type, a formula generation signal is generated, and the calculation formula logic for the detailed type is determined based on the formula generation signal. This allows for the free definition of calculation formula logic for addition, subtraction, multiplication, division, or interval judgment. From the formula definition, input data, and operation rules, a pricing result set corresponding to each element to be priced is obtained. Dynamic pricing management using multi-element combination matching achieves fully automated calculation of the entire process from raw data collection to final settlement amount for the tested ore.
[0010] In some embodiments, the formula generation signal includes an element calculation identifier, and the calculation formula logic for determining the detail type based on the formula generation signal includes the following steps: Based on the formula, a signal acquisition element calculation identifier is generated, and based on the element calculation identifier, it is determined whether a corresponding matching identifier can be matched in the preset formula database. The preset formula database stores several sets of matching identifiers and matching formula logic corresponding to the matching identifiers. If a match is found, the matching formula logic and the basic attribute value are compared to obtain the calculation formula logic. If no match is found, the calculation rules are determined based on the generated signal, and the calculation formula logic is defined based on the calculation rules. The calculation rules are associated with real-time updated attributes.
[0011] By adopting the above technical solution, signal acquisition element calculation identifiers are generated according to the formula, and corresponding matching identifiers are matched in a preset database based on the element calculation identifiers. The matching formula logic and the basic attribute values are compared to obtain the calculation formula logic. When a corresponding matching formula logic can be matched in the preset database, the formula logic in the preset database can be directly called, thereby saving formula definition time and improving the pricing efficiency of the ore to be tested. When a corresponding matching formula logic cannot be matched in the preset database, the operation rules can be determined based on the formula-generated signal, and the calculation formula logic can be redefined based on the operation rules, thereby supporting the definition of calculation formula logic for addition, subtraction, multiplication, and division.
[0012] In some embodiments, comparing the matching formula logic with the basic attribute values to obtain the calculation formula logic includes the following steps: The matching formula logic is matched with the basic attribute value, and it is determined whether the feature attribute value corresponding to the matching formula logic is completely matched in the basic attribute value. If the feature attribute value corresponding to the matching formula logic is completely matched in the basic attribute value, then the matching formula logic is used as the calculation formula logic; If the matching formula logic cannot be completely matched in the basic attribute value, a missing attribute prompt is generated based on the matching formula logic to update the basic attribute value, and the calculation formula logic is generated based on the updated basic attribute value and the preset calculation rules.
[0013] By adopting the above technical solution, the basic attribute values of the input need to be updated according to the matching formula logic, so as to ensure that the input data in the calculation formula logic is complete in subsequent calculations, thereby ensuring the pricing accuracy of the tested ore.
[0014] In some embodiments, the calculation formula logic includes operation rules and input data. After determining the element pricing set corresponding to the element to be priced based on the calculation formula logic and the calculation attribute value, the following steps are also included: The numerical type is obtained based on the calculated attribute value, and the corresponding value retrieval method is generated based on the numerical type; The input data is updated based on the value selection method, and the element pricing set corresponding to the element to be priced is generated based on the updated input data.
[0015] By adopting the above technical solution, a data retrieval method is defined for both input and non-input type detail types. The retrieval methods include rounding up, rounding down, and rounding to the nearest whole number. Other different decimal retrieval methods can also be freely added. Then, based on the set retrieval method and decimal places, the retrieval precision of the result value of the detail type is further adjusted. This enables the determination of different pricing result sets based on the different contents of each metal element in the ore to be tested. The element pricing data of the ore to be tested is obtained by using preset aggregation rules. Dynamic pricing management based on multi-element combination matching in the ore to be tested is adopted, realizing the fully automated calculation of the entire process from raw data collection to final settlement amount.
[0016] In some embodiments, determining whether a detail field is an input type based on the detail type includes the following steps: Obtain the corresponding variable attribute based on the detailed field, and determine whether the detailed field is a variable attribute based on the variable attribute; If the detail field is a variable attribute, then the detail field is determined to be a non-input type; If the detail field is not a variable attribute, then the detail field is determined to be an input type.
[0017] In some embodiments, after determining the element pricing set corresponding to the element to be priced based on the calculation formula logic and the calculation attribute value, the following steps are further included: Based on the basic attribute values, real-time updated attributes are selected, and the real-time updated attributes are associated with the input data attributes in the calculation formula logic. The market price corresponding to the element to be priced is collected in real time, and the real-time updated attribute is updated in real time based on the historical transaction data and the market price; Specifically, when the real-time update attribute changes, the input data corresponding to the calculation formula logic is updated in real time to update the calculation formula logic.
[0018] By adopting the above technical solutions, based on machine learning algorithms, historical transaction data, and real-time market prices, the calculation formula logic or optimized real-time update attributes can be automatically generated without manual settings. This can adapt to market fluctuations and automatically optimize the accuracy of the formulas; it can also automatically provide the optimal calculation method for complex trading combinations.
[0019] Secondly, this application provides a management system based on element pricing, which adopts the following technical solution: An element-based pricing management system, executing the element-based pricing management method described in the first aspect, includes: The data interface module receives basic data of the ore to be tested and obtains a set of elements to be priced based on the basic data. The set of elements to be priced includes at least one element to be priced. The calculation engine module generates a corresponding pricing scheme based on the element to be priced and the corresponding historical pricing data, and determines the element pricing set based on the element to be priced and the pricing scheme. The result output module obtains the element settlement unit price, element settlement value, and element settlement total based on the element pricing set, and dynamically summarizes the element settlement unit price, element settlement value, and element settlement total to generate the settlement data corresponding to the ore to be tested.
[0020] In some embodiments, a formula parser is also included, which is used to dynamically load and execute the set calculation formula logic to obtain the element pricing result corresponding to the element to be priced.
[0021] By adopting the above technical solutions, the visual formula configuration technology allows business personnel to directly define or modify formulas without program changes, thus solving the problem of slow response when adjusting transaction rules. Furthermore, the self-developed formula parser expression engine can dynamically load formulas and perform calculations.
[0022] In some embodiments, a multi-threaded computing module is also included, which employs a multi-threaded parallel computing framework to simultaneously acquire the element pricing sets corresponding to multiple elements to be priced.
[0023] By adopting the above technical solution and using a multi-threaded parallel computing framework, the prices of multiple elements to be priced can be calculated synchronously, greatly reducing calculation time and manual intervention.
[0024] In summary, this application includes at least one of the following beneficial technical effects: 1. Based on the ore to be tested, a set of various pricing elements is obtained, and dynamic pricing management with multi-element combination matching is adopted to realize the transformation from the collected raw ore data to the final element pricing data. In addition, the metal elements (such as gold, silver, copper, etc.) contained in the ore or concentrate to be tested serve as the pricing basis. By detecting their content, price benchmark, and transaction rules, the settlement unit price, value, total amount, and other result data of each element are generated according to the set pricing scheme and summarized into contract settlement data. The flexible multi-element and multi-condition combination pricing method can obtain the actual price of the ore to be tested more accurately. 2. Based on the basic attribute values of the elements to be priced, a corresponding pricing scheme is generated based on the metal element type. Each detailed type is determined within the pricing scheme, and different data processing signals are generated according to the detailed type. If the detailed type is an input type, an attribute call signal is generated, and the corresponding calculated attribute value is called from the basic attribute values based on the attribute call signal. If the detailed type is not an input type, a formula generation signal is generated, and the calculation formula logic for the detailed type is determined based on the formula generation signal. This allows for the free definition of calculation formula logic for addition, subtraction, multiplication, division, or interval judgment. From the formula definition, input data, and operation rules, a pricing result set corresponding to each element to be priced is obtained. Dynamic pricing management using multi-element combination matching is adopted to achieve fully automated calculation of the entire process from raw data collection to final settlement amount for the tested ore. Attached Figure Description
[0025] Figure 1 This is a block diagram of the element-based pricing management method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating the method for generating an element pricing set provided in an embodiment of this application; Figure 3 This is a block diagram of the calculation formula logic update method provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the element-based pricing management system provided in this embodiment.
[0026] Figure labeling: 10, Data interface module; 20, Calculation engine module; 30, Result output module. Detailed Implementation
[0027] To better understand the purpose, technical solutions, and advantages of this application, it has been described and illustrated below with reference to the accompanying drawings and embodiments. However, those skilled in the art should understand that this application can be implemented without these details. In some cases, to avoid obscuring various aspects of this application due to unnecessary description, well-known methods, processes, systems, components, and / or circuits already described at a higher level will not be elaborated upon. It will be apparent to those skilled in the art that various modifications can be made to the embodiments disclosed in this application, and the general principles defined in this application can be applied to other embodiments and application scenarios without departing from the principles and scope of this application. Therefore, this application is not limited to the illustrated embodiments, but conforms to the broadest scope consistent with the scope of protection claimed in this application.
[0028] This application discloses an element-based pricing management method, which is applied to an element-based pricing management system. Element-based pricing refers to using the metal elements (such as gold, silver, copper, etc.) contained in the ore or concentrate as the pricing basis in mineral product transactions. By detecting the content of metal elements, price benchmarks, and transaction rules, the value of each element is calculated separately, and then the total price of the ore or concentrate is calculated according to preset aggregation rules.
[0029] like Figure 1 As shown, the element-based valuation management method includes the following steps: S100 receives the basic data of the ore to be tested and obtains the set of elements to be priced based on the basic data.
[0030] The ore to be tested includes various ores requiring price calculation; in this embodiment, metallic ore is used as an example. Basic data includes the type, measurement state, and measurement tonnage of the ore to be tested. Types include, but are not limited to, native gold, silver-gold ore, tellurium-gold ore, magnetite, hematite, chalcopyrite, bornite, and chalcocite. Measurement state refers to the current state of the ore to be tested, including initial and baseline states. Initial state refers to the ore being freshly mined and containing natural water; the corresponding measurement tonnage is wet tons. Baseline state refers to the ore being dried to constant weight at 105 degrees Celsius; the corresponding measurement tonnage is dry tons. The set of elements to be valued refers to the metallic elements corresponding to the ore to be tested. Different ores correspond to different types of metallic elements; therefore, the set of elements to be valued is obtained based on the type of ore to be tested.
[0031] It should be noted that after the management system based on element pricing obtains the type, it will filter out the metal elements contained in historically measured ores of the same type from the preset database, and use the metal elements as the set of elements to be priced for the ores to be measured this time.
[0032] Specifically, before pricing the ore to be tested using the element-based pricing management system, staff click the button on the ore pricing input interface, which automatically takes them to the ore input interface. This interface is used to collect basic data on the ore to be tested entered by staff. The ore input interface supports voice input and / or text descriptions by staff, which will not be elaborated upon here.
[0033] In another embodiment, the ore input interface also includes selection boxes for type, measurement status, and measurement tonnage. The type selection box is specifically formed by automatically storing the name of all ores priced through the element-based pricing management system in the type selection box of the ore input interface, facilitating subsequent filtering and selection by staff. Measurement status includes initial status and baseline status; therefore, in this embodiment, measurement status can be selected. However, since the measurement tonnage varies each time, staff need to manually input the corresponding value.
[0034] S200 generates a corresponding pricing scheme based on the element to be priced and the corresponding historical pricing data, and determines the element pricing set based on the element to be priced and the pricing scheme.
[0035] The set of elements to be priced includes several groups of elements to be priced, and each element corresponds to a pricing scheme. The element pricing set refers to the set of element pricing values generated by applying their respective pricing schemes to different elements to be priced. The set of elements to be priced must include at least one type of element to be priced.
[0036] It should be noted that the pricing scheme is generated through an adaptive learning model. The adaptive learning model is based on a five-dimensional training set constructed from historical ore pricing data (including ore type, element content, market price, and settlement results) over the past three years. It is trained using the gradient boosting tree (XGBoost) algorithm, with the target optimization parameters being a pricing scheme matching accuracy of ≥95% and a settlement error rate of ≤±0.5%.
[0037] The core steps in generating a pricing scheme are: First, extract the ore pricing data for the past three years from the system's historical database, screen valid samples (remove outliers and duplicate data), and construct a five-dimensional training set containing "ore type - element type - pricing parameters - settlement results - market feedback".
[0038] Next, the XGBoost algorithm was used to train the model, with "pricing scheme matching accuracy" and "settlement error rate" as the core evaluation indicators. The model parameters (such as learning rate and tree depth) were adjusted through cross-validation so that the model could recommend pricing schemes for different types of ore with an accuracy of over 95%.
[0039] Finally, when staff enter new basic ore data, the model automatically recommends the optimal pricing scheme (including detailed field configuration and calculation formula logic) based on the ore type and the type of element to be priced. It also automatically updates the training set weekly based on the actual settlement results and market price fluctuations, enabling dynamic iteration of the model.
[0040] It's important to note that the XGBoost algorithm is used to train the model, with "pricing scheme matching accuracy" and "settlement error rate" as the core evaluation metrics. Model parameters (such as learning rate and tree depth) are adjusted through cross-validation to achieve a 95% accuracy rate in recommending pricing schemes for different ore types. The process involves systematic data preparation, feature engineering, cross-validation parameter tuning with accuracy as the core objective, and dual-metric evaluation, supplemented by necessary advanced techniques and business rules. The specific implementation of XGBoost utilizes existing technology and will not be elaborated upon here. By automatically matching pricing schemes, manual configuration time can be reduced for common ore types (such as chalcopyrite and magnetite). Optimizing the calculation formula logic through the model reduces settlement errors.
[0041] Combination Figure 2 In one embodiment, generating a corresponding element pricing set based on the set of elements to be priced and the corresponding pricing scheme includes the following steps: S210, determine the corresponding basic attribute value based on the element to be priced, the basic attribute value includes the metal element type.
[0042] S220 generates a corresponding pricing scheme based on the type of metal element. The pricing scheme includes several sets of detail types and detail fields, and determines whether the detail fields are input types based on the detail types.
[0043] S230, if the detail field is an input type, then generate an attribute call signal, and call the calculated attribute value corresponding to the detail field in the basic attribute value based on the attribute call signal.
[0044] S240, if the detail field is not an input type, then generate a formula generation signal and determine the calculation formula logic of the detail field based on the formula generation signal.
[0045] S250, determine the element pricing set corresponding to the element to be priced based on the calculation formula logic and the calculated attribute value.
[0046] The basic attribute values include the type of metallic element, which specifically refers to the target element with economic value in the ore being tested, such as gold and silver. In addition, the basic attribute values also include the grade, wet tonnes, dry tonnes, metallic tonnes, settlement grade, settlement coefficient, benchmark price, price adjustments, unit price after deducting impurities, deductions for supplementary payments, processing coefficient, and processing unit price for each metallic element in the ore being tested.
[0047] Specifically, grade refers to the unit content of useful metals in ore. In actual calculations, basic attribute values are manually entered by staff to improve the accuracy of subsequent pricing results for each metal element. When obtaining the grade value corresponding to a metal element, it's necessary to determine whether the current grade is entered correctly based on the metal element type. The judgment rule follows conventional rules, specifically based on the metal element type. For copper, lead, or zinc, the grade is expressed as a percentage; a copper grade of 25% means that every 100 tons of dry ore contains 25 tons of copper metal. For gold and silver, it is usually expressed in grams per ton (g / t). For a specific gold mine, a gold grade of 10 g / t means that 10 grams of gold can be obtained from every ton of gold ore.
[0048] Therefore, if the grade of gold is determined as grade when it is being valued, and the grade collected is 25%, the error in the current gold grade can be determined by comparison. An input error signal can be generated, and the basic attribute values entered can be automatically adjusted based on the input error signal to avoid problems with the data entered by the staff.
[0049] In another embodiment, for the basic attribute values corresponding to different metal element types, the unit corresponding to the basic attribute value can be limited according to the corresponding element name when inputting the corresponding basic attribute value. For example, when a worker enters the basic attribute value for the metal element type "gold," the corresponding grade value for gold will automatically display "grams per ton" for the worker to filter. Similarly, when a worker enters the basic attribute value for the metal element type "copper," the corresponding grade value for gold will automatically display "%" for the worker to filter.
[0050] The pricing scheme includes several sets of detail types and detail fields. The detail fields mainly include detail type, element, name (i.e., basic attribute value), custom name, formula, data retrieval method, decimal places, formula calculation, and result value. Based on these details, the final pricing unit price and amount can be obtained.
[0051] The details include input types and non-input types. For input types, the processor corresponding to the element-based pricing management system generates attribute call signals and filters the calculated attribute values to be called based on the basic attribute values.
[0052] For example, if the metal element type is "gold" and the detail field is "grade", by judging the detail type of the detail field "grade", it is determined that the detail type corresponding to the detail field "grade" is the input type. Then, the grade value of the "gold" attribute needs to be called through the attribute call signal in the basic attribute value. That is, the grade value of the gold element that has been entered will be taken in the pricing process.
[0053] For detail fields that are not input types, the processor of the management system based on element pricing generates a formula generation signal and edits the calculation formula logic corresponding to the detail field based on the formula generation signal.
[0054] For example, if the detail field is a result value, and the decision determines that the detail field is not an input type, then the processor needs to determine the calculation formula logic that can obtain the current detail field based on the purpose of the detail field.
[0055] It's important to note that the calculation formula logic is generally set based on the purpose of the detailed fields. This setting can be done manually or automatically using machine learning algorithms to generate the calculation formula logic based on the current detailed fields. As for how to automatically obtain the calculation formula logic using machine learning algorithms, existing technology is used to continuously train the detailed fields and their corresponding calculation formulas to obtain the results, which will not be elaborated upon here.
[0056] The processor can determine the element valuation result corresponding to the current metal element based on the calculation formula logic and the calculated attribute value. When performing element valuation, the processor generates an element valuation signal and sends the element valuation signal to the formula parser, so that the formula parser can respond to the element valuation signal, dynamically load the calculation formula logic and execute the calculation to obtain the element valuation result of the element to be valued.
[0057] It should be noted that for the same ore to be tested, there may be more than one element to be priced. Therefore, in order to improve the pricing efficiency of the element-based pricing management system for the ore to be tested, pricing can be completed simultaneously according to different elements to be priced, and the element pricing results obtained from multiple elements to be priced can be recorded to form an element pricing set.
[0058] S300 obtains the element settlement unit price, element settlement value, and element settlement total based on the element pricing set, and dynamically summarizes the element settlement unit price, element settlement value, and element settlement total to generate the settlement data corresponding to the ore to be tested.
[0059] The element settlement unit price, element settlement value, and element settlement total are all determined for a single element to be priced. Finally, the element settlement unit price, element settlement value, and element settlement total of each element to be priced in the ore to be tested are dynamically summarized to generate the settlement data corresponding to the ore to be tested.
[0060] It should be noted that when pricing the ore to be tested in an element-based pricing management system, the pricing of the element to be priced can be achieved according to the calculation formula logic and calculation attribute value corresponding to different elements to be priced, thereby enabling dynamic aggregation.
[0061] In one embodiment, to quickly obtain the calculation formula logic, the formula generation signal includes element calculation identifiers. Determining the calculation formula logic for the detail type based on the formula generation signal includes the following steps: S241, calculate the identifier of the signal acquisition element based on the formula, and determine whether the corresponding matching identifier can be matched in the preset formula database based on the element calculation identifier. The preset formula database stores several sets of matching identifiers and the matching formula logic corresponding to the matching identifiers.
[0062] S242, if a match is found, the matching formula logic and the basic attribute value are compared to obtain the calculation formula logic.
[0063] S243, if no match is found, the operation rules are determined based on the generated signal of the formula, and the calculation formula logic is defined based on the operation rules. The operation rules are associated with the real-time updated attributes.
[0064] The element calculation identifier refers to the identifier of the calculation formula logic. This identifier indicates which detail field is being calculated for which element to be priced. Specifically, it is generated based on the detail fields corresponding to different elements to be priced. This identifier can be a keyword or a unique identifier. The key is to associate this identifier with the element to be priced and its corresponding detail field.
[0065] The preset formula database stores calculation formulas corresponding to multiple detailed fields, while the matching identifier is the identifier in the preset formula database that corresponds to the element calculation identifier. The meaning and generation method of the matching identifier are the same as or similar to those of the element calculation identifier, so we will not go into detail here.
[0066] If no match is found in the preset formula database, the processor determines the operation rule corresponding to the detail field through the formula generation signal, and generates the corresponding calculation formula logic based on the operation rule.
[0067] It should be noted that the calculation rules can be linked to real-time updated attributes, such as the market price of metal elements, enabling dynamic adjustment of the entire system.
[0068] In one embodiment, the matching formula logic and the basic attribute values are compared to obtain the calculation formula logic, including the following steps: S242-1 performs feature matching between the matching formula logic and the basic attribute values, and determines whether the feature attribute value corresponding to the matching formula logic is completely matched in the basic attribute values.
[0069] S242-2, If the feature attribute value corresponding to the matching formula logic is completely matched in the basic attribute value, then the matching formula logic is used as the calculation formula logic.
[0070] S242-3 If the feature attribute value corresponding to the matching formula logic cannot be completely matched in the basic attribute value, then a missing attribute prompt is generated based on the matching formula logic to update the basic attribute value, and a calculation formula logic is generated based on the updated basic attribute value and the preset operation rules.
[0071] Feature matching refers to comparing the corresponding feature attribute values used in the matching formula logic with the basic attribute values. Feature attribute values refer to all calculated attribute values corresponding to the matching formula logic. The calculated attribute values and the calculated formula logic constitute the element pricing set. Only when all calculated attribute values corresponding to the matching formula logic can be found in the basic attribute values is it considered that the basic attribute values have been entered completely, thus accurately obtaining the element pricing set corresponding to the element to be priced.
[0072] If not all feature attribute values can be found in the basic attribute values, it indicates that the basic attribute values are incomplete. To improve the pricing accuracy of the element to be priced, the corresponding basic attribute values need to be re-entered. Therefore, it is necessary to determine the basic attribute values that need to be re-entered based on the matching logic formula.
[0073] The matching formula logic is matched against the basic attribute values to determine if the corresponding feature attribute value (such as grade, benchmark price, processing coefficient) is completely matched within the basic attribute values. If the matching formula logic is completely matched within the basic attribute values, it is used as the calculation formula logic, and the matching result is uploaded to the blockchain for evidence storage. If the matching formula logic is not completely matched within the basic attribute values, a missing attribute prompt is generated based on the matching formula logic to guide staff to supplement and update the basic attribute values. The calculation formula logic is then generated based on the updated basic attribute values and preset calculation rules. The supplementary input process supports both voice input and text description modes.
[0074] In one embodiment, after determining the pricing result set corresponding to the element to be priced based on the calculation formula logic and the calculated attribute values, the following steps are also included: S260: Obtain the numeric type based on the calculated attribute value, and generate the corresponding value retrieval method based on the numeric type.
[0075] S270, update the input data based on the value acquisition method, and generate the element pricing set corresponding to the element to be priced based on the updated input data.
[0076] The numeric type includes integers and decimals, and the value retrieval method refers to the result of the calculated attribute value, which is determined based on the numeric type. When the numeric type is an integer, the value retrieval method includes rounding up, rounding down, and rounding to the nearest integer. When the numeric type is a decimal, the value retrieval method is to set the number of decimal places, thereby determining the precision of the calculated attribute value.
[0077] Different value-taking methods are set for different calculated attribute values. Therefore, when actually calculating the element pricing result corresponding to the element to be priced, it is necessary to update the corresponding input data according to different value-taking methods, and determine the element pricing set corresponding to the element to be priced based on the input data.
[0078] Because the accuracy of manual calculations is difficult to control, the element-based pricing management system supports setting independent decimal places, rounding methods, and rounding rules for each formula, ensuring the accuracy and consistency of settlement data.
[0079] In one embodiment, determining whether a detail field is an input type based on the detail type includes the following steps: S221, obtain the corresponding variable attribute based on the detail field, and determine whether the detail field is a variable attribute based on the variable attribute.
[0080] S222, if the detail field is a variable attribute, then the detail field is determined to be a non-input type.
[0081] S223, if the detail field is not a variable attribute, then the detail field is determined to be an input type.
[0082] Among them, variable attributes include mutable attributes and fixed attributes. Mutable attributes indicate that the value of a detailed field changes with changes in other detailed fields, while fixed attributes indicate that the current detailed field does not change with changes in other detailed fields. The specific steps for obtaining the corresponding variable attributes based on the detailed field are as follows: First, determine the purpose of the current field based on the detailed field. For example, if the detailed field is a result value, it indicates that the purpose of the detailed field is to obtain the pricing result corresponding to the element to be priced. For example, if the detailed field is a result value, it is determined that the detailed field is a mutable attribute; if the detailed field is grade, it is determined that the current detailed field is a fixed attribute.
[0083] Combination Figure 3In one embodiment, after determining the element pricing set corresponding to the element to be priced based on the calculation formula logic and the calculated attribute value, the following steps are also included: S251, based on the basic attribute values, filter out the real-time updated attributes, and associate the real-time updated attributes with the input data setting attributes in the calculation formula logic.
[0084] S252 collects the market price corresponding to the element to be priced in real time, and updates the attributes in real time based on historical transaction data and market prices. When the real-time updated attributes change, the input data corresponding to the calculation formula logic is updated in real time to update the calculation formula logic.
[0085] Among them, real-time updated attributes refer to attribute values in the basic attribute values that change in real time according to market changes. For example, the price of gold will change with the real-time market price. Therefore, when using an element-based pricing management system to price the ore to be tested, in order to improve the pricing accuracy of the ore to be tested, it is necessary to ensure the accuracy of the pricing of each element. Therefore, it is necessary to make timely changes according to the real-time market.
[0086] It's important to note that the association between real-time updated attributes and the calculated attribute values used in the calculation formula logic employs existing technology, which will not be elaborated upon here. Specifically, the processor filters out some real-time updated attributes based on basic attribute values. Then, it periodically collects real-time market prices based on these attributes and updates the attributes according to real-time market prices and historical transaction data. Simultaneously, the calculation formula logic, which requires calculations based on basic attribute values, updates its input data in real-time when the real-time updated attributes change, thereby obtaining the element pricing results for each element.
[0087] It should be noted that the periodic collection of real-time market prices can be adjusted according to actual conditions. For elements with high market change frequency, the collection period can be set shorter, for example, on a daily basis. For elements with low market change frequency, the collection period can be set longer.
[0088] In one embodiment, for each pricing scheme or specific function, the system supports saving it as a template so that similar pricing scenarios in the future can directly reference the saved template for pricing calculation, avoiding the repetitive input of pricing schemes or functions.
[0089] Each calculation process and final result for each item in the pricing process will be recorded separately in the details field of
Formula Calculation
Result Value
[0090] Ultimately, based on the set pricing scheme, the settlement unit price, value, total amount, and other result data for each element to be priced can be generated and summarized into contract settlement data.
[0091] This application also discloses an element-based pricing management system.
[0092] like Figure 4 As shown, the element-based pricing management system includes a data interface module 10, a calculation engine module 20, and a result output module 30. The data interface module 10 receives the basic data of the ore to be tested and obtains a set of elements to be priced based on the basic data. The set of elements to be priced includes at least one element to be priced. The calculation engine module 20 generates a corresponding pricing scheme based on the elements to be priced and the corresponding historical pricing data, and determines the element pricing set based on the elements to be priced and the pricing scheme. The result output module 30 obtains the element settlement unit price, element settlement value, and element settlement total based on the element pricing set, and dynamically summarizes the element settlement unit price, element settlement value, and element settlement total to generate the settlement data corresponding to the ore to be tested.
[0093] The other functions performed in the data interface module 10, the calculation engine module 20, and the result output module 30, as well as the technical details of each function, are the same as or similar to the corresponding features in the element-based pricing management method described above, so they will not be repeated here.
[0094] In another embodiment, the element-based pricing management system further includes a formula parser, which dynamically loads and executes the set calculation formula logic to obtain the element pricing result corresponding to the element to be priced.
[0095] Because traditional formulas are hard-coded into the program, making adjustments difficult, the calculation engine module 20 adopts visual formula configuration technology, allowing business personnel to define or modify formulas directly in the formula configuration engine module without program changes, thus solving the problem of slow response when adjusting transaction rules.
[0096] In another embodiment, the calculation engine module 20 employs a multi-threaded parallel computing framework to simultaneously acquire the element pricing sets corresponding to multiple elements to be priced. Because manual calculation is inefficient in multi-element transactions, the system uses a multi-threaded parallel computing framework to achieve synchronous calculation of multi-element prices, significantly reducing calculation time and manual intervention. Since the accuracy of manual calculations is difficult to control, the system supports setting independent decimal places, rounding methods, and rounding rules for each formula, ensuring the accuracy and consistency of settlement data.
[0097] In another embodiment, the element-based pricing management system constructs a multi-dimensional risk early warning model based on real-time data monitoring and a risk rule base. This model identifies and warns of risks such as data anomalies, market fluctuations, and settlement deviations during the pricing process in real time, thereby protecting the interests of both parties in the transaction.
[0098] The system specifically includes a data anomaly early warning module, a market fluctuation early warning module, and a settlement deviation early warning module. The data anomaly early warning module is used to monitor basic data entry in real time (such as grade and tonnage). By comparing the data with historical threshold values for the same type of ore, an early warning is automatically triggered when the entered value exceeds the normal range by ±30%, such as "Gold grade entered value 25%, exceeding the reasonable range of 10g / t historical average," and prompting staff to verify the data. Simultaneously, the system performs real-time verification of the formula calculation logic during the pricing process. If the calculation result of a certain detailed field deviates from the historical result for the same scenario by more than 5%, the calculation is automatically paused and a "Formula Logic Anomaly Report" is generated.
[0099] The market volatility warning module is used to connect to the global metal futures market API, collect the market price of the element to be priced in real time, and automatically send a "market price volatility warning notification" to both parties when the price fluctuates by more than 8% in a single day or by more than 15% for three consecutive days. It also provides historical price trend analysis and response suggestions, such as "copper price falls by 10% in a single day, it is recommended to extend the settlement cycle or adjust the benchmark price".
[0100] The settlement deviation early warning module is used to compare the actual settlement results with the budget results. When the deviation exceeds 3%, it automatically analyzes the reasons for the deviation, such as "untimely update of benchmark price" and "grade detection error", and generates a "settlement deviation analysis report" to help staff trace the root cause of the problem.
[0101] Through the aforementioned data anomaly warning module, market fluctuation warning module, and settlement deviation warning module, the original post-event manual investigation can be transformed into real-time warning, providing early warning of data anomalies and market fluctuations, and reducing the transaction dispute rate.
[0102] In another embodiment, the system is based on consortium blockchain technology (such as Hyperledger Fabric) to build a transaction evidence storage system, which stores the entire pricing process data (basic data, pricing scheme, settlement results, market price) on the blockchain to achieve data immutability and traceability, and to ensure transaction transparency and legal validity.
[0103] The specific operational process is as follows: After the basic data is entered, the system automatically generates a "data entry notarization hash value" and uploads it to the consortium blockchain. After the pricing scheme is confirmed, the detailed field configuration, calculation formula logic, and other information are uploaded to the blockchain to form a "pricing scheme notarization block". After the settlement data is generated, the settlement results and confirmation records of both parties are uploaded in real time to generate a "settlement result notarization block".
[0104] Both parties to a transaction can log in to the blockchain platform using a dedicated key to query the entire process of evidence storage. Each data entry includes a timestamp and operator information, ensuring traceability. In the event of a transaction dispute, the blockchain-stored evidence can be directly retrieved as legal evidence, eliminating the need for manual paper documentation. A "role-based access control" model is adopted, with different roles such as administrators, transacting parties, and regulatory agencies. Different roles can only view data within their authorized scope; for example, regulatory agencies can view all data, while transacting parties can only view their own transaction data, ensuring data privacy. The immutability of blockchain prevents data tampering or loss, elevating data security from "enterprise-level encryption" to "financial-grade evidence storage."
[0105] In summary, the adaptive learning module is used to deploy adaptive learning pricing models, enabling intelligent recommendation and iteration of pricing schemes. The risk warning module integrates warning functions for data anomalies, market fluctuations, and settlement deviations, outputting risk notifications in real time. The blockchain evidence storage module connects to consortium blockchain nodes to complete the on-chain data recording and traceability of the entire pricing process. The upgraded system adopts a "microservice architecture" design, with each module deployed independently and flexibly expanded, allowing for the selective activation of innovative functions based on enterprise needs.
[0106] The implementation principle is as follows: First, enter the basic data corresponding to the ore to be tested on the pricing management page, and obtain the set of elements to be priced based on the basic data.
[0107] Next, a corresponding element pricing set is generated based on the element to be priced and its corresponding pricing scheme. Specifically, the basic attribute values, including the metal element type, are entered for the element to be priced. A corresponding pricing scheme is generated based on the metal element type. This scheme includes several sets of detail types and detail fields, and it is determined whether a detail field is an input type based on the detail type. If a detail field is an input type, an attribute call signal is generated, and the calculated attribute value corresponding to the detail field is called from the basic attribute values based on the attribute call signal. If a detail field is not an input type, a formula generation signal is generated, and the calculation formula logic for the detail field is determined based on the formula generation signal. Thus, the element pricing set corresponding to the element to be priced can be determined based on the calculation formula logic and the calculated attribute values.
[0108] Finally, based on the element pricing set, the element settlement unit price, element settlement value, and element settlement total are obtained, and the element settlement unit price, element settlement value, and element settlement total are dynamically summarized to generate the settlement data corresponding to the ore to be tested.
[0109] It should be understood that although the steps in the flowcharts in the accompanying drawings are shown sequentially as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise expressly stated herein, there is no strict order in which these steps are performed, and they may be performed in other orders.
[0110] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A management method based on element-based pricing, characterized in that, Includes the following steps: Receive basic data of the ore to be tested, and obtain a set of elements to be priced based on the basic data, wherein the set of elements to be priced includes at least one element to be priced; Based on the element to be priced and the corresponding historical pricing data, a corresponding pricing scheme is generated, and the element pricing set is determined according to the element to be priced and the pricing scheme. The settlement unit price, settlement value, and total settlement amount of each element are obtained based on the element pricing set. The settlement data corresponding to the ore to be tested are dynamically summarized based on the settlement unit price, settlement value, and total settlement amount of each element.
2. The management method based on element-based pricing according to claim 1, characterized in that, The process of generating a corresponding element pricing set based on the set of elements to be priced and the corresponding pricing scheme includes the following steps: The corresponding basic attribute values are determined based on the element to be priced, and the basic attribute values include the metal element type; A corresponding pricing scheme is generated based on the metal element type. The pricing scheme includes several sets of detail types and detail fields, and it is determined whether the detail field is an input type based on the detail type. If the detail field is an input type, an attribute call signal is generated, and the calculated attribute value corresponding to the detail field is called from the basic attribute value based on the attribute call signal; If the detailed field is not an input type, a formula generation signal is generated, and the calculation formula logic of the detailed field is determined based on the formula generation signal. The element pricing set corresponding to the element to be priced is determined based on the calculation formula logic and the calculation attribute value.
3. The management method based on element-based pricing according to claim 2, characterized in that, The formula generation signal includes an element calculation identifier. The calculation formula logic for determining the detail type based on the formula generation signal includes the following steps: Based on the formula, a signal acquisition element calculation identifier is generated, and based on the element calculation identifier, it is determined whether a corresponding matching identifier can be matched in the preset formula database. The preset formula database stores several sets of matching identifiers and matching formula logic corresponding to the matching identifiers. If a match is found, the matching formula logic and the basic attribute value are compared to obtain the calculation formula logic. If no match is found, the calculation rules are determined based on the generated signals from the formula, and the calculation formula logic is defined based on the calculation rules.
4. The management method based on element-based pricing according to claim 3, characterized in that, The matching formula logic and the basic attribute value are compared to obtain the calculation formula logic, including the following steps: The matching formula logic is matched with the basic attribute value, and it is determined whether the matching formula logic is completely matched in the basic attribute value. If the matching formula logic is completely matched in the basic attribute value, then the matching formula logic is used as the calculation formula logic. If the matching formula logic cannot be completely matched in the basic attribute value, a missing attribute prompt is generated based on the matching formula logic to update the basic attribute value, and the calculation formula logic is generated based on the updated basic attribute value and the preset calculation rules.
5. The management method based on element-based pricing according to claim 3, characterized in that, After determining the element pricing set corresponding to the element to be priced based on the calculation formula logic and the calculation attribute value, the following steps are also included: The numerical type is obtained based on the calculated attribute value, and the corresponding data retrieval method is generated based on the numerical type; The operation rules are updated based on the value selection method, and the element pricing set corresponding to the element to be priced is updated based on the operation rules.
6. The management method based on element-based pricing according to claim 5, characterized in that, Determining whether a detail field is an input type based on the detail type includes the following steps: The corresponding field generation purpose is obtained based on the detailed field, and the change attribute is determined based on the field generation purpose. Based on the change attribute, it is determined whether the detailed field belongs to the change state. If the detail field is in a changing state, then the detail field is determined to be a non-input type; If the detail field is not in a changed state, then the detail field is determined to be an input type.
7. The management method based on element-based pricing according to claim 2, characterized in that, The calculation formula logic includes input data. After determining the element pricing set corresponding to the element to be priced based on the calculation formula logic and the calculation attribute value, it also includes the following steps: Based on the basic attribute values, real-time updated attributes are selected, and the real-time updated attributes are associated with the input data attributes in the calculation formula logic. The market price corresponding to the element to be priced is collected in real time, and the real-time updated attribute is updated in real time based on the historical transaction data and the market price; Specifically, when the real-time update attribute changes, the input data corresponding to the calculation formula logic is updated in real time to update the calculation formula logic.
8. A management system based on element pricing, characterized in that, The management method based on element valuation as described in any one of claims 1-7 includes: The data interface module (10) receives the basic data of the ore to be tested and obtains the set of elements to be priced based on the basic data. The set of elements to be priced includes at least one element to be priced. The calculation engine module (20) generates a corresponding pricing scheme based on the element to be priced and the corresponding historical pricing data, and determines the element pricing set based on the element to be priced and the pricing scheme. The result output module (30) obtains the element settlement unit price, element settlement value and element settlement total amount based on the element pricing set, and dynamically summarizes the element settlement unit price, element settlement value and element settlement total amount to generate the settlement data corresponding to the ore to be tested.
9. The element-based pricing management system according to claim 8, characterized in that, It also includes a formula parser, which is used to dynamically load and execute the set calculation formula logic to obtain the element pricing result corresponding to the element to be priced.
10. The element-based pricing management system according to claim 8, characterized in that, It also includes a multi-threaded computing module, which adopts a multi-threaded parallel computing framework to synchronously obtain the element pricing set corresponding to multiple elements to be priced.