Day-ahead market and real-time market combined optimization method combined with electric automobile
Technical Field
The invention relates to the field of power market power transmission and transmission, in particular to a day-ahead market and real-time market joint optimization method for an electric automobile.
Background
The main purpose of the electric power market reform is to introduce a competition system into the electric power market, so as to stimulate market activity and reduce the electricity consumption cost of users. The electricity vendors appear in the market as a new trading body, and the trading mode of the electricity vendors is carried out according to the principles of fairness, justice and disclosure. Under the large environment of the power market, the electricity vendors buy the electric energy in batches in the electricity generators and then sell the electric energy to the users, so that the profit gained from the electric energy vendors becomes a new economic transaction mode. In the current stage, the operation mode of independent trading of 2 markets of the current market and the real-time market in the electric power market or the electric energy purchase amount of some electric power selling companies to the current market or the real-time market independently reduces the operation cost. However, these are modes of two markets operating separately and independently, and there may be a situation that the power purchased by the market at a certain time is larger than the actual demand or the power purchased is smaller than the actual demand. The electricity selling company needs to sell the surplus electric energy or buy the lacking electric energy from the real-time market, which undoubtedly increases the operation cost of the electricity selling company greatly.
Disclosure of Invention
The invention provides a combined optimization method for the day-ahead market and the real-time market of an electric automobile, aiming at overcoming at least one defect in the prior art.
The present invention aims to solve the above technical problem at least to some extent.
The invention aims to break through the limitation that the purchasing quantity of the electricity in the day-ahead market is determined according to the load prediction in the day-ahead market, and reduce the operation cost of an electricity selling company in the electric energy transaction of the electricity market.
The invention further aims to fully utilize the characteristic that the electric automobile can serve as a load and a power supply, combine the day-ahead market and the real-time market for joint optimization, reduce the operation cost per se and simultaneously enable the owner of the electric automobile to obtain profits so as to achieve the win-win situation.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a day-ahead market and real-time market combined optimization method combined with electric automobiles comprises the following steps:
s1, the electricity seller signs a dispatching agreement with the owner of the electric vehicle in the region in charge;
s2, considering the electric automobile participating in dispatching in the purchase plan of the day-ahead market and the real-time market, and establishing a uniform electric energy transaction mode by combining the energy storage device and the electric automobile, wherein the electric automobile serves as a load and also serves as a power supply in the electric energy transaction mode;
s3, solving a power purchase scheme combining the day-ahead market and the real-time market of the electric automobile by utilizing a particle swarm optimization algorithm;
in the scheme, by utilizing the characteristic that the electric automobile can be a load or a power supply capable of providing electric energy, the electric automobile can be combined with an energy storage device of an electricity vendor and electric energy storage of the electric automobile, and combined with the joint optimization of the current market and the real-time market, so that the operator can operate in a low-cost environment.
Preferably, the scheduling protocol of step S1 is as follows:
s1.1 setting the minimum discharge capacityQuantity Si,minAnd maximum charge capacity Si,max,Si,max>Si,min;
S1.2 when the battery capacity S of the electric automobilei(t) is greater than Si,maxAt the moment, the electric automobile only allows the discharging operation;
s1.3 when Si(t) is less than Si,minAt the moment, the electric automobile only allows charging operation;
s1.4 when Si(t) is greater than Si,minAnd is less than Si,maxAnd at the moment, the electric automobile carries out charging and discharging operation according to the requirement.
The specific steps of step S2 are as follows:
s2.1 defining the day-ahead market electric energy purchase amount to be B 'in the unified trading mode'DA(t), the real-time market electric energy purchase amount in the unified trading mode is B'RT(t);
S2.2, the cost of the market at the day before is as follows:
C'DA(t)=PDA(t)(B'DA(t)+S(t))
of formula (II) to C'DA(t) represents the electricity vendor operating cost of the market at the day-ahead, PDA(t) the electricity price of each hour in the market at the day before, S (t) the total electricity quantity of all the electric automobiles, selling the electric energy of the electric automobiles in the electric power market when S (t) is less than zero, and buying the electric energy of the electric power selling company in the electric power market when S (t) is more than zero;
s2.3, the cost of the real-time market is as follows:
C'RT(t)=PRT(t)(B'RT(t)+S(t))
of formula (II) to C'RT(t) represents the electricity vendor operating cost of the real-time market, PRT(t) the electricity price of each hour in the market before the day;
s2.4, considering the compensation of the electricity vendor to the owner of the electric automobile, the following steps are included:
X=ηS(t)
wherein, X is the compensation amount of the electric power vendor to the owner of the electric vehicle, eta is the compensation price coefficient of the electric power vendor to the owner of the electric vehicle, and eta is (P)S(t)-PB(t))·β,PS(t)、PB(t) each isIs the electricity price when selling and purchasing the electric quantity of the electric automobile, beta is a compensation factor, 0<β<1;
S2.5, the operation cost of the electricity selling company combined with the joint optimization of the day-ahead market and the real-time market of the electric automobile is as follows:
C'=C'DA+C'RT+X
c' is the operation cost of the electricity vendor which is optimized by combining the day-ahead market and the real-time market of the electric automobile;
when the electricity selling company signs a dispatching agreement with the owner of the electric automobile, if the electric automobile is charged when the electricity price is low, the charging cost is borne by the electricity selling company, and when the electricity price is high, the electricity selling company sells the electric automobile electricity quantity to the market, which is equivalent to the electricity selling company selling the electric energy, so that the cost of the electricity selling company is relatively reduced.
The specific step of step S3:
s3.1, determining the population number of the particle swarm, wherein one particle comprises a day-ahead market, a real-time market and the electric energy purchase amount of the electric automobile per hour per day;
s3.2, setting initial parameters of the particle swarm algorithm, wherein the initial parameters comprise a weight factor w, learning factors c1 and c2, a maximum speed Vmax, iteration times T and the like;
s3.3, randomly generating the initial speed and the initial position of each particle;
s3.4, judging the fitness of each particle;
s3.5, after each particle is iterated once, comparing the iterated once with the optimal value and the overall optimal value, and accordingly changing the advancing speed and the advancing direction of each particle and enabling the particles to approach the optimal value gradually;
s3.6, judging whether the set precision is met or whether the maximum iteration number is reached, and returning to S3.4 if the maximum iteration number is not met;
and S3.7, outputting an optimization result when the set precision is reached or the maximum iteration number is reached.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
the characteristic that the electric automobile can be used as a load and a power supply is utilized, the operation strategy of the electricity selling company is optimized in combination with the day-ahead market and the real-time market of the electric automobile, the limit that the electricity purchasing quantity of the day-ahead market is determined according to the day-ahead load prediction is broken through, the operation cost of the electricity selling company in the electricity market electricity trading is reduced, and the competitiveness and the flexibility of the electricity selling company in the electricity market are improved.
Drawings
Fig. 1 is a flowchart of a combined optimization method for the day-ahead market and the real-time market of an electric vehicle according to the present invention.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent;
for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product;
it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The technical solution of the present invention is further described below with reference to the accompanying drawings and examples.
Example 1
The day-ahead market and real-time market combined optimization method combining the electric automobile provided by the embodiment comprises the following steps of:
s1, the electricity seller signs a dispatching agreement with the owner of the electric vehicle in the region in charge;
s2, considering the electric automobile participating in dispatching in the purchase plan of the day-ahead market and the real-time market, and establishing a uniform electric energy transaction mode by combining the energy storage device and the electric automobile, wherein the electric automobile serves as a load and also serves as a power supply in the electric energy transaction mode;
s3, solving a power purchase scheme combining the day-ahead market and the real-time market of the electric automobile by utilizing a particle swarm optimization algorithm;
the scheduling protocol of step S1 is as follows:
s1.1 setting discharge minimum volume Si,minAnd maximum charge capacity Si,max,Si,max>Si,min;
S1.2 when the battery capacity S of the electric automobilei(t) is greater than Si,maxAt the moment, the electric automobile only allows the discharging operation;
s1.3 when Si(t) is less than Si,minAt the moment, the electric automobile only allows charging operation;
s1.4 when Si(t) is greater than Si,minAnd is less than Si,maxAnd at the moment, the electric automobile carries out charging and discharging operation according to the requirement.
The specific steps of step S2 are as follows:
s2.1 defining the day-ahead market electric energy purchase amount to be B 'in the unified trading mode'DA(t), the real-time market electric energy purchase amount in the unified trading mode is B'RT(t);
S2.2, the cost of the market at the day before is as follows:
C'DA(t)=PDA(t)(B'DA(t)+S(t))
of formula (II) to C'DA(t) represents the electricity vendor operating cost of the market at the day-ahead, PDA(t) the electricity price of each hour in the market at the day before, S (t) the total electricity quantity of all the electric automobiles, selling the electric energy of the electric automobiles in the electric power market when S (t) is less than zero, and buying the electric energy of the electric power selling company in the electric power market when S (t) is more than zero;
s2.3, the cost of the real-time market is as follows:
C'RT(t)=PRT(t)(B'RT(t)+S(t))
of formula (II) to C'RT(t) represents the electricity vendor operating cost of the real-time market, PRT(t) the electricity price of each hour in the market before the day;
s2.4, considering the compensation of the electricity vendor to the owner of the electric automobile, the following steps are included:
X=ηS(t)
wherein, X is the compensation amount of the electric power vendor to the owner of the electric vehicle, eta is the compensation price coefficient of the electric power vendor to the owner of the electric vehicle, and eta is (P)S(t)-PB(t))·β,PS(t)、PB(t) the price of electricity for selling and purchasing the electric quantity of the electric vehicle, beta is a compensation factor, 0<β<1;
S2.5, the operation cost of the electricity selling company combined with the joint optimization of the day-ahead market and the real-time market of the electric automobile is as follows:
C'=C'DA+C'RT+X
c' is the operation cost of the electricity vendor which is optimized by combining the day-ahead market and the real-time market of the electric automobile;
the specific step of step S3:
s3.1, determining the population number of the particle swarm, wherein one particle comprises a day-ahead market, a real-time market and the electric energy purchase amount of the electric automobile per hour per day;
s3.2, setting initial parameters of the particle swarm algorithm, wherein the initial parameters comprise a weight factor w, learning factors c1 and c2, a maximum speed Vmax, iteration times T and the like;
s3.3, randomly generating the initial speed and the initial position of each particle;
s3.4, judging the fitness of each particle;
s3.5, after each particle is iterated once, comparing the iterated once with the optimal value and the overall optimal value, and accordingly changing the advancing speed and the advancing direction of each particle and enabling the particles to approach the optimal value gradually;
s3.6, judging whether the set precision is met or whether the maximum iteration number is reached, and returning to S3.4 if the maximum iteration number is not met;
and S3.7, outputting an optimization result when the set precision is reached or the maximum iteration number is reached.
In the specific implementation process, an electricity selling company counts the total load of the electric vehicle subjected to dispatching in the region in charge of the electricity selling company, the total load of the electric vehicle subjected to dispatching is compared with the current power price and the predicted real-time power price, the combined optimization model of the current market and the real-time market of the electric vehicle is mainly used for enabling the electricity selling company to regard the current purchased electric energy as the quantity to be optimized, the current purchased electric energy is compared with the predicted real-time power price on the day according to the current trading power price, a unified electric energy trading mode is established by combining an energy storage device and the electric vehicle, the current purchased electric energy in the current market per hour and the charge and discharge time period of the electric vehicle subjected to dispatching are calculated through a particle swarm algorithm, the optimal electricity purchasing scheme of the electricity selling company is obtained, and the operation cost of the company is reduced.
The same or similar reference numerals correspond to the same or similar parts;
the terms describing positional relationships in the drawings are for illustrative purposes only and are not to be construed as limiting the patent;
it should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.