CN110544181A - method, system and storage medium for calculating maximum demand of electric power - Google Patents
method, system and storage medium for calculating maximum demand of electric power Download PDFInfo
- Publication number
- CN110544181A CN110544181A CN201910784078.XA CN201910784078A CN110544181A CN 110544181 A CN110544181 A CN 110544181A CN 201910784078 A CN201910784078 A CN 201910784078A CN 110544181 A CN110544181 A CN 110544181A
- Authority
- CN
- China
- Prior art keywords
- demand
- power
- average power
- calculating
- power per
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000003860 storage Methods 0.000 title claims abstract description 23
- 238000004364 calculation method Methods 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004422 calculation algorithm Methods 0.000 abstract description 4
- 230000008901 benefit Effects 0.000 abstract description 3
- 238000005457 optimization Methods 0.000 abstract description 2
- 230000000750 progressive effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000005259 measurement Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000005070 sampling Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (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 invention discloses a system and a storage medium for calculating the maximum demand of electric power, wherein the method comprises the following steps: collecting the real-time power of a demand metering point; acquiring the power per second of a demand metering point according to the real-time power; acquiring the average power per minute of a demand metering point according to the power per second; sequentially calculating the average power of demand metering points in a demand period by taking a preset slip fixed value as time frequency; and if the average power is larger than the current maximum demand, replacing the current maximum demand with the average power, otherwise, keeping the current maximum demand unchanged. The calculation method provided by the invention has the advantages of layer-by-layer nesting, gradual progressive, simple algorithm, easiness in realization, higher optimization rate, and accurate and rapid calculation.
Description
Technical Field
the invention relates to a method and a system for calculating the maximum demand of electric power and a storage medium, and belongs to the technical field of transformer substations.
background
The metering function is divided into two types, wherein one type is electric energy metering and mainly calculates forward active electric energy, reverse active electric energy and four-quadrant reactive electric energy; one is demand metering, which essentially calculates the average power over a specified time, called demand, and the maximum recorded, called maximum demand. The maximum demand can be used as a charging mode for calculating basic electric charge, can promote users to adjust electric load, achieve load balance, compress peak load, keep the power grid stable, and can also promote users to reduce electric charge expenditure and improve the economic benefit of enterprises. In the traditional metering device, a sampling data frame is narrow, the sampling frequency is low, the precision is not high, the calculation frequency is low, and a large accumulated error is caused; and the calculation algorithm for accumulating and averaging a plurality of sampling points in the demand period has low efficiency and occupies more memory resources. With the continuous development of the transformer substation field technology, the processing capacity of the measurement and control device in the transformer substation is continuously enhanced. Correspondingly, the realization of the metering function is not satisfied with the use of a special metering device, and the integration of the measurement and control function and the metering function can be realized.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a method, a system and a storage medium for calculating the maximum demand of electric power, which can simplify the algorithm and improve the accuracy of the calculation result.
in order to achieve the purpose, the invention is realized by adopting the following technical scheme:
in a first aspect, the present invention provides a method for calculating a maximum demand for electric power, the method comprising the steps of:
collecting the real-time power of a demand metering point;
Acquiring power per second of a demand metering point according to the real-time power;
Acquiring the average power per minute of a demand metering point according to the power per second;
sequentially calculating the average power of demand metering points in a demand period by taking a preset slip fixed value as time frequency;
And if the average power is larger than the current maximum demand, replacing the current maximum demand with the average power, otherwise, keeping the current maximum demand unchanged.
with reference to the first aspect, further, the means for obtaining the power per second of the demand metering point includes:
And calculating the power per second according to the real-time power by adopting a second interrupt task mode, storing the power per second in a storage unit of a corresponding array, and circularly covering the data of each storage unit of the array by taking 60 seconds as a cycle period.
with reference to the first aspect, further, the method for obtaining the average power per minute of the demand metering point includes the following steps:
and accumulating the power per second by adopting a minute interruption task mode, and dividing by 60 to obtain a calculation result, namely the average power per minute of the demand metering point.
with reference to the first aspect, further, the method for calculating the average power of the demand metering point in the demand period includes the following steps:
and accumulating the average power per minute in the range of the demand period and dividing the average power by the demand period, namely the average power of the demand metering point in the demand period.
With reference to the first aspect, the method further includes detecting a slip fixed value and a demand period in real time, and if the slip fixed value and/or the demand period changes, recalculating the power per second and the average power per minute at the demand metering point.
in a second aspect, the present invention provides a system for calculating maximum demand for electric power, the system comprising:
a collecting unit: the real-time power acquisition unit is used for acquiring real-time power of the demand metering point;
The first calculation unit: the power per second measuring device is used for obtaining the power per second of the demand measuring point according to the real-time work;
A second calculation unit: the device is used for acquiring the average power per minute of a demand metering point according to the power per second;
A third calculation unit: the device is used for sequentially calculating the average power of demand metering points in a demand period by taking a preset slip fixed value as time frequency;
A comparison unit: and the average power is used for comparing the average power with the current maximum demand, if the average power is larger than the current maximum demand, the average power is used for replacing the current maximum demand, and otherwise, the current maximum demand is kept unchanged.
in a third aspect, the present invention provides a system for calculating a maximum demand for electric power, comprising a processor and a storage medium;
The storage medium is used for storing instructions;
The processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of the preceding claims.
in a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the preceding claims.
Compared with the prior art, the method, the system and the storage medium for calculating the maximum power demand have the advantages that:
Acquiring the power per second of the demand metering point according to the real-time power of the demand metering point, and further acquiring the average power per minute of the demand metering point according to the power per second; sequentially calculating the average power of demand metering points in a demand period by taking a preset slip fixed value as time frequency; if the average power is larger than the current maximum demand, the average power is used for replacing the current maximum demand, otherwise, the current maximum demand is kept unchanged, and the calculation method is nested layer by layer, is gradually progressive, has simple algorithm, is easy to realize, has higher optimization rate, and is quick in calculation preparation.
drawings
fig. 1 is an implementation schematic diagram of a maximum demand calculation method according to an embodiment of the present invention;
Fig. 2 is a flowchart of a maximum demand calculation method according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The embodiment of the invention provides a method for calculating the maximum demand of electric power, which is suitable for a novel measurement and control device integrating measurement and control and measurement, and comprises the following steps:
Step 1) obtaining a slip constant value m and a demand period k;
the fixed slip value refers to sequentially recurrently estimating time intervals for measuring demand, for example, the demand period is k minutes, the slip time is m minutes, the addition is started at 0 moment, the demand value is calculated at the k-1 minute, and the data frames are from the 0 th minute to the k-1 th minute; the second calculation of demand time was based on slip fixed values at kth + m-1 min and the data boxes used were from mth min to kth + m-1 min.
Step 2), obtaining real-time power P by a device measurement and control function;
and step 3) obtaining power Ps [60] per second according to the interrupt task of the second, sequentially storing the power per second into a storage unit of the corresponding array, and circularly covering data in the array by taking 60 seconds as a cycle period.
and 4) interrupting the task according to minutes, calculating the average power per minute according to the power of approximately 60 seconds obtained in the step 3), and storing the average power per minute in a power array per minute:
sequentially accumulating the power per second Ps [0], Ps [1], Ps [2] … Ps [59] in the array, and dividing by 60 to obtain the average power per minute Pmj:
in the formula: ps [ i ] indicates the power corresponding to the i-th second, and i is 0,1,2, …, 59.
and step 5) taking the slip fixed value as time frequency, sequentially calculating the average power within the time range of the demand period, namely the demand Pavg, wherein the calculation method comprises the following steps:
Accumulating the average power Pm [0], Pm [2], Pm [3] … Pm [ k-1] per minute in the demand period k range, and dividing by k to obtain the average power Pavg in the demand period range, which is the demand:
And 6) comparing the value of the demand Pavg with the current maximum demand Pmax value, if Pavg is larger than Pmax, updating Pmax to Pavg, otherwise, keeping the value of Pmax unchanged.
The embodiment of the present invention further provides a system for calculating a maximum power demand, which can be used to implement the method for calculating a maximum power demand, and the system includes:
A collecting unit: the real-time power acquisition unit is used for acquiring real-time power of the demand metering point;
the first calculation unit: the power per second measuring device is used for obtaining the power per second of the demand measuring point according to the real-time work;
A second calculation unit: the device is used for acquiring the average power per minute of a demand metering point according to the power per second;
A third calculation unit: the device is used for sequentially calculating the average power of demand metering points in a demand period by taking a preset slip fixed value as time frequency;
a comparison unit: and the average power is used for comparing the average power with the current maximum demand, if the average power is larger than the current maximum demand, the average power is used for replacing the current maximum demand, and otherwise, the current maximum demand is kept unchanged.
The embodiment of the invention also provides a system for calculating the maximum demand of electric power, which comprises a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps according to the aforementioned power maximum demand calculation method.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the aforementioned power maximum demand calculation method.
as will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
the above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (8)
1. a method for calculating maximum demand for electric power, the method comprising the steps of:
Collecting the real-time power of a demand metering point;
acquiring power per second of a demand metering point according to the real-time power;
Acquiring the average power per minute of a demand metering point according to the power per second;
sequentially calculating the average power of demand metering points in a demand period by taking a preset slip fixed value as time frequency;
and if the average power is larger than the current maximum demand, replacing the current maximum demand with the average power, otherwise, keeping the current maximum demand unchanged.
2. The method for calculating the maximum power demand according to claim 1, wherein the means for obtaining the power per second of the demand metering points comprises:
And calculating the power per second according to the real-time power by adopting a second interrupt task mode, storing the power per second in a storage unit of a corresponding array, and circularly covering the data of each storage unit of the array by taking 60 seconds as a cycle period.
3. the method for calculating the maximum power demand according to claim 1, wherein the method for obtaining the average power per minute of the demand metering point comprises the following steps:
and accumulating the power per second by adopting a minute interruption task mode, and dividing by 60 to obtain a calculation result, namely the average power per minute of the demand metering point.
4. the method for calculating the maximum power demand according to claim 1, wherein the method for calculating the average power of the demand metering point in the demand period comprises the following steps:
And accumulating the average power per minute in the range of the demand period and dividing the average power by the demand period, namely the average power of the demand metering point in the demand period.
5. the method according to claim 1, wherein the method further comprises detecting a slip value and a demand period in real time, and if the slip value and/or the demand period changes, recalculating the power per second and the average power per minute of the demand metering point.
6. An electrical power maximum demand calculation system, the system comprising:
A collecting unit: the real-time power acquisition unit is used for acquiring real-time power of the demand metering point;
The first calculation unit: the power per second metering device is used for acquiring the power per second of the demand metering point according to the real-time power;
A second calculation unit: the device is used for acquiring the average power per minute of a demand metering point according to the power per second;
a third calculation unit: the device is used for sequentially calculating the average power of demand metering points in a demand period by taking a preset slip fixed value as time frequency;
a comparison unit: and the average power is used for comparing the average power with the current maximum demand, if the average power is larger than the current maximum demand, the average power is used for replacing the current maximum demand, and otherwise, the current maximum demand is kept unchanged.
7. A system for calculating maximum demand for electrical power, comprising a processor and a storage medium;
The storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 1 to 5.
8. computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910784078.XA CN110544181A (en) | 2019-08-23 | 2019-08-23 | method, system and storage medium for calculating maximum demand of electric power |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910784078.XA CN110544181A (en) | 2019-08-23 | 2019-08-23 | method, system and storage medium for calculating maximum demand of electric power |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110544181A true CN110544181A (en) | 2019-12-06 |
Family
ID=68712034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910784078.XA Pending CN110544181A (en) | 2019-08-23 | 2019-08-23 | method, system and storage medium for calculating maximum demand of electric power |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110544181A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111817432A (en) * | 2020-04-27 | 2020-10-23 | 宁波三星医疗电气股份有限公司 | Method for solving abnormal terminal alarm |
CN112230178A (en) * | 2020-05-06 | 2021-01-15 | 青岛鼎信通讯股份有限公司 | Method for metering demand of electric energy meter |
CN112526185A (en) * | 2020-12-04 | 2021-03-19 | 国网青海省电力公司 | Multi-loop or power supply electricity consumption customer maximum demand meter device and metering method thereof |
CN115856422A (en) * | 2023-02-27 | 2023-03-28 | 中电装备山东电子有限公司 | Method and system for calculating demand of electric energy meter |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2226702A1 (en) * | 2009-03-06 | 2010-09-08 | Via Technology, Inc. | Microprocessor that performs adaptive power throttling |
CN102087305A (en) * | 2010-12-10 | 2011-06-08 | 宁波三星电气股份有限公司 | Method for processing active demand of energy meter |
CN107994594A (en) * | 2017-12-27 | 2018-05-04 | 合肥工业大学 | A kind of maximum demand control method based on energy-storage system |
-
2019
- 2019-08-23 CN CN201910784078.XA patent/CN110544181A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2226702A1 (en) * | 2009-03-06 | 2010-09-08 | Via Technology, Inc. | Microprocessor that performs adaptive power throttling |
CN102087305A (en) * | 2010-12-10 | 2011-06-08 | 宁波三星电气股份有限公司 | Method for processing active demand of energy meter |
CN107994594A (en) * | 2017-12-27 | 2018-05-04 | 合肥工业大学 | A kind of maximum demand control method based on energy-storage system |
Non-Patent Citations (2)
Title |
---|
郑尧 等, 北京:中国电力出版社 * |
黄宗启: "多回路供电用户的最大需量计量方法", 《广西电力》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111817432A (en) * | 2020-04-27 | 2020-10-23 | 宁波三星医疗电气股份有限公司 | Method for solving abnormal terminal alarm |
CN111817432B (en) * | 2020-04-27 | 2024-05-28 | 宁波三星医疗电气股份有限公司 | Terminal alarm abnormity solving method |
CN112230178A (en) * | 2020-05-06 | 2021-01-15 | 青岛鼎信通讯股份有限公司 | Method for metering demand of electric energy meter |
CN112526185A (en) * | 2020-12-04 | 2021-03-19 | 国网青海省电力公司 | Multi-loop or power supply electricity consumption customer maximum demand meter device and metering method thereof |
CN115856422A (en) * | 2023-02-27 | 2023-03-28 | 中电装备山东电子有限公司 | Method and system for calculating demand of electric energy meter |
CN115856422B (en) * | 2023-02-27 | 2023-06-06 | 中电装备山东电子有限公司 | Electric energy meter demand amount calculating method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110544181A (en) | method, system and storage medium for calculating maximum demand of electric power | |
US10126369B2 (en) | Secondary battery capacity measurement system and secondary battery capacity measurement method | |
KR101878538B1 (en) | Secondary battery capacity measurement system and secondary battery capacity measurement method | |
AU2015374696B2 (en) | Method, device and system for compensating output power of wind turbine generator set | |
CN103311942A (en) | Control method of battery energy storage system for peak clipping and valley filling in distribution network | |
CN102035214B (en) | Determining method of maximum load in direct current support weak receiving system recovery procedure | |
JP6032486B2 (en) | Power management system and power management method | |
CN111007411B (en) | Electric quantity state correction method of energy storage battery system | |
JP2016152742A5 (en) | ||
CN110011333B (en) | Energy storage power station, frequency modulation control method and storage medium | |
CN112217226B (en) | Improved model-free predictive control method suitable for bidirectional DC-DC converter | |
CN109103902B (en) | Control method and device for energy storage smooth new energy output fluctuation | |
JP2013179785A (en) | Output smoothing device, output smoothing method, and program | |
CN109286347B (en) | Method and device for compensating position of rotor of permanent magnet synchronous generator | |
CN111208428B (en) | Real-time calculation method and system for cycle number of energy storage battery and storage medium | |
CN104333025A (en) | Super-capacitor configuration method adaptive to pulse load power fluctuation stabilization | |
CN107634542B (en) | Grid-connected power smooth control method and controller of new energy power generation system | |
CN107957557B (en) | Energy storage system floating threshold self-adaptive SOC online correction method | |
CN105743134A (en) | Adaptive quick regulation photovoltaic AVC (automatic voltage control) method | |
CN111325368A (en) | Photovoltaic power prediction method and device for light storage type electric vehicle charging station | |
JP2016173260A (en) | Battery deterioration determination device, battery pack, battery deterioration determination method and battery deterioration determination program | |
CN111896803B (en) | Power system frequency detection method, computer readable storage medium and device | |
CN114417558A (en) | Power distribution network mixed historical state estimation method based on SCADA and DTIAS measurement | |
CN110311424B (en) | Energy storage peak regulation control method based on dual-time-scale net load prediction | |
CN104267281B (en) | A kind of distributed low-voltage network Condition Monitoring Data compression method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191206 |
|
RJ01 | Rejection of invention patent application after publication |