Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
For the ease of clearly describing the technical scheme of the embodiment of the present invention, in an embodiment of the present invention, employ " the
One ", the printed words such as " second " make a distinction to function and the essentially identical identical entry of effect or similar item, and those skilled in the art can
To understand that the printed words such as " first ", " second " are not to be defined to quantity and execution order.
As shown in Figure 1, The embodiment provides a kind of based on the reactive power optimization side for improving the algorithm that leapfrogs
Method, including:
101st, the control variables of power distribution network and the state variable of power distribution network are obtained.
Specifically, the control variables of power distribution network is used to indicate adjustable generator node voltage amplitude, the power distribution network of power distribution network
Adjustable transformer application of adjustable tap gear and power distribution network reactive-load compensation capacitor switching group number, the state variable of power distribution network
For indicating the voltage of the PQ nodes of power distribution network and the idle of generator of power distribution network to exert oneself.
102nd, the frog for including the frog individuality of specified quantity and each opposition individual with the frog of specified quantity is obtained
Individual frog population.
Specifically, the frog individuality of wherein specified quantity is the control variables of the power distribution network in setting range.
103rd, initial reactive voltage is obtained according to frog population.
104th, the optimal value of local reactive voltage is obtained according to initial reactive voltage, and according to the optimal of local reactive voltage
Value obtains the optimal solution of Global.
Wherein, the optimal solution of Global is used for the idle work optimization of power distribution network.
The embodiment provides a kind of based on the reactive power optimization method for improving the algorithm that leapfrogs, matched somebody with somebody by obtaining
The control variables of power network and the state variable of power distribution network, and acquisition includes the frog individuality of specified quantity and and specified quantity
The individual each opposition of frog the individual frog population of frog, initial reactive voltage is obtained according to frog population, according to initial
Reactive voltage obtains the optimal value of local reactive voltage, and obtains Global according to the optimal value of local reactive voltage
Optimal solution.Be updated based on the algorithm that leapfrogs when just starting, Chaos Search helps out, thus accelerate frog individual to
Moved at global optimum position, with the increase of local area deep-searching iterations, algorithm progresses into and is with Chaos Search
It is main, so as to help algorithm to jump out local extremum, more preferable convergence and degree of optimization are made it have compared with prior art, moreover it is possible to
The operational efficiency and the quality of power supply of power network are enough improved, system active power loss is reduced.
Further, as shown in Figure 2, The embodiment provides a kind of based on the power network for improving the algorithm that leapfrogs
Idle work optimization method, including:
201st, according to X=(VGK,Ti,Cj) obtain power distribution network control variables X, according to U=(Vi,QGj) obtain power distribution network
State variable U.
Wherein, wherein VGKIt is adjustable generator node voltage amplitude, the T of power distribution networkiFor the adjustable transformer of power distribution network can
Adjust tap gear, CjIt is reactive-load compensation capacitor switching group number, the V of power distribution networkiIt is the voltage of the PQ nodes of power distribution network, QGjIt is
The generator of power distribution network it is idle exert oneself, i be the candidate compensation buses number of power distribution network, j be adjustable transformer number, the k of power distribution network
It is the generator nodes of power distribution network.The coding of all control variables can be expressed as X=[C, T, VG]=[C1,C2,…,Ci,
T1,T2,…,Tj,VG1,VG2,…,VGK]。
202nd, setting range (a is obtainedi,bi) in the N number of frog of specified quantity it is individual, and according toObtain finger
The frog of the individual each opposition of N frog of fixed number amount is individualSo as to constitute the frog population that scale is 2N.
Specifically, can be with N frog individuality x of random initializtioni∈(ai,bi), and it is individual to obtain its opposition successively It is the frog population of 2N so as to constitute scale, and calculates all individual fitness values in the population, and according to
It is ranked up from excellent to bad according to fitness value, the individual composition initial population of N frog therein is randomly choosed with certain probability, generally
The probability that the foundation better individuality that is fitness value of rate selection is selected into initial population is higher, and probability selection formula is pi=
(2N-i)/2N, i=1,2 ..., 2N.
203rd, the fitness value of all frogs individualities in the frog population is calculated.
204th, all frog individualities in frog population are ranked up according to fitness value.
205th, the select probability p of each frog individuality in the frog individuality after sequence is obtainediAnd according to select probability piIn row
The individual composition initial population of N number of frog is selected in frog individuality after sequence.
Specifically, according to pi=(2N-i)/2N, obtains the select probability of each frog individuality in the frog individuality after sequence
pi, wherein i=1,2 ..., 2N, and according to select probability piThe individual composition of N number of frog is selected in frog individuality after sequence just
Beginning population.
206th, initial reactive voltage is obtained.
Specifically, according to equality constraint equationAnd inequality constraints equationObtain initial reactive voltage
207th, the optimum individual position X of frog population is updated according to fitness valuebWith global optimum body position XgAnd update
Determine worst body position newX after the renewal of sub-group in current iterationwi。
Specifically, updating the optimum individual position X of frog population according to fitness valuebWith global optimum body position Xg, and
According to newXwi(k)=Xwi(k)·exp·[(1-exp(-α·y(k)))·(μ·Xwi(k)·(1-Xwi(k)))]+e-2α·y(k)·ΩiK () updates worst body position newX after the renewal for determining sub-group in current iterationwi。
Wherein, Ω (k) is the step-length more new variables that leapfrogs, and y (k) is Chaos Variable, can be according to Ω (k)=a1·rand
()·(Xb(k)-Xw(k)) step-length renewal variable Ω (k) that leapfrogs is obtained, obtaining chaos according to y (k)=y (k-1) (1+ λ) becomes
Amount y (k), wherein in formula, Xb(k) and XwK () represents the optimum individual and worst individuality during current sub-population kth time iteration respectively,
Rand () is generally evenly distributed in the random number between [0,1], a1It is constant;K is iterations;λ is the chaos factor less than 1,
XwiK () represents worst individual X of the current sub-population in kth time iterationwThe i-th dimension of (k), ΩiK () is the i-th dimension of Ω (k), α
Normal number is with μ.
208th, newX is judgedwFitness value whether be better than XwFitness value.
Work as newXwFitness value be better than XwFitness value when, perform step 209, work as newXwFitness value not
Better than XwFitness value when, perform step 210.
209th, newX is usedwSubstitution Xw。
210th, update Ω (k) and y (k) and generate newXw。
Specifically, working as newXwFitness value be better than XwFitness value when, then use newXwSubstitution Xw, work as newXwIt is suitable
Answer angle value not better than XwFitness value when, then update Ω (k) and y (k), and according to newXwi(k)=Omin+(Omax-
Omin) rand () generations newXw, wherein OmaxAnd OminThe maximum and minimum value of algorithm search scope, rand are represented respectively
() is the random individual being evenly distributed between [0,1].
211st, the individual foundation fitness value of frog in frog population is ranked up from excellent to bad, and successively according to triangle
Select probability 2 (m+1-i)/[m (m+1)] picks out Q frog n sub-group of individual composition, and is solved according to n sub-group complete
The optimal solution of office's reactive voltage.
212nd, determine whether all sub-groups are completed local area deep-searching.
When it is determined that all sub-groups are completed local area deep-searching, step 213 is performed.
When it is determined that simultaneously not all sub-group is completed local area deep-searching, execution step 207.
213rd, determine whether to meet global mixed iteration number of times G.
When it is determined that meeting overall situation mixed iteration number of times G, step 214 is performed.
When it is determined that be unsatisfactory for global mixed iteration number of times G, then performing step 215.
214th, the optimal solution of Global is exported.
215th, all frog individualities are re-mixed, then all frog individualities in frog population are arranged according to fitness value
Sequence simultaneously performs step 205.
The embodiment provides a kind of based on the reactive power optimization method for improving the algorithm that leapfrogs, matched somebody with somebody by obtaining
The control variables of power network and the state variable of power distribution network, and acquisition includes the frog individuality of specified quantity and and specified quantity
The individual each opposition of frog the individual frog population of frog, initial reactive voltage is obtained according to frog population, according to initial
Reactive voltage obtains the optimal value of local reactive voltage, and obtains Global according to the optimal value of local reactive voltage
Optimal solution.Be updated based on the algorithm that leapfrogs when just starting, Chaos Search helps out, thus accelerate frog individual to
Moved at global optimum position, with the increase of local area deep-searching iterations, algorithm progresses into and is with Chaos Search
It is main, so as to help algorithm to jump out local extremum, more preferable convergence and degree of optimization are made it have compared with prior art, moreover it is possible to
The operational efficiency and the quality of power supply of power network are enough improved, system active power loss is reduced.
As shown in Figure 3, The embodiment provides a kind of configuration device 301 of power distribution network, including:
Acquisition module 302, for obtaining the control variables of power distribution network and the state variable of power distribution network.
Specifically, the control variables of power distribution network is used to indicate adjustable generator node voltage amplitude, the power distribution network of power distribution network
Adjustable transformer application of adjustable tap gear and power distribution network reactive-load compensation capacitor switching group number, the state variable of power distribution network
For indicating the voltage of the PQ nodes of power distribution network and the idle of generator of power distribution network to exert oneself.
Processing module 303, includes that the frog of specified quantity is individual and frog of with specified quantity is individual respectively for obtaining
From the individual frog population of the frog of opposition.
Specifically, the frog individuality of wherein specified quantity is the control variables of the power distribution network in setting range.
Processing module 303, is additionally operable to obtain initial reactive voltage according to frog population.
Processing module 303, is additionally operable to be obtained according to initial reactive voltage the optimal value of local reactive voltage, and according to part
The optimal value of reactive voltage obtains the optimal solution of Global.
Wherein, the optimal solution of Global is used for the idle work optimization of power distribution network.
The embodiment provides a kind of based on the reactive power optimization device for improving the algorithm that leapfrogs, matched somebody with somebody by obtaining
The control variables of power network and the state variable of power distribution network, and acquisition includes the frog individuality of specified quantity and and specified quantity
The individual each opposition of frog the individual frog population of frog, initial reactive voltage is obtained according to frog population, according to initial
Reactive voltage obtains the optimal value of local reactive voltage, and obtains Global according to the optimal value of local reactive voltage
Optimal solution.Be updated based on the algorithm that leapfrogs when just starting, Chaos Search helps out, thus accelerate frog individual to
Moved at global optimum position, with the increase of local area deep-searching iterations, algorithm progresses into and is with Chaos Search
It is main, so as to help algorithm to jump out local extremum, more preferable convergence and degree of optimization are made it have compared with prior art, moreover it is possible to
The operational efficiency and the quality of power supply of power network are enough improved, system active power loss is reduced.
Further, acquisition module 302, specifically for:According to X=(VGK,Ti,Cj) obtain power distribution network control variables
X, according to U=(Vi,QGj) obtain power distribution network state variable U.
Wherein, wherein VGKIt is adjustable generator node voltage amplitude, the T of power distribution networkiFor the adjustable transformer of power distribution network can
Adjust tap gear, CjIt is reactive-load compensation capacitor switching group number, the V of power distribution networkiIt is the voltage of the PQ nodes of power distribution network, QGjIt is
The generator of power distribution network it is idle exert oneself, i be the candidate compensation buses number of power distribution network, j be adjustable transformer number, the k of power distribution network
It is the generator nodes of power distribution network.The coding of all control variables can be expressed as X=[C, T, VG]=[C1,C2,…,Ci,
T1,T2,…,Tj,VG1,VG2,…,VGK]。
Processing module 303, specifically for obtaining setting range (ai,bi) in the N number of frog of specified quantity it is individual, and according toThe frog for obtaining the individual each opposition of N frog of specified quantity is individualSo as to constitute the frog kind that scale is 2N
Group.
Specifically, can be with N frog individuality x of random initializtioni∈(ai,bi), and it is individual to obtain its opposition successively It is the frog population of 2N so as to constitute scale, and calculates all individual fitness values in the population, and according to
It is ranked up from excellent to bad according to fitness value, the individual composition initial population of N frog therein is randomly choosed with certain probability, generally
The probability that the foundation better individuality that is fitness value of rate selection is selected into initial population is higher, and probability selection formula is pi=
(2N-i)/2N, i=1,2 ..., 2N.
Processing module 303, the fitness value specifically for calculating all frogs individualities in the frog population, according to fitness
Value is ranked up to all frog individualities in frog population.The selection for obtaining each frog individuality in the frog individuality after sequence is general
Rate piAnd according to select probability piThe individual composition initial population of N number of frog is selected in frog individuality after sequence.
Specifically, according to pi=(2N-i)/2N, obtains the select probability of each frog individuality in the frog individuality after sequence
pi, wherein i=1,2 ..., 2N, and according to select probability piThe individual composition of N number of frog is selected in frog individuality after sequence just
Beginning population;Obtain initial reactive voltage.
Specifically, according to equality constraint equationAnd inequality constraints equationObtain initial reactive voltage.
Processing module 303, the optimum individual position X specifically for updating frog population according to fitness valuebWith the overall situation most
Excellent body position XgAnd update worst body position newX after the renewal for determining sub-group in current iterationwi。
Specifically, updating the optimum individual position X of frog population according to fitness valuebWith global optimum body position Xg, and
According to newXwi(k)=Xwi(k)·exp·[(1-exp(-α·y(k)))·(μ·Xwi(k)·(1-Xwi(k)))]+e-2α·y(k)·ΩiK () updates worst body position newX after the renewal for determining sub-group in current iterationwi。
Wherein, Ω (k) is the step-length more new variables that leapfrogs, and y (k) is Chaos Variable, can be according to Ω (k)=a1·rand
()·(Xb(k)-Xw(k)) step-length renewal variable Ω (k) that leapfrogs is obtained, obtaining chaos according to y (k)=y (k-1) (1+ λ) becomes
Amount y (k), wherein in formula, Xb(k) and XwK () represents the optimum individual and worst individuality during current sub-population kth time iteration respectively,
Rand () is generally evenly distributed in the random number between [0,1], a1It is constant;K is iterations;λ is the chaos factor less than 1,
XwiK () represents worst individual X of the current sub-population in kth time iterationwThe i-th dimension of (k), ΩiK () is the i-th dimension of Ω (k), α
Normal number is with μ.
Processing module 303, specifically for judging newXwFitness value whether be better than XwFitness value.
Work as newXwFitness value be better than XwFitness value when, use newXwSubstitution Xw, work as newXwFitness value not
Better than XwFitness value when, update Ω (k) and y (k) and generate newXw。
Specifically, working as newXwFitness value be better than XwFitness value when, then use newXwSubstitution Xw, work as newXwIt is suitable
Answer angle value not better than XwFitness value when, then update Ω (k) and y (k), and according to newXwi(k)=Omin+(Omax-
Omin) rand () generations newXw, wherein OmaxAnd OminThe maximum and minimum value of algorithm search scope, rand are represented respectively
() is the random individual being evenly distributed between [0,1].
Processing module 303, specifically for the individual foundation fitness value of frog in frog population is arranged from excellent to bad
Sequence, and according to triangle select probability 2 (m+1-i)/[m (m+1)] pick out Q frog n sub-group of individual composition, and root successively
The optimal solution of Global is solved according to n sub-group.
Processing module 303, is additionally operable to determine whether all sub-groups are completed local area deep-searching.
When it is determined that all sub-groups are completed local area deep-searching, it is determined whether meet global mixed iteration number of times G,
When it is determined that meeting overall situation mixed iteration number of times G, the optimal solution of Global is exported.
The embodiment provides a kind of based on the reactive power optimization device for improving the algorithm that leapfrogs, matched somebody with somebody by obtaining
The control variables of power network and the state variable of power distribution network, and acquisition includes the frog individuality of specified quantity and and specified quantity
The individual each opposition of frog the individual frog population of frog, initial reactive voltage is obtained according to frog population, according to initial
Reactive voltage obtains the optimal value of local reactive voltage, and obtains Global according to the optimal value of local reactive voltage
Optimal solution.Be updated based on the algorithm that leapfrogs when just starting, Chaos Search helps out, thus accelerate frog individual to
Moved at global optimum position, with the increase of local area deep-searching iterations, algorithm progresses into and is with Chaos Search
It is main, so as to help algorithm to jump out local extremum, more preferable convergence and degree of optimization are made it have compared with prior art, moreover it is possible to
The operational efficiency and the quality of power supply of power network are enough improved, system active power loss is reduced.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with
Realized with hardware, or firmware is realized, or combinations thereof mode is realized.When implemented in software, can be by above-mentioned functions
Storage is transmitted in computer-readable medium or as one or more instructions on computer-readable medium or code.Meter
Calculation machine computer-readable recording medium includes computer-readable storage medium and communication media, and wherein communication media includes being easy to from a place to another
Any medium of individual place transmission computer program.Storage medium can be any usable medium that computer can be accessed.With
As a example by this but it is not limited to:Computer-readable medium can include random access memory (English full name:Random Access
Memory, English abbreviation:RAM), read-only storage (English full name:Read Only Memory, English abbreviation:ROM), electricity can
EPROM (English full name:Electrically Erasable Programmable Read Only
Memory, English abbreviation:EEPROM), read-only optical disc (English full name:Compact Disc Read Only Memory, English
Referred to as:CD-ROM) or other optical disc storages, magnetic disk storage medium or other magnetic storage apparatus or can be used in carry or
Desired program code of the storage with instruction or data structure form simultaneously can be by any other medium of computer access.This
Outward.Any connection can be appropriate as computer-readable medium.If for example, software be use coaxial cable, optical fiber cable,
Twisted-pair feeder, digital subscriber line (English full name:Digital Subscriber Line, English abbreviation:DSL it is) or such as red
The wireless technology of outside line, radio and microwave etc is transmitted from website, server or other remote sources, then coaxial electrical
The wireless technology of cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, wireless and microwave etc is included in computer-readable
In the definition of medium.
Through the above description of the embodiments, it is apparent to those skilled in the art that, when with software
When mode realizes the present invention, can will store in computer-readable medium or logical for the instruction or code that perform the above method
Computer-readable medium is crossed to be transmitted.Computer-readable medium includes computer-readable storage medium and communication media, wherein communicating
Medium includes being easy to being transmitted from a place to another place any medium of computer program.Storage medium can be calculated
Any usable medium that machine can be accessed.As example but it is not limited to:Computer-readable medium can include RAM, ROM, electricity can
EPROM (full name:Electrically erasable programmable read-only memory,
Referred to as:EEPROM), CD, disk or other magnetic storage apparatus or can be used in carrying or store with instruction or data
The desired program code of structure type simultaneously can be by any other medium of computer access.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.