CN113093566A - Operation control method and system of virtual power plant, computer equipment and storage medium - Google Patents

Operation control method and system of virtual power plant, computer equipment and storage medium Download PDF

Info

Publication number
CN113093566A
CN113093566A CN202110237975.6A CN202110237975A CN113093566A CN 113093566 A CN113093566 A CN 113093566A CN 202110237975 A CN202110237975 A CN 202110237975A CN 113093566 A CN113093566 A CN 113093566A
Authority
CN
China
Prior art keywords
power plant
virtual power
algorithm
sensing signal
terminals
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.)
Granted
Application number
CN202110237975.6A
Other languages
Chinese (zh)
Other versions
CN113093566B (en
Inventor
庞宁
黄安子
李颖杰
陈喆
李冰
王�琦
李强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Co ltd
Original Assignee
Shenzhen Power Supply Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Co ltd filed Critical Shenzhen Power Supply Co ltd
Priority to CN202110237975.6A priority Critical patent/CN113093566B/en
Publication of CN113093566A publication Critical patent/CN113093566A/en
Application granted granted Critical
Publication of CN113093566B publication Critical patent/CN113093566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for ac mains or ac distribution networks
    • H02J3/38Arrangements for parallely feeding a single network by two or more generators, converters or transformers
    • H02J3/46Controlling of the sharing of output between the generators, converters, or transformers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Power Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an operation control method, a system, computer equipment and a storage medium of a virtual power plant, and through a special operation control method flow, a first electric quantity distribution strategy executed by a second virtual power plant terminal is safe and guaranteed, the cooperation of a high-calculation-capacity main control end is not needed, and the verification of a plurality of virtual power plant terminals is carried out, so that the operation safety, the overall and local control accuracy of a power grid are improved, and the operation cost is reduced.

Description

Operation control method and system of virtual power plant, computer equipment and storage medium
Technical Field
The invention relates to the technical field of virtual power plants, in particular to an operation control method, an operation control system, computer equipment and a storage medium of a virtual power plant.
Background
The virtual power plant is a power supply coordination management system participating in the operation of a power market and a power grid, and the application of the virtual power plant is beneficial to adjusting power resources. However, the traditional operation control method of the virtual power plant calculates the situation of power resource shortage of each area of the power grid, and then carries out adjustment and power price regulation. The traditional operation control method of the virtual power plant has low control accuracy in a local area and is very dependent on the computing power of a main control end, so the operation cost is high and the accuracy is low.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an operation control method, a system, computer equipment and a storage medium for a virtual power plant; the cost of running control calculations can be increased and the reliability of the results improved.
According to a first aspect of the present invention, there is provided an operation control method for a virtual power plant, applied in a first virtual power plant terminal, comprising the steps of:
s1, performing signal acquisition operation on an environment corresponding to the first virtual power plant terminal by adopting a preset first sensor array to obtain a first sensing signal sequence; wherein the first sensor array comprises at least a temperature sensor, a humidity sensor, and an electrical signal sensor of an electrical energy storage;
step S2, calling a first algorithm corresponding to the first sensing signal sequence and used for calculating an electric quantity distribution strategy;
step S3, a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key is called; wherein the first asymmetric public key is disclosed externally;
s4, selecting three virtual power plant terminals from other virtual power plant terminals according to a preset terminal screening method; the default algorithms in the three virtual power plant terminals are different from the first algorithm;
step S5, the first sensing signal sequence, the first algorithm and the first asymmetric private key are respectively sent to the selected three virtual power plant terminals, and confirmation signals returned by the selected three virtual power plant terminals are respectively obtained;
s6, acquiring an encrypted second sensing signal sequence sent by a second virtual power plant terminal; the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals;
s7, acquiring an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is a default algorithm of the third virtual power plant terminal for calculating the electric quantity distribution strategy; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals;
step S8, sending a key obtaining request to a fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals;
step S9, receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the fourth virtual power plant terminal sends the second asymmetric private key under the triggering conditions that: extracting the confirmation signal and verifying the confirmation signal to be correct;
step S10, using the second asymmetric private key to decrypt the encrypted second sensing signal sequence and the encrypted second algorithm, respectively, so as to obtain a decrypted second sensing signal sequence and a decrypted second algorithm;
step S11, calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by using the second algorithm and taking the second sensing signal sequence as input;
s12, acquiring n electric quantity distribution strategies which are respectively calculated by n virtual power plant terminals and correspond to the second sensing signal sequence; the n virtual power plant terminals do not adopt the self default algorithm of each virtual power plant terminal in the respective calculation process; n is an integer greater than 3;
step S13, respectively calculating a similarity between the first power distribution policy and any one of the n power distribution policies according to a preset similarity calculation method, thereby obtaining n similarity values;
step S14, obtaining the dissimilarity quantity smaller than a preset similarity threshold in the n similarity values, and judging whether the dissimilarity quantity is larger than a preset quantity threshold;
and S15, if the dissimilar quantity is not larger than a preset quantity threshold value, sending the first electric quantity distribution strategy to the second virtual power plant terminal, and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy.
Preferably, the step S4 further includes:
s401, obtaining confidence values corresponding to all virtual power plant terminals respectively, and excluding the virtual power plant terminals with the confidence values smaller than a preset confidence threshold value, so as to obtain a plurality of optional terminals, wherein: presetting a corresponding confidence value for each virtual power plant terminal;
s402, randomly selecting three virtual power plant terminals from the plurality of selectable terminals; wherein the default algorithms in the three virtual power plant terminals are all different from the first algorithm.
Preferably, before the step S7, the method further includes:
step S61, dividing the code corresponding to the second algorithm into a plurality of blocks by the third virtual power plant terminal;
s62, acquiring the address of the fourth virtual power plant terminal, splitting the address of the fourth virtual power plant terminal, and attaching the split address of the fourth virtual power plant terminal to the designated position of at least one of the blocks to obtain a plurality of blocks with addresses;
step S63, performing a first hiding operation on the addressed blocks to disorder the order of the blocks, thereby obtaining a disordered block group;
step S64, carrying out first encryption processing on the disordered block group by adopting the second asymmetric public key to obtain an encrypted disordered block group;
step S65, a preset image file is called, and second hiding processing operation is carried out on the image file and the encrypted disordered block group, so that the encrypted disordered block group is hidden in the image file in an embedded mode, and a hidden image file is obtained;
and step S66, carrying out second encryption processing on the hidden image file by adopting the second asymmetric public key to obtain an encrypted image file, and recording the encrypted image file as an encrypted carrier of a second algorithm.
Preferably, after the step S12, the method further includes:
s121, respectively acquiring an algorithm and a sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process;
step S122, respectively judging whether the algorithms adopted by each of the n virtual power plant terminals in the calculation process are different, judging whether the sensing signal sequences adopted by each of the n virtual power plant terminals in the calculation process are second sensing signal sequences, and judging whether the algorithms adopted by each of the n virtual power plant terminals in the calculation process are not the default algorithms of the virtual power plant terminals;
step S123, if the algorithms adopted by each of the n virtual power plant terminals in the calculation process are different, the sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process is a second sensing signal sequence, and the algorithms adopted by each of the n virtual power plant terminals in the calculation process are not default algorithms of the virtual power plant terminals, generating a similarity calculation instruction, wherein the similarity calculation instruction is used for instructing that the similarity between the first electric quantity distribution strategy and any one of the n virtual power plant terminals is calculated according to a preset similarity calculation method.
Preferably, the step S13 further includes:
step S131, according to a preset vector mapping method, mapping the first electric quantity distribution strategy into a first vector, and mapping the n electric quantity distribution strategies into a second vector, a third vector, … and an n +1 th vector;
step S132, a preset m similarity calculation method is called, and the second vector, the third vector and the (n + 1) th vector are divided into m sets, wherein m is an integer smaller than n +1 and larger than 2; the m similarity calculation methods include a first similarity calculation method, a second similarity calculation method, and an m-th similarity calculation method; the m sets include a first set, a second set, through an m set;
step S133, according to the first similarity calculation method, calculating a similarity value between the first vector and each member in the first set, thereby obtaining a first similarity value sequence;
step S134, calculating a similarity value between the first vector and each member in the second set according to the second similarity calculation method, thereby obtaining a second similarity value sequence;
s135, sequentially calculating to respectively obtain a third similarity value sequence to an m-1 similarity value sequence;
step S136, according to the mth similarity calculation method, calculating the similarity value between the first vector and each member in the mth set, thereby obtaining an mth similarity value sequence;
step S137, summarizing the first similarity value sequence, the second similarity value sequence and the nth similarity value sequence to obtain a total similarity value sequence;
s138, acquiring a confidence value total sequence corresponding to the similarity value total sequence according to a preset corresponding relation between the similarity value and a virtual power plant terminal and the confidence value;
and step S139, performing product processing on the similarity value total sequence and the confidence value total sequence in a manner of multiplying corresponding members to obtain a product sequence, and marking each member in the product sequence as the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies respectively, so as to obtain n similarity values.
Preferably, the step S14 further includes:
and S141, if the dissimilar quantity is larger than a preset quantity threshold value, reducing a confidence value corresponding to the second virtual power plant terminal.
Accordingly, as another aspect of the present invention, there is also provided an operation control system of a virtual power plant, applied to a first virtual power plant terminal, including:
the first sensing signal sequence acquisition unit is used for acquiring signals of an environment corresponding to the first virtual power plant terminal by adopting a preset first sensor array so as to obtain a first sensing signal sequence; wherein the first sensor array comprises at least a temperature sensor, a humidity sensor, and an electrical signal sensor of an electrical energy storage;
a first algorithm calling unit, configured to call a first algorithm corresponding to the first sensing signal sequence; the first algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input;
the asymmetric key calling unit is used for calling a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key; wherein the first asymmetric public key is disclosed to the outside;
the terminal screening unit is used for selecting three virtual power plant terminals from all the virtual power plant terminals according to a preset terminal screening method; the default algorithms in the three virtual power plant terminals are different from the first algorithm;
the confirmation signal acquisition unit is used for respectively sending the first sensing signal sequence, the first algorithm and the first asymmetric private key to the selected three virtual power plant terminals and respectively acquiring confirmation signals returned by the selected three virtual power plant terminals;
the second sensing signal sequence acquisition unit is used for acquiring an encrypted second sensing signal sequence sent by a second virtual power plant terminal; the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the encrypted second algorithm obtaining unit is used for obtaining an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input; the second algorithm is a default algorithm of the third virtual power plant terminal; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the key acquisition request sending unit is used for sending a key acquisition request to the fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the second asymmetric private key receiving unit is used for receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the fourth virtual power plant terminal sends the second asymmetric private key under the triggering condition that the confirmation signal is extracted and verified to be correct;
the decryption unit is used for respectively decrypting the encrypted second sensing signal sequence and the encrypted second algorithm by using the second asymmetric private key so as to obtain the decrypted second sensing signal sequence and the decrypted second algorithm;
the first electric quantity distribution strategy calculation unit is used for calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by adopting the second algorithm and taking the second sensing signal sequence as input;
the electric quantity distribution strategy acquisition unit is used for acquiring n electric quantity distribution strategies which are respectively calculated by n virtual power plant terminals and correspond to the second sensing signal sequence; the n virtual power plant terminals do not adopt a default algorithm of the virtual power plant terminals in the respective calculation process; n is an integer greater than 3;
the similarity calculation unit is used for calculating the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies according to a preset similarity calculation method so as to obtain n similarity values;
the dissimilarity number judging unit is used for acquiring the dissimilarity number smaller than a preset similarity threshold value in the n similarity values and judging whether the dissimilarity number is larger than the preset number threshold value;
and the first electric quantity distribution strategy sending unit is used for sending the first electric quantity distribution strategy to the second virtual power plant terminal and requesting the second virtual power plant terminal to execute the first electric quantity distribution strategy if the dissimilar quantity judging unit judges that the dissimilar quantity is not greater than a preset quantity threshold value.
As a further aspect of the present invention, there is also provided a computer device comprising a memory storing a computer program and a processor implementing the steps of the aforementioned method when executing the computer program.
As a further aspect of the present invention, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the aforementioned method.
The implementation of the invention has the following beneficial effects:
the invention provides an operation control method, a system, computer equipment and a storage medium of a virtual power plant, wherein a first sensor array is adopted to obtain a first sensing signal sequence, a first algorithm and an asymmetric key are called, three virtual power plant terminals are selected, the first sensing signal sequence, the first algorithm and the first asymmetric key are respectively sent to the selected three virtual power plant terminals, and an encrypted second sensing signal sequence sent by a second virtual power plant terminal is obtained; acquiring an encrypted second algorithm sent by a third virtual power plant terminal; sending a key acquisition request to a fourth virtual power plant terminal; receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; carrying out decryption processing so as to obtain a decrypted second sensing signal sequence and a second algorithm; calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by adopting the second algorithm and taking the second sensing signal sequence as input; acquiring n electric quantity distribution strategies corresponding to the second sensing signal sequence and respectively calculated by n virtual power plant terminals; respectively calculating n similarity values; obtaining dissimilar quantities; and if the dissimilar quantity is not greater than a preset quantity threshold value, sending the first electric quantity distribution strategy to the second virtual power plant terminal, and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy. Therefore, the first electric quantity distribution strategy executed by the second virtual power plant terminal is safe and guaranteed, the cooperation of a high-calculation-capacity main control terminal is not needed, and the verification of the plurality of virtual power plant terminals is carried out, so that the operation safety, the overall and local control accuracy of the power grid are improved, and the operation cost is reduced.
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 introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is within the scope of the present invention for those skilled in the art to obtain other drawings based on the drawings without inventive exercise.
FIG. 1 is a partial main flow diagram of an embodiment of a method for controlling operation of a virtual power plant according to the present invention;
FIG. 2 is a schematic flow chart of another part of an embodiment of a method for controlling operation of a virtual power plant according to the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a computer device provided in the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1 and 2, a main flow diagram of an embodiment of an operation control method of a virtual power plant according to the present invention is shown. In this embodiment, the method is applied to a first virtual power plant terminal, and includes the following steps:
s1, performing signal acquisition operation on an environment corresponding to the first virtual power plant terminal by adopting a preset first sensor array to obtain a first sensing signal sequence; wherein the first sensor array comprises at least a temperature sensor, a humidity sensor, and an electrical signal sensor of an electrical energy storage;
step S2, calling a first algorithm corresponding to the first sensing signal sequence; the first algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input;
step S3, a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key is called; wherein the first asymmetric public key is disclosed externally;
s4, selecting three virtual power plant terminals from all the virtual power plant terminals according to a preset terminal screening method; wherein the default algorithms in the three virtual power plant terminals are all different from the first algorithm;
step S5, the first sensing signal sequence, the first algorithm and the first asymmetric private key are respectively sent to the selected three virtual power plant terminals, and confirmation signals returned by the selected three virtual power plant terminals are respectively obtained;
s6, acquiring an encrypted second sensing signal sequence sent by a second virtual power plant terminal; the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals;
s7, acquiring an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input; the second algorithm is a default algorithm of the third virtual power plant terminal; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals;
step S8, sending a key obtaining request to a fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals;
step S9, receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the fourth virtual power plant terminal sends the second asymmetric private key under the triggering condition that the confirmation signal is extracted and verified to be correct;
step S10, using the second asymmetric private key to decrypt the encrypted second sensing signal sequence and the encrypted second algorithm, respectively, so as to obtain a decrypted second sensing signal sequence and a decrypted second algorithm;
step S11, calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by using the second algorithm and taking the second sensing signal sequence as input;
s12, acquiring n electric quantity distribution strategies which are respectively calculated by n virtual power plant terminals and correspond to the second sensing signal sequence; the n virtual power plant terminals do not adopt a default algorithm of the virtual power plant terminals in the respective calculation process; n is an integer greater than 3;
step S13, respectively calculating a similarity between the first power distribution policy and any one of the n power distribution policies according to a preset similarity calculation method, thereby obtaining n similarity values;
step S14, obtaining the dissimilarity quantity smaller than a preset similarity threshold in the n similarity values, and judging whether the dissimilarity quantity is larger than a preset quantity threshold;
and S15, if the dissimilar quantity is not larger than a preset quantity threshold value, sending the first electric quantity distribution strategy to the second virtual power plant terminal, and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy.
As described in the above step S1-step S5, a preset first sensor array is adopted to perform signal acquisition operation on the environment corresponding to the first virtual power plant terminal, so as to obtain a first sensing signal sequence; wherein the first sensor array comprises at least a temperature sensor, a humidity sensor, and an electrical signal sensor of an electrical energy storage; calling a first algorithm corresponding to the first sensing signal sequence; the first algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input; calling a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key; wherein the first asymmetric public key is disclosed externally; selecting three virtual power plant terminals from all the virtual power plant terminals according to a preset terminal screening method; wherein the default algorithms in the three virtual power plant terminals are all different from the first algorithm; and respectively sending the first sensing signal sequence, the first algorithm and the first asymmetric private key to the selected three virtual power plant terminals, and respectively acquiring confirmation signals returned by the selected three virtual power plant terminals. The implementation subject of the invention is a first virtual power plant terminal. The first sensor array is arranged in a region corresponding to the first virtual power plant terminal, and the region is provided with at least one of an electricity utilization facility, an electricity generation facility and/or an electricity storage facility. Since the usage of the electrical energy is related to the environment, for example, information such as temperature, humidity and the existing electrical quantity, the detected first sensing signal sequence can be used as the basis of the electrical quantity distribution strategy. For example, in the simplest case, the power consumption facility such as an air conditioner is frequently used in hot weather in summer, and consumes much power, which affects the power distribution strategy. The electric signal sensor of the electric energy storage is an electric signal sensor of the electric energy storage arranged in an environment corresponding to the first virtual power plant terminal, and is, for example, a storage battery. Then, calling a first algorithm corresponding to the first sensing signal sequence; the first algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input. The collected signals can affect the electric quantity distribution strategy, but how the collected signals affect the electric quantity distribution strategy is directly related to the algorithm, and the first algorithm is a default algorithm of the first virtual power plant terminal, and can be calculated in any feasible manner, which is not described herein again. Then, a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key is called; wherein the first asymmetric public key is exposed such that the first asymmetric public key is accessible by any terminal but the first asymmetric private key is not exposed. The asymmetric key of the present invention is also particular, and it is a feature of the present invention that the key is not specially designed, but that the execution subject of the encryption and decryption process of the key is not the first virtual power plant terminal having the key pair, i.e. the original virtual power plant terminal having the key pair, and the encryption and decryption operation is not performed using the key pair. Selecting three virtual power plant terminals from all the virtual power plant terminals according to a preset terminal screening method; wherein the default algorithms in the three virtual power plant terminals are all different from the first algorithm; and respectively sending the first sensing signal sequence, the first algorithm and the first asymmetric private key to the selected three virtual power plant terminals, and respectively acquiring confirmation signals returned by the selected three virtual power plant terminals. The selected three virtual plant terminals are not the first virtual plant terminal, and it is important that the default algorithms in the three virtual plant terminals are all different from the first algorithm, and further, the default algorithms in the three virtual plant terminals are different from each other. Therefore, the first sensing signal sequence, the first algorithm and the first asymmetric private key are respectively sent to the selected three virtual power plant terminals, so that the virtual power plant terminals receiving the first algorithm can be guaranteed to be capable of calculating by using the first algorithm (thereby avoiding the situation that the virtual power plant terminals adopt self default algorithms and are not accepted), and confirmation signals returned by the selected three virtual power plant terminals are required to be respectively acquired, which is the basis that the first virtual power plant terminals have the permission of subsequent calculation.
Further, the step S4 further includes:
s401, obtaining confidence values corresponding to all virtual power plant terminals respectively, and excluding the virtual power plant terminals with the confidence values smaller than a preset confidence threshold value, so as to obtain a plurality of optional terminals, wherein: presetting a corresponding confidence value for each virtual power plant terminal;
s402, randomly selecting three virtual power plant terminals from the plurality of selectable terminals; wherein the default algorithms in the three virtual power plant terminals are all different from the first algorithm.
And the step S14 further comprises:
and S141, if the dissimilar quantity is larger than a preset quantity threshold value, reducing a confidence value corresponding to the second virtual power plant terminal.
Therefore, the process of excellence and disadvantage of the closed loop is realized, and the high-quality and high-reliability virtual terminal chain is finally formed. Through the design of the confidence value, the feedback of the reliability is formed in the analysis and calculation process of the final electric quantity distribution strategy, a perfect closed loop is formed, and the suspected virtual power plant terminal is excluded from the calculation chain of the electric quantity distribution strategy in the process, so that the final calculation result is more and more accurate and the reliability is higher and higher along with the lapse of time.
As described in the above step S6-step S10, the encrypted second sensing signal sequence sent by the second virtual power plant terminal is obtained; the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals; acquiring an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input; the second algorithm is a default algorithm of the third virtual power plant terminal; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals; sending a key acquisition request to a fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals; receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the fourth virtual power plant terminal sends the second asymmetric private key under the triggering condition that the confirmation signal is extracted and verified to be correct; and respectively decrypting the encrypted second sensing signal sequence and the encrypted second algorithm by using the second asymmetric private key, so as to obtain the decrypted second sensing signal sequence and the decrypted second algorithm.
The process before step S6 is a process in which the first virtual power plant terminal obtains the calculation authority, that is, only if the virtual power plant terminal provides the sensing signal sequence, the algorithm, and the key pair, it may be an executor of calculating the power distribution policy based on other sensing signal sequences. This is an important design that enables the invention to have a virtual plant terminal with the power to participate in the method of the invention without special design. Acquiring an encrypted second sensing signal sequence sent by a second virtual power plant terminal to serve as a calculation basis, wherein the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals. Then, acquiring an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input; the second algorithm is a default algorithm of the third virtual power plant terminal; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals. Sending a key acquisition request to a fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals. Receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the triggering condition for the fourth virtual power plant terminal to send the second asymmetric private key is that the confirmation signal is extracted and verified to be correct, and finally a special state is formed, namely, the first virtual power plant terminal obtains the encrypted sensing signal sequence, the encrypted algorithm and the asymmetric private key, and the special point is that the obtained encrypted sensing signal sequence, the encrypted algorithm and the asymmetric private key are from different virtual power plant terminals, and the public key adopted by encryption is not the public key of the terminal sending data, so that the security of data transmission is greatly increased, even if a data counterfeiter exists, the data counterfeiting is difficult to be carried out completely, the information security is guaranteed, and the overall calculation reliability is improved. Therefore, the encrypted second sensing signal sequence and the encrypted second algorithm are respectively decrypted by using the second asymmetric private key, so that the decrypted second sensing signal sequence and the decrypted second algorithm are obtained, and the first virtual power plant terminal can perform a specific calculation process. It should be noted that the second asymmetric private key is pre-stored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key acquisition request, which is necessary, and only if the confirmation signal is verified to be correct, the first virtual power plant terminal can acquire the private key.
Further, before the step S7, the method further includes:
step S61, dividing the code corresponding to the second algorithm into a plurality of blocks by the third virtual power plant terminal;
s62, acquiring the address of the fourth virtual power plant terminal, splitting the address of the fourth virtual power plant terminal, and attaching the split address of the fourth virtual power plant terminal to the designated position of at least one of the blocks to obtain a plurality of blocks with addresses;
step S63, performing a first hiding operation on the addressed blocks to disorder the order of the blocks, thereby obtaining a disordered block group;
step S64, carrying out first encryption processing on the disordered block group by adopting the second asymmetric public key to obtain an encrypted disordered block group;
step S65, a preset image file is called, and second hiding processing operation is carried out on the image file and the encrypted disordered block group, so that the encrypted disordered block group is hidden in the image file in an embedded mode, and a hidden image file is obtained;
and step S66, carrying out second encryption processing on the hidden image file by adopting the second asymmetric public key to obtain an encrypted image file, and recording the encrypted image file as an encrypted carrier of a second algorithm.
Therefore, the information security is further improved in a mode of multilayer hiding, multilayer encryption and image file hiding, and the address of the fourth virtual power plant terminal is hidden in the image file, so that the fourth virtual power plant terminal is not exposed to the outside, and only the third virtual power plant terminal and the successfully decrypted first virtual power plant terminal can obtain the image file, and the security is further improved. The method adopts the modes of code division, address hiding, disorder, primary encryption, image file hiding and secondary encryption, so that the image file is only displayed as a common image file in appearance, and the information with higher security level is hidden actually.
As described in the above step S11-step S15, the second algorithm is adopted, and a second sensing signal sequence is used as an input to calculate a first electric quantity distribution strategy corresponding to the second sensing signal sequence; acquiring n electric quantity distribution strategies corresponding to the second sensing signal sequence and respectively calculated by n virtual power plant terminals; the n virtual power plant terminals do not adopt a default algorithm of the virtual power plant terminals in the respective calculation process; n is an integer greater than 3; according to a preset similarity calculation method, respectively calculating the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies, so as to obtain n similarity values; acquiring the dissimilarity number smaller than a preset similarity threshold in the n similarity values, and judging whether the dissimilarity number is larger than a preset number threshold; and if the dissimilar quantity is not greater than a preset quantity threshold value, sending the first electric quantity distribution strategy to the second virtual power plant terminal, and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy. The second algorithm may be any feasible algorithm similar to the first algorithm, but is different from the first algorithm to reduce the possibility of data falsification. Since the second sensing signal sequence is used as input, a first electric quantity distribution strategy corresponding to the second sensing signal sequence is calculated. In addition, other data, such as data of the power grid, including power price, historical power utilization data and the like, can be called in the calculation process of the algorithm, and the data can be added in any form in the calculation process, for example, in the form of called dynamic parameters, or as input in parallel with the second sensing signal sequence. And then acquiring n electric quantity distribution strategies which are respectively calculated by n virtual power plant terminals and correspond to the second sensing signal sequence, wherein the n virtual power plant terminals participate in the calculation process of the electric quantity distribution strategy corresponding to the second virtual power plant terminal. Further, the n virtual power plant terminals are similar to the first virtual power plant terminal, that is, each of the n virtual power plant terminals needs to acquire a calculation authority (that is, the process is the same as the process from step S1 to step S5, corresponding sensing signal sequences, algorithms and keys are to be respectively sent to three different virtual power plant terminals, and corresponding returned certificates are acquired), and then sensing signal sequences, algorithms and keys respectively sent by the other three different virtual power plant terminals are acquired (that is, the process is the same as the process from step S6 to step S10, wherein the sensing signal sequence is the second sensing signal sequence), so that the n power distribution strategies are calculated. According to a preset similarity calculation method, the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies is calculated respectively, and therefore n similarity values are obtained. The purpose of the similarity calculation is to balance the feasibility and the credibility of the first power distribution strategy, and if most of the power distribution strategies are the same as or similar to the first power distribution strategy, the feasibility and the credibility of the first power distribution strategy are indicated. Any feasible method can be adopted for the similarity calculation. Acquiring the dissimilarity number smaller than a preset similarity threshold in the n similarity values, and judging whether the dissimilarity number is larger than a preset number threshold; and if the dissimilar quantity is not greater than a preset quantity threshold value, sending the first electric quantity distribution strategy to the second virtual power plant terminal, and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy. So as to determine whether the first power allocation strategy is appropriate by obtaining dissimilar quantities. Finally, if the number of dissimilarity is not greater than the preset number threshold, it indicates that a first power distribution strategy should be executed, and therefore the first power distribution strategy is sent to the second virtual power plant terminal, and the second virtual power plant terminal is required to execute the first power distribution strategy, because the first power distribution strategy is a calculation result based on the second sensing signal sequence, which needs the second virtual power plant terminal to execute. The power distribution policy includes, for example, how much external power should be acquired, what electricity price should be adopted, what time period to acquire the delivered external power, how much power should be delivered to the outside, and the like.
Further, after the step S12, the method further includes:
s121, respectively acquiring an algorithm and a sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process;
step S122, respectively judging whether the algorithms adopted by each of the n virtual power plant terminals in the calculation process are different, judging whether the sensing signal sequences adopted by each of the n virtual power plant terminals in the calculation process are second sensing signal sequences, and judging whether the algorithms adopted by each of the n virtual power plant terminals in the calculation process are not the default algorithms of the virtual power plant terminals;
step S123, if the algorithms adopted by each of the n virtual power plant terminals in the calculation process are different, the sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process is a second sensing signal sequence, and the algorithms adopted by each of the n virtual power plant terminals in the calculation process are not default algorithms of the virtual power plant terminals, generating a similarity calculation instruction, wherein the similarity calculation instruction is used for instructing that the similarity between the first electric quantity distribution strategy and any one of the n virtual power plant terminals is calculated according to a preset similarity calculation method.
Therefore, the n electric quantity distribution strategies obtained by calculating the n virtual power plant terminals have high data availability. Respectively obtaining an algorithm and a sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process; respectively judging whether the algorithm adopted by each of the n virtual power plant terminals in the calculation process is different, judging whether the sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process is a second sensing signal sequence, judging whether the algorithm adopted by each of the n virtual power plant terminals in the calculation process is not the default algorithm of the virtual power plant terminal, determining each of the n virtual power plant terminals, and judging whether the algorithm is the same as or similar to the first virtual power plant terminal in the calculation process, so as to reduce the possibility of data counterfeiting.
Further, the step S13 further includes:
step S131, according to a preset vector mapping method, mapping the first electric quantity distribution strategy into a first vector, and mapping the n electric quantity distribution strategies into a second vector, a third vector, … and an n +1 th vector;
step S132, a preset m similarity calculation method is called, and the second vector, the third vector, … and the (n + 1) th vector are divided into m sets, wherein m is an integer smaller than n +1 and larger than 2; wherein the m similarity calculation methods comprise a first similarity calculation method, a second similarity calculation method, … and an mth similarity calculation method; the m sets comprise a first set, a second set, … and an m set;
step S133, according to the first similarity calculation method, calculating a similarity value between the first vector and each member in the first set, thereby obtaining a first similarity value sequence;
step S134, calculating a similarity value between the first vector and each member in the second set according to the second similarity calculation method, thereby obtaining a second similarity value sequence;
s135, sequentially calculating to respectively obtain a third similarity value sequence to an m-1 similarity value sequence;
step S136, according to the mth similarity calculation method, calculating the similarity value between the first vector and each member in the mth set, thereby obtaining an mth similarity value sequence;
step S137, summarizing the first similarity value sequence, the second similarity value sequence, … and the nth similarity value sequence to obtain a total similarity value sequence;
s138, acquiring a confidence value total sequence corresponding to the similarity value total sequence according to a preset corresponding relation between the similarity value and a virtual power plant terminal and the confidence value;
and step S139, performing product processing on the similarity value total sequence and the confidence value total sequence in a manner of multiplying corresponding members to obtain a product sequence, and marking each member in the product sequence as the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies respectively, so as to obtain n similarity values.
Therefore, the accuracy of similarity calculation is improved, and the reliability of finally identifying the first electric quantity distribution strategy is improved. The vector mapping method may adopt any feasible method, for example, extracting the numbers in the power distribution policy, and then introducing the preset parameter pairs to obtain the mapped vectors. The first similarity calculation method may be any feasible algorithm, such as a cosine similarity calculation method. The invention adopts a special similarity calculation method, namely, the first electric quantity distribution strategy is mapped into a first vector, and the n electric quantity distribution strategies are mapped into a second vector, a third vector, … and an n +1 th vector; calling a preset m similarity calculation method, and dividing the second vector, the third vector, … and the (n + 1) th vector into m sets, wherein m is an integer less than n +1 and greater than 2; wherein the m similarity calculation methods comprise a first similarity calculation method, a second similarity calculation method, … and an mth similarity calculation method; the m sets comprise a first set, a second set, … and an m set; according to the first similarity calculation method, calculating the similarity value of the first vector and each member in the first set, thereby obtaining a first similarity value sequence; according to the second similarity calculation method, calculating the similarity value of the first vector and each member in the second set, thereby obtaining a second similarity value sequence; … …, respectively; according to the mth similarity calculation method, calculating the similarity value of the first vector and each member in the mth set, thereby obtaining an mth similarity value sequence; summarizing the first similarity value sequence, the second similarity value sequence, … and the nth similarity value sequence to obtain a total similarity value sequence; acquiring a confidence value total sequence corresponding to the similarity value total sequence according to a preset corresponding relation between the similarity value and the virtual power plant terminal and the confidence value; and performing product processing on the similarity value total sequence and the confidence value total sequence in a manner of multiplying corresponding members to obtain a product sequence, and recording each member in the product sequence as the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies respectively, so as to obtain n similarity values. In this way, the possible deviation of a single similarity calculation method is prevented by integrating the merits of the various similarity calculation methods.
It can be understood that the operation control method of the virtual power plant provided by the invention has the following advantages:
1. the implementation subject of the invention is the first virtual power plant terminal instead of a single main control end, thus reducing the requirement on a high-performance computer and reducing the operation cost.
2. In the operation control of the virtual power plant, a final first electric quantity distribution strategy is obtained in a mode that a first virtual power plant terminal is used as a main terminal and a plurality of other virtual power plant terminals participate, and the overall and local control accuracy is high.
3. The first virtual power plant terminal can have the authority of calculating the second sensing signal sequence only after the first sensor array, the first algorithm and the first asymmetric private key are respectively sent to the selected three virtual power plant terminals, so that the information safety is improved, and the participation degree of the terminal is guaranteed.
4. Each virtual power plant terminal cannot calculate own data by using an algorithm of the virtual power plant terminal so as to calculate an electric quantity distribution strategy of the virtual power plant terminal, and therefore the possibility of data counterfeiting is reduced.
5. When the first virtual power plant terminal is used for calculation, the adopted algorithm, the sensing signal sequence and the key for decryption are respectively from different virtual power plant terminals, so that cross data forgery is further prevented, and the reliability of a calculation result is ensured.
6. And the final electric quantity distribution strategy obtained by the participation of the plurality of virtual terminals ensures the reliability of the calculation result.
An embodiment of the present invention further provides an operation control device of a virtual power plant, which is applied to a first virtual power plant terminal, and includes:
the first sensing signal sequence acquisition unit is used for acquiring signals of an environment corresponding to the first virtual power plant terminal by adopting a preset first sensor array so as to obtain a first sensing signal sequence; wherein the first sensor array comprises at least a temperature sensor, a humidity sensor and an electrical signal sensor of an electrical energy storage;
a first algorithm calling unit, configured to call a first algorithm corresponding to the first sensing signal sequence; the first algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input;
the asymmetric key calling unit is used for calling a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key; wherein the first asymmetric public key is disclosed externally;
the terminal screening unit is used for selecting three virtual power plant terminals from all the virtual power plant terminals according to a preset terminal screening method; the default algorithms in the three virtual power plant terminals are different from the first algorithm;
the confirmation signal acquisition unit is used for respectively sending the first sensing signal sequence, the first algorithm and the first asymmetric private key to the selected three virtual power plant terminals and respectively acquiring confirmation signals returned by the selected three virtual power plant terminals;
the second sensing signal sequence acquisition unit is used for acquiring an encrypted second sensing signal sequence sent by a second virtual power plant terminal; the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the encrypted second algorithm obtaining unit is used for obtaining an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input; the second algorithm is a default algorithm of the third virtual power plant terminal; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the key acquisition request sending unit is used for sending a key acquisition request to the fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the second asymmetric private key receiving unit is used for receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the fourth virtual power plant terminal sends the second asymmetric private key under the triggering condition that the confirmation signal is extracted and verified to be correct;
the decryption unit is used for respectively decrypting the encrypted second sensing signal sequence and the encrypted second algorithm by using the second asymmetric private key so as to obtain the decrypted second sensing signal sequence and the decrypted second algorithm;
the first electric quantity distribution strategy calculation unit is used for calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by adopting the second algorithm and taking the second sensing signal sequence as input;
the electric quantity distribution strategy acquisition unit is used for acquiring n electric quantity distribution strategies which are respectively calculated by n virtual power plant terminals and correspond to the second sensing signal sequence; the n virtual power plant terminals do not adopt a default algorithm of the virtual power plant terminals in the respective calculation process; n is an integer greater than 3;
the similarity calculation unit is used for calculating the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies according to a preset similarity calculation method so as to obtain n similarity values;
the dissimilarity number judging unit is used for acquiring the dissimilarity number smaller than a preset similarity threshold value in the n similarity values and judging whether the dissimilarity number is larger than the preset number threshold value;
and the first electric quantity distribution strategy sending unit is used for sending the first electric quantity distribution strategy to the second virtual power plant terminal and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy if the dissimilar quantity is not greater than a preset quantity threshold value.
The operations respectively executed by the units correspond to the steps of the operation control method of the virtual power plant of the foregoing embodiment one by one, and are not described herein again.
Referring to fig. 3, an embodiment of the present invention further provides a computer device, where the computer device may be a server, and an internal structure of the computer device may be as shown in the figure. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data used by the operation control method of the virtual power plant. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of operational control of a virtual power plant.
The processor executes the operation control method of the virtual power plant, wherein the steps included in the method correspond to the steps of executing the operation control method of the virtual power plant of the foregoing embodiment one to one, and are not described herein again.
It will be appreciated by those skilled in the art that the architecture presented in the figures is only a block diagram of some of the architectures associated with the present solution and is not intended to limit the scope of the present solution as applied to computer devices.
Another embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements an operation control method of a virtual power plant, where the method includes steps corresponding to the steps of executing the operation control method of the virtual power plant of the foregoing embodiment one to one, and are not described herein again.
The implementation of the invention has the following beneficial effects:
the invention provides an operation control method, a system, computer equipment and a storage medium of a virtual power plant, wherein a first sensor array is adopted to obtain a first sensing signal sequence, a first algorithm and an asymmetric secret key are called, three virtual power plant terminals are selected, the first sensing signal sequence, the first algorithm and the first asymmetric secret key are respectively sent to the selected three virtual power plant terminals, and an encrypted second sensing signal sequence sent by a second virtual power plant terminal is obtained; acquiring an encrypted second algorithm sent by a third virtual power plant terminal; sending a key acquisition request to a fourth virtual power plant terminal; receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; carrying out decryption processing so as to obtain a decrypted second sensing signal sequence and a second algorithm; calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by adopting the second algorithm and taking the second sensing signal sequence as input; acquiring n electric quantity distribution strategies corresponding to the second sensing signal sequence and respectively calculated by n virtual power plant terminals; respectively calculating n similarity values; obtaining dissimilar quantities; and if the dissimilar quantity is not greater than a preset quantity threshold value, sending the first electric quantity distribution strategy to the second virtual power plant terminal, and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy. Therefore, the first electric quantity distribution strategy executed by the second virtual power plant terminal is safe and guaranteed, the cooperation of a high-calculation-capacity main control terminal is not needed, and the verification of the plurality of virtual power plant terminals is carried out, so that the operation safety, the overall and local control accuracy of the power grid are improved, and the operation cost is reduced.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (9)

1. An operation control method of a virtual power plant is applied to a first virtual power plant terminal and comprises the following steps:
s1, performing signal acquisition operation on an environment corresponding to the first virtual power plant terminal by adopting a preset first sensor array to obtain a first sensing signal sequence; wherein the first sensor array comprises at least a temperature sensor, a humidity sensor, and an electrical signal sensor of an electrical energy storage;
step S2, calling a first algorithm corresponding to the first sensing signal sequence and used for calculating an electric quantity distribution strategy;
step S3, a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key is called; wherein the first asymmetric public key is disclosed externally;
s4, selecting three virtual power plant terminals from other virtual power plant terminals according to a preset terminal screening method; the default algorithms in the three virtual power plant terminals are different from the first algorithm;
step S5, the first sensing signal sequence, the first algorithm and the first asymmetric private key are respectively sent to the selected three virtual power plant terminals, and confirmation signals returned by the selected three virtual power plant terminals are respectively obtained;
s6, acquiring an encrypted second sensing signal sequence sent by a second virtual power plant terminal; the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals;
s7, acquiring an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is a default algorithm of the third virtual power plant terminal for calculating the electric quantity distribution strategy; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals;
step S8, sending a key obtaining request to a fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals;
step S9, receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the fourth virtual power plant terminal sends the second asymmetric private key under the triggering conditions that: extracting the confirmation signal and verifying the confirmation signal to be correct;
step S10, using the second asymmetric private key to decrypt the encrypted second sensing signal sequence and the encrypted second algorithm, respectively, so as to obtain a decrypted second sensing signal sequence and a decrypted second algorithm;
step S11, calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by using the second algorithm and taking the second sensing signal sequence as input;
s12, acquiring n electric quantity distribution strategies which are respectively calculated by n virtual power plant terminals and correspond to the second sensing signal sequence; the n virtual power plant terminals do not adopt the self default algorithm of each virtual power plant terminal in the respective calculation process; n is an integer greater than 3;
step S13, respectively calculating a similarity between the first power distribution policy and any one of the n power distribution policies according to a preset similarity calculation method, thereby obtaining n similarity values;
step S14, obtaining the dissimilarity quantity smaller than a preset similarity threshold in the n similarity values, and judging whether the dissimilarity quantity is larger than a preset quantity threshold;
and S15, if the dissimilar quantity is not larger than a preset quantity threshold value, sending the first electric quantity distribution strategy to the second virtual power plant terminal, and requiring the second virtual power plant terminal to execute the first electric quantity distribution strategy.
2. The method of claim 1, wherein the step S4 further comprises:
s401, obtaining confidence values corresponding to all virtual power plant terminals respectively, and excluding the virtual power plant terminals with the confidence values smaller than a preset confidence threshold value, so as to obtain a plurality of optional terminals, wherein: presetting a corresponding confidence value for each virtual power plant terminal;
s402, randomly selecting three virtual power plant terminals from the plurality of selectable terminals; wherein the default algorithms in the three virtual power plant terminals are all different from the first algorithm.
3. The method of claim 2, wherein the step S7 is preceded by the step of:
step S61, dividing the code corresponding to the second algorithm into a plurality of blocks by the third virtual power plant terminal;
s62, acquiring the address of the fourth virtual power plant terminal, splitting the address of the fourth virtual power plant terminal, and attaching the split address of the fourth virtual power plant terminal to the designated position of at least one of the blocks to obtain a plurality of blocks with addresses;
step S63, performing a first hiding operation on the addressed blocks to disorder the order of the blocks, thereby obtaining a disordered block group;
step S64, carrying out first encryption processing on the disordered block group by adopting the second asymmetric public key to obtain an encrypted disordered block group;
step S65, a preset image file is called, and second hiding processing operation is carried out on the image file and the encrypted disordered block group, so that the encrypted disordered block group is hidden in the image file in an embedded mode, and a hidden image file is obtained;
and step S66, carrying out second encryption processing on the hidden image file by adopting the second asymmetric public key to obtain an encrypted image file, and recording the encrypted image file as an encrypted carrier of a second algorithm.
4. The method of claim 3, wherein after the step S12, comprising:
s121, respectively acquiring an algorithm and a sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process;
step S122, respectively judging whether the algorithms adopted by each of the n virtual power plant terminals in the calculation process are different, judging whether the sensing signal sequences adopted by each of the n virtual power plant terminals in the calculation process are second sensing signal sequences, and judging whether the algorithms adopted by each of the n virtual power plant terminals in the calculation process are not the default algorithms of the virtual power plant terminals;
step S123, if the algorithms adopted by each of the n virtual power plant terminals in the calculation process are different, the sensing signal sequence adopted by each of the n virtual power plant terminals in the calculation process is a second sensing signal sequence, and the algorithms adopted by each of the n virtual power plant terminals in the calculation process are not default algorithms of the virtual power plant terminals, generating a similarity calculation instruction, wherein the similarity calculation instruction is used for instructing that the similarity between the first electric quantity distribution strategy and any one of the n virtual power plant terminals is calculated according to a preset similarity calculation method.
5. The method of claim 4, wherein the step S13 further comprises:
step S131, according to a preset vector mapping method, mapping the first electric quantity distribution strategy into a first vector, and mapping the n electric quantity distribution strategies into a second vector, a third vector, … and an n +1 th vector;
step S132, a preset m similarity calculation method is called, and the second vector, the third vector and the (n + 1) th vector are divided into m sets, wherein m is an integer smaller than n +1 and larger than 2; the m similarity calculation methods include a first similarity calculation method, a second similarity calculation method, and an m-th similarity calculation method; the m sets include a first set, a second set, through an m set;
step S133, according to the first similarity calculation method, calculating a similarity value between the first vector and each member in the first set, thereby obtaining a first similarity value sequence;
step S134, calculating a similarity value between the first vector and each member in the second set according to the second similarity calculation method, thereby obtaining a second similarity value sequence;
s135, sequentially calculating to respectively obtain a third similarity value sequence to an m-1 similarity value sequence;
step S136, according to the mth similarity calculation method, calculating the similarity value between the first vector and each member in the mth set, thereby obtaining an mth similarity value sequence;
step S137, summarizing the first similarity value sequence, the second similarity value sequence and the nth similarity value sequence to obtain a total similarity value sequence;
s138, acquiring a confidence value total sequence corresponding to the similarity value total sequence according to a preset corresponding relation between the similarity value and a virtual power plant terminal and the confidence value;
and step S139, performing product processing on the similarity value total sequence and the confidence value total sequence in a manner of multiplying corresponding members to obtain a product sequence, and marking each member in the product sequence as the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies respectively, so as to obtain n similarity values.
6. The method of claim 5, wherein the step S14 further comprises:
and S141, if the dissimilar quantity is larger than a preset quantity threshold value, reducing a confidence value corresponding to the second virtual power plant terminal.
7. An operation control system of a virtual power plant is applied to a first virtual power plant terminal, and is characterized by comprising:
the first sensing signal sequence acquisition unit is used for acquiring signals of an environment corresponding to the first virtual power plant terminal by adopting a preset first sensor array so as to obtain a first sensing signal sequence; wherein the first sensor array comprises at least a temperature sensor, a humidity sensor, and an electrical signal sensor of an electrical energy storage;
a first algorithm calling unit, configured to call a first algorithm corresponding to the first sensing signal sequence; the first algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input;
the asymmetric key calling unit is used for calling a preset asymmetric key consisting of a first asymmetric public key and a first asymmetric private key; wherein the first asymmetric public key is disclosed to the outside;
the terminal screening unit is used for selecting three virtual power plant terminals from all the virtual power plant terminals according to a preset terminal screening method; the default algorithms in the three virtual power plant terminals are different from the first algorithm;
the confirmation signal acquisition unit is used for respectively sending the first sensing signal sequence, the first algorithm and the first asymmetric private key to the selected three virtual power plant terminals and respectively acquiring confirmation signals returned by the selected three virtual power plant terminals;
the second sensing signal sequence acquisition unit is used for acquiring an encrypted second sensing signal sequence sent by a second virtual power plant terminal; the encrypted second sensing signal sequence is encrypted through a second asymmetric public key; the second sensing signal sequence is obtained by the second virtual power plant terminal by adopting a preset second sensor array to perform signal acquisition operation on an environment corresponding to the second virtual power plant terminal; the second virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the encrypted second algorithm obtaining unit is used for obtaining an encrypted second algorithm sent by a third virtual power plant terminal; the encrypted second algorithm is encrypted via a second asymmetric public key; the second algorithm is used for calculating a corresponding electric quantity distribution strategy by taking the sensing signal sequence as input; the second algorithm is a default algorithm of the third virtual power plant terminal; the third virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the key acquisition request sending unit is used for sending a key acquisition request to the fourth virtual power plant terminal; the key obtaining request is used for requesting to obtain a second asymmetric private key corresponding to the second asymmetric public key, the second asymmetric private key is prestored in the fourth virtual power plant terminal, and the confirmation signal is hidden in the key obtaining request; the fourth virtual power plant terminal does not belong to the selected three virtual power plant terminals;
the second asymmetric private key receiving unit is used for receiving a second asymmetric private key sent by the fourth virtual power plant terminal according to the key obtaining request; the fourth virtual power plant terminal sends the second asymmetric private key under the triggering condition that the confirmation signal is extracted and verified to be correct;
the decryption unit is used for respectively decrypting the encrypted second sensing signal sequence and the encrypted second algorithm by using the second asymmetric private key so as to obtain the decrypted second sensing signal sequence and the decrypted second algorithm;
the first electric quantity distribution strategy calculation unit is used for calculating a first electric quantity distribution strategy corresponding to a second sensing signal sequence by adopting the second algorithm and taking the second sensing signal sequence as input;
the electric quantity distribution strategy acquisition unit is used for acquiring n electric quantity distribution strategies which are respectively calculated by n virtual power plant terminals and correspond to the second sensing signal sequence; the n virtual power plant terminals do not adopt a default algorithm of the virtual power plant terminals in the respective calculation process; n is an integer greater than 3;
the similarity calculation unit is used for calculating the similarity between the first electric quantity distribution strategy and any one of the n electric quantity distribution strategies according to a preset similarity calculation method so as to obtain n similarity values;
the dissimilarity number judging unit is used for acquiring the dissimilarity number smaller than a preset similarity threshold value in the n similarity values and judging whether the dissimilarity number is larger than the preset number threshold value;
and the first electric quantity distribution strategy sending unit is used for sending the first electric quantity distribution strategy to the second virtual power plant terminal and requesting the second virtual power plant terminal to execute the first electric quantity distribution strategy if the dissimilar quantity judging unit judges that the dissimilar quantity is not greater than a preset quantity threshold value.
8. A computer device comprising a memory storing a computer program and a processor implementing the steps of the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202110237975.6A 2021-03-04 2021-03-04 Operation control method and system of virtual power plant, computer equipment and storage medium Active CN113093566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110237975.6A CN113093566B (en) 2021-03-04 2021-03-04 Operation control method and system of virtual power plant, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110237975.6A CN113093566B (en) 2021-03-04 2021-03-04 Operation control method and system of virtual power plant, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113093566A true CN113093566A (en) 2021-07-09
CN113093566B CN113093566B (en) 2022-04-01

Family

ID=76666415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110237975.6A Active CN113093566B (en) 2021-03-04 2021-03-04 Operation control method and system of virtual power plant, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113093566B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114336969A (en) * 2021-12-29 2022-04-12 深圳电网智慧能源技术有限公司 Energy storage power station centralized monitoring method and system based on virtual power plant

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160182458A1 (en) * 2014-12-17 2016-06-23 Cisco Technology, Inc. End-to-end security for virtual private service chains
US20190123580A1 (en) * 2017-10-23 2019-04-25 Sigora International Inc. Management of a power-distribution system
CN112003879A (en) * 2020-10-22 2020-11-27 腾讯科技(深圳)有限公司 Data transmission method for virtual scene, computer device and storage medium
CN112434343A (en) * 2020-11-25 2021-03-02 江西理工大学 Virtual power plant safety scheduling and transaction method based on dual block chain technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160182458A1 (en) * 2014-12-17 2016-06-23 Cisco Technology, Inc. End-to-end security for virtual private service chains
US20190123580A1 (en) * 2017-10-23 2019-04-25 Sigora International Inc. Management of a power-distribution system
CN112003879A (en) * 2020-10-22 2020-11-27 腾讯科技(深圳)有限公司 Data transmission method for virtual scene, computer device and storage medium
CN112434343A (en) * 2020-11-25 2021-03-02 江西理工大学 Virtual power plant safety scheduling and transaction method based on dual block chain technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄宇鹏等: "基于混合加密安全传输信息的虚拟电厂交易系统", 《信息技术与信息化》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114336969A (en) * 2021-12-29 2022-04-12 深圳电网智慧能源技术有限公司 Energy storage power station centralized monitoring method and system based on virtual power plant
CN114336969B (en) * 2021-12-29 2023-09-12 深圳电网智慧能源技术有限公司 Energy storage power station centralized monitoring method and system based on virtual power plant

Also Published As

Publication number Publication date
CN113093566B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
US11526616B1 (en) Method to verify the execution integrity of an application in a target device
JP2024063229A (en) Method and system implemented by block chain
EP3779792B1 (en) Two-dimensional code generation method, data processing method, apparatus, and server
CN108989339B (en) Ciphertext encryption method, system and storage medium with strategy hiding function
CN111024996A (en) Intelligent electric meter for identity authentication based on block chain technology
CN113093566B (en) Operation control method and system of virtual power plant, computer equipment and storage medium
CN110990790B (en) Data processing method and equipment
Jiang et al. SearchBC: A blockchain-based PEKS framework for IoT services
CN114048453A (en) User feature generation method and device, computer equipment and storage medium
CN114095162A (en) Connection verification method and device for certificateless power consumption information acquisition system
CN113364595A (en) Power grid private data signature aggregation method and device and computer equipment
CN117592693A (en) Power grid dispatching method, system, device, computer equipment and storage medium
WO2022188602A1 (en) Data providing method, apparatus and system
CN113852464A (en) Block chain-based ammeter secret key control method and related equipment
CN115396087A (en) Identity authentication method, device, equipment and medium based on temporary identity certificate
CN109510830B (en) Authentication method, device, medium and equipment for intelligent electric meter
CN113438562A (en) Intelligent electric meter data transmission method and system
CN113204741A (en) Method and system suitable for intelligent power consumption data aggregation
CN113205249B (en) Virtual power plant resource allocation method, device, equipment and medium based on intelligent contracts
EP3503606A1 (en) A method for controlling by a server the use of at least one data element of a data owner
Song et al. A trusted authentication model for remote users under cloud architecture
CN117081743B (en) Secret key management and acquisition method for privacy calculation, blockchain and electronic equipment
CN113746836B (en) Data holding verification method and system
CN114900300B (en) Cloud service temporary login key authentication method, device, equipment and storage medium
Guo et al. Multi-attribute Authentication Method Based on Continuous Trust Evaluation

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