CN104578157B - Load flow calculation method of distributed power supply connection power grid - Google Patents

Load flow calculation method of distributed power supply connection power grid Download PDF

Info

Publication number
CN104578157B
CN104578157B CN201510001581.5A CN201510001581A CN104578157B CN 104578157 B CN104578157 B CN 104578157B CN 201510001581 A CN201510001581 A CN 201510001581A CN 104578157 B CN104578157 B CN 104578157B
Authority
CN
China
Prior art keywords
power
formula
cost
reactive
output
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
CN201510001581.5A
Other languages
Chinese (zh)
Other versions
CN104578157A (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.)
Electric Power Research Institute of Yunnan Power System Ltd
Original Assignee
Electric Power Research Institute of Yunnan Power System Ltd
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 Electric Power Research Institute of Yunnan Power System Ltd filed Critical Electric Power Research Institute of Yunnan Power System Ltd
Priority to CN201510001581.5A priority Critical patent/CN104578157B/en
Publication of CN104578157A publication Critical patent/CN104578157A/en
Application granted granted Critical
Publication of CN104578157B publication Critical patent/CN104578157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/38Arrangements for parallely feeding a single network by two or more generators, converters or transformers
    • 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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/70Wind energy
    • Y02E10/76Power conversion electric or electronic aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

一种分布式电源接入电网的潮流计算方法,包括以下步骤:S1:读取电力系统的初始数据;S2:确定采样次数N和输入随机变量的维数s;S3:生成s×N阶采样矩阵;S4:将采样次数初始化:令n=1;S5:判断n和采样次数N的大小,若n>N,直接输出变量的概率统计结果;若n≤N,转S6;S6:确定风电和光伏发电出力模型,确定负荷随机模型;S7:确定潮流计算模型;S8:确定最优经济模型;S9:潮流计算S10:记录第n组节点电压、支路功率及发电成本等数据;S11:进行下一轮潮流计算,t=t+1,转S5。本发明可以较好的估计输出随机变量的概率分布,能有效地处理电力市场中的不确定性问题,本发明节约了调试的人力和物力,降低了的生产成本。

A power flow calculation method for distributed power sources connected to the power grid, comprising the following steps: S1: read the initial data of the power system; S2: determine the number of samples N and the dimension s of the input random variable; S3: generate s×N order samples Matrix; S4: Initialize the number of samples: let n=1; S5: Determine the size of n and the number of samples N, if n>N, directly output the probability statistics of variables; if n≤N, go to S6; S6: Determine the wind power and photovoltaic power generation output model to determine the load random model; S7: determine the power flow calculation model; S8: determine the optimal economic model; S9: power flow calculation S10: record the nth group of node voltage, branch power and power generation costs and other data; S11: Carry out the next round of power flow calculation, t=t+1, go to S5. The invention can better estimate the probability distribution of the output random variable, and can effectively deal with the uncertainty problem in the electric power market. The invention saves manpower and material resources for debugging, and reduces the production cost.

Description

一种分布式电源接入电网的潮流计算方法A Power Flow Calculation Method for Distributed Power Supply Connected to Power Grid

技术领域technical field

本发明涉及电力系统配电网的应用领域,尤其涉及一种分布式电源接入电网的潮流计算方法。The invention relates to the application field of power system distribution network, in particular to a power flow calculation method for distributed power sources connected to the power grid.

背景技术Background technique

风能、太阳能是绿色清洁能源,大力发展风电、光伏有利于减少化石燃料消耗、降低碳排放水平。但因其具有间歇性和随机性的特点,对电力系统运行控制提出更高要求。近年来,我国风电、光伏发电发展迅速,装机容量迅速增加,消纳出现困难,在电力系统规划设计和运行控制中更全面地考虑风电场、光伏电站的特性,掌握其波动规律,对提高系统的安全性和经济性有重要意义。Wind energy and solar energy are green and clean energies. Vigorously developing wind power and photovoltaics will help reduce fossil fuel consumption and reduce carbon emissions. But because of its intermittent and random characteristics, higher requirements are put forward for the operation control of power system. In recent years, my country's wind power and photovoltaic power generation have developed rapidly, the installed capacity has increased rapidly, and it is difficult to accommodate them. In the planning, design and operation control of the power system, the characteristics of wind farms and photovoltaic power stations should be considered more comprehensively, and their fluctuation laws can be mastered. Safety and economy are of great significance.

风电、光伏出力受自然天气条件的影响很大,当系统中有大规模风能及光伏接入时,其出力的波动性会相对以往的火电、水电的出力调度有所不同。如何在满足系统功率供需平衡的条件下,优先调度新能源,在考虑新能源波动性的情况下,让火电机组承担基本负荷,不同时段出力变化较小;让水电调节峰值负荷,不同时段间可以有较大的波动;同时考虑有功出力优化及无功出力优化且使系统总发电费用最低,这些都对最优潮流的建模提出了更高的要求。电网最优潮流具有很高的实用价值,它第一次将经济性与安全性、有功和无功优化近乎完美的结合在一起,满足了大系统互连、电网规模扩大后系统规划设计人员、运行调度人员的要求。The output of wind power and photovoltaics is greatly affected by natural weather conditions. When large-scale wind energy and photovoltaics are connected to the system, the fluctuation of its output will be different from the previous output scheduling of thermal power and hydropower. How to dispatch new energy first under the condition of satisfying the balance of system power supply and demand, and let thermal power units bear the basic load under the condition of considering the volatility of new energy, with little change in output at different times; There are large fluctuations; considering the optimization of active power output and reactive power output at the same time and making the total power generation cost of the system the lowest, these all put forward higher requirements for the modeling of optimal power flow. The optimal power flow of power grid has high practical value. For the first time, it combines economy and safety, active power and reactive power optimization together almost perfectly. Run the scheduler's request.

由于新能源出力具有不确定性,概率最优潮流计算也变得更复杂。目前,已有相关文献对含新能源的最优潮流进行研究。文献《考虑注入功率分布的随机最优潮流方法》考虑风机出力的不确定性,建立了机会约束的最优潮流模型。文献《基于概率最优潮流的风电接入能力分析》运用随机技术的粒子群优化算法求解概率最优潮流模型,对风电接入能力的可行性和有效性进行了评估。但上述研究一般只考虑风电场,而很少研究风电场和光伏电站同时接入系统对最优潮流的影响。风电场和光伏电站出力均具有随机性且出力特性不同,增加了电力市场中的不确定因素。Due to the uncertainty of new energy output, the calculation of probabilistic optimal power flow becomes more complicated. At present, there are relevant literatures on the optimal power flow with new energy. The literature "Stochastic Optimal Power Flow Method Considering Injected Power Distribution" considers the uncertainty of wind turbine output and establishes a chance-constrained optimal power flow model. The document "Analysis of Wind Power Access Capability Based on Probabilistic Optimal Power Flow" uses the particle swarm optimization algorithm of stochastic technology to solve the probability optimal power flow model, and evaluates the feasibility and effectiveness of wind power access capacity. However, the above studies generally only consider wind farms, and rarely study the influence of wind farms and photovoltaic power stations connected to the system at the same time on the optimal power flow. The output of wind farms and photovoltaic power plants is random and has different output characteristics, which increases the uncertainties in the electricity market.

目前,考虑随机性影响的最优潮流计算方法主要包括蒙特卡洛法、累积量法、点估计法、蚁群算法等。蒙特卡洛法可以很好的研究随机性因素对系统最优潮流的影响,但该方法需要成千上万次模拟系统不同运行状态才能得到合理的结果,计算时间长、占用内存大。在输入随机变量相互独立或满足线性关系的前提下,累积量法用Gram-Charlier展开级数、Cornish-Fisher展开级数等进行拟合,从而得到输出随机变量的概率密度函数,提高了计算效率。点估计法虽然具有较快的计算速度,但其输出随机变量的高阶矩误差较大。蚁群算法运算量很大直接影响计算速度。At present, the optimal power flow calculation methods considering the influence of randomness mainly include Monte Carlo method, cumulant method, point estimation method, ant colony algorithm, etc. The Monte Carlo method can well study the influence of random factors on the optimal power flow of the system, but this method requires thousands of simulations of different operating states of the system to obtain reasonable results, which takes a long time to calculate and takes up a lot of memory. On the premise that the input random variables are independent of each other or satisfy a linear relationship, the cumulant method uses Gram-Charlier expansion series, Cornish-Fisher expansion series, etc. to fit, so as to obtain the probability density function of the output random variable, which improves the calculation efficiency . Although the point estimation method has a faster calculation speed, the error of the high-order moment of the output random variable is relatively large. The ant colony algorithm has a large amount of calculation, which directly affects the calculation speed.

发明内容Contents of the invention

为了解决上述问题,本发明提供一种分布式电源接入电网的潮流计算方法,包括以下步骤:In order to solve the above problems, the present invention provides a power flow calculation method for distributed power sources connected to the power grid, including the following steps:

S1:读取电力系统的初始数据;S1: read the initial data of the power system;

S2:确定采样次数N和输入随机变量的维数s;S2: Determine the number of sampling N and the dimension s of the input random variable;

S3:按照以下3步,生成s×N阶采样矩阵,形成点列中第个点(j=1,…,s;n=1,…)的步骤如下:S3: According to the following 3 steps, generate the s×N order sampling matrix to form the points (j=1,...,s; n=1,...) The steps are as follows:

S3-1:把第N-1个整数用2进制数表示,即式(1)S3-1: Express the N-1th integer in binary, that is, formula (1)

N-1=aR-1aR-2…a2a1 (1)N-1=a R-1 a R-2 ...a 2 a 1 (1)

其中an∈Zb,Zb={0,1,…,b-1},R为满足br≤N的r的最大值;Where a n ∈ Z b , Z b ={0,1,…,b-1}, R is the maximum value of r satisfying b r ≤ N;

S3-2:对N-1=aR-1aR-2…a2a1进行排序,得到排序后的序列[d1d2…dn…dR]T为式(2)S3-2: Sort N-1=a R-1 a R-2 ...a 2 a 1 , and obtain the sorted sequence [d 1 d 2 ...d n ...d R ] T as formula (2)

其中,为生成矩阵,0≤dn≤b-1;引入生成矩阵是为了重置a1a2···an···aR-1中各个数字的位置;数字的位置经过重置后,每一维和其它维的数字大小相同,但排列顺序不同,从而保证了结果的均匀性;in, is the generator matrix, 0≤d n ≤b-1; introduce the generator matrix It is to reset the position of each number in a 1 a 2 ···a n ···a R-1 ; after the position of the number is reset, the size of each dimension is the same as that of other dimensions, but the arrangement order is different, so that The uniformity of results is guaranteed;

S3-3:经过第S3-2步的计算,可以表示为式(3)的2进制形式:S3-3: After the calculation of step S3-2, It can be expressed as the binary form of formula (3):

最后,将2进制表示的根据式(2)转化为10进制数即可;Finally, the binary representation According to the formula (2), it can be converted into a decimal number;

S4:将采样次数初始化:令n=1;S4: Initialize the sampling times: make n=1;

S5:判断n和采样次数N的大小,若n>N,直接输出变量的概率统计结果;若n≤N,转S6;S5: Determine the size of n and the number of samples N, if n>N, directly output the probability statistics of variables; if n≤N, go to S6;

S6:确定风电和光伏发电出力模型,确定负荷随机模型S6: Determine the output model of wind power and photovoltaic power generation, and determine the random load model

S6-1:风速服从韦布尔分布,风电场有功功率Pw的概率密度函数可表示为式(4):S6-1: The wind speed obeys the Weibull distribution, and the probability density function of the active power P w of the wind farm can be expressed as formula (4):

式中:k,c分别为韦布尔分布的形状参数和尺度参数,Pr为风机额定功率,vr,vci分别为额定风速和切入风速;In the formula: k and c are the shape parameter and scale parameter of the Weibull distribution respectively, P r is the rated power of the fan, v r and v ci are the rated wind speed and cut-in wind speed respectively;

风电处理为PQ节点,令潮流计算中风机功率因数恒定不变,则无功功率按下式(5)计算:The wind power processing is a PQ node, so that the power factor of the wind turbine in the power flow calculation is constant, and the reactive power is calculated according to formula (5):

式中:为功率因数角,对并网风机而言,一般位于第四象限,为负值。In the formula: is the power factor angle, for grid-connected wind turbines, Generally located in the fourth quadrant, is a negative value.

S6-2:光伏出力随机模型S6-2: Photovoltaic output stochastic model

一定时间段内,太阳光照强度可认为服从贝塔分布,则光伏电站输出功率Ppv的概率密度函数表示为式(6):In a certain period of time, the intensity of sunlight can be considered to obey the Beta distribution, then the probability density function of the output power Ppv of the photovoltaic power station is expressed as formula (6):

式中:Rpv=Aηγmax为仿真最大输出功率,A为太阳能电池仿真总面积,η为仿真总的光电转换效率,γmax为一段时间内的最大光照强度,Γ为Gamma函数,α,β均为贝塔分布的形状参数;In the formula: R pv = Aηγ max is the maximum output power of the simulation, A is the total area of solar cell simulation, η is the total photoelectric conversion efficiency of the simulation, γ max is the maximum light intensity in a period of time, Γ is the Gamma function, α, β Both are shape parameters of the Beta distribution;

与风电相同,潮流计算中将光伏电站也作为PQ节点;Like wind power, photovoltaic power plants are also used as PQ nodes in power flow calculations;

S6-3:负荷随机模型S6-3: Load Stochastic Model

负荷具有时变性,很多有关文献都提出了对区域负荷进行预测的方法得到其概率分布;而作为中长期的负荷预测结果,负荷的概率分布规律基本符合于正态分布;其均值和方差均可以由大量的历史统计数据得到;这样,负荷的有功和无功功率的概率密度函数分别为式(7)和(8):The load is time-varying, and many relevant literatures have proposed methods to predict the regional load to obtain its probability distribution; as the medium and long-term load forecast results, the probability distribution of the load basically conforms to the normal distribution; its mean and variance can be Obtained from a large amount of historical statistical data; thus, the probability density functions of the active and reactive power of the load are formulas (7) and (8) respectively:

式中:μp为有功功率的均值,δp 2为有功功率的方差,μQ为无功功率的均值,δQ 2为无功功率的方差;In the formula: μ p is the mean value of active power, δ p 2 is the variance of active power, μ Q is the mean value of reactive power, and δ Q 2 is the variance of reactive power;

S7:确定潮流计算模型S7: Determine the power flow calculation model

本发明建立各类能源有功及无功发电总费用最小为目标函数的最优潮流模型,尽可能调整发电机出力及无功源出力来满足负荷需要和系统运行约束,在确保当前负荷需要以及满足各节点电压上下限和传输线路的传输功率极限情况下,寻找可行且总发电费用最小的发电机出力安排和电网潮流分布状态;The present invention establishes the optimal power flow model with the minimum total cost of active power and reactive power generation of various energy sources as the objective function, and adjusts the output of generators and reactive power sources as much as possible to meet the load requirements and system operation constraints. Under the upper and lower limits of the voltage of each node and the transmission power limit of the transmission line, find the feasible arrangement of the generator output and the power flow distribution state of the power grid with the minimum total power generation cost;

S7-1:目标函数S7-1: Objective function

本发明构建的发电优化模型如下:The power generation optimization model constructed by the present invention is as follows:

式(9)中CGpi、CGqi为机组i的有功和无功发电费用函数,Cgqj、Cgqj为无功补偿装置j的无功发电费用函数,PGi(t)、QGi(t)为第i台发电机组在时段t的有功出力和无功出力,Qgj(t)为第j台无功补偿装置在时段t的无功出力;Ng、Nq为发电机节点个数与无功补偿设备个数;目标函数是各个时段系统的发电费用最小;In formula (9), C Gpi and C Gqi are the active and reactive power generation cost functions of unit i, C gqj and C gqj are the reactive power generation cost functions of reactive compensation device j, P Gi (t), Q Gi (t ) is the active output and reactive output of the i-th generator set in the period t, Q gj (t) is the reactive output of the j-th reactive compensation device in the period t; N g and N q are the number of generator nodes and the number of reactive power compensation equipment; the objective function is to minimize the power generation cost of the system in each period;

S7-2:等式约束S7-2: Equality constraints

等式约束为各个时段的节点潮流平衡约束:The equation constraint is the node power flow balance constraint in each time period:

式(10)、式(11)中:Vi、θi为节点电压与相角,θij=θij;PDi、QDi为有功负荷与无功负荷;Gij、Bij为节点导纳矩阵的电导和电纳;In formula (10) and formula (11): V i , θ i are node voltage and phase angle, θ ij = θ i - θ j ; P Di , Q Di are active load and reactive load; G ij , B ij is the conductance and susceptance of the nodal admittance matrix;

S7-3:不等式约束式(12)S7-3: Inequality constraints (12)

式中,为发电机i有功出力上下限;为发电机i无功出力上下限;Qgi为无功补偿设备i无功出力上下限;为节点电压幅值上下限;为线路ij持续输送容量极限(MVA);N、Nb为节点集、支路集合;In the formula, The upper and lower limits of the active output of generator i; The upper and lower limits of reactive power output of generator i; Q gi is the upper and lower limit of reactive power output of reactive power compensation equipment i; is the upper and lower limits of the node voltage amplitude; is the continuous transmission capacity limit (MVA) of the line ij; N, N b are node sets and branch sets;

PGT,i(t+1)-PGT,i≤Ri,up (13)P GT,i (t+1)-P GT,i ≤ R i,up (13)

PGT,i(t)-PGT,i(t+1)≤Ri,down (14)P GT,i (t)-P GT,i (t+1)≤R i,down (14)

式(13)中,Ri,up为第i台火电机组的向上爬坡速率;式(14)中,Ri,down为第i台火电机组的向下爬坡速率;In formula (13), R i,up is the upward climbing rate of the i-th thermal power unit; in formula (14), R i,down is the downward climbing rate of the i-th thermal power unit;

S8:确定最优经济模型S8: Determine the optimal economic model

S8-1:火电厂的发电费用S8-1: Power generation costs of thermal power plants

火电燃煤机组的有功出力是以煤耗量为标准进行计费的,机组i有功出力费用函数CGpi以式(15)进行计算。式中ai、bi、ci为第i台火电机组的煤耗费用系数;The active output of thermal power coal-fired units is billed based on coal consumption, and the active output cost function C Gpi of unit i is calculated according to formula (15). In the formula, a i , b i , and c i are the coal consumption coefficients of the i-th thermal power unit;

发电侧的无功电价分为两部分:无功容量电价和无功电量电价。无功电量电价主要涉及的是发电机的无功机会成本及有功损耗费用,本发明将无功机会成本作为发电机侧的总无功发电费用;The reactive power price on the power generation side is divided into two parts: reactive capacity power price and reactive power power price. The reactive electricity price mainly involves the reactive opportunity cost and active power loss expense of the generator, and the present invention uses the reactive opportunity cost as the total reactive power generation expense on the generator side;

无功机会成本是该发电机因输出无功功率而损失的有功功率发电容量所对应的利润;如果忽略原动机的出力极限,并假设该无功机会成本Cop(QGi)可表示如式(16);The reactive opportunity cost is the profit corresponding to the active power generation capacity lost by the generator due to the output of reactive power; if the output limit of the prime mover is ignored, and assuming The reactive opportunity cost C op (Q Gi ) can be expressed as formula (16);

将式(15)代入到式(16)中,并进行泰勒展开,保留到项,忽略高次项后并整理得到式(17);Substitute Equation (15) into Equation (16), and carry out Taylor expansion, retaining to , after ignoring the high-order terms and sorting out the formula (17);

CGqi(QGi)为发电机组i的无功出力费用函数,SGi,max为发电机组i的额定视在功率,QGi为发电机组i的无功出力值,k为发电厂生产有功功率的利润率,一般为5%-10%;C Gqi (Q Gi ) is the reactive output cost function of generator i, S Gi,max is the rated apparent power of generator i, Q Gi is the reactive output value of generator i, and k is the active power produced by the power plant The profit margin is generally 5%-10%;

S8-2:水电厂的发电费用S8-2: Electricity generation costs of hydropower plants

目前我国水电运行成本一般是4~9分/千瓦时,而我国火电运行成本约为0.09-0.19元/千瓦时,本发明采用水电有功发电成本式(15)的形式进行计费,而其具体参数的取值近似与火电中ai,bi,ci相差m倍,m为火电运行成本与水电运行成本电价的比值,ai,bi,ci取值有微调变化,以区分同类电站的发电费用;水电厂的无功发电费用也采用类似火电厂无功出力费用,并按照式(16)的计费方式,其中的CGpi取相应水电厂的有功发电费用函数;At present, the operating cost of hydropower in China is generally 4 to 9 cents/kWh, while the operating cost of thermal power in China is about 0.09-0.19 yuan/kWh. The values of the parameters are approximately m times different from a i , b i , and c i in thermal power . m is the ratio of the operating cost of thermal power to the electricity price of hydropower . The power generation cost of the power station; the reactive power generation cost of the hydropower plant also adopts the reactive power output cost similar to that of the thermal power plant, and according to the billing method of formula (16), wherein C Gpi takes the active power generation cost function of the corresponding hydropower plant;

S8-3:光伏电站及风电场发电费用S8-3: Power generation costs of photovoltaic power plants and wind farms

目前光伏电站及风电场的上网电价仍高于传统能源,但是随着光伏设备和风电设备成本的降低,及国家针对新能源发电补贴政策的加强,光伏发电及风能发电的上网电价的进一步降低是可以预期的。本发明中以最大限度优先调用新能源为准则,令补贴后光伏发电费用及风力发电费用低于火电及水电的上网发电价格,其有功费用函数的选取与水电的有功费用选取方式相同;At present, the on-grid electricity price of photovoltaic power plants and wind farms is still higher than that of traditional energy sources, but with the reduction of the cost of photovoltaic equipment and wind power equipment, and the strengthening of the national subsidy policy for new energy power generation, the further reduction of on-grid electricity prices for photovoltaic power generation and wind power generation is can be expected. In the present invention, the maximum priority is given to the use of new energy as a criterion, so that the subsidized photovoltaic power generation cost and wind power generation cost are lower than the grid-connected power generation prices of thermal power and hydropower, and the selection of the active cost function is the same as that of hydropower;

S8-4:无功补偿设备的发电费用S8-4: Power generation cost of reactive power compensation equipment

以电容器、电抗器、同步调相机、SVC无功费用为固定成本表达式(18):Taking capacitors, reactors, synchronous condensers, and SVC reactive costs as fixed cost expressions (18):

其中Y为并联电容器的使用寿命,通常取15年;p为平均使用率,近似取为2/3,Cf为电容器单位容量的固定成本,平均可取为62500元/MVar,以此数据计算得出fq=1.97;Among them, Y is the service life of parallel capacitors, which is usually 15 years; p is the average utilization rate, which is approximately 2/3; C f is the fixed cost of capacitor unit capacity, which can be 62500 yuan/MVar on average, and is calculated from this data out f q = 1.97;

S9:潮流计算S9: Power Flow Calculation

利用拉格朗日函数法来处理优化问题中的等式约束,从而将具有等式约束的优化问题转化为无约束的优化问题;利用对数障碍函数法的罚函数方法处理不等式约束,最后用牛顿法来求解无约束优化问题最优解;Use the Lagrange function method to deal with the equality constraints in the optimization problem, so as to transform the optimization problem with the equality constraint into an unconstrained optimization problem; use the penalty function method of the logarithmic barrier function method to deal with the inequality constraints, and finally use Newton's method to solve the optimal solution of unconstrained optimization problems;

将非线性问题用以下数学公式表示:Express the nonlinear problem with the following mathematical formula:

obj min.f(x)obj min.f(x)

s.t.h(x)=0 (19)s.t.h(x)=0 (19)

其中:min.f(x)为目标函数,是一个非线性函数;h(x)=[h1(x),...,hm(x)]T为非线性等式约束条件,g(x)=[g1(x),...,gr(x)]T为非线性不等式约束。假设在以上模型中共有k个变量,m个等式约束,r个不等式约束。用内点法求解问题(19)时,先将不等式约束转化为等式约束,同时构造障碍函数;为此先引入松弛变量l>0,u>0,l∈Rr,u∈Rr,将式(19)的不等式约束转化为等式约束,并把目标函数改造成障碍函数,可以得到以下优化问题A:Among them: min.f(x) is the objective function, which is a nonlinear function; h(x)=[h 1 (x),...,h m (x)] T is the nonlinear equality constraint, g (x)=[g 1 (x),...,g r (x)] T is a nonlinear inequality constraint. Assume that there are k variables in the above model, m equality constraints, and r inequality constraints. When using the interior point method to solve problem (19), the inequality constraints are converted into equality constraints first, and the barrier function is constructed at the same time; for this purpose, the slack variables l>0, u>0, l∈R r , u∈R r , Transforming the inequality constraints of formula (19) into equality constraints, and transforming the objective function into an obstacle function, the following optimization problem A can be obtained:

s.t.h(x)=0 (11)s.t.h(x)=0 (11)

其中扰动因子u>0;当li或ui靠近边界时,以上函数趋于无穷大,因此满足以上障碍目标函数的极小解不可能在边界上找到,只能在满足l>0,u>0时才可能得到最优解;这样,就通过目标函数的变换把含有不等式限制的优化问题变成了只含等式约束限制的优化问题A,因此可以直接用拉格朗日乘子法来求解。Among them, the disturbance factor u>0; when l i or u i is close to the boundary, the above function tends to infinity, so the minimal solution satisfying the above obstacle objective function cannot be found on the boundary, only when l>0, u> In this way, the optimization problem containing inequality constraints is transformed into an optimization problem A containing only equality constraints through the transformation of the objective function, so the Lagrange multiplier method can be used directly solve.

优化模型A的拉格朗日函数为:The Lagrangian function of optimizing model A is:

式中:y=[y1,...,ym]T,z=[z1,...,zr]T,w=[w1,...,wr]T均为拉格朗日乘子;该问题极小值存在的必要条件是拉格朗日函数对所有变量及乘子的偏导数为0,从而将有约束优化转化为无约束优化,接下来可以使用现有技术中的牛顿法求解;In the formula: y=[y 1 ,...,y m ] T , z=[z 1 ,...,z r ] T , w=[w 1 ,...,w r ] T are pull Grangian multipliers; the necessary condition for the existence of the minimum value of this problem is that the partial derivatives of the Lagrangian function to all variables and multipliers are 0, so that the constrained optimization can be transformed into unconstrained optimization, and then the existing Newton's method solution in technology;

S10:记录第n组节点电压、支路功率及发电成本等数据;S10: Record data such as node voltage, branch power and power generation cost of the nth group;

S11:进行下一轮潮流计算,t=t+1,转S5;S11: Carry out the next round of power flow calculation, t=t+1, go to S5;

本发明同现有技术相比,具有以下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

1.本发明计算速度快、准确性高,得到的概率统计信息能全面地反应电力市场的运行状况,能有效地处理电力市场中的不确定性问题,具有较好的工程实用价值;1. The present invention has fast calculation speed and high accuracy, and the obtained probability and statistical information can fully reflect the operation status of the electric power market, can effectively deal with uncertainties in the electric power market, and has good engineering practical value;

2.通过实施例仿真和验证,本发明可以提升分布式电源接入电网的安全经济运行,同时降低了网损,改善了节点电压水平,有效的提高了的经济性和实用性;2. Through the simulation and verification of the embodiment, the present invention can improve the safe and economical operation of the distributed power supply connected to the power grid, reduce the network loss, improve the node voltage level, and effectively improve the economy and practicability;

3.本发明采用的风电场和光伏电站混合系统的节点电价、网损及支路功率波动情况比单独风电场系统更小,接入系统的光伏容量越大,节点电价越低,能够更加全面、有效、快捷地充分发挥潮流计算和控制的作用,本发明节约了调试的人力和物力,降低了的生产成本,有一定经济效益。3. The node power price, network loss and branch power fluctuations of the wind farm and photovoltaic power plant hybrid system adopted in the present invention are smaller than those of the independent wind farm system. The greater the photovoltaic capacity connected to the system, the lower the node power price, which can be more comprehensive , Effectively and quickly give full play to the functions of power flow calculation and control, the present invention saves manpower and material resources for commissioning, reduces production costs, and has certain economic benefits.

附图说明Description of drawings

图1是本发明的步骤流程图;Fig. 1 is a flow chart of steps of the present invention;

图2是实施例光伏接入电网时,节点电价的期望值;Fig. 2 is the expected value of the node electricity price when the photovoltaic of the embodiment is connected to the grid;

图3是实施例光伏接入电网时,节点电价的标准差。Fig. 3 is the standard deviation of the node electricity price when the photovoltaic of the embodiment is connected to the grid.

具体实施方式detailed description

一种分布式电源接入电网的潮流计算方法,包括以下步骤:A power flow calculation method for connecting distributed power sources to a power grid, comprising the following steps:

S1:读取电力系统的初始数据;S1: read the initial data of the power system;

S2:确定采样次数N和输入随机变量的维数s;S2: Determine the number of sampling N and the dimension s of the input random variable;

S3:按照以下3步,生成s×N阶采样矩阵,形成点列中第个点(j=1,···,s;n=1,···)的步骤如下:S3: According to the following 3 steps, generate the s×N order sampling matrix to form the points (j=1,...,s; n=1,...) the steps are as follows:

S3-1:把第N-1个整数用2进制数表示,即式(1)S3-1: Express the N-1th integer in binary, that is, formula (1)

N-1=aR-1aR-2···a2a1 (1)N-1=a R-1 a R-2 ···a 2 a 1 (1)

其中an∈Zb,Zb={0,1,···,b-1},R为满足br≤N的r的最大值;Where a n ∈ Z b , Z b = {0,1,...,b-1}, R is the maximum value of r satisfying b r ≤ N;

S3-2:对N-1=aR-1aR-2···a2a1进行排序,得到排序后的序列[d1d2···dn···dR]T为式(2)S3-2: Sort N-1=a R-1 a R-2 ···a 2 a 1 , and obtain the sorted sequence [d 1 d 2 ···d n ···d R ] T as Formula (2)

其中,为生成矩阵,0≤dn≤b-1;引入生成矩阵是为了重置a1a2···an···aR-1中各个数字的位置;数字的位置经过重置后,每一维和其它维的数字大小相同,但排列顺序不同,从而保证了结果的均匀性;in, is the generator matrix, 0≤d n ≤b-1; introduce the generator matrix It is to reset the position of each number in a 1 a 2 ···a n ···a R-1 ; after the position of the number is reset, the size of each dimension is the same as that of other dimensions, but the arrangement order is different, so that The uniformity of results is guaranteed;

S3-3:经过第S3-2步的计算,可以表示为式(3)的2进制形式:S3-3: After the calculation of step S3-2, It can be expressed as the binary form of formula (3):

最后,将2进制表示的根据式(2)转化为10进制数即可;Finally, the binary representation According to the formula (2), it can be converted into a decimal number;

S4:将采样次数初始化:令n=1;S4: Initialize the sampling times: make n=1;

S5:判断n和采样次数N的大小,若n>N,直接输出变量的概率统计结果;若n≤N,转S6;S5: Determine the size of n and the number of samples N, if n>N, directly output the probability statistics of variables; if n≤N, go to S6;

S6:确定风电和光伏发电出力模型,确定负荷随机模型S6: Determine the output model of wind power and photovoltaic power generation, and determine the random load model

S6-1:风速服从韦布尔分布,风电场有功功率Pw的概率密度函数可表示为式(4):S6-1: The wind speed obeys the Weibull distribution, and the probability density function of the active power P w of the wind farm can be expressed as formula (4):

式中:k,c分别为韦布尔分布的形状参数和尺度参数,Pr为风机额定功率,vr,vci分别为额定风速和切入风速;In the formula: k and c are the shape parameter and scale parameter of the Weibull distribution respectively, P r is the rated power of the fan, v r and v ci are the rated wind speed and cut-in wind speed respectively;

风电处理为PQ节点,令潮流计算中风机功率因数恒定不变,则无功功率按下式(5)计算:The wind power processing is a PQ node, so that the power factor of the wind turbine in the power flow calculation is constant, and the reactive power is calculated according to formula (5):

式中:为功率因数角,对并网风机而言,一般位于第四象限,为负值;In the formula: is the power factor angle, for grid-connected wind turbines, Generally located in the fourth quadrant, is a negative value;

S6-2:光伏出力随机模型S6-2: Photovoltaic output stochastic model

一定时间段内,太阳光照强度可认为服从贝塔分布,则光伏电站输出功率Ppv的概率密度函数表示为式(6):In a certain period of time, the intensity of sunlight can be considered to obey the Beta distribution, then the probability density function of the output power Ppv of the photovoltaic power station is expressed as formula (6):

式中:Rpv=Aηγmax为仿真最大输出功率,A为太阳能电池仿真总面积,η为仿真总的光电转换效率,γmax为一段时间内的最大光照强度,Γ为Gamma函数,α,β均为贝塔分布的形状参数;In the formula: R pv = Aηγ max is the maximum output power of the simulation, A is the total area of solar cell simulation, η is the total photoelectric conversion efficiency of the simulation, γ max is the maximum light intensity in a period of time, Γ is the Gamma function, α, β Both are shape parameters of the Beta distribution;

与风电相同,潮流计算中将光伏电站也作为PQ节点;Like wind power, photovoltaic power plants are also used as PQ nodes in power flow calculations;

S6-3:负荷随机模型S6-3: Load Stochastic Model

负荷具有时变性,很多有关文献都提出了对区域负荷进行预测的方法得到其概率分布;而作为中长期的负荷预测结果,负荷的概率分布规律基本符合于正态分布。其均值和方差均可以由大量的历史统计数据得到;这样,负荷的有功和无功功率的概率密度函数分别为式(7)和(8):The load is time-varying, and many relevant literatures have proposed the method of forecasting the regional load to obtain its probability distribution; as the medium and long-term load forecast results, the probability distribution of the load basically conforms to the normal distribution. Both its mean and variance can be obtained from a large amount of historical statistical data; thus, the probability density functions of the active and reactive power of the load are formulas (7) and (8) respectively:

式中:μp为有功功率的均值,δp 2为有功功率的方差,μQ为无功功率的均值,δQ 2为无功功率的方差;In the formula: μ p is the mean value of active power, δ p 2 is the variance of active power, μ Q is the mean value of reactive power, and δ Q 2 is the variance of reactive power;

S7:确定潮流计算模型S7: Determine the power flow calculation model

本发明建立各类能源有功及无功发电总费用最小为目标函数的最优潮流模型,尽可能调整发电机出力及无功源出力来满足负荷需要和系统运行约束,在确保当前负荷需要以及满足各节点电压上下限和传输线路的传输功率极限情况下,寻找可行且总发电费用最小的发电机出力安排和电网潮流分布状态;The present invention establishes the optimal power flow model with the minimum total cost of active power and reactive power generation of various energy sources as the objective function, and adjusts the output of generators and reactive power sources as much as possible to meet the load requirements and system operation constraints. Under the upper and lower limits of the voltage of each node and the transmission power limit of the transmission line, find the feasible arrangement of the generator output and the power flow distribution state of the power grid with the minimum total power generation cost;

S7-1:目标函数S7-1: Objective function

本发明构建的发电优化模型如下:The power generation optimization model constructed by the present invention is as follows:

式(9)中CGpi、CGqi为机组i的有功和无功发电费用函数,Cgqj、Cgqj为无功补偿装置j的无功发电费用函数,PGi(t)、QGi(t)为第i台发电机组在时段t的有功出力和无功出力,Qgj(t)为第j台无功补偿装置在时段t的无功出力;Ng、Nq为发电机节点个数与无功补偿设备个数;目标函数是各个时段系统的发电费用最小;In formula (9), C Gpi and C Gqi are the active and reactive power generation cost functions of unit i, C gqj and C gqj are the reactive power generation cost functions of reactive compensation device j, P Gi (t), Q Gi (t ) is the active output and reactive output of the i-th generator set in the period t, Q gj (t) is the reactive output of the j-th reactive compensation device in the period t; N g and N q are the number of generator nodes and the number of reactive power compensation equipment; the objective function is to minimize the power generation cost of the system in each period;

S7-2:等式约束S7-2: Equality constraints

等式约束为各个时段的节点潮流平衡约束:The equation constraint is the node power flow balance constraint in each time period:

式(10)、式(11)中:Vi、θi为节点电压与相角,θij=θij;PDi、QDi为有功负荷与无功负荷;Gij、Bij为节点导纳矩阵的电导和电纳;In formula (10) and formula (11): V i , θ i are node voltage and phase angle, θ ij = θ i - θ j ; P Di , Q Di are active load and reactive load; G ij , B ij is the conductance and susceptance of the nodal admittance matrix;

S7-3:不等式约束式(12)S7-3: Inequality constraints (12)

式中,为发电机i有功出力上下限;为发电机i无功出力上下限;Qgi为无功补偿设备i无功出力上下限;为节点电压幅值上下限;为线路ij持续输送容量极限(MVA);N、Nb为节点集、支路集合;In the formula, The upper and lower limits of the active output of generator i; The upper and lower limits of reactive power output of generator i; Q gi is the upper and lower limit of reactive power output of reactive power compensation equipment i; is the upper and lower limits of the node voltage amplitude; is the continuous transmission capacity limit (MVA) of the line ij; N, N b are node sets and branch sets;

PGT,i(t+1)-PGT,i≤Ri,up (13)P GT,i (t+1)-P GT,i ≤ R i,up (13)

PGT,i(t)-PGT,i(t+1)≤Ri,down (14)P GT,i (t)-P GT,i (t+1)≤R i,down (14)

式(13)中,Ri,up为第i台火电机组的向上爬坡速率;式(14)中,Ri,down为第i台火电机组的向下爬坡速率;In formula (13), R i,up is the upward climbing rate of the i-th thermal power unit; in formula (14), R i,down is the downward climbing rate of the i-th thermal power unit;

S8:确定最优经济模型S8: Determine the optimal economic model

S8-1:火电厂的发电费用S8-1: Power generation costs of thermal power plants

火电燃煤机组的有功出力是以煤耗量为标准进行计费的,机组i有功出力费用函数CGpi以式(15)进行计算。式中ai、bi、ci为第i台火电机组的煤耗费用系数;The active output of thermal power coal-fired units is billed based on coal consumption, and the active output cost function C Gpi of unit i is calculated according to formula (15). In the formula, a i , b i , and c i are the coal consumption coefficients of the i-th thermal power unit;

发电侧的无功电价分为两部分:无功容量电价和无功电量电价。无功电量电价主要涉及的是发电机的无功机会成本及有功损耗费用,本发明将无功机会成本作为发电机侧的总无功发电费用;The reactive power price on the power generation side is divided into two parts: reactive capacity power price and reactive power power price. The reactive electricity price mainly involves the reactive opportunity cost and active power loss expense of the generator, and the present invention uses the reactive opportunity cost as the total reactive power generation expense on the generator side;

无功机会成本是该发电机因输出无功功率而损失的有功功率发电容量所对应的利润;如果忽略原动机的出力极限,并假设该无功机会成本Cop(QGi)可表示如式(16);The reactive opportunity cost is the profit corresponding to the active power generation capacity lost by the generator due to the output of reactive power; if the output limit of the prime mover is ignored, and assuming The reactive opportunity cost C op (Q Gi ) can be expressed as formula (16);

将式(15)代入到式(16)中,并进行泰勒展开,保留到项,忽略高次项后并整理得到式(17);Substitute Equation (15) into Equation (16), and carry out Taylor expansion, retaining to , after ignoring the high-order terms and sorting out the formula (17);

CGqi(QGi)为发电机组i的无功出力费用函数,SGi,max为发电机组i的额定视在功率,QGi为发电机组i的无功出力值,k为发电厂生产有功功率的利润率,一般为5%-10%;C Gqi (Q Gi ) is the reactive output cost function of generator i, S Gi,max is the rated apparent power of generator i, Q Gi is the reactive output value of generator i, and k is the active power produced by the power plant The profit margin is generally 5%-10%;

S8-2:水电厂的发电费用S8-2: Electricity generation costs of hydropower plants

目前我国水电运行成本一般是4~9分/千瓦时,而我国火电运行成本约为0.09-0.19元/千瓦时,本发明采用水电有功发电成本式(15)的形式进行计费,而其具体参数的取值近似与火电中ai,bi,ci相差m倍,m为火电运行成本与水电运行成本电价的比值,ai,bi,ci取值有微调变化,以区分同类电站的发电费用。水电厂的无功发电费用也采用类似火电厂无功出力费用,并按照式(16)的计费方式,其中的CGpi取相应水电厂的有功发电费用函数;At present, the operating cost of hydropower in China is generally 4 to 9 cents/kWh, while the operating cost of thermal power in China is about 0.09-0.19 yuan/kWh. The values of the parameters are approximately m times different from a i , b i , and c i in thermal power . m is the ratio of the operating cost of thermal power to the electricity price of hydropower . power generation costs of the power station. The reactive power generation cost of the hydropower plant is also similar to the reactive power output cost of the thermal power plant, and is billed according to the formula (16), where C Gpi takes the active power generation cost function of the corresponding hydropower plant;

S8-3:光伏电站及风电场发电费用S8-3: Power generation costs of photovoltaic power plants and wind farms

目前光伏电站及风电场的上网电价仍高于传统能源,但是随着光伏设备和风电设备成本的降低,及国家针对新能源发电补贴政策的加强,光伏发电及风能发电的上网电价的进一步降低是可以预期的。本发明中以最大限度优先调用新能源为准则,令补贴后光伏发电费用及风力发电费用低于火电及水电的上网发电价格,其有功费用函数的选取与水电的有功费用选取方式相同;At present, the on-grid electricity price of photovoltaic power plants and wind farms is still higher than that of traditional energy sources, but with the reduction of the cost of photovoltaic equipment and wind power equipment, and the strengthening of the national subsidy policy for new energy power generation, the further reduction of on-grid electricity prices for photovoltaic power generation and wind power generation is can be expected. In the present invention, the maximum priority is given to the use of new energy as a criterion, so that the subsidized photovoltaic power generation cost and wind power generation cost are lower than the grid-connected power generation prices of thermal power and hydropower, and the selection of the active cost function is the same as that of hydropower;

S8-4:无功补偿设备的发电费用S8-4: Power generation cost of reactive power compensation equipment

以电容器、电抗器、同步调相机、SVC无功费用为固定成本表达式(18):Taking capacitors, reactors, synchronous condensers, and SVC reactive costs as fixed cost expressions (18):

其中Y为并联电容器的使用寿命,通常取15年;p为平均使用率,近似取为2/3,Cf为电容器单位容量的固定成本,平均可取为62500元/MVar,以此数据计算得出fq=1.97;Among them, Y is the service life of parallel capacitors, which is usually 15 years; p is the average utilization rate, which is approximately 2/3; C f is the fixed cost of capacitor unit capacity, which can be 62500 yuan/MVar on average, and is calculated from this data out f q = 1.97;

S9:潮流计算S9: Power Flow Calculation

利用拉格朗日函数法来处理优化问题中的等式约束,从而将具有等式约束的优化问题转化为无约束的优化问题;利用对数障碍函数法的罚函数方法处理不等式约束,最后用牛顿法来求解无约束优化问题最优解;Use the Lagrange function method to deal with the equality constraints in the optimization problem, so as to transform the optimization problem with the equality constraint into an unconstrained optimization problem; use the penalty function method of the logarithmic barrier function method to deal with the inequality constraints, and finally use Newton's method to solve the optimal solution of unconstrained optimization problems;

将非线性问题用以下数学公式表示:Express the nonlinear problem with the following mathematical formula:

obj min.f(x)obj min.f(x)

s.t.h(x)=0 (19)s.t.h(x)=0 (19)

其中:min.f(x)为目标函数,是一个非线性函数;h(x)=[h1(x),...,hm(x)]T为非线性等式约束条件,g(x)=[g1(x),...,gr(x)]T为非线性不等式约束。假设在以上模型中共有k个变量,m个等式约束,r个不等式约束。用内点法求解问题(19)时,先将不等式约束转化为等式约束,同时构造障碍函数。为此先引入松弛变量l>0,u>0,l∈Rr,u∈Rr,将式(19)的不等式约束转化为等式约束,并把目标函数改造成障碍函数,可以得到以下优化问题A:Among them: min.f(x) is the objective function, which is a nonlinear function; h(x)=[h 1 (x),...,h m (x)] T is the nonlinear equality constraint, g (x)=[g 1 (x),...,g r (x)] T is a nonlinear inequality constraint. Assume that there are k variables in the above model, m equality constraints, and r inequality constraints. When using the interior point method to solve the problem (19), the inequality constraints are converted into equality constraints first, and the barrier function is constructed at the same time. To this end, first introduce the slack variables l>0, u>0, l∈R r , u∈R r , transform the inequality constraints in equation (19) into equality constraints, and transform the objective function into an obstacle function, the following can be obtained Optimization problem A:

s.t.h(x)=0 (11)s.t.h(x)=0 (11)

其中扰动因子u>0。当li或ui靠近边界时,以上函数趋于无穷大,因此满足以上障碍目标函数的极小解不可能在边界上找到,只能在满足l>0,u>0时才可能得到最优解;这样,就通过目标函数的变换把含有不等式限制的优化问题变成了只含等式约束限制的优化问题A,因此可以直接用拉格朗日乘子法来求解。Wherein the disturbance factor u>0. When l i or u i is close to the boundary, the above function tends to infinity, so the minimal solution satisfying the above obstacle objective function cannot be found on the boundary, and the optimal solution can only be obtained when l>0, u>0 In this way, through the transformation of the objective function, the optimization problem containing inequality constraints is transformed into an optimization problem A containing only equality constraints, so it can be solved directly by the Lagrange multiplier method.

优化模型A的拉格朗日函数为:The Lagrangian function of optimizing model A is:

式中:y=[y1,...,ym]T,z=[z1,...,zr]T,w=[w1,...,wr]T均为拉格朗日乘子;该问题极小值存在的必要条件是拉格朗日函数对所有变量及乘子的偏导数为0,从而将有约束优化转化为无约束优化,接下来可以使用现有技术中的牛顿法求解;In the formula: y=[y 1 ,...,y m ] T , z=[z 1 ,...,z r ] T , w=[w 1 ,...,w r ] T are pull Grangian multipliers; the necessary condition for the existence of the minimum value of this problem is that the partial derivatives of the Lagrangian function to all variables and multipliers are 0, so that the constrained optimization can be transformed into unconstrained optimization, and then the existing Newton's method solution in technology;

S10:记录第n组节点电压、支路功率及发电成本等数据;S10: Record data such as node voltage, branch power and power generation cost of the nth group;

S11:进行下一轮潮流计算,t=t+1,转S5。S11: Carry out the next round of power flow calculation, t=t+1, go to S5.

本发明可以采用IEEE30节点实例进行仿真和验证。下面将结合实施例附图,对本发明的技术方案进行清楚、完整地描述。The present invention can adopt the IEEE30 node instance for simulation and verification. The technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments.

本算例直接运用采样规模为512次的DN法分析系统接入风电场和光伏电站后的最优潮流概率统计特性。This calculation example directly uses the DN method with a sampling scale of 512 times to analyze the probability and statistical characteristics of the optimal power flow after the system is connected to the wind farm and photovoltaic power station.

表1 节点电价期望值比较Table 1 Comparison of node electricity price expectations

为了分布式能源出力的随机性对节电电价的影响,下面分为2种情况进行讨论:案例1,对于8个节点20、61、104、123、138、171、198和207,每个节点均接入一个装机容量为60MW的风电场;案例2,对于8个节点20、61、104、123、138、171、198和207,每个节点均接入一个装机容量为30MW的风电场和一个装机容量为30MW的光伏电站。In order to influence the randomness of distributed energy output on power-saving electricity price, the following is divided into two cases for discussion: Case 1, for 8 nodes 20, 61, 104, 123, 138, 171, 198 and 207, each node Both are connected to a wind farm with an installed capacity of 60MW; Case 2, for eight nodes 20, 61, 104, 123, 138, 171, 198 and 207, each node is connected to a wind farm with an installed capacity of 30MW and A photovoltaic power station with an installed capacity of 30MW.

运用本文介绍的算法进行概率最优潮流计算,得到分布式能源接入节点的节点电价,如表1所示。Using the algorithm introduced in this paper to calculate the probabilistic optimal power flow, the node electricity price of the distributed energy access node is obtained, as shown in Table 1.

通过比较两种情况下的计算结果可以看出,风电场和光伏混合系统的节点电价相对于仅有风电场系统要低。By comparing the calculation results in the two cases, it can be seen that the node electricity price of the wind farm and the photovoltaic hybrid system is lower than that of the wind farm system only.

表2为两种情况下系统的网损期望值,风电场和光伏混合系统的网损小于仅有风电场系统的网损,可见风电场和光伏混合系统更有利于系统经济运行。Table 2 shows the expected value of the grid loss of the system in the two cases. The grid loss of the wind farm and the photovoltaic hybrid system is smaller than that of the wind farm system alone. It can be seen that the wind farm and the photovoltaic hybrid system are more conducive to the economic operation of the system.

表2 网损期望值比较Table 2 Comparison of network loss expectation

分布式能源接入方式Distributed energy access method 网损/(MW)Network loss/(MW) 案例1Case 1 232.622232.622 案例2Case 2 230.495230.495

表3为两种情况下支路13~20和支路181~138的期望值和标准差。由表中结果可以看出,系统单独接入风电场时的支路功率均值和标准差比风电场和光伏混合系统要大,支路功率波动更大,出现重载和越限的概率也更大,不利于线路安全校核。Table 3 shows the expected value and standard deviation of branches 13-20 and branches 181-138 in two cases. It can be seen from the results in the table that the mean value and standard deviation of the branch power when the system is connected to the wind farm alone are larger than those of the wind farm and the photovoltaic hybrid system, the branch power fluctuates more, and the probability of overloading and exceeding the limit is also higher. Large, which is not conducive to line safety check.

表3 支路功率比较Table 3 Branch power comparison

为了衡量不同容量的光伏接入系统对概率最优潮流的影响,在节点20、61、104、123,138、171、198和207接入8个装机容量相等的光伏电站,8个光伏电站总装机从50MW依次增加到500MW(每次步进增加50MW),每种容量下分别进行概率最优潮流计算。In order to measure the impact of photovoltaic access systems with different capacities on the probabilistic optimal power flow, eight photovoltaic power stations with equal installed capacity are connected to nodes 20, 61, 104, 123, 138, 171, 198 and 207. The installed capacity increases sequentially from 50MW to 500MW (50MW per step), and the probabilistic optimal power flow calculation is performed for each capacity.

图2和图3所示为不同容量光伏电站接入系统时节点电价的期望值和标准差。图2结果表明,随着接入系统光伏容量的不断增加,光伏节点的节点电价呈现降低的趋势。这是因为光伏出力可以代替一部分传统火电机组出力,从而使节点电价降低。图3结果表明,光伏出力的随机性及不确定性会带来节点电价的波动。Figure 2 and Figure 3 show the expected value and standard deviation of node power prices when photovoltaic power plants with different capacities are connected to the system. The results in Figure 2 show that with the continuous increase of photovoltaic capacity of the access system, the node electricity price of photovoltaic nodes shows a downward trend. This is because photovoltaic output can replace part of the output of traditional thermal power units, thereby reducing the node electricity price. The results in Figure 3 show that the randomness and uncertainty of photovoltaic output will bring fluctuations in node electricity prices.

Claims (1)

1. A load flow calculation method for a distributed power supply to be connected into a power grid is characterized by comprising the following steps:
s1: reading initial data of the power system;
s2: determining the sampling times N and the dimension s of an input random variable;
s3, generating an S × N-order sampling matrix according to the following 3 steps to form the first order in the point rowAt a point (j-1, …, s; n-1, …)The method comprises the following steps:
s3-1: the N-1 integer is expressed by 2-system number, namely formula (1)
N-1=aR-1aR-2…a2a1(1)
Wherein a isn∈Zb,Zb(0, 1, …, b-1), and R is BrThe maximum value of r is less than or equal to N;
s3-2: for N-1 ═ aR-1aR-2…a2a1Sequencing to obtain a sequenced sequence [ d ]1d2…dn…dR]TIs (2)
[ d 1 d 2 ... d n ... d R ] T = C N × N i [ a 1 a 2 ... a n ... a R - 1 ] T - - - ( 2 )
Wherein,to generate a matrix, d is 0 ≦ dnB-1 is less than or equal to; introducing a generator matrixIs to reset a1a2…an…aR-1The position of each digit in; after the positions of the numbers are reset, the numbers of each dimension and other dimensions have the same size but different arrangement sequences, so that the uniformity of the result is ensured;
s3-3: through the calculation of step S3-2,can be expressed as a 2-ary form of equation (3):
x n j = 0. d 1 d 2 ... d R - - - ( 3 )
finally, 2 is expressedConverting into 10-system number according to formula (2);
s4: initializing the sampling times: let n equal to 1;
s5: judging the N and the sampling times N, and if N is larger than N, directly outputting the probability statistical result of the variable; if N is less than or equal to N, turning to S6;
s6: determining a wind power and photovoltaic power generation output model and determining a load random model;
s6-1: wind speed follows Weibull distribution, and active power P of wind power plantwCan be expressed as(4):
f ( P w ) = k k 1 c ( P w - k 2 k 1 c ) exp [ - ( P w - k 2 k 1 c ) k ] - - - ( 4 )
In the formula: k and c are respectively the shape parameter and the scale parameter of the Weibull distribution,k2=-k1vci,Prrated power of the fan, vr,vciRated wind speed and cut-in wind speed respectively;
wind power is processed into PQ nodes, the wind power factor in the load flow calculation is constant, and then reactive power is calculated according to the following formula (5):
in the formula:for power factor angle, for a grid-connected fan,is positioned in the fourth quadrant of the device,is a negative value;
s6-2: photovoltaic output stochastic model
Within a certain time period, the solar illumination intensity can be considered to obey the beta distribution, and then the output power P of the photovoltaic power stationpvIs expressed as formula (6):
f ( P p v ) = Γ ( α + β ) Γ ( α ) + Γ ( β ) ( P p v R p v ) α - 1 ( 1 - P p v R p v ) β - 1 - - - ( 6 )
in the formula: rpv=AηγmaxTo simulate maximum output power, A is the simulated total area of the solar cell, η is the simulated total photoelectric conversion efficiency, γmaxα are all shape parameters of beta distribution, which is the maximum illumination intensity in a period of time and is a Gamma function;
the method is the same as wind power, and a photovoltaic power station is also used as a PQ node in load flow calculation;
s6-3: load stochastic model
As the load forecasting result of medium and long periods, the probability distribution rule of the load basically conforms to normal distribution; the mean and variance can be obtained from a large amount of historical statistical data; thus, the probability density functions of the active and reactive power of the load are respectively equations (7) and (8):
f ( P ) = 1 2 π δ P exp ( - ( P - μ P ) 2 2 δ P 2 ) - - - ( 7 )
f ( P ) = 1 2 π δ Q exp ( - ( Q - μ Q ) 2 2 δ Q 2 ) - - - ( 8 )
in the formula: mu.spIs the average value of the active power,p 2is the variance of active power, muQIs the average value of the reactive power,Q 2is the variance of the reactive power;
s7: determining a load flow calculation model
S7-1: objective function
The power generation optimization model is constructed as follows:
min F = Σ i ∈ N g [ C G p i ( P G i ( t ) ) + C G q i ( Q i ( t ) ) ] + Σ j ∈ N q C g q j · ( Q g j ( t ) ) - - - ( 9 )
c in formula (9)Gpi、CGqiAs a function of the active and reactive power generation costs of the unit i, CgqjAs a function of the reactive power generation cost of the reactive power compensation device j, PGi(t)、QGi(t) is the active and reactive power of the ith generator set in time period t, Qgj(t) the reactive power output of the jth reactive power compensation device in the time period t; n is a radical ofg、NqThe number of the generator nodes and the number of the reactive compensation equipment are calculated; the objective function enables the power generation cost of the system in each time period to be minimum;
s7-2: constraint of equality
The equality constraint is a node power flow balance constraint of each time interval:
P G i - P D i - V i Σ j = 1 N V j ( G i j cosθ i j + B i j sinθ i j ) = 0 - - - ( 10 )
Q G i + Q g i - Q D i - V i Σ j = 1 N V j ( G i j sinθ i j + B i j cosθ i j ) = 0 - - - ( 11 )
in formulas (10) and (11): vi、θiIs the node voltage and phase angle, θij=θij;PDi、QDiActive load and reactive load; gij、BijConductance and susceptance of a node admittance matrix;
s7-3: inequality constraint type (12)
P G i ‾ ≤ P G i ≤ P G i ‾ Q G i ‾ ≤ Q G i ≤ Q G i ‾ Q g i ‾ ≤ Q g i ≤ Q g i ‾ V i ‾ ≤ V i ≤ V i ‾ S i ≤ S i ‾ , i ∈ N g i ∈ N g i ∈ N q i ∈ N i ∈ N b - - - ( 12 )
In the formula, P Gi the upper and lower active output limits of the generator i are set; Q Gi the upper and lower limit of reactive power output of the generator i;Qgiupper and lower reactive power output limits for the reactive power compensation equipment i; V i the node voltage amplitude upper and lower limits;continuously delivering a capacity limit (MVA) for line i; n, NbNode set and branch set;
PGT,i(t+1)-PGT,i≤Ri,up(13)
PGT,i(t)-PGT,i(t+1)≤Ri,down(14)
in the formula (13), Ri,upThe upward climbing speed of the ith thermal power generating unit is obtained; in the formula (14), Ri,downThe downward climbing speed of the ith thermal power generating unit is obtained;
s8: determining an optimal economic model
S8-1: electricity generation cost of thermal power plant
The active output of the thermal power coal-fired unit is charged by taking the coal consumption as a standard, and the unit i has an active output cost function CGpiCalculating by the formula (15); in the formula ai、bi、ciThe coal consumption cost coefficient of the ith thermal power generating unit is obtained;
C G p i = a i P G i 2 + b i P G i + c i - - - ( 15 )
the reactive opportunity cost is the profit corresponding to the active power generating capacity lost by the generator due to the output of reactive power; if the output limit of the prime mover is ignored, and assumeThe cost of the reactive opportunity Cop(QGi) Can be represented as formula (16);
C G q i ( Q G i ) = C o p ( Q G i ) = k [ C G p i ( S G i , max ) - C G p i ( S G i , max 2 - Q G i 2 ) ] - - - ( 16 )
substituting the formula (15) into the formula (16), performing Taylor expansion, and retainingNeglecting higher order terms and then arranging to obtain formula (17)
C G q i ( Q G i ) = dQ G i 2 + e - - - ( 17 )
CGqi(QGi) As a function of the reactive power contribution cost of the generator set i, SGi,maxRated apparent power, Q, of the generator set iGiThe value k is the reactive output value of the generator set i, and the profit margin of the active power produced by the power plant is generally 5% -10%;
s8-2: electricity generation cost of hydraulic power plant
The method adopts a hydropower active power generation cost formula (15) for charging, and the value of the specific parameter is similar to that of a in thermal poweri,bi,ciThe difference is m times, m is the ratio of the thermal power running cost to the hydroelectric power running cost, ai,bi,ciThe value is changed in a fine adjustment way so as to distinguish the power generation cost of the same power station; the reactive power generation cost of the hydraulic power plant is similar to the reactive power output cost of the thermal power plant, and the charging mode of the formula (16) is adopted, wherein CGpiTaking an active power generation cost function of a corresponding hydraulic power plant;
s8-3: generating cost of photovoltaic power station and wind power plant
Taking priority to calling new energy to the maximum extent as a criterion, ensuring that the subsidized photovoltaic power generation cost and wind power generation cost are lower than the online power generation price of thermal power and hydropower, and selecting an active cost function in the same way as the active cost of the hydropower;
s8-4: cost of power generation of reactive power compensation equipment
The reactive cost of a capacitor, a reactor, a synchronous phase modulator and SVC is taken as a fixed cost expression (18):
C g q j ( Q g j ) = C f Y × 365 × 24 × p Q g j = f q Q g j - - - ( 18 )
wherein Y is the service life of the parallel capacitor, and is 15 years; p is the average usage, taken approximately as 2/3, CfFor a fixed cost per unit capacity of capacitor, it is preferably 62500 yuan/MVar on average, from which f is calculatedq=1.97;
S9: load flow calculation
Processing equality constraint in the optimization problem by using a Lagrange function method, thereby converting the optimization problem with equality constraint into an unconstrained optimization problem; processing inequality constraints by using a penalty function method of a logarithmic barrier function method, and finally solving an optimal solution of an unconstrained optimization problem by using a Newton method;
the non-linear problem is expressed by the following mathematical formula:
obj min.f(x)
s.t. h(x)=0 (19)
g ‾ ≤ g ( x ) ≤ g ‾
wherein: f (x) is an objective function, which is a nonlinear function; h (x) ═ h1(x),...,hm(x)]TFor non-linear equation constraints, g (x) ═ g1(x),...,gr(x)]TFor nonlinear inequality constraint, assuming that the above model has k variables, m equality constraints and R inequality constraints, when solving problem (19) by interior point method, firstly converting inequality constraints into equality constraints and simultaneously constructing barrier function, firstly introducing relaxed variables l > 0, u > 0 and l ∈ Rr,u∈RrConverting the inequality constraint of equation (19) into an equality constraint, and transforming the objective function into a barrier function, the following optimization problem a can be obtained:
o b j m i n . f ( x ) - μ ( Σ j = 1 r ln l j + Σ j = 1 r ln u j )
s.t. h(x)=0 (20)
g ( x ) + u - g ‾ = 0
g(x)-l-g=0
wherein the perturbation factor u is greater than 0; when l isiOr uiWhen the boundary is approached, the function tends to be infinite, so that a minimal solution satisfying the barrier objective function cannot be found on the boundary, and only the condition that l is greater than 0 and u is satisfied>An optimal solution is possible to obtain when the value is 0; therefore, the optimization problem with inequality limitation is changed into the optimization problem A with equality constraint limitation only through the transformation of the objective function, and therefore the Lagrange multiplier method can be directly used for solving;
the lagrangian function of the optimization model a is:
L = f ( x ) - y T h ( x ) - z T [ g ( x ) - l - g ‾ ] - w T [ g ( x ) + u - g ‾ ] - μ ( Σ j = 1 r ln l j + Σ j = 1 r ln u j ) - - - ( 21 )
in the formula: y ═ y1,...,ym]T,z=[z1,...,zr]T,w=[w1,...,wr]TAre all lagrange multipliers; the minimum value of the problem has the necessary condition that the partial derivatives of the Lagrangian function to all variables and multipliers are 0, so that the constrained optimization is converted into the non-constrained optimizationConstraint optimization, which can then be solved using the newton method in the prior art;
s10: recording data such as nth group node voltage, branch power, power generation cost and the like;
s11: and (5) performing next round of load flow calculation, wherein t is t +1, and turning to S5.
CN201510001581.5A 2015-01-04 2015-01-04 Load flow calculation method of distributed power supply connection power grid Active CN104578157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510001581.5A CN104578157B (en) 2015-01-04 2015-01-04 Load flow calculation method of distributed power supply connection power grid

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510001581.5A CN104578157B (en) 2015-01-04 2015-01-04 Load flow calculation method of distributed power supply connection power grid

Publications (2)

Publication Number Publication Date
CN104578157A CN104578157A (en) 2015-04-29
CN104578157B true CN104578157B (en) 2017-05-10

Family

ID=53093624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510001581.5A Active CN104578157B (en) 2015-01-04 2015-01-04 Load flow calculation method of distributed power supply connection power grid

Country Status (1)

Country Link
CN (1) CN104578157B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162112A (en) * 2015-08-25 2015-12-16 许继集团有限公司 Faure sequence based photovoltaic system power flow calculation and probabilistic power flow statistical method
CN105140918B (en) * 2015-09-17 2018-03-27 国家电网公司 A kind of random optimum tidal current computing method comprising THE UPFC
CN105633946B (en) * 2015-10-21 2018-10-26 长沙理工大学 A kind of high wind-powered electricity generation of extraction penetrates the modeling method of busbar day net active power Random-fuzzy feature
CN107067090B (en) * 2016-08-29 2022-01-28 刘宏伟 Power grid operation remote scheduling method
CN106340901B (en) * 2016-09-27 2018-09-14 四川大学 A kind of optimal quantile power distribution network controllable resources configuration method based on the moment of inertia
CN108695853B (en) * 2017-04-07 2021-08-24 山东大学 Active distribution network optimization scheduling model and method considering information system uncertainty
US11307229B2 (en) * 2017-11-27 2022-04-19 Ramot At Tel-Aviv University Ltd. Power daemon
CN108320062A (en) * 2018-03-21 2018-07-24 广东电网有限责任公司电力科学研究院 A kind of combined scheduling method and system based on multiple target population group hunting algorithm
CN109245154A (en) * 2018-09-26 2019-01-18 云南电网有限责任公司电力科学研究院 A kind of more distributed generation resource decreasing loss configuration methods of distribution based on improvement analytic approach
CN109492809B (en) * 2018-11-09 2021-08-31 福州大学 A wind farm value assessment method based on node electricity price
CN110148946B (en) * 2019-05-24 2022-03-25 浙江大学 Island microgrid load flow calculation method based on two-step solution of auxiliary factors
CN111047346A (en) * 2019-10-29 2020-04-21 国网浙江省电力有限公司舟山供电公司 A method for formulating reactive power compensation service value based on local area coordination
CN112365134B (en) * 2020-10-27 2023-08-29 上海交通大学 A stochastic programming method for energy network based on probabilistic multi-energy flow of point estimation method
CN112531707B (en) * 2020-12-18 2023-02-21 广东电网有限责任公司东莞供电局 Dynamic evaluation method for operation risk of power distribution network comprising wind storage combined system
CN113224757A (en) * 2021-05-17 2021-08-06 广东电网有限责任公司 Power grid operation evaluation method, system and medium based on new energy consumption
CN114004646B (en) * 2021-10-28 2024-06-14 国网天津市电力公司 End-to-end electric energy trading method and device for flexible distribution network based on non-cooperative game
CN114819281B (en) * 2022-03-29 2023-02-17 四川大学 Method for optimizing inter-station cooperative power flow of flexible direct-current power grid
CN114707121A (en) * 2022-04-29 2022-07-05 深圳供电局有限公司 Carbon emission calculation method for distributed power supply random output power distribution network
CN115377985B (en) * 2022-08-31 2025-05-30 哈尔滨理工大学 A method for optimizing dispatching of power grid generator sets

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003339118A (en) * 2002-05-22 2003-11-28 My Way Giken Kk Distributed power supply system
CN102684183B (en) * 2012-05-08 2014-08-20 吕遥 DC LAN (Direct Current Local Area Network)-based distributed power generation system and control method
DE102012213907A1 (en) * 2012-08-06 2014-02-06 Robert Bosch Gmbh Photovoltaic storage system
JP6101539B2 (en) * 2013-03-29 2017-03-22 株式会社Nttファシリティーズ Power feeding system and power feeding method
JP6076198B2 (en) * 2013-05-30 2017-02-08 京セラ株式会社 Output control method and output control apparatus
CN103986158A (en) * 2014-05-26 2014-08-13 国家电网公司 A Power Flow Calculation Method for Distributed Power Distribution Network

Also Published As

Publication number Publication date
CN104578157A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104578157B (en) Load flow calculation method of distributed power supply connection power grid
CN110119886B (en) A Dynamic Planning Method for Active Distribution Network
CN108898287A (en) The grid-connected power distribution network operation risk assessment method of large-scale photovoltaic
CN107910863A (en) Consider the power distribution network dispatching method that photovoltaic is contributed with workload demand forecast interval
CN106532778A (en) Method for calculating distributed photovoltaic grid connected maximum penetration level
CN108233430B (en) An AC-DC Hybrid Microgrid Optimization Method Considering System Energy Volatility
CN105005872A (en) Capacity configuration method for peak-load-shifting energy storage system
CN103593711B (en) A kind of distributed power source Optimal Configuration Method
CN103678889A (en) Photovoltaic power generation accommodating capacity calculation method taking static voltage stability into consideration
CN105305488B (en) A kind of evaluation method for considering new-energy grid-connected and power transmission network utilization rate being influenced
Liu et al. Research on short-term optimization for integrated hydro-PV power system based on genetic algorithm
CN112821463B (en) Active power distribution network multi-target day-ahead optimization scheduling method based on wind and light randomness
CN107404118A (en) Electrical interconnection system probability optimal load flow computational methods based on stochastic response surface
CN114493143A (en) Virtual power plant multi-objective optimization scheduling system and method for grid-connected micro-grid
CN115099590B (en) Active power distribution network economic optimization scheduling method and system considering light load uncertainty
CN109546647B (en) A safety and stability assessment method for power systems with wind-solar water storage
CN115344995A (en) Energy carrying capacity evaluation method, device, computer equipment and storage medium
Wang et al. Optimal capacity allocation of wind-light-water multi-energy complementary capacity based on improved multi-objective optimization algorithm
Luo et al. Load management for multiple datacenters towards demand response in the smart grid integrating renewable energy
CN113536581A (en) Energy storage system multi-state reliability modeling method considering operation strategy
CN116683461A (en) A Stochastic Robust Scheduling Control Method for Virtual Power Plant Considering Uncertainty
Jinglin et al. Multi-objective collaborative planning method for micro-energy systems considering thermoelectric coupling clusters
CN115360714A (en) Non-radial alternating current and direct current hybrid power grid new energy prediction and optimal power flow realization method
Hu et al. Research on complementarity of multi-energy power systems: a review
Guo et al. Review and Prospect of Clean Energy Reliability Research

Legal Events

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