[go: up one dir, main page]

CN108649566B - A battery charging and discharging method based on real-time electricity price - Google Patents

A battery charging and discharging method based on real-time electricity price Download PDF

Info

Publication number
CN108649566B
CN108649566B CN201810489683.XA CN201810489683A CN108649566B CN 108649566 B CN108649566 B CN 108649566B CN 201810489683 A CN201810489683 A CN 201810489683A CN 108649566 B CN108649566 B CN 108649566B
Authority
CN
China
Prior art keywords
power
battery
time period
charging
discharging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810489683.XA
Other languages
Chinese (zh)
Other versions
CN108649566A (en
Inventor
杨俊杰
李盛林
刘子琦
方济城
张娜娜
张贺龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai University of Electric Power
Original Assignee
Shanghai University of Electric Power
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai University of Electric Power filed Critical Shanghai University of Electric Power
Priority to CN201810489683.XA priority Critical patent/CN108649566B/en
Publication of CN108649566A publication Critical patent/CN108649566A/en
Application granted granted Critical
Publication of CN108649566B publication Critical patent/CN108649566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for AC mains or AC distribution networks
    • H02J3/008Circuit arrangements for AC mains or AC distribution networks involving trading of energy or energy transmission rights
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for AC mains or AC distribution networks
    • H02J3/28Arrangements for balancing of the load in a network by storage of energy
    • H02J3/32Arrangements for balancing of the load in a network by storage of energy using batteries with converting means
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2203/00Indexing scheme relating to details of circuit arrangements for AC mains or AC distribution networks
    • H02J2203/20Simulating, e g planning, reliability check, modelling or computer assisted design [CAD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Supply And Distribution Of Alternating Current (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a storage battery charging and discharging method based on real-time electricity price, which comprises the following steps: s1, acquiring input data of the optimization system for one day; s2 dividing the utility company parameters and the household power parameters into N time periods; s3 initializing the charging and discharging power of the storage battery; s4, selecting a charging time period of the storage battery and determining the maximum allowable charging power; s5, determining the allowed maximum discharge power, and updating the charge and discharge power of the storage battery; s6 determining the maximum discharge power of the storage battery, and executing the step S6 in a circulating mode until the storage battery is discharged to the minimum capacity percentage or no new discharge time period exists in the storage battery; s7 determining the maximum charging power allowed by the battery for the time period; s8 determines the maximum discharge power allowed by the storage battery in the time period, and executes steps S7-S8 circularly. Compared with the prior art, the method provided by the invention not only avoids the defect that the traditional optimization method is difficult to converge to the optimal solution, but also can obtain the optimal charge and discharge strategy in a short time.

Description

一种基于实时电价的蓄电池充放电方法A battery charging and discharging method based on real-time electricity price

技术领域technical field

本发明涉及智能家庭蓄电池调度领域,尤其是涉及一种基于实时电价的蓄电池充放电方法。The invention relates to the field of smart home battery scheduling, in particular to a battery charging and discharging method based on real-time electricity prices.

背景技术Background technique

在智能电网背景下,用户可以与电网进行信息的交流。这种交流将会是共赢的,根据实时电价用户可以自行安排用电,从而使用户的生产成本得到进一步减少,而且用户根据电网发布的实时电价调节用电情况在一定程度上可以起到削峰填谷的作用。未来的智能电网中,很多家庭都将会安装可再生能源系统和电能存储系统,这为智能电网的实施提供更好的调度灵活性。In the context of smart grid, users can exchange information with the grid. This kind of exchange will be win-win. According to the real-time electricity price, users can arrange electricity consumption by themselves, so that the production cost of the user can be further reduced, and the user can adjust the electricity consumption according to the real-time electricity price released by the power grid to a certain extent. The role of peak filling. In the future smart grid, many households will install renewable energy systems and electrical energy storage systems, which provide better dispatch flexibility for the implementation of smart grids.

目前,受限于蓄电池复杂的约束条件,导致很多蓄电池充放电优化算法收敛速度很慢。比如,采用一般的规划算法对初始可行解的设定敏感,设定不同的初始解可能会得到不同的优化结果;采用遗传算法取优化蓄电池的充放电会因为算法局部搜索能力不强的原因导致优化结果难以收敛到最优解。为此,提出了基于实时电价的蓄电池充放电策略。At present, due to the complex constraints of the battery, the convergence speed of many battery charge and discharge optimization algorithms is very slow. For example, using a general planning algorithm is sensitive to the setting of the initial feasible solution, and different optimization results may be obtained by setting different initial solutions; using a genetic algorithm to optimize the charging and discharging of the battery may be caused by the weak local search ability of the algorithm. The optimization results are difficult to converge to the optimal solution. Therefore, a battery charging and discharging strategy based on real-time electricity price is proposed.

发明内容SUMMARY OF THE INVENTION

本发明的目的就是为了克服上述现有技术存在的缺陷而提供一种基于实时电价的蓄电池充放电方法。The purpose of the present invention is to provide a battery charging and discharging method based on real-time electricity price in order to overcome the above-mentioned defects of the prior art.

本发明的目的可以通过以下技术方案来实现:The object of the present invention can be realized through the following technical solutions:

一种基于实时电价的蓄电池充放电方法,包括以下步骤:A battery charging and discharging method based on real-time electricity price, comprising the following steps:

S1获取一天的优化系统输入数据,包括电力公司参数、家庭电力参数、蓄电池参数;S1 obtains one day's optimization system input data, including power company parameters, household power parameters, and battery parameters;

S2将一天划分为N个等间距的时间段,并将电力公司参数和家庭电力参数划分为N个时间段;S2 divides a day into N equally spaced time periods, and divides power company parameters and household power parameters into N time periods;

S3将买卖电价统一从大到小排序获得时间段集Tpr_buysell_sort,并且初始化蓄电池充放电功率Pbat=[0,0,0…,0]1*NS3 uniformly sorts the buying and selling electricity prices from large to small to obtain a time period set T pr_buysell_sort , and initializes the battery charge and discharge power P bat =[0,0,0...,0] 1*N ;

S4更新存在丢弃可再生能源的丢弃功率P1,筛选出大于0的元素和对应的时间段集T1,选定T1的第1个时间段作为蓄电池的充电时间段并确定该时间段最大的允许充电功率P1chS4 updates the discarded power P1 of discarded renewable energy, filters out elements greater than 0 and the corresponding time period set T1, selects the first time period of T1 as the charging time period of the battery, and determines the maximum allowable charging in this time period power P1 ch ;

S5从Tpr_buysell_sort按正序选择可行的时间段作为蓄电池放电时间段,结合蓄电池的约束和电力公司买卖功率限制确定允许的最大放电功率P1dch,取min{P1ch,P1dch}作为蓄电池在充电时间段的充电功率和放电时间段的放电功率并更新蓄电池充放电功率Pbat,循环执行步骤S4-S5,直到集合T1为空集或者蓄电池不存在新的放电时间段;S5 selects a feasible time period from T pr_buysell_sort as the battery discharge time period in positive order, determines the maximum allowable discharge power P1 dch in combination with the constraints of the battery and the power company's trading power limit, and takes min{P1 ch , P1 dch } as the battery is charging The charging power in the time period and the discharging power in the discharging period are updated, and the battery charging and discharging power P bat is updated, and steps S4-S5 are executed cyclically until the set T1 is an empty set or the battery does not have a new discharge time period;

S6更新蓄电池容量百分比SOC,从Tpr_buysell_sort按正序选择时间段作为蓄电池放电时间段,结合蓄电池的约束和电力公司买卖功率限制确定蓄电池的最大放电功率,更新蓄电池充放电功率Pbat和用户与电力公司之间的交换功率Pgrid,循环执行步骤S6,直到蓄电池放电至最小容量百分比SOCmin或者蓄电池不存在新的放电时间段;S6 updates the battery capacity percentage SOC, selects the time period from T pr_buysell_sort as the battery discharge time period in positive order, determines the maximum discharge power of the battery in combination with the constraints of the battery and the power company's trading power limit, and updates the battery charge and discharge power P bat and the user and power For the exchange power P grid between companies, step S6 is executed cyclically until the battery is discharged to the minimum capacity percentage SOC min or the battery does not have a new discharge time period;

S7从Tpr_buysell_sort按逆序选择可行的时间段作为蓄电池充电时间段,并结合蓄电池的约束和电力公司买卖功率限制确定蓄电池在该时间段允许的最大的充电功率P3chS7 selects a feasible time period from T pr_buysell_sort in reverse order as the battery charging time period, and determines the maximum charging power P3 ch allowed by the battery in this time period in combination with the constraints of the battery and the power company's trading power limit;

S8从Tpr_buysell_sort按正序选择可行的时间段作为蓄电池放电时间段,并结合蓄电池的约束和电力公司买卖功率限制确定蓄电池在该时间段允许的最大的放电功率P3dch,选择P3=min{P3ch,P3dch}作为充电时间段的充电功率和放电时间段的放电功率,并更新蓄电池充放电功率Pbat和交换功率Pgrid,计算更新前后的用户总电费,循环执行步骤S7-S8,直到更新后的电费没有减少或者选择的充电时间段与放电时间段相同。S8 selects a feasible time period from T pr_buysell_sort as the battery discharge time period in positive sequence, and determines the maximum discharge power P3 dch allowed by the battery in this time period in combination with the constraints of the battery and the power limit of the power company, and selects P3=min{P3 ch , P3 dch } are used as the charging power in the charging time period and the discharging power in the discharging time period, and update the battery charging and discharging power P bat and the exchange power P grid , calculate the total electricity bill of the user before and after the update, and execute steps S7-S8 cyclically until The updated electricity bill is not reduced or the charging time period selected is the same as the discharging time period.

所述的步骤S1中,电力公司参数包括实时买电电价RTPbuy、实时卖电电价RTPsell、用户最大买电功率限制Pbuy_max和用户最大卖电功率限制Psell_max,家庭电力参数包括家庭用电功率Pload和可再生能源发电功率Pre,蓄电池参数包括蓄电池当前容量Cbat、蓄电池初始容量Cini、蓄电池最大容量EESS、蓄电池最大允许容量Cmax、蓄电池最小允许容量Cmin、蓄电池最大允许充电功率Pch_max和放电功率Pdch_maxIn the step S1, the parameters of the electric power company include the real-time electricity purchase price RTP buy , the real-time electricity selling price RTP sell , the user's maximum buying power limit P buy_max and the user's maximum selling power limit P sell_max , and the household power parameters include household power consumption P load . and renewable energy generation power Pre , battery parameters include battery current capacity C bat , battery initial capacity C ini , battery maximum capacity E ESS , battery maximum allowable capacity C max , battery minimum allowable capacity C min , battery maximum allowable charging power P ch_max and discharge power P dch_max .

所述的步骤S3中,时间段集Tpr_buysell_sort为一个1*2N的矩阵,蓄电池充放电功率Pbat的表达式为:In the step S3, the time period set T pr_buysell_sort is a 1*2N matrix, and the expression of the battery charge and discharge power P bat is:

Figure GDA0002345701300000031
Figure GDA0002345701300000031

其中,

Figure GDA0002345701300000032
为蓄电池充电功率,
Figure GDA0002345701300000033
为蓄电池放电功率,当蓄电池充放电功率Pbat大于0时表示充电,小于0时表示放电。in,
Figure GDA0002345701300000032
charging power for the battery,
Figure GDA0002345701300000033
is the battery discharge power. When the battery charge and discharge power P bat is greater than 0, it means charging, and when it is less than 0, it means discharge.

所述的步骤S4中,In the described step S4,

允许用户在功率限制范围内向电网购买电能或出售电能,用户与电力公司之间的交换功率Pgrid,当大于0时表示购买电能,小于0时表示出售电能,并且用户与电力公司之间的交换功率Pgrid受最大出售功率Paell,max和最大购买功率Pbuy,max的限制,表示如下:Allows users to buy or sell power from the grid within the power limit, the exchange power P grid between the user and the power company, when it is greater than 0, it means buying power, and when it is less than 0, it means selling power, and the exchange between the user and the power company The power P grid is limited by the maximum selling power P aell,max and the maximum buying power P buy,max , expressed as follows:

Figure GDA0002345701300000034
Figure GDA0002345701300000034

Figure GDA0002345701300000035
Figure GDA0002345701300000035

更新丢弃可再生能源功率计算公式如下:The updated discarded renewable energy power calculation formula is as follows:

Figure GDA0002345701300000036
Figure GDA0002345701300000036

时间段h最大的蓄电池的充电功率P1ch(h)=min{Pch_max-Pbat(h),P1(h)}。The charging power P1 ch (h)=min{P ch_max -P bat (h), P1 (h)} of the battery having the largest time period h.

所述的步骤S5中,从Tpr_buysell_sort按顺序选择可行的放电时间段时,当选中的时间段对应的为买电电价时,则表示该时间段蓄电池放电用于抵消买电功率,若该时间段没有购买电能,则选择下一个时间段,当选中的时间段对应的是卖电电价时则,表示该时间段蓄电池放电用于出售电能给电网。In the step S5, when a feasible discharge time period is selected in sequence from T pr_buysell_sort , when the selected time period corresponds to the electricity purchase price, it means that the battery discharge in this time period is used to offset the electricity purchase power. If no electric energy is purchased, the next time period is selected. When the selected time period corresponds to the selling price of electricity, it means that the battery is discharged in this time period to sell electric energy to the grid.

在步骤S5-S8中,蓄电池在时间段h∈{1,2,…,N}需要满足的约束条件包括:In steps S5-S8, the constraints that the battery needs to satisfy in the time period h∈{1,2,...,N} include:

Figure GDA0002345701300000037
Figure GDA0002345701300000037

Figure GDA0002345701300000038
Figure GDA0002345701300000038

Figure GDA0002345701300000039
Figure GDA0002345701300000039

Figure GDA00023457013000000310
Figure GDA00023457013000000310

Figure GDA00023457013000000311
Figure GDA00023457013000000311

其中,SOCmax为蓄电池最大容量百分比,uESS为0/1变量,

Figure GDA00023457013000000312
分别为充电效率和放电效率,EB为蓄电池的额定容量,Δh为时间段长度。Among them, SOC max is the maximum capacity percentage of the battery, u ESS is a 0/1 variable,
Figure GDA00023457013000000312
are the charging efficiency and discharging efficiency, respectively, EB is the rated capacity of the battery, and Δh is the length of the time period.

所述的步骤S8中,用户总电费Costpay的计算公式为:In the described step S8, the calculation formula of the user's total electricity cost Cost pay is:

Figure GDA0002345701300000041
Figure GDA0002345701300000041

Figure GDA0002345701300000042
Figure GDA0002345701300000042

Figure GDA0002345701300000043
Figure GDA0002345701300000043

其中,RTPbuy(h)为用户的购买实时电价,RTPsell(h)为用户的出售实时电价。Among them, RTP buy (h) is the real-time electricity price of the user's purchase, and RTP sell (h) is the real-time electricity price of the user's sale.

与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:

本发明不同于目前的优化方法,以电价排序为依据,分别进行可再生能源丢弃部分最优利用、蓄电池初始容量最优利用和蓄电池低电价段充电高电价段放电最优利用,从而得到最优的蓄电池充放电策略,这种策略可以实现快速获取最优蓄电池充放电策略。The present invention is different from the current optimization method. Based on the order of electricity price, the optimal utilization of the discarded part of renewable energy, the optimal utilization of the initial capacity of the battery and the optimal utilization of the battery in the low electricity price section of charging and the high electricity price section of discharge are respectively carried out, so as to obtain the optimal utilization. This strategy can quickly obtain the optimal battery charging and discharging strategy.

附图说明Description of drawings

图1为基于实时电价的蓄电池充放电策略的基本流程图。Figure 1 is a basic flow chart of a battery charging and discharging strategy based on real-time electricity prices.

图2为在智能电网下家庭的工作环境,其中,图(2a)为可再生能源发电功率、用户用电功率、买卖功率限制,图(2b)为买卖实时电价。Figure 2 shows the working environment of a home under the smart grid, in which Figure (2a) shows the power generated by renewable energy, user power consumption, and trading power limits, and Figure (2b) shows the real-time electricity price for trading.

图3为可再生能源丢弃部分最优利用后的示意图,其中,图(3a)为优化后与电网的交换功率,图(3b)为优化后蓄电池充放电示意图。Figure 3 is a schematic diagram of the discarded part of renewable energy after optimal utilization, wherein Figure (3a) is the power exchange with the grid after optimization, and Figure (3b) is a schematic diagram of battery charging and discharging after optimization.

图4为蓄电池初始容量最优利用后的示意图,其中,图(4a)为优化后与电网的交换功率,图(4b)为优化后蓄电池充放电示意图。Figure 4 is a schematic diagram of the optimal utilization of the initial capacity of the battery, in which Figure (4a) is the power exchange with the power grid after optimization, and Figure (4b) is a schematic diagram of the charging and discharging of the battery after optimization.

图5为蓄电池低电价段充电高电价段放电最优利用后的示意图,其中,图(5a)为优化后与电网的交换功率,图(5b)为优化后蓄电池充放电示意图。Figure 5 is a schematic diagram of the battery after optimal utilization after charging in the low-price segment of the battery and discharging in the high-price segment. Figure (5a) is the power exchange with the grid after optimization, and Figure (5b) is the schematic diagram of battery charging and discharging after optimization.

具体实施方式Detailed ways

下面结合附图和具体实施例对本发明进行详细说明。The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

实施例Example

如图1所示,本发明提供一种基于实时电价的蓄电池充放电方法,包括以下步骤:As shown in FIG. 1, the present invention provides a battery charging and discharging method based on real-time electricity price, comprising the following steps:

(S1)获取一天的优化系统输入数据,包括电力公司参数、家庭电力参数、蓄电池参数。其中,电力公司参数:实时买电电价RTPbuy、实时卖电电价RTPsell、用户最大买电功率限制Pbuy_max、用户最大卖电功率限制Psell_max;家庭电力参数:家庭用电功率Pload、可再生能源发电功率Pre。蓄电池参数:蓄电池初始容量百分比SOCini=0.5、蓄电池最大容量EESS=20kWh、蓄电池最大允许容量百分比SOCmax=0.9、蓄电池最小允许容量百分比SOCmin=0.2、蓄电池最大允许充电功率Pch_max=5kW和放电功率Pdch_max=5kW。(S1) Acquire the input data of the optimization system for one day, including the parameters of the electric power company, the parameters of the household electric power, and the parameters of the battery. Among them, power company parameters: real-time electricity purchase price RTP buy , real-time electricity selling price RTP sell , user maximum purchase power limit P buy_max , user maximum selling power limit P sell_max ; household power parameters: household electricity power P load , renewable energy power generation power Pre . Battery parameters: initial battery capacity percentage SOC ini = 0.5, battery maximum capacity E ESS = 20kWh, battery maximum allowable capacity percentage SOC max = 0.9, battery minimum allowable capacity percentage SOC min = 0.2, battery maximum allowable charging power P ch_max = 5kW and Discharge power P dch_max =5kW.

(S2)把一天划分为48个等间距的时间段,并把步骤(S1)中的电力公司参数和家庭电力参数划分为48个时间段;(S2) divide one day into 48 equally spaced time periods, and divide the power company parameters and household power parameters in step (S1) into 48 time periods;

(S3)买卖电价统一从大到小排序得到时间段集Tpr_buysell_sort,初始化蓄电池充放电功率Pbat=[0,0,0…,0]1*48;时间段集Tpr_buysell_sort是一个1*96的矩阵,它指买卖电价共96个数据一并从大到小排序得到的集合。蓄电池充放电功率Pbat,大于0表示充电,小于0表示放电,因此充放电功率Pbat与蓄电池充电功率

Figure GDA0002345701300000051
和放电功率
Figure GDA0002345701300000052
存在以下关系:(S3) Uniformly sort the buying and selling electricity prices from large to small to obtain a time period set T pr_buysell_sort , and initialize the battery charge and discharge power P bat =[0,0,0...,0] 1*48 ; the time period set T pr_buysell_sort is a 1*96 It refers to a set of 96 data of buying and selling electricity prices sorted from large to small. The battery charge and discharge power P bat , greater than 0 means charging, and less than 0 means discharging, so the charge and discharge power P bat is related to the battery charging power
Figure GDA0002345701300000051
and discharge power
Figure GDA0002345701300000052
The following relationships exist:

Figure GDA0002345701300000053
Figure GDA0002345701300000053

(S4)更新存在丢弃可再生能源的丢弃功率P1,筛选出大于0的元素和对应的时间段集T1,选定T1的第1个时间段作为蓄电池的充电时间段并确定该时间允许的最大充电功率P1ch;用户可以在允许的功率限制范围内向电网购买电能或出售电能。用户与电力公司之间的交换功率Pgrid,其大于0表示购买电能,小于0表示出售电能。此外,用户与电力公司之间的交换功率Pgrid需要受最大出售功率Psell,max和最大购买功率Pbuy,max限制,该约束表示如下:(S4) Update the discarded power P1 of the discarded renewable energy, filter out elements greater than 0 and the corresponding time period set T1, select the first time period of T1 as the charging time period of the battery, and determine the maximum allowable time period. Charging power P1 ch ; the user can purchase or sell electrical energy from the grid within the allowable power limit. The exchange power P grid between the user and the power company, which is greater than 0 means buying electric energy, and less than 0 means selling electric energy. In addition, the exchange power P grid between the user and the power company needs to be limited by the maximum selling power P sell,max and the maximum buying power P buy,max , and the constraints are expressed as follows:

Figure GDA0002345701300000054
Figure GDA0002345701300000054

Figure GDA0002345701300000055
Figure GDA0002345701300000055

更新丢弃可再生能源功率计算公式如下:The updated discarded renewable energy power calculation formula is as follows:

Figure GDA0002345701300000056
Figure GDA0002345701300000056

时间段h最大的蓄电池的充电功率P1ch(h)=min{Pch_max-Pbat(h),P1(h)}。The charging power P1 ch (h)=min{P ch_max -P bat (h), P1 (h)} of the battery having the largest time period h.

(S5)从Tpr_buysell_sort按正序选择可行的时间段作为蓄电池放电时间段,从Tpr_buysell_sort按顺序选择可行的放电时间段时,当选中的时间段对应的是买电电价时表示该时间段蓄电池放电用于抵消买电功率,如果该时间段没有购买电能则选择下一个时间段。当选中的时间段对应的是卖电电价时表示该时间段蓄电池放电用于出售电能给电网。结合蓄电池的约束和电力公司买卖功率限制确定允许的最大放电功率P1dch,取min{P1ch,P1dch}作为蓄电池在充电时间段的充电功率和放电时间段的放电功率更新蓄电池充放电功率Pbat。蓄电池在时间段h∈{1,2,…,48}需要满足的约束条件如下:(S5) Select a feasible time period from T pr_buysell_sort as the battery discharge time period in positive order, and select a feasible discharge time period from T pr_buysell_sort in order, when the selected time period corresponds to the electricity purchase price, it means that the battery in this time period Discharge is used to offset the purchased power, and the next time period is selected if no power is purchased during this time period. When the selected time period corresponds to the electricity selling price, it means that the battery is discharged for selling electricity to the power grid in this time period. Determine the maximum allowable discharge power P1 dch according to the constraints of the battery and the power company's trading power limit, take min{P1 ch , P1 dch } as the charging power of the battery in the charging time period and the discharging power in the discharging time period to update the battery charging and discharging power P bat . The constraints that the battery needs to satisfy in the time period h∈{1,2,…,48} are as follows:

Figure GDA0002345701300000061
Figure GDA0002345701300000061

Figure GDA0002345701300000062
Figure GDA0002345701300000062

Figure GDA0002345701300000063
Figure GDA0002345701300000063

Figure GDA0002345701300000064
Figure GDA0002345701300000064

Figure GDA0002345701300000065
Figure GDA0002345701300000065

其中,SOC为蓄电池能量站最大容量的百分比;因为蓄电池存在允许的最大最小容量从而蓄电池存在允许的最大最小容量百分比SOCmax和SOCmin;考虑到蓄电池在同一个时间段只允许充电功率

Figure GDA0002345701300000066
或者放电功率
Figure GDA0002345701300000067
之一存在,需要定义一个01变量uESS;参数
Figure GDA0002345701300000068
Figure GDA0002345701300000069
分别表示充电效率和放电效率。循环执行步骤(S4-S5),直到集合T1为空集或者蓄电池不存在新的放电时间段时结束循环,经过可再生能源丢弃部分最优利用后的结果如图3所示。Among them, SOC is the percentage of the maximum capacity of the battery energy station; because the battery has the maximum and minimum capacity allowed, the battery has the maximum and minimum capacity percentages SOC max and SOC min ; considering that the battery only allows charging power in the same time period
Figure GDA0002345701300000066
or discharge power
Figure GDA0002345701300000067
One exists, a 01 variable u ESS needs to be defined; parameter
Figure GDA0002345701300000068
and
Figure GDA0002345701300000069
are the charge efficiency and discharge efficiency, respectively. Steps (S4-S5) are performed cyclically until the set T1 is empty or the battery does not have a new discharge time period to end the cycle. The result after the optimal utilization of the discarded part of the renewable energy is shown in Figure 3.

(S6)更新蓄电池容量百分比SOC,从Tpr_buysell_sort按正序选择时间段作为蓄电池放电时间段,结合蓄电池的约束和电力公司买卖功率限制确定蓄电池的最大放电功率,更新蓄电池充放电功率Pbat和交换功率Pgrid。循环执行步骤(S6),直到蓄电池放电至最小容量百分比SOCmin或者蓄电池不存在新的放电时间段时结束循环。经过蓄电池初始容量最优利用后的结果如图4所示。(S6) Update the battery capacity percentage SOC, select a time period from T pr_buysell_sort in positive order as the battery discharge time period, determine the maximum discharge power of the battery in combination with the constraints of the battery and the power company's trading power limit, update the battery charge and discharge power P bat and exchange Power P grid . Step ( S6 ) is performed cyclically until the battery is discharged to the minimum capacity percentage SOC min or the battery does not have a new discharge period to end the cycle. The results after optimal utilization of the initial capacity of the battery are shown in Figure 4.

(S7)从Tpr_buysell_sort按逆序选择可行的时间段作为蓄电池充电时间段,并结合蓄电池的约束和电力公司买卖功率限制确定蓄电池在该时间段允许的最大的充电功率P3ch(S7) Select a feasible time period from T pr_buysell_sort as the battery charging time period in reverse order, and determine the maximum charging power P3 ch allowed by the battery in this time period in combination with the constraints of the battery and the power company trading power limit;

(S8)从Tpr_buysell_sort按正序选择可行的时间段作为蓄电池放电时间段,并结合蓄电池的约束和电力公司买卖功率限制确定蓄电池在该时间段允许的最大的放电功率P3dch,选择P3=min{P3ch,P3dch}作为充电时间段的充电功率和放电时间段的放电功率。更新蓄电池充放电功率Pbat和交换功率Pgrid,计算更新前后的总电费。用户总电费计算公式如下:(S8) Select a feasible time period from T pr_buysell_sort as the battery discharge time period in positive order, and determine the maximum discharge power P3 dch allowed by the battery in this time period in combination with the constraints of the battery and the power company’s trading power limit, and select P3=min {P3 ch , P3 dch } are used as the charging power in the charging period and the discharging power in the discharging period. Update the battery charge and discharge power P bat and the exchange power P grid , and calculate the total electricity bill before and after the update. The formula for calculating the total electricity bill of a user is as follows:

Figure GDA0002345701300000071
Figure GDA0002345701300000071

其中,购买功率Pgrid,buy(h)和出售功率Pgrid,sell(h)计算公式分别如下:Among them, the calculation formulas of purchasing power P grid,buy (h) and selling power P grid,sell (h) are as follows:

Figure GDA0002345701300000072
Figure GDA0002345701300000072

Figure GDA0002345701300000073
Figure GDA0002345701300000073

循环执行步骤(S7-S8),直到更新后的电费没有减少或者选择的充电时间段与放电时间段一样时结束循环。经过蓄电池低电价段充电高电价段放电最优利用后的结果如图5所示。Steps (S7-S8) are executed cyclically, and the cycle ends when the updated electricity bill does not decrease or the selected charging time period is the same as the discharging time period. Figure 5 shows the results of optimal utilization of the battery after charging in the low-price segment and discharging in the high-price segment.

现有技术大都采用规划问题求解或者遗传算法求解蓄电池最优充放电,这种方法不仅收敛速度慢,而且得到的结果也不稳定。实际上,蓄电池充放电优化问题可以分成可再生能源丢弃部分最优利用、蓄电池初始容量最优利用和蓄电池低电价段充电高电价段放电最优利用三部分子优化问题。每一个子优化问题都可以根据实时电价的大小排序进行选择充放电调度,最终得到的蓄电池充放电策略会是最优的结果。Most of the existing technologies use planning problem solving or genetic algorithm to solve the optimal charging and discharging of the battery. This method not only has a slow convergence speed, but also obtains unstable results. In fact, the optimization problem of battery charging and discharging can be divided into three parts: the optimal utilization of the discarded part of renewable energy, the optimal utilization of the initial capacity of the battery, and the optimal utilization of the battery in the low-price segment and the high-price segment for discharging. For each sub-optimization problem, the charging and discharging scheduling can be selected according to the order of the real-time electricity price, and the final battery charging and discharging strategy will be the optimal result.

Claims (7)

1.一种基于实时电价的蓄电池充放电方法,其特征在于,包括以下步骤:1. a battery charging and discharging method based on real-time electricity price, is characterized in that, comprises the following steps: S1获取一天的优化系统输入数据,包括电力公司参数、家庭电力参数、蓄电池参数;S1 obtains one day's optimization system input data, including power company parameters, household power parameters, and battery parameters; S2将一天划分为N个等间距的时间段,并将电力公司参数和家庭电力参数划分为N个时间段;S2 divides a day into N equally spaced time periods, and divides power company parameters and household power parameters into N time periods; S3将买卖电价统一从大到小排序获得时间段集Tpr_buysell_sort,并且初始化蓄电池充放电功率Pbat=[0,0,0…,0]1*NS3 uniformly sorts the buying and selling electricity prices from large to small to obtain a time period set T pr_buysell_sort , and initializes the battery charge and discharge power P bat =[0,0,0...,0] 1*N ; S4更新存在丢弃可再生能源的丢弃功率P1,筛选出大于0的元素和对应的时间段集T1,选定T1的第1个时间段作为蓄电池的充电时间段并确定该时间段最大的允许充电功率P1chS4 updates the discarded power P1 of discarded renewable energy, filters out elements greater than 0 and the corresponding time period set T1, selects the first time period of T1 as the charging time period of the battery, and determines the maximum allowable charging in this time period power P1 ch ; S5从Tpr_buysell_sort按正序选择可行的时间段作为蓄电池放电时间段,结合蓄电池的约束和电力公司买卖功率限制确定允许的最大放电功率P1dch,取min{P1ch,P1dch}作为蓄电池在充电时间段的充电功率和放电时间段的放电功率并更新蓄电池充放电功率Pbat,循环执行步骤S4-S5,直到集合T1为空集或者蓄电池不存在新的放电时间段;S5 selects a feasible time period from T pr_buysell_sort as the battery discharge time period in positive order, determines the maximum allowable discharge power P1 dch in combination with the constraints of the battery and the power company's trading power limit, and takes min{P1 ch , P1 dch } as the battery is charging The charging power in the time period and the discharging power in the discharging period are updated, and the battery charging and discharging power P bat is updated, and steps S4-S5 are executed cyclically until the set T1 is an empty set or the battery does not have a new discharge time period; S6更新蓄电池容量百分比SOC,从Tpr_buysell_sort按正序选择时间段作为蓄电池放电时间段,结合蓄电池的约束和电力公司买卖功率限制确定蓄电池的最大放电功率,更新蓄电池充放电功率Pbat和用户与电力公司之间的交换功率Pgrid,循环执行步骤S6,直到蓄电池放电至最小容量百分比SOCmin或者蓄电池不存在新的放电时间段;S6 updates the battery capacity percentage SOC, selects the time period from T pr_buysell_sort as the battery discharge time period in positive order, determines the maximum discharge power of the battery in combination with the constraints of the battery and the power company's trading power limit, and updates the battery charge and discharge power P bat and the user and power For the exchange power P grid between companies, step S6 is executed cyclically until the battery is discharged to the minimum capacity percentage SOC min or the battery does not have a new discharge time period; S7从Tpr_buysell_sort按逆序选择可行的时间段作为蓄电池充电时间段,并结合蓄电池的约束和电力公司买卖功率限制确定蓄电池在该时间段允许的最大的充电功率P3chS7 selects a feasible time period from T pr_buysell_sort in reverse order as the battery charging time period, and determines the maximum charging power P3 ch allowed by the battery in this time period in combination with the constraints of the battery and the power company's trading power limit; S8从Tpr_buysell_sort按正序选择可行的时间段作为蓄电池放电时间段,并结合蓄电池的约束和电力公司买卖功率限制确定蓄电池在该时间段允许的最大的放电功率P3dch,选择P3=min{P3ch,P3dch}作为充电时间段的充电功率和放电时间段的放电功率,并更新蓄电池充放电功率Pbat和交换功率Pgrid,计算更新前后的用户总电费,循环执行步骤S7-S8,直到更新后的电费没有减少或者选择的充电时间段与放电时间段相同。S8 selects a feasible time period from T pr_buysell_sort as the battery discharge time period in positive sequence, and determines the maximum discharge power P3 dch allowed by the battery in this time period in combination with the constraints of the battery and the power limit of the power company, and selects P3=min{P3 ch , P3 dch } are used as the charging power in the charging time period and the discharging power in the discharging time period, and update the battery charging and discharging power P bat and the exchange power P grid , calculate the total electricity bill of the user before and after the update, and execute steps S7-S8 cyclically until The updated electricity bill is not reduced or the charging time period selected is the same as the discharging time period. 2.根据权利要求1所述的一种基于实时电价的蓄电池充放电方法,其特征在于,所述的步骤S1中,电力公司参数包括实时买电电价RTPbuy、实时卖电电价RTPsell、用户最大买电功率限制Pbuy_max和用户最大卖电功率限制Psell_max,家庭电力参数包括家庭用电功率Pload和可再生能源发电功率Pre,蓄电池参数包括蓄电池当前容量Cbat、蓄电池初始容量Cini、蓄电池最大容量EESS、蓄电池最大允许容量Cmax、蓄电池最小允许容量Cmin、蓄电池最大允许充电功率Pch_max和放电功率Pdch_max2. a kind of battery charging and discharging method based on real-time electricity price according to claim 1, is characterized in that, in described step S1, electric power company parameter comprises real-time electricity buying electricity price RTP buy , real-time electricity selling electricity price RTP sell , user The maximum buying power limit P buy_max and the user’s maximum selling power limit P sell_max , the household electric power parameters include the household electric power P load and the renewable energy power generation power Pre , the battery parameters include the current battery capacity C bat , the initial battery capacity C ini , and the maximum battery capacity The capacity E ESS , the maximum allowable capacity C max of the battery, the minimum allowable capacity C min of the battery, the maximum allowable charging power P ch_max and the discharging power P dch_max of the battery. 3.根据权利要求2所述的一种基于实时电价的蓄电池充放电方法,其特征在于,所述的步骤S3中,时间段集Tpr_buysell_sort为一个1*2N的矩阵,蓄电池充放电功率Pbat的表达式为:3. The method for charging and discharging storage batteries based on real-time electricity prices according to claim 2, wherein in the step S3, the time period set T pr_buysell_sort is a 1*2N matrix, and the storage battery charging and discharging power P bat The expression is:
Figure FDA0002345701290000021
Figure FDA0002345701290000021
其中,
Figure FDA0002345701290000022
为蓄电池充电功率,
Figure FDA0002345701290000023
为蓄电池放电功率,当蓄电池充放电功率Pbat大于0时表示充电,小于0时表示放电。
in,
Figure FDA0002345701290000022
charging power for the battery,
Figure FDA0002345701290000023
is the battery discharge power. When the battery charge and discharge power P bat is greater than 0, it means charging, and when it is less than 0, it means discharge.
4.根据权利要求1所述的一种基于实时电价的蓄电池充放电方法,其特征在于,所述的步骤S4中,4. A kind of battery charging and discharging method based on real-time electricity price according to claim 1, is characterized in that, in described step S4, 允许用户在功率限制范围内向电网购买电能或出售电能,用户与电力公司之间的交换功率Pgrid,当大于0时表示购买电能,小于0时表示出售电能,并且用户与电力公司之间的交换功率Pgrid受最大出售功率Psell,max和最大购买功率Pbuy,max的限制,表示如下:Allows users to buy or sell power from the grid within the power limit, the exchange power P grid between the user and the power company, when it is greater than 0, it means buying power, and when it is less than 0, it means selling power, and the exchange between the user and the power company The power P grid is limited by the maximum selling power P sell,max and the maximum buying power P buy,max , expressed as follows:
Figure FDA0002345701290000024
Figure FDA0002345701290000024
Figure FDA0002345701290000025
Figure FDA0002345701290000025
更新丢弃可再生能源功率计算公式如下:The updated discarded renewable energy power calculation formula is as follows:
Figure FDA0002345701290000026
Figure FDA0002345701290000026
时间段h最大的蓄电池的充电功率P1ch(h)=min{Pch_max-Pbat(h),P1(h)}。The charging power P1 ch (h)=min{P ch_max -P bat (h), P1 (h)} of the battery having the largest time period h.
5.根据权利要求1所述的一种基于实时电价的蓄电池充放电方法,其特征在于,所述的步骤S5中,从Tpr_buysell_sort按顺序选择可行的放电时间段时,当选中的时间段对应的为买电电价时,则表示该时间段蓄电池放电用于抵消买电功率,若该时间段没有购买电能,则选择下一个时间段,当选中的时间段对应的是卖电电价时则,表示该时间段蓄电池放电用于出售电能给电网。5 . The battery charging and discharging method based on real-time electricity price according to claim 1 , wherein, in the step S5 , when a feasible discharge time period is selected in order from T pr_buysell_sort , the selected time period corresponds to 5 . When the price is the electricity price for buying electricity, it means that the battery discharge is used to offset the power of buying electricity in this time period. If no electricity is purchased during this time period, the next time period is selected. When the selected time period corresponds to the electricity selling price, it means that The battery discharges during this time period to sell power to the grid. 6.根据权利要求3所述的一种基于实时电价的蓄电池充放电方法,其特征在于,在步骤S5-S8中,蓄电池在时间段h∈{1,2,…,N}需要满足的约束条件包括:6 . The battery charging and discharging method based on real-time electricity price according to claim 3 , wherein in steps S5 - S8 , the constraints that the battery needs to meet in the time period h∈{1,2,...,N} Conditions include:
Figure FDA0002345701290000031
Figure FDA0002345701290000031
Figure FDA0002345701290000032
Figure FDA0002345701290000032
Figure FDA0002345701290000033
Figure FDA0002345701290000033
Figure FDA0002345701290000034
Figure FDA0002345701290000034
Figure FDA0002345701290000035
Figure FDA0002345701290000035
其中,SOCmax为蓄电池最大容量百分比,uESS为0/1变量,
Figure FDA0002345701290000036
分别为充电效率和放电效率,EB为蓄电池的额定容量,Δh为时间段长度。
Among them, SOC max is the maximum capacity percentage of the battery, u ESS is a 0/1 variable,
Figure FDA0002345701290000036
are the charging efficiency and discharging efficiency, respectively, EB is the rated capacity of the battery, and Δh is the length of the time period.
7.根据权利要求4所述的一种基于实时电价的蓄电池充放电方法,其特征在于,所述的步骤S8中,用户总电费Costpay的计算公式为:7. A kind of battery charging and discharging method based on real-time electricity price according to claim 4, is characterized in that, in described step S8, the calculation formula of user's total electricity cost Cost pay is:
Figure FDA0002345701290000037
Figure FDA0002345701290000037
Figure FDA0002345701290000038
Figure FDA0002345701290000038
Figure FDA0002345701290000039
Figure FDA0002345701290000039
其中,RTPbuy(h)为用户的购买实时电价,RTPsell(h)为用户的出售实时电价。Among them, RTP buy (h) is the real-time electricity price of the user's purchase, and RTP sell (h) is the real-time electricity price of the user's sale.
CN201810489683.XA 2018-05-21 2018-05-21 A battery charging and discharging method based on real-time electricity price Active CN108649566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810489683.XA CN108649566B (en) 2018-05-21 2018-05-21 A battery charging and discharging method based on real-time electricity price

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810489683.XA CN108649566B (en) 2018-05-21 2018-05-21 A battery charging and discharging method based on real-time electricity price

Publications (2)

Publication Number Publication Date
CN108649566A CN108649566A (en) 2018-10-12
CN108649566B true CN108649566B (en) 2020-06-26

Family

ID=63757200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810489683.XA Active CN108649566B (en) 2018-05-21 2018-05-21 A battery charging and discharging method based on real-time electricity price

Country Status (1)

Country Link
CN (1) CN108649566B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104251B (en) * 2011-02-24 2013-04-24 浙江大学 Microgrid real-time energy optimizing and scheduling method in parallel running mode
CN103178541B (en) * 2011-12-26 2015-01-21 上海电科电器科技有限公司 Control method of distributed grid-connected photovoltaic power generation devices and energy storage devices
KR20130094925A (en) * 2012-02-17 2013-08-27 한국전자통신연구원 Energy control method for energy managemetnt system
CN103151789B (en) * 2013-01-31 2015-12-23 中国地质大学(武汉) Intelligent grid tou power price stores method for electrically and device
CN104200297B (en) * 2014-07-11 2018-04-20 浙江大学 The energy-optimised dispatching method of household mixed power supply system under Spot Price environment
JP5864821B1 (en) * 2014-07-24 2016-02-17 三菱電機株式会社 Supply / demand control device, charge / discharge control device, power storage device, supply / demand control system, and supply / demand control method
US10705496B2 (en) * 2016-08-05 2020-07-07 Lg Electronics Inc. Control device of home energy management system

Also Published As

Publication number Publication date
CN108649566A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN110516855A (en) A kind of distributed energy storage optimization of control right dispatching method towards Load aggregation quotient
CN113722882B (en) Park power grid energy storage optimal configuration method and system considering multiple profit modes
CN113644651A (en) Energy storage configuration optimization method under electricity price bidding scene
CN114862460A (en) Pricing method for electric vehicle virtual power plant operator based on master-slave game
CN113555887B (en) Power grid energy control method and device, electronic equipment and storage medium
CN116345549B (en) A method, device, equipment and medium for optimizing operation of a park microgrid
CN109713666A (en) It is a kind of based on K-means cluster electricity market under distributed energy storage economic adjusting and control method
Huang et al. Dynamic pricing for distributed generation in smart grid
CN109873449A (en) A method for optimal configuration of optical storage capacity in household microgrids
CN115471044A (en) Dispatching method, system and storage medium for electric vehicles in distribution station area including optical storage
CN110661277B (en) Virtual power plant day-ahead scheduling method based on sensitive load access
CN104268769A (en) Time-of-use electricity price design method based on model clustering method
CN111126882B (en) Virtual transformer substation scheduling method and terminal equipment
CN112906961B (en) Energy storage control method and device, nonvolatile storage medium and electronic device
Zhong et al. Efficient auction mechanisms for two-layer vehicle-to-grid energy trading in smart grid
CN116979586A (en) Energy management method and system for shared energy storage power stations considering cluster division
CN115133607A (en) Method, system, equipment and medium for configuring energy storage capacity of retired battery at user side
CN113488995A (en) Energy storage cost-based shared energy storage capacity optimal configuration method and device
CN116845907A (en) Micro-grid source load scheduling method, micro-grid source load scheduling system, electronic equipment and medium
CN108649566B (en) A battery charging and discharging method based on real-time electricity price
CN115833311A (en) Energy storage system control method and related device
CN110110929A (en) A kind of resource distribution of electric charging station and electric charging combined dispatch optimization method
Zhao et al. Time-of-use price optimizing model and its solving method
CN114663241A (en) Method and device for determining evaluation energy storage investment index parameters
CN105260824A (en) Virtual power plant optimization scheduling method containing storage batteries based on unified electricity market

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant