CN110889653A - Method and device for calculating energy consumption data statistics - Google Patents
Method and device for calculating energy consumption data statistics Download PDFInfo
- Publication number
- CN110889653A CN110889653A CN201811041489.1A CN201811041489A CN110889653A CN 110889653 A CN110889653 A CN 110889653A CN 201811041489 A CN201811041489 A CN 201811041489A CN 110889653 A CN110889653 A CN 110889653A
- Authority
- CN
- China
- Prior art keywords
- inventory
- energy consumption
- time
- outsourcing
- period
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/087—Inventory or stock management, e.g. order filling, procurement or balancing against orders
Landscapes
- Business, Economics & Management (AREA)
- Economics (AREA)
- Engineering & Computer Science (AREA)
- Marketing (AREA)
- Quality & Reliability (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Accounting & Taxation (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a method and a device for calculating energy consumption data statistics, wherein the method comprises the following steps: acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; the inventory statistics period is the time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period; determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory. The device performs the above method. The method and the device provided by the embodiment of the invention can improve the accuracy of calculating the energy consumption data statistics.
Description
Technical Field
The embodiment of the invention relates to the technical field of energy consumption data processing, in particular to a method and a device for calculating energy consumption data statistics.
Background
With the development of economic construction, energy consumption is indispensable, so how to improve the accuracy of energy consumption data statistics is very important.
The method for counting energy consumption data in the prior art is to calculate an energy consumption statistic corresponding to each period, and then add all the energy consumption statistics corresponding to all the periods included in the statistical period, so as to obtain the energy consumption data statistic in the statistical period, however, because each energy consumption statistic corresponding to each period is calculated based on an initial inventory and an end inventory, and the initial inventory and the end inventory are estimated by using an empirical measurement method, each energy consumption statistic corresponding to each period is inaccurate and has an error, so that the accumulated error of the energy consumption data obtained after the addition in the statistical period is larger and larger, and the energy consumption data statistic is more inaccurate.
Therefore, how to avoid the above-mentioned defects and improve the accuracy of calculating the energy consumption data statistics is a problem that needs to be solved urgently.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a device for calculating energy consumption data statistics.
In a first aspect, an embodiment of the present invention provides a method for calculating energy consumption data statistics, where the method includes:
acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period;
determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
In a second aspect, an embodiment of the present invention provides an apparatus for calculating energy consumption data statistics, where the apparatus includes:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a first statistical query time interval aiming at energy consumption data, and the first statistical query time interval comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period;
the calculating unit is used for determining the energy consumption outsourcing amount in the first statistical query time period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period;
determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform a method comprising:
acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period;
determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
The method and the device for calculating the energy consumption data statistics provided by the embodiment of the invention firstly determine the energy consumption outsourcing amount in a first statistical query time interval; and then, according to the energy consumption outsourcing amount, the target initial stage inventory and the target final stage inventory, calculating a first statistic of the energy consumption data in a first statistic query time period, and improving the accuracy of calculating the energy consumption data statistic.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a method for calculating energy consumption data statistics according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an apparatus for calculating energy consumption data statistics according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for calculating energy consumption data statistics according to an embodiment of the present invention, and as shown in fig. 1, the method for calculating energy consumption data statistics according to the embodiment of the present invention includes the following steps:
s101: acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period.
Specifically, a device acquires a first statistical query period for energy consumption data, wherein the first statistical query period comprises at least two inventory statistics cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period. The inventory statistics period may be counted according to day, week, month, etc., and is not particularly limited. Taking the inventory statistics period to be counted according to months as an example, the description is as follows: the first inventory counting period in 2017 is the time interval between 2017, 1 and 1 month and 2017, 1 and 31 months in the end inventory; the second inventory statistics period in 2017 is the time interval between 2017, 2 and 1 days in the initial inventory and 2017, 2 and 28 days in the final inventory; the third stock statistic period in 2017 is the time interval between 3 and 1 days in 2017 for the initial stock and 31 days in 2017 for 3 and 3 months for the end stock. The first statistical query period may be energy consumption data of the first quarter of 2017 (including three inventory statistics cycles), and the first specific time of the target initial inventory may be understood as the time of determining the initial inventory in the first inventory statistics cycle in the first statistical query period, where the first specific time is 1 month and 1 day of 2017 by referring to the above example; the second determined time of the target end-of-term inventory may be understood as the time of the third inventory statistic cycle determined end-of-term inventory within the first statistic query period, and with reference to the above example, the second determined time is 3 months and 31 days in 2017.
S102: determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
Specifically, the device determines the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory. Determining the energy consumption outsourcing amount in the first statistical query period may specifically be: determining the energy consumption amount of each outsourcing according to the first determined time and the second determined time; and accumulating the energy consumption amount of each outsourcing to determine the energy consumption outsourcing amount. If outsourcing is carried out once every month, referring to the above example, three outsourcing operations are carried out between 1/2017 and 3/31/2017, the energy consumption of the outsourcing operations are respectively T1, T2 and T3, and the accumulated energy consumption is obtained by accumulating T1, T2 and T3
Here, n is taken three times, k is taken from 1 to 3, it should be noted that if there is no outsourcing for these three months, n and k are both zero, and thus the cumulative energy consumption is also zero.
Further, the first statistic may be calculated according to the following formula:
wherein Y is the first statistical quantity, P is the target initial term inventory, E is the target end term inventory, T is the energy consumption per outsourcing, n is the total number of times of energy consumption per outsourcing, and k is a certain time of energy consumption per outsourcing. Referring to the above example, P is the initial inventory of 2017, month 1 and day 1, and E is the final inventory of 2017, month 3 and day 31, that is, in the calculation process of the first statistic in the embodiment of the present invention, only one initial inventory of 2017, month 1 and one final inventory of 2017, month 3 and day 31 are obtained through estimation, and the purchased energy consumption amount can be considered to be accurate, and the calculation result is accurate. In the method in the prior art, the initial inventory of Y1 is calculated as 1/2017 and the end inventory of T1-31/1/2017 is calculated; y2 is equal to the initial inventory of day 1 month 2 2017 + the end inventory of day 28 month 2T 2-2017; y3 is equal to the initial inventory of day 3 and month 1 in 2017 + the end inventory of day 3 and month 31 in T3-2017, and then by a calculation method of Y1+ Y2+ Y3, the initial inventory of day 1 and month 1 in 2017, the end inventory of day 31 in month 1 in 2017, the initial inventory of day 1 in month 2 in 2017, the end inventory of day 28 in month 2 in 2017, the initial inventory of day 1 in month 3 in 2017, and the end inventory of day 31 in month 3 in 2017 are all estimated, so the calculation accuracy is poor.
The method may further comprise:
acquiring a second statistical query period aiming at the energy consumption data; a second time end point of the second statistical query period is a deadline point of the statistical query of the energy consumption data; a second time starting point of the second statistical query period is a time point determined by a one-time statistical query result closest to the cutoff time point; wherein the statistical query result is the first statistical quantity; calculating the actual outsourcing amount between the second time end point and the second time starting point according to the accumulated outsourcing total amount of the second time end point and the accumulated outsourcing amount of the second time starting point; acquiring an inventory of the second time endpoint; and calculating a second statistic of the energy consumption data in the second statistical query time period according to the inventory, the actual outsourcing amount and the statistical query result. The deadline time may be a current time, or may be a preset time before the current time, and is not particularly limited. The cumulative total outsourcing amount and the cumulative outsourcing amount may further be determined as follows:
acquiring the earliest recording time of the energy consumption data; taking a first outsourcing energy consumption between the second time endpoint and the earliest recording time as the cumulative outsourcing total amount; and taking the second outsourcing energy consumption between the second time starting point and the earliest recording time as the accumulated outsourcing amount. The earliest recording time may be understood as the earliest recording time in the database storing the energy consumption data. The second statistic may be calculated according to the following formula: the second statistic is the statistical query result + the actual outsource amount-the inventory. With reference to the above examples, the following are specifically described:
if the current time point is 5/10: 00/00 in 2017, the time point determined by the latest statistical query result is 31/3 in 2017, and the latest statistical query result is the calculated Y. If the earliest recorded time of the energy consumption data is 2016, 1/year, 5/month, 2017, 10:00:00, and 1/month, 2016 for a cumulative total outsourcing of 100 tons of coal, and 3/month, 31/year, 2017, and 1/month, 2016 for a cumulative total outsourcing of 80 tons of coal, the actual outsourcing amount is 100 tons of coal-80 tons of coal-20 tons of coal. The second statistic Z is Y +20 tons coal-the inventory of 5/10: 00:00 in 2017, and the inventory of 10:00:00 in 5/2017 can also be obtained by an estimation method. Referring also to the above equation, 20 tons of coal are outsourced and therefore can be considered accurate; y is the result obtained in the embodiment and is also more accurate, and the method can further calculate the statistic of the energy consumption data at a specific time point finely and accurately.
The method for calculating the energy consumption data statistics comprises the steps of determining the energy consumption outsourcing amount in a first statistical query time period; and then, according to the energy consumption outsourcing amount, the target initial stage inventory and the target final stage inventory, calculating a first statistic of the energy consumption data in a first statistic query time period, and improving the accuracy of calculating the energy consumption data statistic.
On the basis of the foregoing embodiment, the determining the energy consumption outsourcing amount in the first statistical query period includes:
and determining the energy consumption amount of each outsourcing according to the first determined time and the second determined time.
Specifically, the device determines the energy consumption amount of each outsourcing according to the first determined time and the second determined time. Reference may be made to the above embodiments, which are not described in detail.
And accumulating the energy consumption amount of each outsourcing to determine the energy consumption outsourcing amount.
Specifically, the device accumulates the energy consumption per outsourcing to determine the energy consumption outsourcing amount. Reference may be made to the above embodiments, which are not described in detail.
The method for calculating the energy consumption data statistics provided by the embodiment of the invention can accurately and effectively determine the energy consumption outsourcing amount by accumulating the energy consumption amount of each outsourcing, and further ensure the normal operation of the method.
On the basis of the foregoing embodiment, the calculating a first statistical measure of the energy consumption data in the first statistical query period according to the energy consumption outsourcing amount, the target initial term inventory and the target end term inventory includes:
calculating the first statistic according to the following formula:
wherein Y is the first statistical quantity, P is the target initial term inventory, E is the target end term inventory, T is the energy consumption per outsourcing, n is the total number of times of energy consumption per outsourcing, and k is a certain time of energy consumption per outsourcing.
Specifically, the device calculates the first statistic according to the following formula:
wherein Y is the first statistical quantity, P is the target initial term inventory, E is the target end term inventory, T is the energy consumption per outsourcing, n is the total number of times of energy consumption per outsourcing, and k is a certain time of energy consumption per outsourcing. Reference may be made to the above embodiments, which are not described in detail.
According to the method for calculating the energy consumption data statistics, provided by the embodiment of the invention, the accuracy of calculating the energy consumption data statistics can be further improved through the formula.
On the basis of the above embodiment, the method further includes:
acquiring a second statistical query period aiming at the energy consumption data; a second time end point of the second statistical query period is a deadline point of the statistical query of the energy consumption data; a second time starting point of the second statistical query period is a time point determined by a one-time statistical query result closest to the cutoff time point; wherein the statistical query result is the first statistical quantity.
Specifically, the device acquires a second statistical query period for the energy consumption data; a second time end point of the second statistical query period is a deadline point of the statistical query of the energy consumption data; a second time starting point of the second statistical query period is a time point determined by a one-time statistical query result closest to the cutoff time point; wherein the statistical query result is the first statistical quantity. Reference may be made to the above embodiments, which are not described in detail.
And calculating the actual outsourcing amount between the second time end point and the second time starting point according to the accumulated outsourcing total amount of the second time end point and the accumulated outsourcing amount of the second time starting point.
Specifically, the device calculates the actual outsourcing amount between the second time end point and the second time starting point according to the accumulated outsourcing total amount at the second time end point and the accumulated outsourcing amount at the second time starting point. Reference may be made to the above embodiments, which are not described in detail.
Acquiring an inventory of the second time endpoint; and calculating a second statistic of the energy consumption data in the second statistical query time period according to the inventory, the actual outsourcing amount and the statistical query result.
Specifically, the device obtains the inventory of the second time end point; and calculating a second statistic of the energy consumption data in the second statistical query time period according to the inventory, the actual outsourcing amount and the statistical query result. Reference may be made to the above embodiments, which are not described in detail.
The method for calculating the energy consumption data statistics provided by the embodiment of the invention can further calculate the energy consumption data statistics of a specific time point in a fine and accurate manner by combining the obtained first statistics.
On the basis of the above embodiment, the method further includes:
and acquiring the earliest recording time of the energy consumption data.
Specifically, the device obtains the earliest recording time of the energy consumption data. Reference may be made to the above embodiments, which are not described in detail.
Taking a first outsourcing energy consumption between the second time endpoint and the earliest recording time as the cumulative outsourcing total amount; and taking the second outsourcing energy consumption between the second time starting point and the earliest recording time as the accumulated outsourcing amount.
Specifically, the device takes the first outsourcing energy consumption between the second time end point and the earliest recording time as the accumulated outsourcing total amount; and taking the second outsourcing energy consumption between the second time starting point and the earliest recording time as the accumulated outsourcing amount. Reference may be made to the above embodiments, which are not described in detail.
The method for calculating the energy consumption data statistics can accurately and effectively determine the accumulated outsourcing total amount and the accumulated outsourcing amount, and ensures the normal operation of the method.
On the basis of the foregoing embodiment, the calculating, according to the inventory, the actual outsourcing amount, and the statistical query result, a second statistic of the energy consumption data in the second statistical query period includes:
calculating the second statistic according to the following formula:
the second statistic is the statistical query result + the actual outsource amount-the inventory.
Specifically, the apparatus calculates the second statistic according to the following formula:
the second statistic is the statistical query result + the actual outsource amount-the inventory. Reference may be made to the above embodiments, which are not described in detail.
The method for calculating the energy consumption data statistics provided by the embodiment of the invention can further improve the accuracy of calculating the energy consumption data statistics through a formula.
On the basis of the above embodiment, the cutoff time point is the current time point.
In particular, the deadline time point in the apparatus is a current time point. Reference may be made to the above embodiments, which are not described in detail.
According to the method for calculating the energy consumption data statistics, provided by the embodiment of the invention, the cut-off time point is selected as the current time point, so that the inventory of the current time point can be conveniently and accurately obtained, and the accuracy of calculating the energy consumption data statistics can be further improved.
Fig. 2 is a schematic structural diagram of an apparatus for calculating energy consumption data statistics according to an embodiment of the present invention, and as shown in fig. 2, an embodiment of the present invention provides an apparatus for calculating energy consumption data statistics, which includes an obtaining unit 201 and a calculating unit 202, where:
the obtaining unit 201 is configured to obtain a first statistical query period for energy consumption data, where the first statistical query period includes at least two inventory statistics cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period; the calculating unit 202 is configured to determine the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
Specifically, the obtaining unit 201 is configured to obtain a first statistical query period for the energy consumption data, where the first statistical query period includes at least two inventory statistics cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period; the calculating unit 202 is configured to determine the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
The device for calculating the energy consumption data statistics provided by the embodiment of the invention firstly determines the energy consumption outsourcing amount in a first statistical query time interval; and then, according to the energy consumption outsourcing amount, the target initial stage inventory and the target final stage inventory, calculating a first statistic of the energy consumption data in a first statistic query time period, and improving the accuracy of calculating the energy consumption data statistic.
The apparatus for calculating energy consumption data statistics provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and reference may be made to the detailed description of the above method embodiments.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device includes: a processor (processor)301, a memory (memory)302, and a bus 303;
the processor 301 and the memory 302 complete communication with each other through a bus 303;
the processor 301 is configured to call program instructions in the memory 302 to perform the methods provided by the above-mentioned method embodiments, including: acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period. Determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period. Determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period. Determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A method of calculating energy consumption data statistics, comprising:
acquiring a first statistical query period aiming at energy consumption data, wherein the first statistical query period comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period;
determining the energy consumption outsourcing amount in the first statistical query period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
2. The method of claim 1, wherein the determining the energy consumption outsourcing amount for the first statistical query period comprises:
determining the energy consumption amount of each outsourcing according to the first determined time and the second determined time;
and accumulating the energy consumption amount of each outsourcing to determine the energy consumption outsourcing amount.
3. The method of claim 2, wherein calculating the first statistical measure of the energy consumption data over the first statistical query period based on the energy consumption outsourcing amount, the target initial term inventory, and the target end term inventory comprises:
calculating the first statistic according to the following formula:
wherein Y is the first statistical quantity, P is the target initial term inventory, E is the target end term inventory, T is the energy consumption per outsourcing, n is the total number of times of energy consumption per outsourcing, and k is a certain time of energy consumption per outsourcing.
4. The method of any of claims 1 to 3, further comprising:
acquiring a second statistical query period aiming at the energy consumption data; a second time end point of the second statistical query period is a deadline point of the statistical query of the energy consumption data; a second time starting point of the second statistical query period is a time point determined by a one-time statistical query result closest to the cutoff time point; wherein the statistical query result is the first statistical quantity;
calculating the actual outsourcing amount between the second time end point and the second time starting point according to the accumulated outsourcing total amount of the second time end point and the accumulated outsourcing amount of the second time starting point;
acquiring an inventory of the second time endpoint; and calculating a second statistic of the energy consumption data in the second statistical query time period according to the inventory, the actual outsourcing amount and the statistical query result.
5. The method according to claim 4, wherein the obtaining of the cumulative total outsourcing amount and the cumulative outsourcing amount comprises:
acquiring the earliest recording time of the energy consumption data;
taking a first outsourcing energy consumption between the second time endpoint and the earliest recording time as the cumulative outsourcing total amount; and taking the second outsourcing energy consumption between the second time starting point and the earliest recording time as the accumulated outsourcing amount.
6. The method of claim 4, wherein calculating a second statistic of the energy consumption data over the second statistical query period based on the inventory, the actual outsourcing amount, and the statistical query result comprises:
calculating the second statistic according to the following formula:
the second statistic is the statistical query result + the actual outsource amount-the inventory.
7. The method of claim 4, wherein the deadline time point is a current time point.
8. An apparatus for calculating energy consumption data statistics, comprising:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a first statistical query time interval aiming at energy consumption data, and the first statistical query time interval comprises at least two inventory statistical cycles; wherein the inventory statistics period is a time interval between an initial inventory and an end inventory; the first time starting point and the first time ending point of the first statistical query period respectively correspond to a first determination time of a target initial inventory of a first inventory statistics period and a second determination time of a target end inventory of a last inventory statistics period;
the calculating unit is used for determining the energy consumption outsourcing amount in the first statistical query time period; calculating a first statistic of the energy consumption data within the first statistic query period according to the energy consumption outsourcing amount, the target initial-term inventory and the target end-term inventory.
9. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811041489.1A CN110889653A (en) | 2018-09-07 | 2018-09-07 | Method and device for calculating energy consumption data statistics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811041489.1A CN110889653A (en) | 2018-09-07 | 2018-09-07 | Method and device for calculating energy consumption data statistics |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110889653A true CN110889653A (en) | 2020-03-17 |
Family
ID=69744442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811041489.1A Withdrawn CN110889653A (en) | 2018-09-07 | 2018-09-07 | Method and device for calculating energy consumption data statistics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110889653A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101025799A (en) * | 2006-02-24 | 2007-08-29 | 吕理志 | Production plan inventory management system and method |
US20130085901A1 (en) * | 2005-09-02 | 2013-04-04 | Flowvision, Llc | Inventory management system |
CN103295118A (en) * | 2013-05-31 | 2013-09-11 | 龙岩烟草工业有限责任公司 | Warehouse management method and system |
CN105320116A (en) * | 2015-11-19 | 2016-02-10 | 华润电力登封有限公司 | A thermal power plant fuel total value optimizing method and system |
-
2018
- 2018-09-07 CN CN201811041489.1A patent/CN110889653A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130085901A1 (en) * | 2005-09-02 | 2013-04-04 | Flowvision, Llc | Inventory management system |
CN101025799A (en) * | 2006-02-24 | 2007-08-29 | 吕理志 | Production plan inventory management system and method |
CN103295118A (en) * | 2013-05-31 | 2013-09-11 | 龙岩烟草工业有限责任公司 | Warehouse management method and system |
CN105320116A (en) * | 2015-11-19 | 2016-02-10 | 华润电力登封有限公司 | A thermal power plant fuel total value optimizing method and system |
Non-Patent Citations (1)
Title |
---|
王永川 等: "火电厂能源管理系统方案研究", 《电站系统工程》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111429048B (en) | Method, device and equipment for determining replenishment information | |
CN109634819B (en) | Alarm root cause positioning method and device and electronic equipment | |
CN107742245B (en) | Merchant information recommendation method, device and equipment | |
US10474799B2 (en) | Method and system for identifying a unique mobile device based on mobile device attribute changes over time | |
CN108920498B (en) | Data query method, device and equipment | |
CN108154252A (en) | Method and apparatus for estimating the flow deadline | |
CN109697247B (en) | Method and device for detecting data accuracy | |
JP6493812B2 (en) | Inventory management method, inventory management apparatus, and program | |
CN108228679B (en) | Time series data metering method and time series data metering device | |
CN115600767A (en) | Material monitoring method and device, computer equipment and readable storage medium | |
CN107181601B (en) | Flow reminding method and device | |
CN107330709B (en) | Method and device for determining target object | |
CN109213651A (en) | A kind of object monitor method and device, electronic equipment | |
CN104253737A (en) | Method and apparatus for measuring social channel propagation effect | |
CN110889653A (en) | Method and device for calculating energy consumption data statistics | |
CN106856496B (en) | Data processing method and device | |
CN107292649A (en) | The method and apparatus of traffic forecast Data correction | |
CN108159677B (en) | Motion data statistical method, electronic device and computer readable storage medium | |
CN116151943A (en) | Interest data acquisition method and device for financial products in mobile phone bank | |
CN112260900B (en) | Method, device and equipment for measuring energy consumption of communication equipment and storage medium | |
CN109255579B (en) | Data index determination method and device | |
CN110148044B (en) | Method and device for setting buffering threshold for accounting | |
CN110442572B (en) | User characteristic value determining method and device | |
CN114742417A (en) | Data quality evaluation method and device, electronic equipment and storage medium | |
CN113094241A (en) | Method, device and equipment for determining accuracy of real-time program and storage 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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200317 |