CN117593065A - Electric power market electricity fee settlement method, device and system - Google Patents

Electric power market electricity fee settlement method, device and system Download PDF

Info

Publication number
CN117593065A
CN117593065A CN202311628323.0A CN202311628323A CN117593065A CN 117593065 A CN117593065 A CN 117593065A CN 202311628323 A CN202311628323 A CN 202311628323A CN 117593065 A CN117593065 A CN 117593065A
Authority
CN
China
Prior art keywords
settlement
rule
scene
electric charge
rule expression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311628323.0A
Other languages
Chinese (zh)
Inventor
马静
张容福
张广德
王娟
赵云鹏
马燕
刘鹤
杨凡
王钰琳
张永杰
李晓艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Qinghai Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Qinghai Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Qinghai Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Qinghai Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Qinghai Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Qinghai Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202311628323.0A priority Critical patent/CN117593065A/en
Publication of CN117593065A publication Critical patent/CN117593065A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The application provides a method and a device for settling electric charge in an electric power market and an electric charge settlement system, wherein the method comprises the following steps: establishing a settlement rule expression corresponding to a plurality of historical settlement scenes, wherein the settlement rule expression is used for calculating the clear score of the electric charge under the historical settlement scenes; constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node; generating a settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is a settlement scene different from the historical settlement scene; and adopting a settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge under the new settlement scene to obtain the settlement expense, and solving the problem of low settlement efficiency of the new settlement scene of the electric power market in the prior art.

Description

Electric power market electricity fee settlement method, device and system
Technical Field
The invention relates to the field of electric power market transaction, in particular to an electric power market electric charge settlement method, an electric power market electric charge settlement device, a computer readable storage medium and an electric charge settlement system.
Background
Along with the continuous deep advancement of electric power system reforms, the trend of the cooperative development of diversification and full networking appears in the electric power market structure, the electric power market frame is gradually clear, the development of the electric power market shows the continuous and strong trend, and a plurality of market main bodies such as power grid companies, power generation enterprises, electricity selling companies, power load aggregators, electric power users and the like strive for entering, so that the power-assisted electric power market is continuously advanced. In the future, the market trading mechanism is continuously enhanced, the trading type and the trading variety of the electric power market are gradually complicated, the electric power enterprise needs to strengthen the trade settlement management, improve the electric power settlement efficiency and establish a sound electric power trade electric charge settlement mechanism.
The electric charge settlement at the network side of the power grid enterprise is jointly participated by a plurality of business departments, and relates to a power transaction center, a power dispatching department, a power marketing department, a financial, transaction, marketing and other systems to interact in real time, so that the system is a complex system engineering. With the continuous expansion of the electric power trade scale, the electric charge settlement faces the increasingly outstanding contradiction in management aspects such as settlement accuracy, timeliness and the like, so as to adapt to the construction requirements of the electric power market, maintain legal rights and social public interests of various market subjects of the electric power market, and urgently need to research new technical means, meet the rapid clearing calculation of electric charges such as contract electric charges, spot electric charges, auxiliary services and the like, realize the electric charge settlement of various market subjects, and provide safe, rapid and efficient electric charge clearing settlement services for the electric power market subjects so as to ensure that each subject participating in the electric power market trade can acquire funds rapidly and timely.
At present, the electric power market electric power settlement business has the following problems in actual work that the electric power market trade electric charge settlement is rapidly calculated: the data are scattered, the data transmission is not timely, the data checking and the settlement data transmission are not timely in the electric charge settlement business, different professional data are scattered, the settlement business cannot be finely managed, and a unified, safe and efficient settlement support platform is lacked.
Disclosure of Invention
The main objective of the present application is to provide a method, an apparatus, a computer readable storage medium and a system for settling electric charges in an electric power market, so as to at least solve the problem of low settlement efficiency in a new settlement scenario in the electric power market in the prior art.
In order to achieve the above object, according to one aspect of the present application, there is provided an electricity market electricity fee settlement method including: establishing a settlement rule expression corresponding to a plurality of historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, belonging settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculating units, calculating time and calculating periods, the settlement rule expression is used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression; constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node; generating a settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene; and adopting the settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge in the new settlement scene to obtain settlement charge.
Optionally, generating the settlement rule expression of the new settlement scene according to the rule component tree includes: selecting a plurality of target settlement rule expressions from the rule component tree, wherein the target settlement rule expressions are the settlement rule expressions corresponding to the historical settlement scenes with the same definition content in the new settlement scene; arranging a plurality of target settlement rule expressions according to the dependency relationship of the corresponding nodes to form at least one settlement rule expression to be selected; and manually writing according to the to-be-selected settlement rule expression to obtain the settlement rule expression of the new settlement scene.
Optionally, establishing settlement rule expressions corresponding to a plurality of historical settlement scenes includes: acquiring basic data and transaction data of a power transaction system, wherein the basic data comprises life cycle data of a settlement subject, and the life cycle data comprises data of registration, change, cancellation and return of the settlement subject;
determining a plurality of historical settlement scenarios according to the basic data and the transaction data; determining the price of the electric charge of the corresponding electric charge type according to the historical settlement scene, wherein the electric charge type comprises electric charge of an electric energy market and electric charge of auxiliary service; and establishing the settlement rule expressions of the electric charge types corresponding to the historical settlement scenes according to the electric charge prices to obtain a plurality of settlement rule expressions corresponding to the historical settlement scenes.
Optionally, the electric energy market electric charge includes a contract market electric charge and a spot market electric charge, the contract market electric charge is an electric charge generated in a contract specified time, the spot market electric charge is an electric charge generated in a settlement period without contract, the settlement rule expression of the new settlement scene is adopted to calculate the electric charge in the new settlement scene, and the settlement cost is obtained, including: acquiring a first settlement rule expression and a second settlement rule expression, wherein the first settlement rule expression is the settlement rule expression corresponding to the contract market electricity fee under the new settlement scene, and the second settlement rule expression is the settlement rule expression corresponding to the spot market electricity fee under the new settlement scene; and adopting the first settlement rule expression to carry out clear settlement on the contract market electric charge to obtain first settlement expense, and adopting the second settlement rule expression to carry out clear settlement on the spot market electric charge to obtain second settlement expense.
Optionally, the clearing calculation is performed on the electric charge under the new settlement scene by adopting the settlement rule expression of the new settlement scene to obtain settlement cost, which comprises the following steps: acquiring a third settlement rule expression and a fourth settlement rule expression, wherein the third settlement rule expression is the settlement rule expression for carrying out electric charge settlement on the auxiliary service electric charge in the new settlement scene, and the fourth settlement rule expression is the settlement rule expression for carrying out auxiliary service income settlement on the auxiliary service electric charge in the new settlement scene; clearing and settling the auxiliary service electric charge by adopting the third settlement rule expression to obtain auxiliary service electric charge settlement expense, and clearing and settling the auxiliary service benefit by adopting the fourth settlement rule expression to obtain auxiliary service benefit expense; and calculating the sum of the electric charge settlement expense of the auxiliary service and the income expense of the auxiliary service to obtain a third settlement expense.
Optionally, acquiring the base data and transaction data of the power transaction system includes: establishing a logic basis table, so that fields of the logic basis table are associated with the transaction data; and acquiring the basic data and extracting the transaction data from a database of the electric power transaction system through the logic basis table.
Optionally, after the clearing calculation is performed on the electric charge under the new settlement scene by adopting the settlement rule expression of the new settlement scene, the method further comprises: generating a bill of the new settlement scene according to the settlement fees, and sending the bill to the settlement subject of the new settlement scene; under the condition that the bill is in dispute, the electric charge in the new settlement scene is subjected to clearing calculation again, and updated settlement fees are obtained; and calculating the difference between the updated settlement expense and the settlement expense to carry out compensation settlement under the condition that the updated settlement expense is different from the settlement expense.
According to another aspect of the present application, there is provided an electricity market electricity fee settlement apparatus including: the first establishing unit is used for establishing a settlement rule expression corresponding to a plurality of historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, affiliated settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expression is used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression; a second building unit, configured to build a rule component tree according to a plurality of settlement rule expressions, where the rule component tree includes a plurality of nodes, one node includes at least one settlement rule expression, and an output of the settlement rule expression of a parent node in the nodes is an input of the settlement rule expression of a child node; a generation unit, configured to generate, according to the rule component tree, the settlement rule expression of a new settlement scene, where the new settlement scene is the settlement scene different from the historical settlement scene; and the first calculation unit is used for adopting the settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge in the new settlement scene so as to obtain the settlement charge.
According to still another aspect of the present application, there is provided a computer readable storage medium, where the computer readable storage medium includes a stored program, and when the program runs, controls a device in which the computer readable storage medium is located to perform any one of the methods.
According to still another aspect of the present application, there is provided an electric charge settlement system including: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods.
In the technical scheme of the application, in the electric charge settlement method of the electric market, firstly, setting up settlement rule expressions corresponding to a plurality of historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, belonging settlement schemes, settlement main bodies, charge calculation units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on electric charges in the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression; then, constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node; then, generating the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene; and finally, adopting the settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge in the new settlement scene to obtain the settlement charge. According to the method, the rule component tree is constructed through the settlement rule expression corresponding to the historical settlement scene, namely, the settlement rule expression of the new settlement scene can be flexibly adjusted by the rule component tree, settlement can be rapidly carried out, the settlement rule expression of the new settlement scene is not required to be rewritten, and the problem of low settlement efficiency of the new settlement scene in the electric power market in the prior art is solved.
Drawings
Fig. 1 illustrates a hardware block diagram of a mobile terminal performing an electricity market electricity fee settlement method according to an embodiment of the present application;
fig. 2 shows a flow chart of a method for settling electric charges in an electric power market according to an embodiment of the present application;
fig. 3 shows a block diagram of a power market electricity fee settlement apparatus provided according to an embodiment of the present application;
fig. 4 shows a block diagram of a power market electricity fee settlement system provided according to an embodiment of the present application.
Wherein the above figures include the following reference numerals:
102. a processor; 104. a memory; 106. a transmission device; 108. and an input/output device.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in order to solve the problem of low settlement efficiency of a new settlement scenario in the electric power market in the prior art, embodiments of the present application provide an electric power market electric charge settlement method, apparatus, computer readable storage medium, and electric charge settlement system.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a method for settling electric charges in an electric power market according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a display method of device information in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-described method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In the present embodiment, there is provided a power market electricity fee settlement method operating on a mobile terminal, a computer terminal, or a similar computing device, it is to be noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that herein.
Fig. 2 is a flowchart of an electricity market electricity fee settlement method according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S201, establishing a plurality of settlement rule expressions corresponding to historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, affiliated settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression;
specifically, the settlement rules are mainly used to describe the purpose and application scenario of the rules. Defining a settlement main body, a fee calculating unit, a settlement variety, a settlement item, a rule name, an association rule scheme, a calculation unit, calculation time, calculation period and the like; the method comprises the steps of creating a settlement rule by using a wizard mode, firstly creating the settlement rule, and secondly creating a rule expression, wherein the settlement rule has at least one piece of expression information.
Step S202, constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node;
specifically, the expression editor is managed, and the expression editor is composed of a settlement rule tree, a rule component tree, and an expression editor.
Step S203, generating the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene;
specifically, the rule component tree is composed of a settlement scheme tree, and the child nodes mount settlement rules; a node retrieval function is provided. An important premise for realizing the editable expression of the rule component tree is that a user can quickly select components required by rule calculation from abundant data types in the system. The components may be raw input data, maintained intermediate calculation data, or other existing settlement rules (both of which cannot produce a closed loop). The system provides a drag mode selection, and can simply maintain the added components. The above component management maintains the rule components in the selection, such as: component encoding is changed, the arrangement order is adjusted, and the type of the components, the source of the components, whether to output, quote or delete and the like are checked. The rule component is divided into two types, a data component, which is a variable that participates in the rule calculation, and a condition component, which is a conditional basis for reading the data component. In mid-to-long term market settlement, the main function is to associate virtual tables configured among logical basis models with settlement models.
And S204, adopting the settlement rule expression of the new settlement scene to calculate the clear score of the electric charge in the new settlement scene, and obtaining the settlement charge.
Specifically, the daily clearing management of the unit calculates clearing of the electric quantity and the electric charge of the unit according to the time-sharing data of the unit transaction of the spot market and the clearing rule, generates daily clearing settlement result data, and the settlement result comprises the electric quantity, the electric price and the electric charge of each electric energy transaction minimum price period (15 minutes or hours) on the data granularity.
In the electricity market electricity fee settlement method, firstly, a plurality of settlement rule expressions corresponding to historical settlement scenes are established, wherein the historical settlement scenes are settlement scenes with defined names, belonging settlement schemes, settlement main bodies, fee calculation units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on electricity fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression; then, constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node; then, generating the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene; and finally, adopting the settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge in the new settlement scene to obtain the settlement charge. According to the method, the rule component tree is constructed through the settlement rule expression corresponding to the historical settlement scene, namely, the settlement rule expression of the new settlement scene can be flexibly adjusted by the rule component tree, settlement can be rapidly carried out, the settlement rule expression of the new settlement scene is not required to be rewritten, and the problem of low settlement efficiency of the new settlement scene in the electric power market in the prior art is solved.
In order to facilitate settlement of the new settlement scenario, in an alternative embodiment, the step S203 includes:
step S2031, selecting a plurality of target settlement rule expressions from the rule component tree, where the target settlement rule is the settlement rule expression corresponding to the historical settlement scene in which the new settlement scene has the same definition content;
step S2032, arranging a plurality of target settlement rule expressions according to the dependency relationship of the corresponding nodes to form at least one settlement rule expression to be selected;
step S2033, writing manually according to the settlement rule expression to be selected, to obtain the settlement rule expression of the new settlement scene.
In the above embodiment, the above expression editor supports four operators common in expressions, conventional mathematical expression symbols, various common mathematical functions, logic functions, formatting functions and aggregation functions, and template functions for handling special services. (1) logic function: support if, AND, NOR common logic operations; (2) formatting the function: for control of data accuracy and conversion of data formats, such as date conversion to '2018, 04 month', '90%', etc.; (3) an aggregation function: the common 5 kinds of aggregation operation count/max/min/avg/sum, and other mathematical kinds of aggregation operation including integral operation, variance, standard deviation and the like. (4) template function: the method comprises the steps of adding components, judging a non-zero unit, reading different electricity prices and the like; expression editing: through flexible interface interaction, the editing and the checking of the expression by the user are realized. The interactive content comprises: (1) The user selects an index item from the settlement rule tree and the rule component tree; (2) Rearranging in component management, and can be cited and deleted; (3) The editing of the expression is manual key generation and manual writing, and supports validity verification. Considering that the editing of an expression should conform to the basic rules of a mathematical expression, the pre-save system automatically performs a check on the legitimacy of the expression and generates the mathematical expression.
In order to generalize the settlement rules, in an alternative embodiment, the step S201 includes:
step S2011, obtaining basic data and transaction data of a power transaction system, wherein the basic data comprises life cycle data of the settlement subject, and the life cycle data comprises data of registration, change, cancellation and market return of the settlement subject;
step S2012, determining a plurality of historical settlement scenes according to the basic data and the transaction data;
step S2013, determining the price of the electric charge of the corresponding electric charge type according to the historical settlement scene, wherein the electric charge type comprises electric charge of an electric energy market and electric charge of auxiliary service;
and step S2014, establishing the settlement rule expressions of the electric charge types corresponding to the historical settlement scenes according to the electric charge prices to obtain a plurality of settlement rule expressions corresponding to the historical settlement scenes.
In the above embodiment, the basic data management is used for unifying the activities of the market members in the electric power market settlement system, including the power generation enterprises, the power grid companies, the electricity selling companies, the electric power users, and the like, and the life cycle of each market member such as registration, change, logout, and market return. The transaction data management comprises a medium-and-long-term transaction decomposition curve, and a medium-and-long-term contract decomposition settlement curve taking a unit, an electricity selling company and a power user as units is acquired. The method comprises the steps of generating a graph of each unit name, power plant name or electricity selling company name, power user name, decomposed time settlement power, settlement electric quantity and contract electricity price. The intra-provincial day-ahead market trading curve acquires a curve graph containing main names of day-ahead spot market units, electricity selling companies and power users participating in declaration, time declaration power/electric quantity, time point clearing power/electric quantity, settlement power/electric quantity, declaration power price and unified clearing power price (node power price/partition power price). The transaction data management also comprises an intra-provincial real-time market transaction curve, an intra-provincial daily market settlement curve, an intra-provincial real-time market settlement curve, a unit actual processing curve and a unit actual internet metering curve. And in the process of settlement management, the electric quantity and the electric charge are settled according to different settlement types at the power plant internet surfing side according to the settlement rules configured by the system and logic basis data acquired by a settlement model. And bill management, namely selecting and configuring bill templates according to different settlement varieties corresponding to the type of the release object by taking the release object of the bill as a main dimension, matching the bill templates according to the release object, and importing settlement data into the corresponding bill templates to generate corresponding settlement bills.
In order to achieve the classified settlement, in an alternative embodiment, the electric energy market electric charge includes a contract market electric charge and a spot market electric charge, the contract market electric charge is an electric charge generated by a contract for a predetermined time period, the spot market electric charge is an electric charge generated by a settlement period without contract, and the step S204 includes:
step S2041, obtaining a first settlement rule expression and a second settlement rule expression, wherein the first settlement rule expression is the settlement rule expression corresponding to the contract market electricity fee in the new settlement scene, and the second settlement rule expression is the settlement rule expression corresponding to the spot market electricity fee in the new settlement scene;
and step S2042, wherein the contract market electric charge is cleared and settled by adopting the first settlement rule expression to obtain a first settlement charge, and the spot market electric charge is cleared and settled by adopting the second settlement rule expression to obtain a second settlement charge.
In the above embodiment, contract market settlement: and clearing the electric quantity of the middle-and-long-term contract part in the spot mode, and settling the electric charge according to the corresponding contract agreement electricity price. Comprises two parts of inter-provincial medium-long term contract transaction and intra-provincial medium-long term contract transaction. The medium-and-long-term contract time-sharing curve, the contract daily electric quantity and the contract electric price provided to the unit by the scheduling or transaction system are subjected to fee clearing. Spot market settlement: and clearing the daily, daily and real-time settlement electric quantity of the spot part according to the spot market mode, transaction variety and reporting mode which are clear by spot rules, and clearing the electric charge settlement of the spot market according to the daily, daily and real-time unified clear electric price.
In order to implement special settlement, in an alternative embodiment, the step S204 further includes:
step S2043, obtaining a third settlement rule expression and a fourth settlement rule expression, wherein the third settlement rule expression is the settlement rule expression for performing electric charge settlement on the auxiliary service electric charge in the new settlement scene, and the fourth settlement rule expression is the settlement rule expression for performing auxiliary service income settlement on the auxiliary service electric charge in the new settlement scene;
step S2044, adopting the third settlement rule expression to clear and settle the auxiliary service electric charge to obtain auxiliary service electric charge settlement expense, and adopting the fourth settlement rule expression to clear and settle auxiliary service income to obtain auxiliary service income expense;
step S2045, calculating the sum of the auxiliary service electric charge settlement expense and the auxiliary service income expense to obtain a third settlement expense.
In the above embodiment, the auxiliary service settlement result is calculated according to the auxiliary service settlement rule based on the auxiliary service time-out data. And the settlement electric quantity, the electricity price and the income electricity fee of the auxiliary service, which are calculated by the dispatching system, corresponding to the auxiliary service can be received for settlement. The settlement model will automatically follow the specified settlement period (day clear month end) in a manner to schedule tasks. The function is mainly to inquire the calculated result.
In addition, monthly settlement management is carried out, unit settlement basis data in a settlement month period are extracted according to months, data of other monthly settlement components of the power plant are summarized by taking the power plant as a caliber, and monthly settlement is carried out on power plant fees. And completing bill generation of the settlement month within a specified time after the expiration date of the month, and taking the bill generation as a settlement certificate of the payment or the charge of the fee. And (3) managing the settlement bill, wherein the bill release object is taken as a main dimension, the configuration bill templates are selected and configured according to different settlement varieties corresponding to the release object types, after the bill templates are configured and started, the system matches the bill templates according to the release object after the settlement calculation is completed, and the settlement data are imported into the corresponding bill templates to generate corresponding settlement bills.
In order to facilitate integrating the data, in an alternative embodiment, step S2011 includes:
step S20111, a logic basis table is established, so that the fields of the logic basis table are associated with the transaction data;
step S20112, the basic data are obtained, and the transaction data are extracted from the database of the electric power transaction system through the logic basis table.
In the above embodiment, when the transaction data acquired from the transaction system is configured according to the virtual table and the field in the logical basis model, data extraction is required to be performed once according to the configured rule of the data to form the logical data, and the extracted logical basis data is displayed in the logical basis card. The logical basis is similar to a custom table, a physical table can be selected for corresponding, and conditions are set to correlate and filter the physical table to obtain data needed by calculation. The logical basis is synchronized into the data set in the settlement model for use in subsequent calculations. The logical data is a field in a custom logical basis, which can select a physical field in a physical table to correspond to, and set a condition to screen out required data. The logical data is synchronized into data items in the settlement model for use in subsequent calculations. The function of the logic basis card is to summarize and display the configured logic basis on the logic basis model query interface, all the configured logic basis can be queried only by setting the logic basis display, and the card can be displayed under the corresponding settlement main body and logic container.
In order to compensate for the settlement error, in an alternative embodiment, after performing clear calculation on the electric charge in the new settlement scene by using the settlement rule expression of the new settlement scene, the method further includes:
step S301, generating a bill of the new settlement scene according to the settlement expense, and sending the bill to the settlement subject of the new settlement scene;
step S302, under the condition that the bill is in dispute, the electric charge in the new settlement scene is subjected to clearing calculation again to obtain updated settlement charge;
step S303, when the updated settlement expense is different from the settlement expense, calculating the difference between the updated settlement expense and the settlement expense to carry out compensation settlement.
In the above embodiment, after the dispute is processed and the bill for settling the electric charge is issued, the market member receives the check bill, and can submit the objection to the objection part, and support the function of adding the accessory such as the related certificate. For settlement with disputes, the transaction company will conduct dispute handling and replying. The member's disputed amount is added in the refund clearing to the next settlement period. The compensation settlement module is used for re-settling the historical month after settlement. In general, when the historical month electric quantity adjustment and the internet surfing electric quantity adjustment occur, the historical month needs to be re-settled, the settlement rules still adopt the historical month rules, the result generated during re-settlement does not influence the completed result of the historical month, the re-settled result is compared with the settled result of the historical month, and the deviation is used for carrying out independent settlement payment. And for the settlement bill without disputes, issuing the settlement bill to a financial management and control fund settlement system to form an electricity purchase fee settlement notice through bill issuing, and completing subsequent fund payment processing.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides an electric power market electric charge settlement device, and it is to be noted that the electric power market electric charge settlement device of the embodiment of the application can be used for executing the electric power market electric charge settlement method provided by the embodiment of the application. The device is used for realizing the above embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The following describes an electricity market electricity fee settlement device provided in the embodiment of the present application.
Fig. 3 is a block diagram of a power market electricity fee settlement apparatus according to an embodiment of the present application. As shown in fig. 3, the apparatus includes:
A first establishing unit 10, configured to establish a settlement rule expression corresponding to a plurality of historical settlement scenarios, where the historical settlement scenarios are settlement scenarios that define names, belonging settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculating units, calculating time and calculating periods, and the settlement rule expression is used for performing clearing calculation on electric fee under the historical settlement scenarios, and one historical settlement scenario corresponds to at least one settlement rule expression;
specifically, the settlement rules are mainly used to describe the purpose and application scenario of the rules. Defining a settlement main body, a fee calculating unit, a settlement variety, a settlement item, a rule name, an association rule scheme, a calculation unit, calculation time, calculation period and the like; the method comprises the steps of creating a settlement rule by using a wizard mode, firstly creating the settlement rule, and secondly creating a rule expression, wherein the settlement rule has at least one piece of expression information.
A second establishing unit 20 for constructing a rule component tree according to a plurality of the settlement rule expressions, the rule component tree including a plurality of nodes, one node including at least one settlement rule expression, an output of the settlement rule expression of a parent node among the nodes being an input of the settlement rule expression of a child node;
Specifically, the expression editor is managed, and the expression editor is composed of a settlement rule tree, a rule component tree, and an expression editor.
A generation unit 30 for generating the settlement rule expression of a new settlement scene based on the rule component tree, the new settlement scene being the settlement scene different from the history settlement scene;
specifically, the rule component tree is composed of a settlement scheme tree, and the child nodes mount settlement rules; a node retrieval function is provided. An important premise for realizing the editable expression of the rule component tree is that a user can quickly select components required by rule calculation from abundant data types in the system. The components may be raw input data, maintained intermediate calculation data, or other existing settlement rules (both of which cannot produce a closed loop). The system provides a drag mode selection, and can simply maintain the added components. The above component management maintains the rule components in the selection, such as: component encoding is changed, the arrangement order is adjusted, and the type of the components, the source of the components, whether to output, quote or delete and the like are checked. The rule component is divided into two types, a data component, which is a variable that participates in the rule calculation, and a condition component, which is a conditional basis for reading the data component. In mid-to-long term market settlement, the main function is to associate virtual tables configured among logical basis models with settlement models.
And a first calculating unit 40, configured to calculate the electric charge in the new settlement scene by using the settlement rule expression of the new settlement scene, so as to obtain a settlement fee.
Specifically, the daily clearing management of the unit calculates clearing of the electric quantity and the electric charge of the unit according to the time-sharing data of the unit transaction of the spot market and the clearing rule, generates daily clearing settlement result data, and the settlement result comprises the electric quantity, the electric price and the electric charge of each electric energy transaction minimum price period (15 minutes or hours) on the data granularity.
In the electricity market electricity fee settlement device, a first establishing unit establishes settlement rule expressions corresponding to a plurality of historical settlement scenes, wherein the historical settlement scenes are settlement scenes with defined names, belonging settlement schemes, settlement main bodies, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on electricity fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression; a second building unit builds a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node; the generation unit generates the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene; the first calculating unit adopts the settlement rule expression of the new settlement scene to calculate the clear electric charge under the new settlement scene, so as to obtain the settlement expense. The device constructs the rule component tree through the settlement rule expression corresponding to the historical settlement scene, namely the rule component tree can be flexibly adjusted to obtain the settlement rule expression of the new settlement scene, settlement can be rapidly carried out, the settlement rule expression of the new settlement scene is not required to be rewritten, and the problem of low settlement efficiency of the new settlement scene in the electric power market in the prior art is solved.
In order to facilitate settlement of a new settlement scenario, in an alternative embodiment, the generating unit includes:
a first processing module, configured to select a plurality of target settlement rule expressions from the rule component tree, where the target settlement rule expressions are the settlement rule expressions corresponding to the historical settlement scenes where the new settlement scenes have the same definition content;
the second processing module is used for arranging a plurality of target settlement rule expressions according to the dependency relationship of the corresponding nodes to form at least one settlement rule expression to be selected;
and the third processing module is used for manually writing according to the settlement rule expression to be selected to obtain the settlement rule expression of the new settlement scene.
In the above embodiment, the above expression editor supports four operators common in expressions, conventional mathematical expression symbols, various common mathematical functions, logic functions, formatting functions and aggregation functions, and template functions for handling special services. (1) logic function: support if, AND, NOR common logic operations; (2) formatting the function: for control of data accuracy and conversion of data formats, such as date conversion to '2018, 04 month', '90%', etc.; (3) an aggregation function: the common 5 kinds of aggregation operation count/max/min/avg/sum, and other mathematical kinds of aggregation operation including integral operation, variance, standard deviation and the like. (4) template function: the method comprises the steps of adding components, judging a non-zero unit, reading different electricity prices and the like; expression editing: through flexible interface interaction, the editing and the checking of the expression by the user are realized. The interactive content comprises: (1) The user selects an index item from the settlement rule tree and the rule component tree; (2) Rearranging in component management, and can be cited and deleted; (3) The editing of the expression is manual key generation and manual writing, and supports validity verification. Considering that the editing of an expression should conform to the basic rules of a mathematical expression, the pre-save system automatically performs a check on the legitimacy of the expression and generates the mathematical expression.
In order to generalize the settlement rules, in an alternative embodiment, the first establishing unit includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring basic data and transaction data of a power transaction system, the basic data comprise life cycle data of the settlement main body, and the life cycle data comprise data of registration, change, cancellation and market return of the settlement main body;
the first determining module is used for determining a plurality of historical settlement scenes according to the basic data and the transaction data;
the second determining module is used for determining the electric charge price of the corresponding electric charge type according to the historical settlement scene, wherein the electric charge type comprises electric energy market electric charge and auxiliary service electric charge;
and the establishing module is used for establishing the settlement rule expressions of the electric charge types corresponding to the historical settlement scenes according to the electric charge prices to obtain a plurality of settlement rule expressions corresponding to the historical settlement scenes.
In the above embodiment, the basic data management is used for unifying the activities of the market members in the electric power market settlement system, including the power generation enterprises, the power grid companies, the electricity selling companies, the electric power users, and the like, and the life cycle of each market member such as registration, change, logout, and market return. The transaction data management comprises a medium-and-long-term transaction decomposition curve, and a medium-and-long-term contract decomposition settlement curve taking a unit, an electricity selling company and a power user as units is acquired. The method comprises the steps of generating a graph of each unit name, power plant name or electricity selling company name, power user name, decomposed time settlement power, settlement electric quantity and contract electricity price. The intra-provincial day-ahead market trading curve acquires a curve graph containing main names of day-ahead spot market units, electricity selling companies and power users participating in declaration, time declaration power/electric quantity, time point clearing power/electric quantity, settlement power/electric quantity, declaration power price and unified clearing power price (node power price/partition power price). The transaction data management also comprises an intra-provincial real-time market transaction curve, an intra-provincial daily market settlement curve, an intra-provincial real-time market settlement curve, a unit actual processing curve and a unit actual internet metering curve. And in the process of settlement management, the electric quantity and the electric charge are settled according to different settlement types at the power plant internet surfing side according to the settlement rules configured by the system and logic basis data acquired by a settlement model. And bill management, namely selecting and configuring bill templates according to different settlement varieties corresponding to the type of the release object by taking the release object of the bill as a main dimension, matching the bill templates according to the release object, and importing settlement data into the corresponding bill templates to generate corresponding settlement bills.
In order to achieve the classified settlement, in an alternative embodiment, the electric energy market electric charge includes a contract market electric charge and a spot market electric charge, the contract market electric charge is an electric charge generated by a contract for a predetermined time period, the spot market electric charge is an electric charge generated by a settlement period without contract, and the first calculating unit includes:
the second acquisition module is used for acquiring a first settlement rule expression and a second settlement rule expression, wherein the first settlement rule expression is the settlement rule expression corresponding to the contract market electricity fee in the new settlement scene, and the second settlement rule expression is the settlement rule expression corresponding to the spot market electricity fee in the new settlement scene;
the first calculation module is used for clearing and settling the contract market electric charge by adopting the first settlement rule expression to obtain first settlement charge, and clearing and settling the spot market electric charge by adopting the second settlement rule expression to obtain second settlement charge.
In the above embodiment, contract market settlement: and clearing the electric quantity of the middle-and-long-term contract part in the spot mode, and settling the electric charge according to the corresponding contract agreement electricity price. Comprises two parts of inter-provincial medium-long term contract transaction and intra-provincial medium-long term contract transaction. The medium-and-long-term contract time-sharing curve, the contract daily electric quantity and the contract electric price provided to the unit by the scheduling or transaction system are subjected to fee clearing. Spot market settlement: and clearing the daily, daily and real-time settlement electric quantity of the spot part according to the spot market mode, transaction variety and reporting mode which are clear by spot rules, and clearing the electric charge settlement of the spot market according to the daily, daily and real-time unified clear electric price.
In order to achieve special settlement, in an alternative embodiment, the first computing unit further includes:
the third obtaining module is configured to obtain a third settlement rule expression and a fourth settlement rule expression, where the third settlement rule expression is the settlement rule expression for performing electric charge settlement on the auxiliary service electric charge in the new settlement scenario, and the fourth settlement rule expression is the settlement rule expression for performing auxiliary service profit settlement on the auxiliary service electric charge in the new settlement scenario;
the second calculation module is used for clearing and settling the auxiliary service electric charge by adopting the third settlement rule expression to obtain auxiliary service electric charge settlement expense, and clearing and settling the auxiliary service income by adopting the fourth settlement rule expression to obtain auxiliary service income expense;
and the third calculation module is used for calculating the sum of the auxiliary service electricity charge settlement expense and the auxiliary service income expense to obtain a third settlement expense.
In the above embodiment, the auxiliary service settlement result is calculated according to the auxiliary service settlement rule based on the auxiliary service time-out data. And the settlement electric quantity, the electricity price and the income electricity fee of the auxiliary service, which are calculated by the dispatching system, corresponding to the auxiliary service can be received for settlement. The settlement model will automatically follow the specified settlement period (day clear month end) in a manner to schedule tasks. The function is mainly to inquire the calculated result.
In addition, monthly settlement management is carried out, unit settlement basis data in a settlement month period are extracted according to months, data of other monthly settlement components of the power plant are summarized by taking the power plant as a caliber, and monthly settlement is carried out on power plant fees. And completing bill generation of the settlement month within a specified time after the expiration date of the month, and taking the bill generation as a settlement certificate of the payment or the charge of the fee. And (3) managing the settlement bill, wherein the bill release object is taken as a main dimension, the configuration bill templates are selected and configured according to different settlement varieties corresponding to the release object types, after the bill templates are configured and started, the system matches the bill templates according to the release object after the settlement calculation is completed, and the settlement data are imported into the corresponding bill templates to generate corresponding settlement bills.
In order to facilitate integrating the data, in an alternative embodiment, the first obtaining module includes:
the establishing sub-module is used for establishing a logic basis table so that the fields of the logic basis table are associated with the transaction data;
and the acquisition sub-module is used for acquiring the basic data and extracting the transaction data from the database of the power transaction system through the logic basis table.
In the above embodiment, when the transaction data acquired from the transaction system is configured according to the virtual table and the field in the logical basis model, data extraction is required to be performed once according to the configured rule of the data to form the logical data, and the extracted logical basis data is displayed in the logical basis card. The logical basis is similar to a custom table, a physical table can be selected for corresponding, and conditions are set to correlate and filter the physical table to obtain data needed by calculation. The logical basis is synchronized into the data set in the settlement model for use in subsequent calculations. The logical data is a field in a custom logical basis, which can select a physical field in a physical table to correspond to, and set a condition to screen out required data. The logical data is synchronized into data items in the settlement model for use in subsequent calculations. The function of the logic basis card is to summarize and display the configured logic basis on the logic basis model query interface, all the configured logic basis can be queried only by setting the logic basis display, and the card can be displayed under the corresponding settlement main body and logic container.
In order to compensate for settlement errors, in an alternative embodiment, the apparatus further includes:
the processing unit is used for calculating the electric charge under the new settlement scene by adopting the settlement rule expression of the new settlement scene, generating a bill of the new settlement scene according to the settlement cost after obtaining the settlement cost, and sending the bill to the settlement subject of the new settlement scene;
the second calculation unit is used for carrying out clearing calculation on the electric charge under the new settlement scene again under the condition that the bill is in dispute so as to obtain updated settlement charge;
and a third calculation unit configured to calculate a difference between the updated settlement expense and the settlement expense and perform a refund settlement when the updated settlement expense and the settlement expense are different.
In the above embodiment, after the dispute is processed and the bill for settling the electric charge is issued, the market member receives the check bill, and can submit the objection to the objection part, and support the function of adding the accessory such as the related certificate. For settlement with disputes, the transaction company will conduct dispute handling and replying. The member's disputed amount is added in the refund clearing to the next settlement period. The compensation settlement module is used for re-settling the historical month after settlement. In general, when the historical month electric quantity adjustment and the internet surfing electric quantity adjustment occur, the historical month needs to be re-settled, the settlement rules still adopt the historical month rules, the result generated during re-settlement does not influence the completed result of the historical month, the re-settled result is compared with the settled result of the historical month, and the deviation is used for carrying out independent settlement payment. And for the settlement bill without disputes, issuing the settlement bill to a financial management and control fund settlement system to form an electricity purchase fee settlement notice through bill issuing, and completing subsequent fund payment processing.
The electric power market electricity fee settlement device comprises a processor and a memory, wherein the first establishing unit, the second establishing unit, the generating unit, the first calculating unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem of low settlement efficiency of a new settlement scene of the electric power market in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, which comprises a stored program, wherein the program is controlled to control equipment where the computer readable storage medium is located to execute the electricity market electricity fee settlement method.
Specifically, the electric power market electricity fee settlement method includes:
step S201, establishing a plurality of settlement rule expressions corresponding to historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, affiliated settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression;
specifically, the settlement rules are mainly used to describe the purpose and application scenario of the rules. Defining a settlement main body, a fee calculating unit, a settlement variety, a settlement item, a rule name, an association rule scheme, a calculation unit, calculation time, calculation period and the like; the method comprises the steps of creating a settlement rule by using a wizard mode, firstly creating the settlement rule, and secondly creating a rule expression, wherein the settlement rule has at least one piece of expression information.
Step S202, constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node;
Specifically, the expression editor is managed, and the expression editor is composed of a settlement rule tree, a rule component tree, and an expression editor.
Step S203, generating the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene;
specifically, the rule component tree is composed of a settlement scheme tree, and the child nodes mount settlement rules; a node retrieval function is provided. An important premise for realizing the editable expression of the rule component tree is that a user can quickly select components required by rule calculation from abundant data types in the system. The components may be raw input data, maintained intermediate calculation data, or other existing settlement rules (both of which cannot produce a closed loop). The system provides a drag mode selection, and can simply maintain the added components. The above component management maintains the rule components in the selection, such as: component encoding is changed, the arrangement order is adjusted, and the type of the components, the source of the components, whether to output, quote or delete and the like are checked. The rule component is divided into two types, a data component, which is a variable that participates in the rule calculation, and a condition component, which is a conditional basis for reading the data component. In mid-to-long term market settlement, the main function is to associate virtual tables configured among logical basis models with settlement models.
And S204, adopting the settlement rule expression of the new settlement scene to calculate the clear score of the electric charge in the new settlement scene, and obtaining the settlement charge.
Specifically, the daily clearing management of the unit calculates clearing of the electric quantity and the electric charge of the unit according to the time-sharing data of the unit transaction of the spot market and the clearing rule, generates daily clearing settlement result data, and the settlement result comprises the electric quantity, the electric price and the electric charge of each electric energy transaction minimum price period (15 minutes or hours) on the data granularity.
The embodiment of the invention provides a processor which is used for running a program, wherein the program runs to execute the electricity market electricity fee settlement method.
Specifically, the electric power market electricity fee settlement method includes:
step S201, establishing a plurality of settlement rule expressions corresponding to historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, affiliated settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression;
Specifically, the settlement rules are mainly used to describe the purpose and application scenario of the rules. Defining a settlement main body, a fee calculating unit, a settlement variety, a settlement item, a rule name, an association rule scheme, a calculation unit, calculation time, calculation period and the like; the method comprises the steps of creating a settlement rule by using a wizard mode, firstly creating the settlement rule, and secondly creating a rule expression, wherein the settlement rule has at least one piece of expression information.
Step S202, constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node;
specifically, the expression editor is managed, and the expression editor is composed of a settlement rule tree, a rule component tree, and an expression editor.
Step S203, generating the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene;
specifically, the rule component tree is composed of a settlement scheme tree, and the child nodes mount settlement rules; a node retrieval function is provided. An important premise for realizing the editable expression of the rule component tree is that a user can quickly select components required by rule calculation from abundant data types in the system. The components may be raw input data, maintained intermediate calculation data, or other existing settlement rules (both of which cannot produce a closed loop). The system provides a drag mode selection, and can simply maintain the added components. The above component management maintains the rule components in the selection, such as: component encoding is changed, the arrangement order is adjusted, and the type of the components, the source of the components, whether to output, quote or delete and the like are checked. The rule component is divided into two types, a data component, which is a variable that participates in the rule calculation, and a condition component, which is a conditional basis for reading the data component. In mid-to-long term market settlement, the main function is to associate virtual tables configured among logical basis models with settlement models.
And S204, adopting the settlement rule expression of the new settlement scene to calculate the clear score of the electric charge in the new settlement scene, and obtaining the settlement charge.
Specifically, the daily clearing management of the unit calculates clearing of the electric quantity and the electric charge of the unit according to the time-sharing data of the unit transaction of the spot market and the clearing rule, generates daily clearing settlement result data, and the settlement result comprises the electric quantity, the electric price and the electric charge of each electric energy transaction minimum price period (15 minutes or hours) on the data granularity.
The embodiment of the invention provides an electric charge settlement system, as shown in fig. 4, which comprises: transaction data management for receiving power transaction system transaction data. And the price management is used for executing settlement requirements of different types of prices for different power generation enterprises, and price maintenance is required according to the dimensions of the unit and the power generation enterprises. The basic data management is used for unifying the activities of market members in the electric power market settlement system, including power generation enterprises, power grid companies, electricity selling companies, electric power users and the like, and used for the life cycle of registration, change, logout, market return and the like of each market member. Price management, namely, maintenance of pole electricity price information of power plant Internet surfing, planning electricity service in a provincial level for a long time, and maintenance of a unit control electricity price scheme. And the settlement model management is used for carrying out association filtering on the physical table and taking out data required by calculation. The logical basis is synchronized into the data set in the settlement model for use in subsequent calculations. The settlement rule management is used for describing the purpose of the rule, namely, a business scene, and the name, the settlement scheme, the settlement subject, the fee calculating unit, the settlement variety, the settlement item, the calculating unit, the calculating time, the calculating period and the like are required to be defined. And in the process of settlement management, the electric quantity and the electric charge are settled according to different settlement types at the power plant internet surfing side according to the settlement rules configured by the system and logic basis data acquired by a settlement model. And bill management, namely selecting and configuring bill templates according to different settlement varieties corresponding to the type of the release object by taking the release object of the bill as a main dimension, matching the bill templates according to the release object, and importing settlement data into the corresponding bill templates to generate corresponding settlement bills.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device:
step S201, establishing a plurality of settlement rule expressions corresponding to historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, affiliated settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression;
specifically, the settlement rules are mainly used to describe the purpose and application scenario of the rules. Defining a settlement main body, a fee calculating unit, a settlement variety, a settlement item, a rule name, an association rule scheme, a calculation unit, calculation time, calculation period and the like; the method comprises the steps of creating a settlement rule by using a wizard mode, firstly creating the settlement rule, and secondly creating a rule expression, wherein the settlement rule has at least one piece of expression information.
Step S202, constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node;
Specifically, the expression editor is managed, and the expression editor is composed of a settlement rule tree, a rule component tree, and an expression editor.
Step S203, generating the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene;
specifically, the rule component tree is composed of a settlement scheme tree, and the child nodes mount settlement rules; a node retrieval function is provided. An important premise for realizing the editable expression of the rule component tree is that a user can quickly select components required by rule calculation from abundant data types in the system. The components may be raw input data, maintained intermediate calculation data, or other existing settlement rules (both of which cannot produce a closed loop). The system provides a drag mode selection, and can simply maintain the added components. The above component management maintains the rule components in the selection, such as: component encoding is changed, the arrangement order is adjusted, and the type of the components, the source of the components, whether to output, quote or delete and the like are checked. The rule component is divided into two types, a data component, which is a variable that participates in the rule calculation, and a condition component, which is a conditional basis for reading the data component. In mid-to-long term market settlement, the main function is to associate virtual tables configured among logical basis models with settlement models.
And S204, adopting the settlement rule expression of the new settlement scene to calculate the clear score of the electric charge in the new settlement scene, and obtaining the settlement charge.
Specifically, the daily clearing management of the unit calculates clearing of the electric quantity and the electric charge of the unit according to the time-sharing data of the unit transaction of the spot market and the clearing rule, generates daily clearing settlement result data, and the settlement result comprises the electric quantity, the electric price and the electric charge of each electric energy transaction minimum price period (15 minutes or hours) on the data granularity.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the electric power market electricity fee settlement method, firstly, a plurality of settlement rule expressions corresponding to historical settlement scenes are established, wherein the historical settlement scenes are settlement scenes with defined names, belonging settlement schemes, settlement main bodies, fee calculating units, settlement varieties, settlement items, calculating units, calculating time and calculating periods, the settlement rule expressions are used for carrying out clear calculation on the electricity fee under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression; then, constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node; then, generating the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene; and finally, adopting the settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge in the new settlement scene to obtain the settlement charge. According to the method, the rule component tree is constructed through the settlement rule expression corresponding to the historical settlement scene, namely, the settlement rule expression of the new settlement scene can be flexibly adjusted by the rule component tree, settlement can be rapidly carried out, the settlement rule expression of the new settlement scene is not required to be rewritten, and the problem of low settlement efficiency of the new settlement scene in the electric power market in the prior art is solved.
2) In the electric power market electricity fee settlement device, a first establishing unit establishes settlement rule expressions corresponding to a plurality of historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, belonging settlement schemes, settlement main bodies, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expressions are used for carrying out clear calculation on the electricity fee under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression; a second building unit builds a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node; the generation unit generates the settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene; the first calculating unit adopts the settlement rule expression of the new settlement scene to calculate the clear electric charge under the new settlement scene, so as to obtain the settlement expense. The device constructs the rule component tree through the settlement rule expression corresponding to the historical settlement scene, namely the rule component tree can be flexibly adjusted to obtain the settlement rule expression of the new settlement scene, settlement can be rapidly carried out, the settlement rule expression of the new settlement scene is not required to be rewritten, and the problem of low settlement efficiency of the new settlement scene in the electric power market in the prior art is solved.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for settling an electricity fee in an electricity market, comprising:
establishing a settlement rule expression corresponding to a plurality of historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, belonging settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculating units, calculating time and calculating periods, the settlement rule expression is used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression;
constructing a rule component tree according to a plurality of settlement rule expressions, wherein the rule component tree comprises a plurality of nodes, one node comprises at least one settlement rule expression, and the output of the settlement rule expression of a father node in the nodes is the input of the settlement rule expression of a child node;
Generating a settlement rule expression of a new settlement scene according to the rule component tree, wherein the new settlement scene is different from the historical settlement scene;
and adopting the settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge in the new settlement scene to obtain settlement charge.
2. The method of claim 1, wherein generating the settlement rule expression for a new settlement scene from the rule component tree comprises:
selecting a plurality of target settlement rule expressions from the rule component tree, wherein the target settlement rule expressions are the settlement rule expressions corresponding to the historical settlement scenes with the same definition content in the new settlement scene;
arranging a plurality of target settlement rule expressions according to the dependency relationship of the corresponding nodes to form at least one settlement rule expression to be selected;
and manually writing according to the to-be-selected settlement rule expression to obtain the settlement rule expression of the new settlement scene.
3. The method of claim 1, wherein establishing a settlement rule expression corresponding to a plurality of historical settlement scenarios comprises:
Acquiring basic data and transaction data of a power transaction system, wherein the basic data comprises life cycle data of a settlement subject, and the life cycle data comprises data of registration, change, cancellation and return of the settlement subject;
determining a plurality of historical settlement scenarios according to the basic data and the transaction data;
determining the price of the electric charge of the corresponding electric charge type according to the historical settlement scene, wherein the electric charge type comprises electric charge of an electric energy market and electric charge of auxiliary service;
and establishing the settlement rule expressions of the electric charge types corresponding to the historical settlement scenes according to the electric charge prices to obtain a plurality of settlement rule expressions corresponding to the historical settlement scenes.
4. The method of claim 3, wherein the electric energy market electric charge includes a contract market electric charge and a spot market electric charge, the contract market electric charge is an electric charge generated in a contract specified time period, the spot market electric charge is an electric charge generated in a settlement period without contract, and the calculating of the electric charge in the new settlement scene using the settlement rule expression of the new settlement scene to obtain a settlement charge includes:
Acquiring a first settlement rule expression and a second settlement rule expression, wherein the first settlement rule expression is the settlement rule expression corresponding to the contract market electricity fee under the new settlement scene, and the second settlement rule expression is the settlement rule expression corresponding to the spot market electricity fee under the new settlement scene;
and adopting the first settlement rule expression to carry out clear settlement on the contract market electric charge to obtain first settlement expense, and adopting the second settlement rule expression to carry out clear settlement on the spot market electric charge to obtain second settlement expense.
5. The method of claim 3, wherein calculating the power rate in the new settlement scene using the settlement rule expression of the new settlement scene to obtain a settlement cost comprises:
acquiring a third settlement rule expression and a fourth settlement rule expression, wherein the third settlement rule expression is the settlement rule expression for carrying out electric charge settlement on the auxiliary service electric charge in the new settlement scene, and the fourth settlement rule expression is the settlement rule expression for carrying out auxiliary service income settlement on the auxiliary service electric charge in the new settlement scene;
Clearing and settling the auxiliary service electric charge by adopting the third settlement rule expression to obtain auxiliary service electric charge settlement expense, and clearing and settling the auxiliary service benefit by adopting the fourth settlement rule expression to obtain auxiliary service benefit expense;
and calculating the sum of the electric charge settlement expense of the auxiliary service and the income expense of the auxiliary service to obtain a third settlement expense.
6. A method according to claim 3, wherein obtaining the base data and the transaction data of the power transaction system comprises:
establishing a logic basis table, so that fields of the logic basis table are associated with the transaction data;
and acquiring the basic data and extracting the transaction data from a database of the electric power transaction system through the logic basis table.
7. The method according to any one of claims 1 to 6, wherein after calculating the electric charge in the new settlement scene by clearing the electric charge using the settlement rule expression of the new settlement scene, the method further comprises:
generating a bill of the new settlement scene according to the settlement fees, and sending the bill to the settlement subject of the new settlement scene;
Under the condition that the bill is in dispute, the electric charge in the new settlement scene is subjected to clearing calculation again, and updated settlement fees are obtained;
and calculating the difference between the updated settlement expense and the settlement expense to carry out compensation settlement under the condition that the updated settlement expense is different from the settlement expense.
8. An electric power market electricity fee settlement device, characterized by comprising:
the first establishing unit is used for establishing a settlement rule expression corresponding to a plurality of historical settlement scenes, wherein the historical settlement scenes are settlement scenes of defined names, affiliated settlement schemes, settlement subjects, fee calculating units, settlement varieties, settlement items, calculation units, calculation time and calculation periods, the settlement rule expression is used for carrying out clear calculation on electric fees under the historical settlement scenes, and one historical settlement scene corresponds to at least one settlement rule expression;
a second building unit, configured to build a rule component tree according to a plurality of settlement rule expressions, where the rule component tree includes a plurality of nodes, one node includes at least one settlement rule expression, and an output of the settlement rule expression of a parent node in the nodes is an input of the settlement rule expression of a child node;
A generation unit, configured to generate, according to the rule component tree, the settlement rule expression of a new settlement scene, where the new settlement scene is the settlement scene different from the historical settlement scene;
and the first calculation unit is used for adopting the settlement rule expression of the new settlement scene to carry out clear calculation on the electric charge in the new settlement scene so as to obtain the settlement charge.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer readable storage medium is located to perform the method of any one of claims 1 to 7.
10. An electric charge settlement system, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-7.
CN202311628323.0A 2023-11-30 2023-11-30 Electric power market electricity fee settlement method, device and system Pending CN117593065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311628323.0A CN117593065A (en) 2023-11-30 2023-11-30 Electric power market electricity fee settlement method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311628323.0A CN117593065A (en) 2023-11-30 2023-11-30 Electric power market electricity fee settlement method, device and system

Publications (1)

Publication Number Publication Date
CN117593065A true CN117593065A (en) 2024-02-23

Family

ID=89914900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311628323.0A Pending CN117593065A (en) 2023-11-30 2023-11-30 Electric power market electricity fee settlement method, device and system

Country Status (1)

Country Link
CN (1) CN117593065A (en)

Similar Documents

Publication Publication Date Title
US20120239558A1 (en) Method and systems for efficiently processing large volumes of complex small value financial transactions
CN104408559A (en) Engineering information management system
CN112053152B (en) Distributed energy grid-connected authentication and transaction method based on green rights and interests consensus mechanism
CN103679373A (en) Full chain budget data processing system and method for production infrastructure standard cost system
CN111507686B (en) Automatic budget system and method for engineering design change
CN109951302A (en) A kind of cloud computing charge system and method based on the customized product of data dictionary
CN115330292A (en) Intelligent analysis method and system for enterprise purchasing
Afentoulis et al. Smart charging business model framework for electric vehicle aggregators
Goitia-Zabaleta et al. Two-stage centralised management of Local Energy Market for prosumers integration in a community-based P2P
US20140316964A1 (en) Systems and Methods for Tracking Greenhouse Gas Emissions
CN112258306B (en) Account information checking method, device, electronic equipment and storage medium
US20140229394A1 (en) Renewable energy credit management system and method
CN117593065A (en) Electric power market electricity fee settlement method, device and system
Homer et al. State Engagement in Electric Distribution System Planning
Botticelli et al. Challenges and opportunities of Blockchain technology in the energy sector
CN116342130A (en) Intelligent settlement service system for small amount of pre-charge electric charge
CN115760460A (en) Financial robot financial management system
CN104715421A (en) Method and device for processing electric charge data
Elliott et al. A Preliminary Assessment of Handprint Methodologies for Information and Communications Technology Grid Management Solutions. Washington, DC: American Council for an Energy-Efficient Economy
CN110349016A (en) Client's accrediting amount measuring method and system
CN116823145B (en) Internal simulation market management system, control method, platform and terminal
CN116825300B (en) Budget management system for hospital
Reif et al. Report on the Foundations for the adoptions of New Network Codes 1
Ulbricht et al. Rethinking energy data management: trends and challenges in today's transforming markets
CN114119077A (en) Power grid facility dynamic topology profit calculation method, system, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination