CN115601198B - Power data simulation method, device, equipment and storage medium - Google Patents
Power data simulation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115601198B CN115601198B CN202211513337.3A CN202211513337A CN115601198B CN 115601198 B CN115601198 B CN 115601198B CN 202211513337 A CN202211513337 A CN 202211513337A CN 115601198 B CN115601198 B CN 115601198B
- Authority
- CN
- China
- Prior art keywords
- current
- voltage
- sampling interval
- sampling
- determining
- 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.)
- Active
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
- G06Q50/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/06—Electricity, gas or water supply
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
Abstract
The invention provides a power data simulation method, a device, equipment and a storage medium, belonging to the technical field of electric quantity metering, wherein the method comprises the following steps: acquiring voltage and current at a plurality of sampling moments; determining fluctuation parameters based on the change rule of the voltage and the current in the sampling interval and the voltage and the current at the plurality of sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule; and determining power analog data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments. According to the method provided by the embodiment of the invention, the fluctuation conditions of the current and the voltage are considered, so that the obtained simulation data are more in line with the real conditions.
Description
Technical Field
The invention relates to the technical field of electric quantity metering, in particular to a method, a device, equipment and a storage medium for simulating electric power data.
Background
With the progress of power grid informatization, the power grid enters an information era from manual meter reading and charging, the types and the quantity of power data gradually expand, and the data quality plays a vital role in the analysis effect of the power data, so that higher requirements are provided for data management work of collected data and power files.
At present, in data collected by taking a platform area as a unit in a power system, electric quantity simulation is generally carried out by assuming that current is constant within a sampling interval. In practice, however, the current is not constant due to the variation of the user load during the sampling interval, and the data obtained by simulation based on this assumption may have a large deviation from the real situation, so that the real situation cannot be truly reflected.
Disclosure of Invention
The invention provides a power data simulation method, a device, equipment and a storage medium, which are used for solving the defect that data simulation does not accord with the real situation in the prior art and realizing a data simulation method which relatively accords with the real situation.
The invention provides a power data simulation method, which comprises the following steps:
acquiring voltage and current at a plurality of sampling moments;
determining fluctuation parameters based on the change rule of the voltage and the current in the sampling interval and the voltage and the current at the plurality of sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
and determining power simulation data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments.
According to the power data simulation method provided by the invention, the determining of the fluctuation parameters based on the change rule of the voltage and the current in the sampling interval and the voltage and the current at the plurality of sampling moments comprises the following steps:
determining the voltage and the current in at least one sampling interval based on the voltage and the current at a plurality of sampling moments and the change rule of the voltage and the current in the sampling interval;
and obtaining the fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval.
According to the power data simulation method provided by the invention, the change rule of the voltage follows a linear rule, the change rule of the current follows a piecewise constant rule, and the voltage and the current in at least one sampling interval are determined based on the voltage and the current at a plurality of sampling moments and the change rule of the voltage and the current in the sampling interval, and the method comprises the following steps:
determining a voltage within at least one sampling interval using a linear interpolation algorithm based on the voltages at the plurality of sampling instants;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and a first piecewise constant function; the function value of the first section constant value function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
According to the power data simulation method provided by the invention, the voltage change rule follows a piecewise constant rule, the current change rule follows a piecewise constant rule, and the voltage and the current in at least one sampling interval are determined based on the voltage and the current at a plurality of sampling moments and the voltage and current change rule in the sampling interval, which comprises the following steps:
determining a voltage within at least one sampling interval based on the voltages at the plurality of sampling instants and a second piecewise constant function; the function value of the second section constant value function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and a first piecewise constant function; the function value of the first section constant value function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
According to the power data simulation method provided by the invention, the change rule of the voltage follows a piecewise constant rule, the change rule of the current follows a linear rule, and the voltage and the current in at least one sampling interval are determined based on the voltage and the current at a plurality of sampling moments and the change rule of the voltage and the current in the sampling interval, which comprises the following steps:
determining a voltage within at least one sampling interval based on the voltages at the plurality of sampling instants and a second piecewise constant function; the function value of the second section constant value function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
and determining the current in at least one sampling interval by utilizing a linear interpolation algorithm based on the currents at the plurality of sampling moments.
According to the power data simulation method provided by the invention, the obtaining of the fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval comprises:
integrating the voltage and the current in each sampling interval;
and determining the fluctuation parameters by using the values obtained by integration and the electric quantity collected in each sampling interval.
According to the power data simulation method provided by the invention, the obtaining of the fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval comprises:
determining the fluctuation parameters based on the voltage and the current in each sampling interval, the electric quantity collected in each sampling interval and constraint conditions;
the constraint is that the voltage and current within the sampling interval are greater than or equal to 0.
According to the power data simulation method provided by the invention, the power simulation data comprises at least one of the following items: voltage, current, electrical quantity;
the number of the fluctuation parameters is at least one, and the piecewise constant rule comprises the following steps: a law of constant value change from small to large and/or a law of constant value change from large to small.
The present invention also provides a power data simulation apparatus, comprising:
the acquisition module is used for acquiring voltage and current at a plurality of sampling moments;
the processing module is used for determining fluctuation parameters based on the change rule of the voltage and the current in the sampling interval and the voltage and the current at the plurality of sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
the processing module is further used for determining power analog data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the power data simulation method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a power data simulation method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a power data simulation method as described in any one of the above.
According to the power data simulation method, the device, the equipment and the storage medium, the voltage and the current at a plurality of sampling moments are obtained; determining fluctuation parameters based on the voltages and currents at the plurality of sampling moments and the change rules of the voltages and the currents in the sampling intervals; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule; the obtained fluctuation parameters are more in line with the actual situation by considering the change rule of the voltage and the current; and then based on the voltage and the current of fluctuation parameter and minute a plurality of sampling moments, the electric power analog data of confirming more accords with the truth, and the volatility of electric current and voltage change has been fully considered to above-mentioned scheme promptly, compares among the prior art simple hypothesis invariant, has improved analog data's accuracy and authenticity.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for 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 of a power data simulation method according to the present invention;
FIG. 2 is a schematic diagram of current during a sampling interval in a power data simulation method provided by the present invention;
FIG. 3 is a second schematic diagram of the current in the sampling interval of the power data simulation method according to the present invention;
FIG. 4 is a schematic diagram of voltage during a sampling interval of a power data simulation method provided by the present invention;
FIG. 5 is a second schematic diagram of voltage in a sampling interval of the power data simulation method according to the present invention;
FIG. 6 is a schematic structural diagram of a power data simulation apparatus provided in the present invention;
fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The following describes the technical solution of the embodiment of the present invention in detail with reference to the specific embodiments of fig. 1 to 7. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic flow chart of a power data simulation method according to the present invention. As shown in fig. 1, the method provided by this embodiment includes:
specifically, in the embodiment of the invention, the collected voltage and current data are used for estimating the voltage and the current at other moments in the sampling interval, the fluctuation parameters are estimated, and then the fluctuation parameters are used for calculating the simulation data, so that the authenticity of the simulation data can be greatly improved.
For example, over a sampling interval, the current, voltage, and time of day are as shown in FIGS. 2 and 4The collected current and voltage are respectively、At the moment of timeThe collected current and voltage are respectively、At an acquisition interval of。
102, determining fluctuation parameters based on the change rule of voltage and current in a sampling interval and the voltage and current at a plurality of sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
specifically, the voltage and the current in the sampling interval may be determined based on the voltages and the currents at a plurality of sampling moments according to the change rule of the voltages and the currents, and then the fluctuation parameter may be determined based on the voltages and the currents. For example, the fluctuation parameters are determined based on the collected voltage, current or electric quantity data and the determined voltage and current in the sampling interval, or the fluctuation parameters are determined based on the conditions required to be met by the power simulation and the determined voltage and current in the sampling interval.
Optionally, the voltage and current variation law in each sampling interval follows a piecewise constant law and/or a linear law.
And 103, determining power analog data based on the fluctuation parameters and the voltage and the current at a plurality of sampling moments.
Optionally, the power simulation data comprises at least one of: voltage, current, electrical quantity.
Specifically, the power simulation data may be determined based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments, for example, by using a preset fluctuation rule.
For example, the fluctuation parameter is a, and the voltage at a plurality of time points in the sampling interval is U 0 ,U 0 +a,U 0 +2a,U 0 -a,U 0 -2a,U 1 +2a,U 1 +a,U 1 (ii) a The current at a plurality of time points is I 0 ,I 0 +a,I 0 +2a,I 0 -a,I 0 -2a,I 1 –a,I 1 +a,I 1 。
In the method of the embodiment, the voltage and the current at a plurality of sampling moments are obtained; determining fluctuation parameters based on the voltages and currents at the plurality of sampling moments and the change rules of the voltages and the currents in the sampling intervals; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule; the obtained fluctuation parameters are more in line with the actual situation by considering the change rule of the voltage and the current; and then based on the voltage and the current of fluctuation parameter and minute a plurality of sampling moments, the electric power analog data of confirming more accords with the truth, and the volatility of electric current and voltage change has been fully considered to above-mentioned scheme promptly, compares among the prior art simple hypothesis invariant, has improved analog data's accuracy and authenticity.
Alternatively, step 102 may be implemented by:
determining the voltage and the current in at least one sampling interval based on the voltage and the current at a plurality of sampling moments and the change rule of the voltage and the current in the sampling interval;
and obtaining the fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval.
Specifically, since the current and the voltage follow a certain change rule in each sampling interval, the current and the voltage in the sampling interval can be obtained by the current, the voltage and the change rule at the sampling moment.
For example, the estimated electric quantity is obtained by integrating the obtained voltage and current, and the fluctuation parameters are determined by using the estimated electric quantity and the collected electric quantity, so that the authenticity of data simulation can be greatly improved.
Alternatively, the voltage and current in at least one sampling interval may be determined in several ways:
mode 1:
under the condition that the change rule of the voltage follows a linear rule and the change rule of the current follows a piecewise constant rule, determining the voltage in at least one sampling interval by utilizing a linear interpolation algorithm based on the voltages at a plurality of sampling moments;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and a first piecewise constant function; the function value of the first section constant value function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
Specifically, the first segment constant value function is divided into 6 segments in each sampling interval, the function value of the first segment is equal to the current at the sampling time of the beginning of the sampling interval, and the function value of the sixth segment is equal to the current at the sampling time of the end of the sampling interval, as shown in fig. 2, the function value of the middle segment is obtained based on the fluctuation parameter and the current at the sampling time of the beginning or the current at the sampling time of the end.
The time length of each segment in the sampling interval of the piecewise function may be equal or unequal, which is not limited in the embodiment of the present invention.
Optionally, as shown in fig. 4, for any sampling interval, the voltage within the sampling interval is determined using the following equation (1):
wherein the content of the first and second substances,,in order to acquire the interval of time,、respectively at the time of dayThe current and the voltage which are collected by the device,、respectively at the time of dayCollected current and voltage.
Mode 2:
under the condition that the change rule of the voltage follows a piecewise constant rule and the change rule of the current follows a piecewise constant rule, determining the voltage in at least one sampling interval based on the voltages at a plurality of sampling moments and a second piecewise constant function; the function value of the second piecewise constant function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and the first piecewise constant function; the function value of the first section constant value function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
Specifically, the first segment constant value function is divided into 6 segments in each sampling interval, the function value of the first segment is equal to the current at the sampling time of the beginning of the sampling interval, and the function value of the sixth segment is equal to the current at the sampling time of the end of the sampling interval, as shown in fig. 2, the function value of the middle segment is obtained based on the fluctuation parameter and the current at the sampling time of the beginning or the current at the sampling time of the end.
The second piecewise constant function is divided into 6 pieces in each sampling interval, for example, the function value of the first piece is equal to the voltage at the sampling time of the beginning of the sampling interval, and the function value of the sixth piece is equal to the voltage at the sampling time of the end of the sampling interval, as shown in fig. 5, the function value of the middle piece is obtained based on the ripple parameter and the current at the sampling time of the beginning or the current at the sampling time of the end.
Mode 3:
determining the voltage in at least one sampling interval based on the voltages at the plurality of sampling moments and a second piecewise constant function under the condition that the change rule of the voltage follows a piecewise constant rule and the change rule of the current follows a linear rule; the function value of the second section constant value function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
and determining the current in at least one sampling interval by utilizing a linear interpolation algorithm based on the currents at the plurality of sampling moments.
Specifically, the second piecewise constant function is divided into 6 pieces in each sampling interval, for example, the function value of the first piece is equal to the voltage at the sampling time of the beginning of the sampling interval, and the function value of the sixth piece is equal to the voltage at the sampling time of the end of the sampling interval, as shown in fig. 5, the function value of the middle piece is obtained based on the ripple parameter and the current at the sampling time of the beginning or the current at the sampling time of the end.
Optionally, for any sampling interval, the current within the sampling interval is determined using the following equation (2):
wherein the content of the first and second substances,,in order to acquire the interval of time,、respectively at the time of dayThe current and the voltage which are collected by the device,、are respectively at the time of dayCollected current and voltage.
In other embodiments, the number of segments in the sampling interval may be other values, which is not limited in the embodiments of the present invention.
In the embodiment, the voltage and the current in the sampling interval are determined based on the change rule of the voltage and the current, so that the determined voltage and current are more accurate and more accord with the real situation.
Alternatively, the fluctuation parameter may be determined by:
mode 1:
integrating the voltage and current in each sampled interval;
and determining fluctuation parameters by using the values obtained by integration and the electric quantity collected in each sampling interval.
For example, the current and voltage variation law is as shown in fig. 3 and 4, using the following formula (3), wherein fig. 3 includes 2 fluctuation parametersaAnddlobtaining estimated electric quantity; at the time of dayAt the start of a sampling interval, at which the current is(actual current data collected) voltage is(actual voltage data collected), time of dayAt the end of the sampling interval, the current at this time being(actual current data collected), electricityIs pressed into(actual voltage data collected); the sampling interval is divided into 6 equal parts according to the time average, and the time is respectively,,,,,,Respectively current of,,,,,。
the fluctuation parameter may be calculated based on the above, and the simulation data may be calculated based on the fluctuation parameter.
Mode 2:
determining fluctuation parameters based on the voltage and current in each sampling interval, the electric quantity collected in each sampling interval and constraint conditions;
the constraint is that the voltage and current within the sampling interval are greater than or equal to 0.
Specifically, the voltage and the current in the sampling interval satisfy the following constraint conditions, for example:
in the actual simulation, can beAnd randomly taking values within the value taking range. Further based on the fluctuation parameter calculation modelAnd simulating data.
Optionally, the piecewise constant law comprises: a law of constant value change from small to large and/or a law of constant value change from large to small.
For example, the analog data, such as voltage, current, and electric quantity, may be determined based on a preset fluctuation law, the collected data, and the fluctuation parameters.
For example, the current in fig. 2 becomes smaller, larger, smaller and larger in different segment durations, for example, the voltage in fig. 5 becomes larger, smaller, larger, smaller and larger in different segment durations.
In the above embodiment, the determined fluctuation parameters are more accurate and more in line with the real situation based on the determined voltage and current, and the acquired data and/or the constraint conditions.
In the embodiments of the present invention, the above formula is only described as an example, and the above formula may be simply modified, and the embodiments of the present invention are not limited thereto.
In summary, in the embodiments of the present invention, by assuming a pattern of load, current and/or voltage fluctuation within a sampling interval, analog data can be determined, so that the analog data is closer to actual data. Thereby providing a good data base for practical application.
The power data simulation device provided by the present invention is described below, and the power data simulation device described below and the power data simulation method described above may be referred to in correspondence with each other.
Fig. 6 is a schematic structural diagram of a power data simulation apparatus according to the present invention. As shown in fig. 6, the power data simulation apparatus provided in this embodiment includes:
an obtaining module 210, configured to obtain voltages and currents at multiple sampling moments;
the processing module 220 is configured to determine a fluctuation parameter based on a change rule of the voltage and the current in the sampling interval and the voltage and the current at the multiple sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
the processing module 220 is further configured to determine power simulation data based on the fluctuation parameter and the voltages and currents at the plurality of sampling moments.
Optionally, the processing module 220 is specifically configured to:
determining the voltage and the current in at least one sampling interval based on the voltage and the current at a plurality of sampling moments and the change rule of the voltage and the current in the sampling interval;
and obtaining the fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval.
Optionally, the change rule of the voltage follows a linear rule, the change rule of the current follows a piecewise constant rule, and the processing module 220 is specifically configured to:
determining a voltage within at least one sampling interval using a linear interpolation algorithm based on the voltages at the plurality of sampling instants;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and a first piecewise constant function; the function value of the first segmentation constant function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
Optionally, the change rule of the voltage follows a piecewise constant rule, the change rule of the current follows a piecewise constant rule, and the processing module 220 is specifically configured to:
determining a voltage within at least one sampling interval based on the voltages at the plurality of sampling instants and a second piecewise constant function; the function value of the second section constant value function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and a first piecewise constant function; the function value of the first section constant value function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
Optionally, the change rule of the voltage follows a piecewise constant rule, the change rule of the current follows a linear rule, and the processing module 220 is specifically configured to:
determining a voltage within at least one sampling interval based on the voltages at the plurality of sampling instants and a second piecewise constant function; the function value of the second piecewise constant function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
and determining the current in at least one sampling interval by utilizing a linear interpolation algorithm based on the currents at the plurality of sampling moments.
Optionally, the processing module 220 is specifically configured to:
integrating the voltage and the current in each sampling interval;
and determining the fluctuation parameters by using the value obtained by integration and the electric quantity collected in each sampling interval.
Optionally, the processing module 220 is specifically configured to:
determining the fluctuation parameters based on the voltage and the current in each sampling interval, the electric quantity collected in each sampling interval and a constraint condition;
the constraint is that the voltage and current within the sampling interval are greater than or equal to 0.
Optionally, the power simulation data comprises at least one of: voltage, current, electrical quantity;
the number of the fluctuation parameters is at least one, and the segmentation constant rule comprises the following steps: a law of constant value change from small to large and/or a law of constant value change from large to small.
The apparatus of this embodiment may be configured to execute the method of any embodiment in the foregoing method embodiments, and the specific implementation process and technical effects thereof are the same as those in the method embodiments.
Fig. 7 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 7: a processor (processor) 810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. Processor 810 may invoke logic instructions in memory 830 to perform a power data simulation method comprising: acquiring voltage and current at a plurality of sampling moments;
determining fluctuation parameters based on the change rule of the voltage and the current in the sampling interval and the voltage and the current at the plurality of sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
and determining power simulation data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program, when executed by a processor, being capable of executing the power data simulation method provided by the above methods, the method comprising: acquiring voltage and current at a plurality of sampling moments;
determining fluctuation parameters based on the change rule of the voltage and the current in the sampling interval and the voltage and the current at the plurality of sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
and determining power simulation data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for simulating power data provided by the above methods, the method comprising: acquiring voltage and current at a plurality of sampling moments;
determining fluctuation parameters based on the change rule of the voltage and the current in the sampling interval and the voltage and the current at the plurality of sampling moments; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
and determining power simulation data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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 examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (8)
1. A method of power data simulation, comprising:
acquiring voltage and current at a plurality of sampling moments;
determining the voltage and the current in at least one sampling interval based on the voltage and the current at a plurality of sampling moments and the change rule of the voltage and the current in the sampling interval; obtaining fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
determining power simulation data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments;
obtaining fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval, wherein the fluctuation parameters comprise:
integrating the voltage and the current in each sampling interval; determining the fluctuation parameters by using values obtained by integration and electric quantity collected in each sampling interval; or the like, or, alternatively,
determining the fluctuation parameters based on the voltage and the current in each sampling interval, the electric quantity collected in each sampling interval and constraint conditions; the constraint is that the voltage and current within the sampling interval are greater than or equal to 0.
2. The method of claim 1, wherein the voltage and current change rule follows a linear rule, the current change rule follows a piecewise constant rule, and the determining the voltage and current for at least one sampling interval based on the voltage and current at a plurality of sampling instants and the voltage and current change rule for the sampling interval comprises:
determining a voltage within at least one sampling interval using a linear interpolation algorithm based on the voltages at the plurality of sampling instants;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and a first piecewise constant function; the function value of the first segmentation constant function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
3. The power data simulation method of claim 1, wherein the voltage variation law follows a piecewise constant law, the current variation law follows a piecewise constant law, and the determining the voltage and current for at least one sampling interval based on the voltage and current at a plurality of sampling instants and the voltage and current variation laws for the sampling interval comprises:
determining a voltage within at least one sampling interval based on the voltages at the plurality of sampling instants and a second piecewise constant function; the function value of the second section constant value function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
determining a current for at least one sampling interval based on the currents at the plurality of sampling instants and a first piecewise constant function; the function value of the first section constant value function in each sampling interval is obtained based on the fluctuation parameter and the current of the sampling time included in the sampling interval.
4. The power data simulation method of claim 1, wherein the voltage variation law follows a piecewise constant law, the current variation law follows a linear law, and the determining the voltage and current for at least one sampling interval based on the voltage and current at a plurality of sampling instants and the voltage and current variation law for the sampling interval comprises:
determining a voltage within at least one sampling interval based on the voltages at the plurality of sampling instants and a second piecewise constant function; the function value of the second section constant value function in each sampling interval is obtained based on the fluctuation parameter and the voltage of the sampling time included in the sampling interval;
and determining the current in at least one sampling interval by utilizing a linear interpolation algorithm based on the currents at the plurality of sampling moments.
5. A power data simulation method according to any one of claims 1 to 4, characterized in that the power simulation data comprises at least one of the following: voltage, current, electrical quantity;
the number of the fluctuation parameters is at least one, and the segmentation constant rule comprises the following steps: a law of constant value change from small to large and/or a law of constant value change from large to small.
6. An electric power data simulation apparatus, comprising:
the acquisition module is used for acquiring voltage and current at a plurality of sampling moments;
the processing module is used for determining the voltage and the current in at least one sampling interval based on the voltage and the current at a plurality of sampling moments and the change rule of the voltage and the current in the sampling interval; obtaining fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval; the change rule of the voltage and the current follows a piecewise constant rule and/or a linear rule;
obtaining fluctuation parameters based on the electric quantity collected in each sampling interval and the voltage and the current in each sampling interval, wherein the fluctuation parameters comprise:
integrating the voltage and the current in each sampling interval; determining the fluctuation parameters by using values obtained by integration and electric quantity collected in each sampling interval; or the like, or, alternatively,
determining the fluctuation parameters based on the voltage and the current in each sampling interval, the electric quantity collected in each sampling interval and constraint conditions; the constraint condition is that the voltage and current in the sampling interval are greater than or equal to 0;
the processing module is further used for determining power analog data based on the fluctuation parameters and the voltages and currents at the plurality of sampling moments.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the power data simulation method of any of claims 1 to 5 when executing the program.
8. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the power data simulation method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513337.3A CN115601198B (en) | 2022-11-30 | 2022-11-30 | Power data simulation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513337.3A CN115601198B (en) | 2022-11-30 | 2022-11-30 | Power data simulation method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115601198A CN115601198A (en) | 2023-01-13 |
CN115601198B true CN115601198B (en) | 2023-04-07 |
Family
ID=84852666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211513337.3A Active CN115601198B (en) | 2022-11-30 | 2022-11-30 | Power data simulation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115601198B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010004A (en) * | 2021-03-18 | 2021-06-22 | 维沃移动通信有限公司 | Abnormal power consumption processing method and device and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8174276B2 (en) * | 2008-05-22 | 2012-05-08 | Texas Instruments Incorporated | Coaxial four-point probe for low resistance measurements |
CN103076520A (en) * | 2012-12-28 | 2013-05-01 | 中国电力科学研究院 | Dynamic analogue simulation detection platform and analogue simulation method for secondary system of intelligent substation |
CN109508835B (en) * | 2019-01-01 | 2020-11-24 | 中南大学 | Smart power grid short-term power load prediction method integrating environmental feedback |
CN112531694B (en) * | 2020-11-27 | 2022-05-20 | 国网重庆市电力公司电力科学研究院 | AC/DC hybrid power grid universe real-time simulation method based on digital twinning technology |
-
2022
- 2022-11-30 CN CN202211513337.3A patent/CN115601198B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010004A (en) * | 2021-03-18 | 2021-06-22 | 维沃移动通信有限公司 | Abnormal power consumption processing method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115601198A (en) | 2023-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109583594B (en) | Deep learning training method, device, equipment and readable storage medium | |
CN110599838A (en) | Mathematics automatic question setting method and device | |
CN114757587B (en) | Product quality control system and method based on big data | |
CN115730605B (en) | Data analysis method based on multidimensional information | |
CN111783035B (en) | Harmonic responsibility calculation method and device adapting to different harmonic fluctuation conditions | |
CN115600840A (en) | User group carbon emission dynamic portrait model construction method, device and equipment | |
CN113743650B (en) | Power load prediction method, device, equipment and storage medium | |
CN115601198B (en) | Power data simulation method, device, equipment and storage medium | |
CN110428164B (en) | Power grid running state monitoring method, device and equipment and readable storage medium | |
CN112990583A (en) | Method and equipment for determining mold entering characteristics of data prediction model | |
CN116306777A (en) | Model precision loss positioning method and device and electronic equipment | |
CN113408210B (en) | Deep learning-based non-invasive load decomposition method, system, medium and equipment | |
CN113506186B (en) | Method and device for screening disturbed track of power system, electronic equipment and storage medium | |
CN113190429B (en) | Server performance prediction method and device and terminal equipment | |
CN112444675B (en) | Harmonic superstandard early warning method, device, equipment and medium for power transmission network nodes | |
CN114928302A (en) | Bus voltage sampling method and device of motor controller | |
CN116244165A (en) | Test processing method, device, electronic equipment and storage medium | |
CN110048404B (en) | Online optimization method and device for low-frequency oscillation suppressor of power system and storage medium | |
CN114117349A (en) | Power system random variable probability analysis method, system, equipment and storage medium | |
CN113269658A (en) | Method, device and equipment for estimating production time of core data and storage medium | |
CN114970648A (en) | New energy equipment identification method, device and medium | |
CN115541993B (en) | Method, device, equipment and storage medium for determining split-phase electric quantity of three-phase electric quantity | |
CN115561517B (en) | Method, device and equipment for determining split-phase electric quantity of three-phase electric quantity | |
CN111667123A (en) | Method for supplementing missing value by applying multiple interpolation in power load prediction | |
CN112952800B (en) | Method and device for acquiring segmentation evaluation indexes of transient stability level of power grid |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |