Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method and a device for adjusting the out-of-limit electric quantity of a unit, which are used for adjusting the secondary transaction electric quantity based on the reverse transaction sequencing, comprehensively considering the out-of-limit electric quantity of the unit and the out-of-limit electric quantity of a unit group, reversely sequencing the transactions according to the principle of 'later generation and first adjustment', distributing the out-of-limit electric quantity to the units in each transaction according to the distribution principle, and comprehensively considering the adjustment of the secondary transaction electric quantity to realize the adjustment of the transaction electric quantity.
In order to achieve the purpose of the invention, the invention adopts the following technical scheme:
the invention provides a method for adjusting out-of-limit electric quantity of a unit, which comprises the following steps:
determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit, and determining the out-of-limit electric quantity of the unit group according to the limit electric quantity of the unit group;
calculating initial adjustment electric quantity of the machine set in the transaction according to the out-of-limit electric quantity of the machine set and the out-of-limit electric quantity of the machine set group;
and determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction.
Before determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit, the method comprises the following steps:
acquiring transaction starting time, transaction ending time, transaction electric quantity of a unit, limit electric quantity of the unit and limit electric quantity of a unit group;
and reversely ordering the transactions according to the transaction starting time, and numbering the transaction times.
The determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit comprises the following steps:
the out-of-limit electric quantity of the unit is represented by the following formula:
wherein, is Δ QiIndicating out-of-limit power, Q, of unit ii,nRepresents the transaction electric quantity, Q, of the unit i in the nth transactioniThe limit electric quantity of the unit i is represented, N is 1,2, …, and N represents the total number of transactions.
The determining the out-of-limit electric quantity of the machine group according to the limit electric quantity of the machine group comprises the following steps:
the out-of-limit electric quantity of the machine group is represented by the following formula:
wherein, Δ GjRepresents the out-of-limit electric quantity, Q, of the set group ji,nRepresenting the amount of electricity of the unit i in the nth transaction, GjThe limit electric quantity of the machine group j is represented, I is 1,2, …, and I represents the total number of the machine groups in the machine group j.
The step of calculating the initial adjustment electric quantity of the unit in the transaction according to the out-of-limit electric quantity of the unit and the out-of-limit electric quantity of the unit group respectively comprises the following steps:
the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set is represented by the following formula:
wherein, delta U'i,nIndicating the initial adjusted electric quantity, Q, of the unit i in the nth transaction obtained from the out-of-limit electric quantity of the uniti,n-1Represents the transaction electric quantity, delta Q, of the unit i in the n-1 th transactioni,nAnd (4) indicating the transaction electric quantity adjustment quantity of the unit i in the nth transaction.
The step of calculating the initial adjustment electric quantity of the unit in the transaction according to the out-of-limit electric quantity of the unit and the out-of-limit electric quantity of the unit group respectively comprises the following steps:
the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set group is represented by the following formula:
wherein, Delta U ″)
i,nIndicating the initial adjustment electric quantity of the unit i in the nth transaction according to the out-of-limit electric quantity of the unit group,
the adjustment quantity of the transaction electric quantity distributed by the unit i due to the out-of-limit of the unit group is shown,
represented by the formula:
the step of determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction comprises the following steps:
according to delta U'i,nAnd Δ U ″)i,nThe final adjustment electric quantity of the unit in the transaction is represented by the following formula:
ΔUi,n=max{ΔU′i,n,ΔU″i,n}
wherein, Delta Ui,nAnd the final adjustment electric quantity of the unit i in the nth transaction is shown.
The invention also provides a device for adjusting the out-of-limit electric quantity of the unit, which comprises:
the first determining module is used for determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit and determining the out-of-limit electric quantity of the unit group according to the limit electric quantity of the unit group;
the calculation module is used for calculating the initial adjustment electric quantity of the unit in the transaction according to the out-of-limit electric quantity of the unit and the out-of-limit electric quantity of the unit group;
and the second determining module is used for determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction.
The device further comprises:
the acquisition module is used for acquiring transaction starting time, transaction ending time, transaction electric quantity of the unit, limit electric quantity of the unit and limit electric quantity of the unit group;
and the sequencing module is used for reversely sequencing the transactions according to the transaction starting time acquired by the acquisition module and numbering the transaction times.
The first determining module is specifically configured to:
the out-of-limit electric quantity of the unit is represented by the following formula:
wherein, is Δ QiIndicating out-of-limit power, Q, of unit ii,nRepresents the transaction electric quantity, Q, of the unit i in the nth transactioniThe limit electric quantity of the unit i is represented, N is 1,2, …, and N represents the total number of transactions.
The first determining module is specifically configured to:
the out-of-limit electric quantity of the machine group is represented by the following formula:
wherein, Δ GjRepresents the out-of-limit electric quantity, Q, of the set group ji,nRepresenting the amount of electricity of the unit i in the nth transaction, GjThe limit electric quantity of the machine group j is represented, I is 1,2, …, and I represents the total number of the machine groups in the machine group j.
The calculation module is specifically configured to:
the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set is represented by the following formula:
wherein, delta U'i,nIndicating the initial adjusted electric quantity, Q, of the unit i in the nth transaction obtained from the out-of-limit electric quantity of the uniti,n-1Represents the transaction electric quantity, delta Q, of the unit i in the n-1 th transactioni,nIndicating the unit in the nth transactioni transaction power adjustment amount.
The calculation module is specifically configured to:
the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set group is represented by the following formula:
wherein, Delta U ″)
i,nIndicating the initial adjustment electric quantity of the unit i in the nth transaction according to the out-of-limit electric quantity of the unit group,
the adjustment quantity of the transaction electric quantity distributed by the unit i due to the out-of-limit of the unit group is shown,
represented by the formula:
the second determining module is specifically configured to:
according to delta U'i,nAnd Δ U ″)i,nThe final adjustment electric quantity of the unit in the transaction is represented by the following formula:
ΔUi,n=max{ΔU′i,n,ΔU″i,n}
wherein, Delta Ui,nAnd the final adjustment electric quantity of the unit i in the nth transaction is shown.
Compared with the closest prior art, the technical scheme provided by the invention has the following beneficial effects:
the invention provides a method and a device for adjusting out-of-limit electric quantity of a unit, which are characterized in that the out-of-limit electric quantity of the unit is determined according to the limit electric quantity of the unit, the out-of-limit electric quantity of the unit group is determined according to the limit electric quantity of the unit group, and then the initial adjustment electric quantity of the unit in a transaction is calculated according to the out-of-limit electric quantity of the unit and the out-of-limit electric quantity of the unit group; finally, determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction, and finally realizing the adjustment of the out-of-limit electric quantity of the unit;
the method and the device for adjusting the unit out-of-limit electric quantity solve the problems that the unit electric quantity possibly causes heavy load and out-of-limit on the operation of a power grid in a quantitative mode, adjust the secondary transaction electric quantity based on the transaction reverse ordering, comprehensively consider the out-of-limit electric quantity of the unit and the unit group out-of-limit electric quantity, reversely order transactions according to the principle of 'later generation and first adjustment', distribute the out-of-limit electric quantity to the units in each transaction according to the distribution principle, comprehensively consider the adjustment of the secondary transaction electric quantity, realize the adjustment of the transaction electric quantity, and have feasibility and rapidity in the adjustment of the transaction electric quantity.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The method and the device for adjusting the unit out-of-limit electric quantity solve the problems that the unit electric quantity possibly causes heavy load and out-of-limit on the operation of a power grid in a quantitative mode, adjust the secondary transaction electric quantity based on the transaction reverse ordering, comprehensively consider the out-of-limit electric quantity of the unit and the unit group out-of-limit electric quantity, reversely order transactions according to the principle of 'later generation and first adjustment', distribute the out-of-limit electric quantity to the units in each transaction according to the distribution principle, and comprehensively consider the adjustment of the secondary transaction electric quantity to realize the adjustment of the transaction electric quantity.
As shown in fig. 1, the specific process of the method for adjusting the out-of-limit electric quantity of the unit provided by the embodiment of the present invention is as follows:
s101: determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit, and determining the out-of-limit electric quantity of the unit group according to the limit electric quantity of the unit group;
s102: calculating initial adjustment electric quantity of the machine set in the transaction according to the out-of-limit electric quantity of the machine set and the out-of-limit electric quantity of the machine set group obtained in the step S101;
s103: and determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction obtained in the step S102.
Before determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit in the above step S101, the following operations are also required to be performed:
firstly, acquiring transaction starting time, transaction ending time, transaction electric quantity of a unit, limit electric quantity of the unit and limit electric quantity of a unit group;
and then, reversely ordering the transactions according to the acquired transaction starting time, and numbering the transaction times.
In the above S101, the specific process of determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit is as follows:
accumulating the monthly electric quantity of the same set in the transaction according to the sequence of the transaction numbers, and comparing the monthly electric quantity with the limit electric quantity of the set to obtain the out-of-limit electric quantity of the set shown as the following formula:
wherein, is Δ QiIndicating out-of-limit power, Q, of unit ii,nRepresents the transaction electric quantity, Q, of the unit i in the nth transactioniThe limit electric quantity of the unit i is represented, N is 1,2, …, and N represents the total number of transactions.
In the above S101, the specific process of determining the out-of-limit electric quantity of the group according to the limit electric quantity of the group is as follows:
accumulating the transaction electric quantity of each machine set in each transaction machine set group j according to the sequence of the transaction serial numbers, and comparing the transaction electric quantity with the limit electric quantity of the machine set group to obtain the out-of-limit electric quantity of the machine set group shown as the following formula:
wherein, Δ GjRepresents the out-of-limit electric quantity, Q, of the set group ji,nRepresenting the amount of electricity of the unit i in the nth transaction, GjThe limit electric quantity of the machine group j is represented, I is 1,2, …, I,i represents the total number of units in the unit group j.
In the above step S102, calculating the initial adjustment electric quantity of the unit in the transaction according to the out-of-limit electric quantity of the unit and the out-of-limit electric quantity of the unit group obtained in step S101 includes the following two aspects:
1) obtaining the initial adjustment electric quantity of the machine set in the transaction according to the out-of-limit electric quantity of the machine set;
2) and obtaining the initial adjustment electric quantity of the machine set in the transaction according to the out-of-limit electric quantity of the machine set group.
The specific process of the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set is as follows:
the out-of-limit electric quantity of the unit is distributed according to the transaction number and following the following distribution principle in sequence:
if the out-of-limit electric quantity is smaller than the electric quantity of the unit i in the first transaction, the adjustment quantity of the first transaction unit i is the out-of-limit electric quantity; if the out-of-limit electric quantity is larger than the electric quantity of the unit i in the first transaction, the adjustment quantity of the unit i in the first transaction is the transaction electric quantity, then the rest out-of-limit electric quantity is distributed in the second transaction, and the like until the out-of-limit electric quantity of the unit is completely eliminated. According to the distribution principle, the initial adjustment electric quantity of the unit in the transaction obtained according to the out-of-limit electric quantity of the unit is expressed as follows: :
wherein, delta U'i,nIndicating the initial adjusted electric quantity, Q, of the unit i in the nth transaction obtained from the out-of-limit electric quantity of the uniti,n-1Represents the transaction electric quantity, delta Q, of the unit i in the n-1 th transactioni,nAnd (4) indicating the transaction electric quantity adjustment quantity of the unit i in the nth transaction.
The specific process of the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set group is as follows:
if the out-of-limit electric quantity is smaller than the electric quantity of the unit i in the first transaction, the adjustment quantity of the first transaction unit i is the out-of-limit electric quantity; if the out-of-limit electric quantity is larger than the electric quantity of the unit i in the first transaction, the adjustment quantity of the unit i in the first transaction is the transaction electric quantity, then the rest out-of-limit electric quantity is distributed in the second transaction, and the like until the out-of-limit electric quantity of the unit is completely eliminated. According to the distribution principle, the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set group is represented as follows:
wherein, Delta U ″)
i,nIndicating the initial adjustment electric quantity of the unit i in the nth transaction according to the out-of-limit electric quantity of the unit group,
the trading electric quantity adjustment quantity distributed by the machine group I due to the out-of-limit of the machine group is represented, the out-of-limit electric quantity of the machine group is distributed to the corresponding machine group according to the proportion of the trading electric quantity of each machine group, and then the out-of-limit electric quantity of the machine group is distributed to the corresponding machine group
Expressed as:
in the above step S103, the specific process of determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction obtained in step S102 is as follows:
delta U 'obtained from S102'i,nAnd Δ U ″)i,nThe final adjustment electric quantity of the unit in the transaction is represented by the following formula:
ΔUi,n=max{ΔU′i,n,ΔU″i,n}
wherein, Delta Ui,nAnd the final adjustment electric quantity of the unit i in the nth transaction is shown.
Based on the same inventive concept, the embodiment of the invention also provides a device for adjusting the out-of-limit electric quantity of the unit, and because the principle of solving the problems of the devices is similar to the method for adjusting the out-of-limit electric quantity of the unit, the implementation of the devices can refer to the implementation of the method, and repeated parts are not described again.
The device for adjusting the out-of-limit electric quantity of the unit provided by the embodiment of the invention specifically comprises a first determining module, a calculating module and a second determining module, and the functions of the three modules are respectively described as follows:
the first determining module is used for determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit and determining the out-of-limit electric quantity of the unit group according to the limit electric quantity of the unit group;
the calculation module is used for calculating the initial adjustment electric quantity of the unit in the transaction according to the out-of-limit electric quantity of the unit and the out-of-limit electric quantity of the unit group;
and the second determining module is used for determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction.
In addition to the first determining module, the calculating module and the second determining module, the device for adjusting the out-of-limit electric quantity of the unit according to the embodiment of the present invention further includes an obtaining module and a sorting module, where the obtaining module and the sorting module respectively have functions of:
the acquisition module is used for acquiring transaction starting time, transaction ending time, transaction electric quantity of the unit, limit electric quantity of the unit and limit electric quantity of the unit group;
and the sequencing module is used for reversely sequencing the transactions according to the transaction starting time acquired by the acquisition module and numbering the transaction times.
The specific process of the first determining module determining the out-of-limit electric quantity of the unit according to the limit electric quantity of the unit is as follows:
accumulating the monthly electric quantity of the same set in the transaction according to the sequence of the transaction numbers, and comparing the monthly electric quantity with the limit electric quantity of the set to obtain the out-of-limit electric quantity of the set shown as the following formula:
wherein, is Δ QiIndicating out-of-limit power, Q, of unit ii,nIndicating the nth transactionTrade electric quantity Q of middle set iiThe limit electric quantity of the unit i is represented, N is 1,2, …, and N represents the total number of transactions.
The specific process of the first determining module determining the out-of-limit electric quantity of the machine group according to the limit electric quantity of the machine group is as follows:
accumulating the transaction electric quantity of each machine set in each transaction machine set group j according to the sequence of the transaction serial numbers, and comparing the transaction electric quantity with the limit electric quantity of the machine set group to obtain the out-of-limit electric quantity of the machine set group shown as the following formula:
wherein, Δ GjRepresents the out-of-limit electric quantity, Q, of the set group ji,nRepresenting the amount of electricity of the unit i in the nth transaction, GjThe limit electric quantity of the machine group j is represented, I is 1,2, …, and I represents the total number of the machine groups in the machine group j.
The specific process of the calculation module for calculating the initial adjustment electric quantity of the unit in the transaction according to the out-of-limit electric quantity of the unit is as follows:
the out-of-limit electric quantity of the unit is distributed according to the transaction number and following the following distribution principle in sequence:
if the out-of-limit electric quantity is smaller than the electric quantity of the unit i in the first transaction, the adjustment quantity of the first transaction unit i is the out-of-limit electric quantity; if the out-of-limit electric quantity is larger than the electric quantity of the unit i in the first transaction, the adjustment quantity of the unit i in the first transaction is the transaction electric quantity, then the rest out-of-limit electric quantity is distributed in the second transaction, and the like until the out-of-limit electric quantity of the unit is completely eliminated. According to the distribution principle, the initial adjustment electric quantity of the unit in the transaction obtained according to the out-of-limit electric quantity of the unit is expressed as follows:
wherein, delta U'i,nIndicating the initial adjusted electric quantity, Q, of the unit i in the nth transaction obtained from the out-of-limit electric quantity of the uniti,n-1Represents the transaction electric quantity, delta Q, of the unit i in the n-1 th transactioni,nAnd (4) indicating the transaction electric quantity adjustment quantity of the unit i in the nth transaction.
The specific process of the calculation module for calculating the initial adjustment electric quantity of the unit in the transaction according to the out-of-limit electric quantity of the unit group is as follows:
if the out-of-limit electric quantity is smaller than the electric quantity of the unit i in the first transaction, the adjustment quantity of the first transaction unit i is the out-of-limit electric quantity; if the out-of-limit electric quantity is larger than the electric quantity of the unit i in the first transaction, the adjustment quantity of the unit i in the first transaction is the transaction electric quantity, then the rest out-of-limit electric quantity is distributed in the second transaction, and the like until the out-of-limit electric quantity of the unit is completely eliminated. According to the distribution principle, the initial adjustment electric quantity of the machine set in the transaction obtained according to the out-of-limit electric quantity of the machine set group is represented as follows:
wherein, Delta U ″)
i,nIndicating the initial adjustment electric quantity of the unit i in the nth transaction according to the out-of-limit electric quantity of the unit group,
the trading electric quantity adjustment quantity distributed by the machine group I due to the out-of-limit of the machine group is represented, the out-of-limit electric quantity of the machine group is distributed to the corresponding machine group according to the proportion of the trading electric quantity of each machine group, and then the out-of-limit electric quantity of the machine group is distributed to the corresponding machine group
Expressed as:
the specific process of the second determining module determining the final adjustment electric quantity of the unit in the transaction according to the initial adjustment electric quantity of the unit in the transaction is as follows:
according to delta U'i,nAnd Δ U ″)i,nResulting transactionThe final adjustment electric quantity of the medium unit is represented by the following formula:
ΔUi,n=max{ΔU′i,n,ΔU″i,n}
wherein, Delta Ui,nAnd the final adjustment electric quantity of the unit i in the nth transaction is shown.
For convenience of description, each part of the above-described apparatus is separately described as being functionally divided into various modules or units. Of course, the functionality of the various modules or units may be implemented in the same one or more pieces of software or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only intended to illustrate the technical solution of the present invention and not to limit the same, and a person of ordinary skill in the art can make modifications or equivalents to the specific embodiments of the present invention with reference to the above embodiments, and such modifications or equivalents without departing from the spirit and scope of the present invention are within the scope of the claims of the present invention as set forth in the claims.