Fuel contract price visual editing system and method
Through the fuel contract price visual editing system, users can directly edit and adjust the fuel contract price calculation formula, solving the problem of multi-role participation and flexible adjustment in traditional technology, and achieving efficient fuel contract price management.
Patent Information
- Application Number
- CN202411088637.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2025-01-07
AI Technical Summary
The price adjustment of traditional fuel contracts requires the participation of professionals from multiple roles, and the system cannot flexibly adjust the pricing method, which reduces work efficiency.
Provide a fuel contract price visual editing system. By constructing a visual component of the contract price calculation formula, users can directly filter and edit the calculation formula, perform error correction prompts, and generate an ideal calculation formula to evaluate feasibility and credibility based on the formula analysis information. , allowing for flexible adjustment of pricing methods.
The pricing method can be flexibly adjusted without the participation of professionals from multiple roles, which significantly improves work efficiency.
Smart Images

Figure CN119272731A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of price editing, and in particular to a system and method for visually editing fuel contract prices. Background Art
[0002] The purchase price of coal is usually determined based on the actual measured values of the buyer on site, such as calorific value, sulfur content, moisture content, etc. The buyer and seller usually agree on a base value and a base price based on this base value in the contract, and then increase or decrease the price based on the actual value. For example, when the calorific value is agreed to be 5,000 kcal, it is settled at 500 yuan. For every increase or decrease of 100 calorific value, the price increases or decreases by 5 yuan. The price calculation method is divided into fixed price, interval pricing, cumulative pricing, combined pricing and other forms.
[0003] In the prior art, when the traditional fuel contract price is adjusted, code development and system secondary development, debugging, testing, etc. are required, and the participation of multi-role professionals such as business personnel, developers, and testers is required. When the pricing method is adjusted, the system cannot be adjusted flexibly, which reduces work efficiency. Summary of the invention
[0004] To solve the above technical problems, the present application provides a fuel contract price visual editing system and method. By constructing a visual component of the contract price calculation formula, the user can directly filter the visual component and move it to the formula editing area to generate a calculation formula. The user edits the calculation formula and receives error correction prompts during the editing process. The edited calculation formula is set as an ideal calculation formula, and the feasibility evaluation value of the ideal calculation formula is generated based on the formula parsing information of the ideal calculation formula. There is no need for the participation of multi-role professionals, and the pricing method can be flexibly adjusted when there is a need, which greatly improves work efficiency.
[0005] In some embodiments of the present application, a fuel contract price visual editing system is provided, comprising: The front-end component module is used to construct a visual component for the contract price calculation formula. The user filters the visual components and moves the filtered visual components to the formula editing area to generate the calculation formula. The formula editing module is used for users to edit the calculation formula, monitor the editing process, provide error correction prompts for the editing process according to the monitoring results, modify the edited calculation formula according to the prompts, and generate an ideal calculation formula; The parsing module is used to parse the ideal calculation formula, obtain the formula parsing information of the current ideal calculation formula, generate the feasibility evaluation value of the ideal calculation formula according to the formula parsing information, and judge whether to modify the current ideal calculation formula according to the credibility evaluation value.
[0006] In some embodiments of the present application, a visualization component for constructing a contract price calculation formula includes: Obtain the calculation process of the contract price calculation formula, divide the calculation process into multiple calculation links, set the formula function of each calculation link, and determine the input and output items corresponding to each formula function; Determine a calculation type of the formula function based on the input and output items corresponding to each formula function, and determine a first split feature according to the calculation type, wherein the calculation type includes a first calculation type and a second calculation type; Determine the second splitting feature according to the function node quantity, node complexity and computational complexity of each formula function; The formula function is split according to the first split feature and the second split feature to obtain multiple functional components, and a functional test is performed, and whether the functional components are to be modified is determined according to the test results; If no modification is required, the functional component is directly set as the visual component. If modification is required, the functional components that need to be modified are combined or split again and re-tested, and the functional components that pass the functional test are set as the visual component.
[0007] In some embodiments of the present application, the filtered visualization components are moved to the formula editing area to generate a calculation formula, including: Based on the preset calculation requirements, determine the functional processes that need to be calculated and the logical order of the functional processes; Based on the characteristics of the functional process to be calculated, determine the visualization components to be called, and generate component nodes for the visualization components to be called; According to the logical order of the functional process, the component nodes are connected sequentially to build a calculation formula framework; The visual components involved in the calculation formula framework are filtered, the filtered visual components are moved to the formula editing area and arranged according to the calculation formula framework to generate a calculation formula.
[0008] In some embodiments of the present application, the user edits the calculation formula, including: Based on the current user demand, generate demand text data, input the demand text data into the screening condition of the calculation formula, and determine the visualization component associated with the current demand text data; Calculate the correlation coefficient between the visualization component associated with the demand text data and the corresponding demand text data, and set the visualization component whose correlation coefficient is greater than a preset correlation coefficient threshold as the associated visualization component; Determine the component node that needs to be edited according to the associated visual component, intercept the position of the component node that needs to be edited and the adjacent frame part, and obtain multiple editing frames from the intercepted parts; Simulating the editing framework and obtaining prediction results, generating a first priority coefficient according to the credibility of the prediction results, and generating a second priority coefficient according to the node complexity and computational complexity of each editing framework; A comprehensive priority coefficient of the corresponding editing framework is generated according to the first priority coefficient and the second priority coefficient, a preferred editing framework is screened out according to the comprehensive priority coefficient, and the user edits the calculation formula according to the preferred editing framework.
[0009] In some embodiments of the present application, error correction prompts are provided for the editing process according to the monitoring results, including: Obtain the sub-editing process of the editing process according to the monitoring results, and obtain the actual editing result of each sub-editing process; Preset a standard editing result interval for each sub-editing process, and determine whether an error occurs in the current sub-editing process based on the comparison result between the actual editing result and the standard editing result interval; If the actual editing result is within the standard editing result range, it is determined that there is no error in the current sub-editing process, and no error correction prompt is given; If the actual editing result is not within the standard editing result interval and the editing deviation between the actual editing result and the standard editing result interval is within the preset deviation interval, it is determined that an error has occurred in the current sub-editing process, and a correction prompt is given to the preferred editing framework corresponding to the current sub-editing process; If the actual editing result is not within the standard editing result interval and the editing deviation between the actual editing result and the standard editing result interval is greater than the preset deviation interval, it is determined that an error has occurred in the current sub-editing process, and an error correction prompt is given for the input item corresponding to the current sub-editing process; wherein the first preset deviation degree is less than the second preset deviation degree; The user modifies the edited calculation formula according to the error correction prompts and generates an ideal calculation formula.
[0010] In some embodiments of the present application, formula analysis information of the current ideal calculation formula is obtained, including: Parsing the ideal calculation formula to obtain formula parsing information of the current ideal calculation formula, wherein the formula parsing information includes an ideal visualization component node, an ideal node complexity, and an ideal calculation formula logic; According to the application order of the ideal visualization component nodes, an ideal node map is constructed; Generate the computational complexity and node complexity of the corresponding ideal visualization component node according to the path length and path shape of each ideal visualization component node in the ideal node map, and generate the ideal node complexity of the corresponding ideal visualization component node according to the computational complexity and node complexity of the ideal visualization component node; According to the ideal visualization component nodes, the ideal node complexity and the ideal calculation formula logic, the feasibility evaluation value of the ideal calculation formula is generated.
[0011] In some embodiments of the present application, generating a feasibility evaluation value of an ideal calculation formula according to formula analysis information includes: Perform calculation simulation according to the ideal calculation formula logic and the demand text data, determine whether the current ideal calculation formula meets the user demand according to the simulation result, and generate a first evaluation value according to the degree of satisfaction; Presetting a complexity threshold at each ideal visualization component node, comparing the complexity threshold with the corresponding ideal node complexity, screening out the ideal visualization component nodes whose ideal node complexity is greater than the complexity threshold and calculating the complexity difference, and generating a second evaluation value according to the complexity difference and the weight coefficient of the corresponding ideal visualization component node; Generating a feasibility evaluation value of an ideal calculation formula according to the first evaluation value and the second evaluation value; M=m1*e1+m2*e2; Among them, M is the feasibility evaluation value, m1 is the first evaluation value, e1 is the weight coefficient corresponding to the first evaluation value, m2 is the second evaluation value, and , n is the number of ideal visualization component nodes whose ideal node complexity is greater than the complexity threshold, ui is the i-th complexity difference, ri is the weight coefficient of the ideal visualization component node corresponding to the i-th complexity difference, e2 is the weight coefficient of the second evaluation value, and e1+e2=1.
[0012] In some embodiments of the present application, judging whether to modify the current ideal calculation formula according to the credibility evaluation value includes: Presetting a first credibility evaluation threshold and a second credibility evaluation threshold; When the credibility evaluation value is less than the first credibility evaluation threshold, the current ideal calculation formula is replaced, the calculation formula is re-edited and a new ideal calculation formula is generated; When the credibility evaluation value is between the first credibility evaluation threshold and the second credibility evaluation threshold, the ideal visualization component node whose ideal node complexity in the current ideal calculation formula is greater than the complexity threshold is corrected; When the credibility evaluation value is greater than the second credibility evaluation threshold, the current ideal calculation formula is not corrected.
[0013] In some embodiments of the present application, a method for visually editing fuel contract prices is also included: Construct a visualization component for the contract price calculation formula. The user filters the visualization components and moves the filtered visualization components to the formula editing area to generate a calculation formula. The user edits the calculation formula, monitors the editing process, provides error correction prompts for the editing process based on the monitoring results, modifies the edited calculation formula according to the prompts, and generates an ideal calculation formula; The ideal calculation formula is parsed to obtain the formula parsing information of the current ideal calculation formula, a feasibility evaluation value of the ideal calculation formula is generated according to the formula parsing information, and whether the current ideal calculation formula should be corrected is determined according to the credibility evaluation value.
[0014] Compared with the prior art, the fuel contract price visualization editing system and method of the embodiment of the present application has the following beneficial effects: By constructing a visual component for the contract price calculation formula, users can directly filter the visual component and move it to the formula editing area to generate a calculation formula. Users edit the calculation formula and receive error correction prompts during the editing process. The edited calculation formula is set as the ideal calculation formula, and the feasibility evaluation value of the ideal calculation formula is generated based on the formula analysis information of the ideal calculation formula. There is no need for the participation of multi-role professionals, and the pricing method can be flexibly adjusted when necessary, which greatly improves work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a schematic diagram of a fuel contract price visualization editing system in a preferred embodiment of the present application; Figure 2 It is a flow chart of a method for visually editing fuel contract prices in a preferred embodiment of the present application. DETAILED DESCRIPTION
[0016] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but are not intended to limit the scope of the present application.
[0017] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0018] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0019] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0020] like Figure 1 As shown, a fuel contract price visual editing system according to a preferred embodiment of the present application includes: The front-end component module is used to construct a visual component for the contract price calculation formula. The user filters the visual components and moves the filtered visual components to the formula editing area to generate the calculation formula. The formula editing module is used for users to edit the calculation formula, monitor the editing process, provide error correction prompts for the editing process according to the monitoring results, modify the edited calculation formula according to the prompts, and generate an ideal calculation formula; The parsing module is used to parse the ideal calculation formula, obtain the formula parsing information of the current ideal calculation formula, generate the feasibility evaluation value of the ideal calculation formula according to the formula parsing information, and judge whether to modify the current ideal calculation formula according to the credibility evaluation value.
[0021] In some embodiments of the present application, a visualization component for constructing a contract price calculation formula includes: Obtain the calculation process of the contract price calculation formula, divide the calculation process into multiple calculation links, set the formula function of each calculation link, and determine the input and output items corresponding to each formula function; Determine a calculation type of the formula function based on the input and output items corresponding to each formula function, and determine a first split feature according to the calculation type, wherein the calculation type includes a first calculation type and a second calculation type; Determine the second splitting feature according to the function node quantity, node complexity and computational complexity of each formula function; The formula function is split according to the first split feature and the second split feature to obtain multiple functional components, and a functional test is performed, and whether the functional components are to be modified is determined according to the test results; If no modification is required, the functional component is directly set as the visual component. If modification is required, the functional components that need to be modified are combined or split again and re-tested, and the functional components that pass the functional test are set as the visual component.
[0022] In this embodiment, the first calculation type means that the input corresponding to the formula function is the output of the previous formula function, and the second calculation type means that the input corresponding to the formula function is not only the output of the previous formula function, but also requires additional input. Distinguishing the calculation types of the formula functions lays the foundation for subsequent users to drag and drop visual components to form calculation formulas, improves the accuracy of the calculation formula, facilitates users to flexibly adjust the calculation formula, and improves work efficiency.
[0023] In this embodiment, according to the functional flow steps in the formula function, the functions implemented by each functional flow step are set as functional nodes, and the functional nodes are constructed into a formula function map in a logical order. The path shape involved in the functional nodes in the formula function map is set as the node complexity, and the path length involved in the functional nodes in the formula function map is set as the calculation complexity.
[0024] In this embodiment, the functional component is subjected to a functional test, including determining whether the current functional component has the expected function and performance, and whether the collaboration between different functional components is normal.
[0025] In this embodiment, a first split is performed on the calculation type of the formula function, and a second split is performed based on the number of functional nodes, node complexity, and calculation complexity of the formula function. The formula function is comprehensively analyzed to improve the reliability of the split functional components, thereby obtaining a visualization component, laying the foundation for the subsequent generation of calculation formulas.
[0026] In some embodiments of the present application, the filtered visualization components are moved to the formula editing area to generate a calculation formula, including: Based on the preset calculation requirements, determine the functional processes that need to be calculated and the logical order of the functional processes; Based on the characteristics of the functional process to be calculated, determine the visualization components to be called, and generate component nodes for the visualization components to be called; According to the logical order of the functional process, the component nodes are connected sequentially to build a calculation formula framework; The visual components involved in the calculation formula framework are filtered, the filtered visual components are moved to the formula editing area and arranged according to the calculation formula framework to generate a calculation formula.
[0027] In this embodiment, the preset calculation requirement is to realize several functions in the historical calculation process of fuel contract prices. Each function is modularized to obtain the functional flow that needs to be calculated. The logical order of the functional flow is set according to the calling order of the functional flow and the relationship between different functional flows.
[0028] In some embodiments of the present application, the user edits the calculation formula, including: Based on the current user demand, generate demand text data, input the demand text data into the screening condition of the calculation formula, and determine the visualization component associated with the current demand text data; Calculate the correlation coefficient between the visualization component associated with the demand text data and the corresponding demand text data, and set the visualization component whose correlation coefficient is greater than a preset correlation coefficient threshold as the associated visualization component; Determine the component node that needs to be edited according to the associated visual component, intercept the position of the component node that needs to be edited and the adjacent frame part, and obtain multiple editing frames from the intercepted parts; Simulating the editing framework and obtaining prediction results, generating a first priority coefficient according to the credibility of the prediction results, and generating a second priority coefficient according to the node complexity and computational complexity of each editing framework; A comprehensive priority coefficient of the corresponding editing framework is generated according to the first priority coefficient and the second priority coefficient, a preferred editing framework is screened out according to the comprehensive priority coefficient, and the user edits the calculation formula according to the preferred editing framework.
[0029] In this embodiment, user demand includes increasing or decreasing the base price. The user demand is analyzed to determine demand text data. The demand text data includes increase or decrease price data, etc. For example, when the agreed calorific value is 5000 kcal, it is settled at 500 yuan. For every increase or decrease of 100 calorific value, the price increases or decreases by 5 yuan. The screening condition refers to the visualization component associated with the demand text data.
[0030] In this embodiment, the credibility of the prediction result is based on the comparison between the prediction result and the result estimated in advance. If the difference is small, the credibility is higher.
[0031] In this embodiment, if the user's needs change significantly, resulting in a large amount of rework in design, coding, testing, etc., a preferred editing framework is selected to facilitate editing of the calculation formula. The preferred editing framework is the one with the highest credibility of the prediction results and the lowest calculation complexity and node complexity. The calculation formula is edited according to the preferred editing framework, thereby speeding up the calculation formula editing process based on user needs and improving work efficiency.
[0032] In some embodiments of the present application, error correction prompts are provided for the editing process according to the monitoring results, including: Obtain the sub-editing process of the editing process according to the monitoring results, and obtain the actual editing result of each sub-editing process; Preset a standard editing result interval for each sub-editing process, and determine whether an error occurs in the current sub-editing process based on the comparison result between the actual editing result and the standard editing result interval; If the actual editing result is within the standard editing result range, it is determined that there is no error in the current sub-editing process, and no error correction prompt is given; If the actual editing result is not within the standard editing result interval and the editing deviation between the actual editing result and the standard editing result interval is within the preset deviation interval, it is determined that an error has occurred in the current sub-editing process, and a correction prompt is given to the preferred editing framework corresponding to the current sub-editing process; If the actual editing result is not within the standard editing result interval and the editing deviation between the actual editing result and the standard editing result interval is greater than the preset deviation interval, it is determined that an error has occurred in the current sub-editing process, and an error correction prompt is given for the input item corresponding to the current sub-editing process; wherein the first preset deviation degree is less than the second preset deviation degree; The user modifies the edited calculation formula according to the error correction prompts and generates an ideal calculation formula.
[0033] In this embodiment, the sub-editing process of each editing process is obtained based on the monitoring results. The actual editing result of the sub-editing process refers to the calculation result corresponding to the corresponding sub-editing process. The standard editing result interval is constructed based on the historical editing results of the sub-editing process corresponding to the fuel contract price. The actual editing result is compared with the corresponding standard editing result interval to determine whether the corresponding sub-editing process can be calculated normally.
[0034] In this embodiment, the preset deviation degree interval refers to the setting based on the comparison results of the editing results calculated by the sub-editing processes in multiple editing frames of the same editing process and the corresponding standard editing result interval. If it is greater than the preset deviation degree interval, it means that an error occurs in the input item corresponding to the current sub-editing process. The input item can be the actual editing result of the previous sub-editing process of the current sub-editing process or the inserted new requirement text data.
[0035] In this embodiment, error correction prompts are given to the editing process, and the user modifies the edited calculation formula according to the prompts, which is convenient for the user and improves the accuracy of the formula. The calculation formula can be flexibly adjusted without the participation of other professionals, greatly improving work efficiency.
[0036] In some embodiments of the present application, formula analysis information of the current ideal calculation formula is obtained, including: Parsing the ideal calculation formula to obtain formula parsing information of the current ideal calculation formula, wherein the formula parsing information includes an ideal visualization component node, an ideal node complexity, and an ideal calculation formula logic; According to the application order of the ideal visualization component nodes, an ideal node map is constructed; Generate the computational complexity and node complexity of the corresponding ideal visualization component node according to the path length and path shape of each ideal visualization component node in the ideal node map, and generate the ideal node complexity of the corresponding ideal visualization component node according to the computational complexity and node complexity of the ideal visualization component node; According to the ideal visualization component nodes, the ideal node complexity and the ideal calculation formula logic, the feasibility evaluation value of the ideal calculation formula is generated.
[0037] In some embodiments of the present application, generating a feasibility evaluation value of an ideal calculation formula according to formula analysis information includes: Perform calculation simulation according to the ideal calculation formula logic and the demand text data, determine whether the current ideal calculation formula meets the user demand according to the simulation result, and generate a first evaluation value according to the degree of satisfaction; Presetting a complexity threshold at each ideal visualization component node, comparing the complexity threshold with the corresponding ideal node complexity, screening out the ideal visualization component nodes whose ideal node complexity is greater than the complexity threshold and calculating the complexity difference, and generating a second evaluation value according to the complexity difference and the weight coefficient of the corresponding ideal visualization component node; Generating a feasibility evaluation value of an ideal calculation formula according to the first evaluation value and the second evaluation value; M=m1*e1+m2*e2; Among them, M is the feasibility evaluation value, m1 is the first evaluation value, e1 is the weight coefficient corresponding to the first evaluation value, m2 is the second evaluation value, and , n is the number of ideal visualization component nodes whose ideal node complexity is greater than the complexity threshold, ui is the i-th complexity difference, ri is the weight coefficient of the ideal visualization component node corresponding to the i-th complexity difference, e2 is the weight coefficient of the second evaluation value, and e1+e2=1.
[0038] In this embodiment, when the simulation results meet the user's needs and the degree of satisfaction is greater, the first evaluation value is greater; when the ideal node complexity is greater than the complexity threshold, the fewer the ideal visualization component nodes are and the smaller the complexity difference is, the greater the second evaluation value is.
[0039] In this embodiment, a calculation simulation is performed according to the calculation logic of the ideal calculation formula and the required text data to obtain a simulation result. The user determines whether the corresponding price data is obtained based on the simulation result. If obtained, the user's needs are met. The degree of satisfaction is set according to the completeness and credibility of the price data. The calculation time and resource cost required for the current ideal calculation formula are obtained according to the node complexity of each ideal visualization component node in the ideal calculation formula. The node complexity is compared with a pre-set complexity threshold to obtain the application degree of the current ideal calculation formula.
[0040] In this embodiment, the credibility evaluation value is determined according to the simulation results and application degree of the ideal calculation formula, and the accuracy, timeliness and resource cost of the ideal calculation formula are obtained, so as to judge whether the current ideal calculation formula can be applied. If so, the calculation formula created by the user and its corresponding calculation logic are stored. The database adopts an efficient data structure and management method to ensure fast access and security of data. The user can edit the calculation formula to obtain the ideal calculation formula, which not only ensures the accuracy of the formula but also greatly improves work efficiency.
[0041] In some embodiments of the present application, judging whether to modify the current ideal calculation formula according to the credibility evaluation value includes: Presetting a first credibility evaluation threshold and a second credibility evaluation threshold; When the credibility evaluation value is less than the first credibility evaluation threshold, the current ideal calculation formula is replaced, the calculation formula is re-edited and a new ideal calculation formula is generated; When the credibility evaluation value is between the first credibility evaluation threshold and the second credibility evaluation threshold, the ideal visualization component node whose ideal node complexity in the current ideal calculation formula is greater than the complexity threshold is corrected; When the credibility evaluation value is greater than the second credibility evaluation threshold, the current ideal calculation formula is not corrected.
[0042] In some embodiments of the present application, Figure 2 As shown, a method for visually editing fuel contract prices is also included: Step S201: constructing a visual component of a contract price calculation formula, the user filters the visual components, moves the filtered visual components to the formula editing area, and generates a calculation formula; Step S202: the user edits the calculation formula, monitors the editing process, provides error correction prompts for the editing process according to the monitoring results, modifies the edited calculation formula according to the prompts, and generates an ideal calculation formula; Step S203: parse the ideal calculation formula to obtain formula parsing information of the current ideal calculation formula, generate a feasibility evaluation value of the ideal calculation formula according to the formula parsing information, and determine whether to modify the current ideal calculation formula according to the credibility evaluation value.
[0043] In summary, the present invention discloses a visual editing system and method for fuel contract prices, which system includes: a front-end component module, which is used to construct a visual component of a contract price calculation formula, and a user screens the visual components, moves the screened visual components to a formula editing area, and generates a calculation formula; a formula editing module, which is used for the user to edit the calculation formula, monitor the editing process, give error correction prompts to the editing process according to the monitoring results, modify the edited calculation formula according to the prompts, and generate an ideal calculation formula; a parsing module, which is used to parse the ideal calculation formula, obtain formula parsing information of the current ideal calculation formula, generate a feasibility evaluation value of the ideal calculation formula according to the formula parsing information, and determine whether to modify the current ideal calculation formula according to the credibility evaluation value. It does not require the participation of multi-role professionals, and the pricing method can be flexibly adjusted when it is adjusted, which greatly improves work efficiency.
[0044] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present application. These improvements and substitutions should also be regarded as the scope of protection of the present application.
Claims
1. A fuel contract price visual editing system, characterized in that: include: The front-end component module is used to construct a visual component for the contract price calculation formula. The user filters the visual components and moves the filtered visual components to the formula editing area to generate the calculation formula. The formula editing module is used for users to edit the calculation formula, monitor the editing process, provide error correction prompts for the editing process according to the monitoring results, modify the edited calculation formula according to the prompts, and generate an ideal calculation formula; The parsing module is used to parse the ideal calculation formula, obtain the formula parsing information of the current ideal calculation formula, generate the feasibility evaluation value of the ideal calculation formula according to the formula parsing information, and judge whether to modify the current ideal calculation formula according to the credibility evaluation value.
2. The fuel contract price visual editing system according to claim 1, characterized in that: Visual components for building contract price calculation formulas, including: Obtain the calculation process of the contract price calculation formula, divide the calculation process into multiple calculation links, set the formula function of each calculation link, and determine the input and output items corresponding to each formula function; Determine a calculation type of the formula function based on the input and output items corresponding to each formula function, and determine a first split feature according to the calculation type, wherein the calculation type includes a first calculation type and a second calculation type; Determine a second split feature according to the amount of function nodes, node complexity, and computational complexity of each formula function; The formula function is split according to the first split feature and the second split feature to obtain multiple functional components, and a functional test is performed, and whether the functional components are to be modified is determined according to the test results; If no modification is required, the functional component is directly set as the visual component. If modification is required, the functional components that need to be modified are combined or split again and re-tested, and the functional components that pass the functional test are set as the visual component.
3. The fuel contract price visual editing system according to claim 2, characterized in that: Move the selected visualization components to the formula editing area to generate calculation formulas, including: Based on the preset calculation requirements, determine the functional processes that need to be calculated and the logical order of the functional processes; Based on the characteristics of the functional process to be calculated, determine the visualization components to be called, and generate component nodes for the visualization components to be called; According to the logical order of the functional process, the component nodes are connected sequentially to build a calculation formula framework; The visual components involved in the calculation formula framework are filtered, the filtered visual components are moved to the formula editing area and arranged according to the calculation formula framework to generate a calculation formula.
4. The fuel contract price visual editing system according to claim 3, characterized in that: The user edits the calculation formula, including: Based on the current user demand, generate demand text data, input the demand text data into the screening condition of the calculation formula, and determine the visualization component associated with the current demand text data; Calculate the correlation coefficient between the visualization component associated with the demand text data and the corresponding demand text data, and set the visualization component whose correlation coefficient is greater than a preset correlation coefficient threshold as the associated visualization component; Determine the component node that needs to be edited according to the associated visual component, intercept the position of the component node that needs to be edited and the adjacent frame part, and obtain multiple editing frames from the intercepted parts; Simulating the editing framework and obtaining prediction results, generating a first priority coefficient according to the credibility of the prediction results, and generating a second priority coefficient according to the node complexity and computational complexity of each editing framework; A comprehensive priority coefficient of the corresponding editing framework is generated according to the first priority coefficient and the second priority coefficient, a preferred editing framework is screened out according to the comprehensive priority coefficient, and the user edits the calculation formula according to the preferred editing framework.
5. The fuel contract price visual editing system according to claim 4, characterized in that: Provide error correction tips for the editing process based on the monitoring results, including: Obtain the sub-editing process of the editing process according to the monitoring results, and obtain the actual editing result of each sub-editing process; Preset a standard editing result interval for each sub-editing process, and determine whether an error occurs in the current sub-editing process based on the comparison result between the actual editing result and the standard editing result interval; If the actual editing result is within the standard editing result range, it is determined that there is no error in the current sub-editing process, and no error correction prompt is given; If the actual editing result is not within the standard editing result interval and the editing deviation between the actual editing result and the standard editing result interval is within the preset deviation interval, it is determined that an error has occurred in the current sub-editing process, and a correction prompt is given to the preferred editing framework corresponding to the current sub-editing process; If the actual editing result is not within the standard editing result interval and the editing deviation between the actual editing result and the standard editing result interval is greater than the preset deviation interval, it is determined that an error has occurred in the current sub-editing process, and an error correction prompt is given for the input item corresponding to the current sub-editing process; wherein the first preset deviation degree is less than the second preset deviation degree; The user modifies the edited calculation formula according to the error correction prompts and generates an ideal calculation formula.
6. The fuel contract price visual editing system according to claim 5, characterized in that: Get the formula analysis information of the current ideal calculation formula, including: Parsing the ideal calculation formula to obtain formula parsing information of the current ideal calculation formula, wherein the formula parsing information includes an ideal visualization component node, an ideal node complexity, and an ideal calculation formula logic; According to the application order of the ideal visualization component nodes, an ideal node map is constructed; Generate the computational complexity and node complexity of the corresponding ideal visualization component node according to the path length and path shape of each ideal visualization component node in the ideal node map, and generate the ideal node complexity of the corresponding ideal visualization component node according to the computational complexity and node complexity of the ideal visualization component node; According to the ideal visualization component nodes, the ideal node complexity and the ideal calculation formula logic, the feasibility evaluation value of the ideal calculation formula is generated.
7. The fuel contract price visual editing system according to claim 6, characterized in that: Generate the feasibility evaluation value of the ideal calculation formula based on the formula analysis information, including: Perform calculation simulation according to the ideal calculation formula logic and the demand text data, determine whether the current ideal calculation formula meets the user demand according to the simulation result, and generate a first evaluation value according to the degree of satisfaction; Presetting a complexity threshold at each ideal visualization component node, comparing the complexity threshold with the corresponding ideal node complexity, screening out the ideal visualization component nodes whose ideal node complexity is greater than the complexity threshold and calculating the complexity difference, and generating a second evaluation value according to the complexity difference and the weight coefficient of the corresponding ideal visualization component node; Generating a feasibility evaluation value of an ideal calculation formula according to the first evaluation value and the second evaluation value; M=m1*e1+m2*e2; Among them, M is the feasibility evaluation value, m1 is the first evaluation value, e1 is the weight coefficient corresponding to the first evaluation value, m2 is the second evaluation value, and , n is the number of ideal visualization component nodes whose ideal node complexity is greater than the complexity threshold, ui is the i-th complexity difference, ri is the weight coefficient of the ideal visualization component node corresponding to the i-th complexity difference, e2 is the weight coefficient of the second evaluation value, and e1+e2=1.
8. The fuel contract price visual editing system according to claim 7, characterized in that: Determine whether to modify the current ideal calculation formula according to the credibility evaluation value, including: Presetting a first credibility evaluation threshold and a second credibility evaluation threshold; When the credibility evaluation value is less than the first credibility evaluation threshold, the current ideal calculation formula is replaced, the calculation formula is re-edited and a new ideal calculation formula is generated; When the credibility evaluation value is between the first credibility evaluation threshold and the second credibility evaluation threshold, the ideal visualization component node whose ideal node complexity in the current ideal calculation formula is greater than the complexity threshold is corrected; When the credibility evaluation value is greater than the second credibility evaluation threshold, the current ideal calculation formula is not corrected.
9. A method for visually editing fuel contract prices, characterized in that: include: Construct a visualization component for the contract price calculation formula. The user filters the visualization components and moves the filtered visualization components to the formula editing area to generate a calculation formula. The user edits the calculation formula, monitors the editing process, provides error correction prompts for the editing process based on the monitoring results, modifies the edited calculation formula according to the prompts, and generates an ideal calculation formula; The ideal calculation formula is parsed to obtain the formula parsing information of the current ideal calculation formula, a feasibility evaluation value of the ideal calculation formula is generated according to the formula parsing information, and whether the current ideal calculation formula should be corrected is determined according to the credibility evaluation value.