The content of the invention
In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides the method for adjustment and dress of a kind of out-of-limit electricity of unit
Put, the adjustment of secondary transaction electricity is carried out based on transaction sorting by reversals, the out-of-limit electricity and machine group for considering unit are out-of-limit
Electricity, carries out sorting by reversals to transaction according to the principle of " rear generation, first adjustment ", out-of-limit electricity is assigned to respectively by distribution principle
On unit in transaction, and by considering to secondary transaction electricity adjustment, realize the adjustment of transaction electricity.
In order to realize foregoing invention purpose, the present invention is adopted the following technical scheme that:
The present invention provides a kind of method of adjustment of the out-of-limit electricity of unit, and methods described includes:
The out-of-limit electricity of unit is determined according to the limiting electricity quantity of unit, and machine group is determined according to the limiting electricity quantity of machine group
Out-of-limit electricity;
The initial adjustment electricity of unit in transaction is calculated according to the out-of-limit electricity of the out-of-limit electricity of unit and machine group respectively;
The final adjustment electricity of unit in transaction is determined according to the initial adjustment electricity of unit in transaction.
The limiting electricity quantity according to unit determines to include before the out-of-limit electricity of unit:
Obtain opening, trade end time, the transaction electricity of unit, the limiting electricity quantity of unit and machine group
Limiting electricity quantity;
Transaction is numbered according to opening sorting by reversals, and to transaction count.
The limiting electricity quantity according to unit determines that the out-of-limit electricity of unit includes:
The out-of-limit electricity of the unit is represented with following formula:
Wherein, Δ QiRepresent unit i out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, QiRepresent
Unit i limiting electricity quantity, n=1,2 ..., N, N represents total degree of merchandising.
The limiting electricity quantity according to machine group determines that the out-of-limit electricity of machine group includes:
The out-of-limit electricity of the machine group is represented with following formula:
Wherein, Δ GjRepresent machine group j out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, GjTable
Show machine group j limiting electricity quantity, i=1,2 ..., I, I represents the unit sum in machine group j.
The initial adjustment for calculating unit in transaction according to the out-of-limit electricity of the out-of-limit electricity of unit and machine group respectively
Electricity includes:
The initial adjustment electricity of unit is represented with following formula in the transaction obtained according to the out-of-limit electricity of unit:
Wherein, Δ U 'i,nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of unit is obtained
Amount, Qi,n-1Represent the transaction electricity of unit i in (n-1)th transaction, Δ Qi,nRepresent that the transaction electricity of unit i in n-th transaction is adjusted
Whole amount.
The initial adjustment for calculating unit in transaction according to the out-of-limit electricity of the out-of-limit electricity of unit and machine group respectively
Electricity includes:
The initial adjustment electricity of unit is represented with following formula in the transaction obtained according to the out-of-limit electricity of machine group:
Wherein, Δ U "I, nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of machine group is obtained
Amount,Unit i is represented due to the transaction electricity adjustment amount that machine group is out-of-limit and distributes,Represented with following formula:
The initial adjustment electricity according to unit in transaction determines that the final adjustment electricity of unit in transaction includes:
According to Δ U 'i,nWith Δ U "i,nThe final adjustment electricity of unit is represented with following formula in obtained transaction:
ΔUi,n=max { Δ U 'i,n, Δ U "i,n}
Wherein, Δ Ui,nRepresent the final adjustment electricity of unit i in n-th transaction.
The present invention also provides a kind of adjusting apparatus of the out-of-limit electricity of unit, and described device includes:
First determining module, the out-of-limit electricity for determining unit according to the limiting electricity quantity of unit, and according to machine group
Limiting electricity quantity determines the out-of-limit electricity of machine group;
Computing module, for calculating unit in transaction according to the out-of-limit electricity of the out-of-limit electricity of unit and machine group respectively
Initial adjustment electricity;
Second determining module, the final adjustment for determining unit in transaction according to the initial adjustment electricity of unit in transaction
Electricity.
Described device also includes:
Acquisition module, for obtain opening, trade end time, unit transaction electricity, unit the limit
The limiting electricity quantity of electricity and machine group;
Order module, will merchandise and carry out sorting by reversals according to the opening for obtaining acquisition module acquisition, and to handing over
Easy number of times is numbered.
First determining module specifically for:
The out-of-limit electricity of the unit is represented with following formula:
Wherein, Δ QiRepresent unit i out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, QiRepresent
Unit i limiting electricity quantity, n=1,2 ..., N, N represents total degree of merchandising.
First determining module specifically for:
The out-of-limit electricity of the machine group is represented with following formula:
Wherein, Δ GjRepresent machine group j out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, GjTable
Show machine group j limiting electricity quantity, i=1,2 ..., I, I represents the unit sum in machine group j.
The computing module specifically for:
The initial adjustment electricity of unit is represented with following formula in the transaction obtained according to the out-of-limit electricity of unit:
Wherein, Δ U 'i,nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of unit is obtained
Amount, Qi,n-1Represent the transaction electricity of unit i in (n-1)th transaction, Δ Qi,nRepresent that the transaction electricity of unit i in n-th transaction is adjusted
Whole amount.
The computing module specifically for:
The initial adjustment electricity of unit is represented with following formula in the transaction obtained according to the out-of-limit electricity of machine group:
Wherein, Δ U "i,nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of machine group is obtained
Amount,Unit i is represented due to the transaction electricity adjustment amount that machine group is out-of-limit and distributes,Represented with following formula:
Second determining module specifically for:
According to Δ U 'i,nWith Δ U "i,nThe final adjustment electricity of unit is represented with following formula in obtained transaction:
ΔUi,n=max { Δ U 'i,n, Δ U "i,n}
Wherein, Δ Ui,nRepresent the final adjustment electricity of unit i in n-th transaction.
Compared with immediate prior art, the technical scheme that the present invention is provided has the advantages that:
The method of adjustment and device for the out-of-limit electricity of unit that the present invention is provided, first determine unit according to the limiting electricity quantity of unit
Out-of-limit electricity, and the out-of-limit electricity of machine group is determined according to the limiting electricity quantity of machine group, then respectively according to the out-of-limit of unit
The out-of-limit electricity of electricity and machine group calculates the initial adjustment electricity of unit in transaction;Finally according to the initial tune of unit in transaction
Whole electricity determines the final adjustment electricity of unit in transaction, finally realizes the adjustment of the out-of-limit electricity of unit;
The method of adjustment and device for the out-of-limit electricity of unit that the present invention is provided, solve unit electricity by the way of quantization
The problems such as may bringing heavily loaded, out-of-limit to operation of power networks, the adjustment of secondary transaction electricity is carried out based on transaction sorting by reversals, comprehensive
Consider the out-of-limit electricity and the out-of-limit electricity of machine group of unit, transaction is reversely arranged according to the principle of " rear generation, first adjustment "
Sequence, out-of-limit electricity is assigned on the unit in each transaction by distribution principle, and comprehensive by being carried out to secondary transaction electricity adjustment
Close and consider, realize the adjustment of transaction electricity, the adjustment of transaction electricity has feasibility and rapidity.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
The method of adjustment and device of the out-of-limit electricity of unit provided in an embodiment of the present invention, solve machine by the way of quantization
The problems such as group electricity may bring heavily loaded, out-of-limit to operation of power networks, the tune of secondary transaction electricity is carried out based on transaction sorting by reversals
It is whole, consider the out-of-limit electricity and the out-of-limit electricity of machine group of unit, transaction is carried out according to the principle of " rear generation, first adjustment "
Sorting by reversals, out-of-limit electricity is assigned on the unit in each transaction by distribution principle, and by being adjusted to secondary transaction electricity
Considered, realize the adjustment of transaction electricity.
As shown in figure 1, the method for adjustment detailed process of the out-of-limit electricity of unit provided in an embodiment of the present invention is as follows:
S101:The out-of-limit electricity of unit is determined according to the limiting electricity quantity of unit, and is determined according to the limiting electricity quantity of machine group
The out-of-limit electricity of machine group;
S102:Unit in transaction is calculated according to the out-of-limit electricity of the out-of-limit electricity of the obtained units of S101 and machine group respectively
Initial adjustment electricity;
S103:The initial adjustment electricity of unit determines the final adjustment electricity of unit in transaction in the transaction obtained according to S102
Amount.
The above-mentioned S101 limiting electricity quantity according to unit is determined before the out-of-limit electricity of unit, in addition it is also necessary to perform following behaviour
Make:
First obtain opening, trade end time, transaction electricity, the limiting electricity quantity of unit and the machine group of unit
Limiting electricity quantity;
Then by the opening sorting by reversals according to acquisition of merchandising, and transaction count is numbered.
In above-mentioned S101, determine that the out-of-limit electricity detailed process of unit is as follows according to the limiting electricity quantity of unit:
According to transaction number order, each moon electricity of identical unit in transaction is added up, the limit electricity of incorporating mill group
Amount is contrasted, the out-of-limit electricity for the unit being shown below:
Wherein, Δ QiRepresent unit i out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, QiRepresent
Unit i limiting electricity quantity, n=1,2 ..., N, N represents total degree of merchandising.
In above-mentioned S101, determine that the out-of-limit electricity detailed process of machine group is as follows according to the limiting electricity quantity of machine group:
According to transaction number order, the transaction electricity of each unit contained by machine group j in every transaction is added up, and and
The limiting electricity quantity of machine group is contrasted, the out-of-limit electricity for the machine group being shown below:
Wherein, Δ GjRepresent machine group j out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, GjTable
Show machine group j limiting electricity quantity, i=1,2 ..., I, I represents the unit sum in machine group j.
In above-mentioned S102, calculated merchandise according to the out-of-limit electricity of the out-of-limit electricity of the obtained units of S101 and machine group respectively
The initial adjustment electricity of middle unit includes following two aspects:
1) the initial adjustment electricity of unit in the transaction obtained according to the out-of-limit electricity of unit;
2) the initial adjustment electricity of unit in the transaction obtained according to the out-of-limit electricity of machine group.
The initial adjustment electricity detailed process of unit is as follows in the above-mentioned transaction obtained according to the out-of-limit electricity of unit:
The out-of-limit electricity of unit is followed into following distribution principle according to transaction number to be allocated successively:
If out-of-limit electricity is less than the electricity of unit i in transaction for the first time, the first stroke transaction unit i adjustment amount is
Out-of-limit electricity;If out-of-limit electricity is more than the electricity of unit i in transaction for the first time, unit i adjustment amount in the first transaction
As merchandise electricity, then start to distribute remaining out-of-limit electricity in the second transaction, the like, until unit is more rationed the power supply
Amount is all eliminated.The initial adjustment electricity of unit in the transaction that will be obtained according to above distribution principle according to the out-of-limit electricity of unit
It is expressed as::
Wherein, Δ U 'i,nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of unit is obtained
Amount, Qi,n-1Represent the transaction electricity of unit i in (n-1)th transaction, Δ Qi,nRepresent that the transaction electricity of unit i in n-th transaction is adjusted
Whole amount.
The initial adjustment electricity detailed process of unit is as follows in the above-mentioned transaction obtained according to the out-of-limit electricity of machine group:
If out-of-limit electricity is less than the electricity of unit i in transaction for the first time, the first stroke transaction unit i adjustment amount is
Out-of-limit electricity;If out-of-limit electricity is more than the electricity of unit i in transaction for the first time, unit i adjustment amount in the first transaction
As merchandise electricity, then start to distribute remaining out-of-limit electricity in the second transaction, the like, until unit is more rationed the power supply
Amount is all eliminated.The initial adjustment electricity of unit in the transaction that will be obtained according to above distribution principle according to the out-of-limit electricity of machine group
Amount is expressed as:
Wherein, Δ U "i,nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of machine group is obtained
Amount,Represent unit i due to the transaction electricity adjustment amount that machine group is out-of-limit and distributes, the institute for electricity of being merchandised according to each unit
Accounting example, by the out-of-limit power energy allocation of machine group to corresponding unit, then willIt is expressed as:
In above-mentioned S103, unit is final during the initial adjustment electricity determination of unit is merchandised in the transaction obtained according to S102
Adjust electricity detailed process as follows:
The Δ U ' obtained according to S102i,nWith Δ U "i,nThe final adjustment electricity of unit is represented with following formula in obtained transaction:
ΔUi,n=max { Δ U 'i,n, Δ U "i,n}
Wherein, Δ Ui,nRepresent the final adjustment electricity of unit i in n-th transaction.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of adjusting apparatus of the out-of-limit electricity of unit, due to
The principle that these equipment solve problem is similar to the method for adjustment of the out-of-limit electricity of unit, therefore the implementation of these equipment may refer to
The implementation of method, repeats part and repeats no more.
The adjusting apparatus of the out-of-limit electricity of unit provided in an embodiment of the present invention specifically includes the first determining module, computing module
With the second determining module, the function of these three modules is introduced separately below:
First determining module, the out-of-limit electricity for determining unit according to the limiting electricity quantity of unit, and according to machine group
Limiting electricity quantity determines the out-of-limit electricity of machine group;
Computing module, for calculating unit in transaction according to the out-of-limit electricity of the out-of-limit electricity of unit and machine group respectively
Initial adjustment electricity;
Second determining module, the final adjustment for determining unit in transaction according to the initial adjustment electricity of unit in transaction
Electricity.
Except the first above-mentioned determining module, computing module and the second determining module, unit provided in an embodiment of the present invention
The adjusting apparatus of out-of-limit electricity also includes acquisition module and order module, and the function of acquisition module and order module is respectively:
Acquisition module, for obtain opening, trade end time, unit transaction electricity, unit the limit
The limiting electricity quantity of electricity and machine group;
Order module, the opening that transaction is obtained according to acquisition module carries out sorting by reversals, and to transaction time
Number is numbered.
The first above-mentioned determining module determines that the detailed process of the out-of-limit electricity of unit is as follows according to the limiting electricity quantity of unit:
According to transaction number order, each moon electricity of identical unit in transaction is added up, the limit electricity of incorporating mill group
Amount is contrasted, the out-of-limit electricity for the unit being shown below:
Wherein, Δ QiRepresent unit i out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, QiRepresent
Unit i limiting electricity quantity, n=1,2 ..., N, N represents total degree of merchandising.
The first above-mentioned determining module determines the detailed process of the out-of-limit electricity of machine group according to the limiting electricity quantity of machine group
It is as follows:
According to transaction number order, the transaction electricity of each unit contained by machine group j in every transaction is added up, and and
The limiting electricity quantity of machine group is contrasted, the out-of-limit electricity for the machine group being shown below:
Wherein, Δ GjRepresent machine group j out-of-limit electricity, Qi,nRepresent the transaction electricity of unit i in n-th transaction, GjTable
Show machine group j limiting electricity quantity, i=1,2 ..., I, I represents the unit sum in machine group j.
Above-mentioned computing module calculates the specific mistake of the initial adjustment electricity of unit in transaction according to the out-of-limit electricity of unit
Journey is as follows:
The out-of-limit electricity of unit is followed into following distribution principle according to transaction number to be allocated successively:
If out-of-limit electricity is less than the electricity of unit i in transaction for the first time, the first stroke transaction unit i adjustment amount is
Out-of-limit electricity;If out-of-limit electricity is more than the electricity of unit i in transaction for the first time, unit i adjustment amount in the first transaction
As merchandise electricity, then start to distribute remaining out-of-limit electricity in the second transaction, the like, until unit is more rationed the power supply
Amount is all eliminated.The initial adjustment electricity of unit in the transaction that will be obtained according to above distribution principle according to the out-of-limit electricity of unit
It is expressed as:
Wherein, Δ U 'i,nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of unit is obtained
Amount, Qi,n-1Represent the transaction electricity of unit i in (n-1)th transaction, Δ Qi,nRepresent that the transaction electricity of unit i in n-th transaction is adjusted
Whole amount.
The initial adjustment electricity of unit is specific during above-mentioned computing module is merchandised according to the calculating of the out-of-limit electricity of machine group
Process is as follows:
If out-of-limit electricity is less than the electricity of unit i in transaction for the first time, the first stroke transaction unit i adjustment amount is
Out-of-limit electricity;If out-of-limit electricity is more than the electricity of unit i in transaction for the first time, unit i adjustment amount in the first transaction
As merchandise electricity, then start to distribute remaining out-of-limit electricity in the second transaction, the like, until unit is more rationed the power supply
Amount is all eliminated.The initial adjustment electricity of unit in the transaction that will be obtained according to above distribution principle according to the out-of-limit electricity of machine group
Amount is expressed as:
Wherein, Δ U "i,nRepresent the initial adjustment electricity of unit i in being merchandised according to the n-th that the out-of-limit electricity of machine group is obtained
Amount,Represent unit i due to the transaction electricity adjustment amount that machine group is out-of-limit and distributes, the institute for electricity of being merchandised according to each unit
Accounting example, by the out-of-limit power energy allocation of machine group to corresponding unit, then willIt is expressed as:
The second above-mentioned determining module determines the final tune of unit in transaction according to the initial adjustment electricity of unit in transaction
Whole electricity detailed process is as follows:
According to Δ U 'i,nWith Δ U "i,nThe final adjustment electricity of unit is represented with following formula in obtained transaction:
ΔUi,n=max { Δ U 'i,n, Δ U "i,n}
Wherein, Δ Ui,nRepresent the final adjustment electricity of unit i in n-th transaction.
For convenience of description, each several part of apparatus described above is divided into various modules with function or unit is described respectively.
Certainly, each module or the function of unit can be realized in same or multiple softwares or hardware when implementing the application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof, institute
The those of ordinary skill in category field with reference to above-described embodiment still can to the present invention embodiment modify or
Equivalent substitution, these any modifications or equivalent substitution without departing from spirit and scope of the invention are applying for this pending hair
Within bright claims.