CN105391090B - A kind of intelligent grid multiple agent multiple target uniformity optimization method - Google Patents
A kind of intelligent grid multiple agent multiple target uniformity optimization method Download PDFInfo
- Publication number
- CN105391090B CN105391090B CN201510759625.0A CN201510759625A CN105391090B CN 105391090 B CN105391090 B CN 105391090B CN 201510759625 A CN201510759625 A CN 201510759625A CN 105391090 B CN105391090 B CN 105391090B
- Authority
- CN
- China
- Prior art keywords
- mrow
- msub
- load
- netlogo
- power
- 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.)
- Expired - Fee Related
Links
- 238000005457 optimization Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 25
- 238000004088 simulation Methods 0.000 claims abstract description 24
- 238000013486 operation strategy Methods 0.000 claims abstract description 8
- 230000005611 electricity Effects 0.000 claims description 85
- 230000008901 benefit Effects 0.000 claims description 29
- 230000008569 process Effects 0.000 claims description 11
- 230000002452 interceptive effect Effects 0.000 claims description 8
- 230000008859 change Effects 0.000 claims description 6
- 230000000694 effects Effects 0.000 claims description 4
- 238000004146 energy storage Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 claims description 3
- 238000012887 quadratic function Methods 0.000 claims description 3
- 240000002853 Nelumbo nucifera Species 0.000 claims 3
- 235000006508 Nelumbo nucifera Nutrition 0.000 claims 3
- 235000006510 Nelumbo pentapetala Nutrition 0.000 claims 3
- 230000002123 temporal effect Effects 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 abstract description 7
- 238000004458 analytical method Methods 0.000 abstract description 2
- 230000003993 interaction Effects 0.000 description 13
- 230000004044 response Effects 0.000 description 11
- 238000004364 calculation method Methods 0.000 description 10
- 238000010248 power generation Methods 0.000 description 8
- 238000013473 artificial intelligence Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 238000009826 distribution Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000011273 social behavior Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000003542 behavioural effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000035515 penetration Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J3/00—Circuit arrangements for AC mains or AC distribution networks
- H02J3/38—Arrangements for parallely feeding a single network by two or more generators, converters or transformers
- H02J3/46—Controlling of the sharing of output between the generators, converters, or transformers
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2203/00—Indexing scheme relating to details of circuit arrangements for AC mains or AC distribution networks
- H02J2203/20—Simulating, 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)
- Pharmaceuticals Containing Other Organic And Inorganic Compounds (AREA)
Abstract
本发明公开了一种智能电网多智能体多目标一致性优化方法,其特征是:根据智能电网多智能体协同控制因素的系统的特点,分析不同电力元件的不同典型特征,以及各自所提出的目标要求,当目标多样时选取恰当的目标函数获取优化运行控制方式与参数,确保系统运行时的可靠性和经济性,并验证优化运行策略的有效性。本发明不仅能根据电力网和负荷特性,建立多智能体的优化模型,利用多智能体理论研究考虑部分信息共享的分布式出力优化算法,还能根据不同的通信拓扑分析算法的收敛性,对算例进行仿真分析并研究提高分布式算法收敛性的相关技术。
The invention discloses a smart grid multi-agent multi-objective consistency optimization method, which is characterized in that: according to the characteristics of the system of smart grid multi-agent cooperative control factors, the different typical characteristics of different power components are analyzed, and the respective proposed The objective requires that when the objectives are diverse, select the appropriate objective function to obtain the optimal operation control mode and parameters, ensure the reliability and economy of the system during operation, and verify the effectiveness of the optimal operation strategy. The present invention can not only establish a multi-agent optimization model according to the power network and load characteristics, use the multi-agent theory to study the distributed output optimization algorithm considering partial information sharing, but also analyze the convergence of the algorithm according to different communication topologies, and analyze the algorithm Carry out the simulation analysis of the example and study the relevant technologies to improve the convergence of the distributed algorithm.
Description
技术领域technical field
本发明属于智能电网优化协调调度技术领域,涉及一种多智能体多目标协调控制的智能电网优化运行策略,具体涉及一种智能电网多智能体多目标一致性优化方法。The invention belongs to the technical field of smart grid optimization and coordination dispatching, and relates to a smart grid optimization operation strategy for multi-agent multi-objective coordinated control, in particular to a smart grid multi-agent multi-objective consistency optimization method.
背景技术Background technique
智能电网是人工智能的一个重要分支,是20世纪末至21世纪初国际上人工智能的前沿学科。随着计算机技术、人工智能理论、控制理论的快速发展以及对现代科学的不断探索,智能电网已成为不同学科领域研究的热点问题之一。智能电网的分布式协同控制对提高配电网可靠性、改善电能质量、提高配电网运行经济性、优化配电网运行安排等都具有十分重要的意义。Smart grid is an important branch of artificial intelligence, and it is the frontier subject of artificial intelligence in the world from the end of the 20th century to the beginning of the 21st century. With the rapid development of computer technology, artificial intelligence theory, control theory and the continuous exploration of modern science, smart grid has become one of the hot issues in different disciplines. The distributed collaborative control of the smart grid is of great significance to improve the reliability of the distribution network, improve the power quality, improve the operation economy of the distribution network, and optimize the operation arrangement of the distribution network.
功率平衡控制,即实时经济调度,是电力系统运行中的一个基本问题,它是指发电机和柔性负荷在满足一系列运行约束的条件下,使整个电力系统运行的经济效益最大化的优化问题。传统上采用集中优化技术来解决经济调度问题,其中包括经典优化方法和现代人工智能方法。Power balance control, that is, real-time economic dispatch, is a basic problem in the operation of power systems. It refers to the optimization problem of maximizing the economic benefits of the entire power system operation under the condition that generators and flexible loads meet a series of operating constraints. . Centralized optimization techniques have traditionally been used to solve economic dispatch problems, including classical optimization methods and modern artificial intelligence methods.
然而,当采用集中优化方法时,系统需要调度中心发布指令调度整个系统中所有的发电机和柔性负荷,调度中心需要与每一个调度对象进行信息交互。并且,柔性负荷的广泛渗透以及电力元件需要的“即插即用”技术将会使电力网和通信网拓扑结构多变,导致集中优化方法需要较高的通信拓扑建设成本。因此,需要适应性更强的优化算法,在通信受限和不可靠甚至调度中心失效的情况下仍能有效地运行。However, when the centralized optimization method is adopted, the system needs the dispatch center to issue instructions to dispatch all generators and flexible loads in the entire system, and the dispatch center needs to exchange information with each dispatch object. Moreover, the widespread penetration of flexible loads and the "plug and play" technology required by power components will make the topology of the power grid and communication network changeable, resulting in a high cost of communication topology construction for centralized optimization methods. Therefore, there is a need for more adaptable optimization algorithms that can operate efficiently under conditions of limited and unreliable communications or even failure of dispatch centers.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足之处,提供一种智能电网多智能体多目标一致性优化方法,根据网荷互动要求,结合不同类型智能电网多智能体特性,从智能电网多智能体多目标系统一致性的角度建立协调控制模型。本发明不仅能根据电力网和负荷特性,建立多智能体的优化模型,利用多智能体理论研究考虑部分信息共享的分布式出力优化算法,还能根据不同的通信拓扑分析算法的收敛性,对算例进行仿真分析并研究提高分布式算法收敛性的相关技术。The purpose of the present invention is to overcome the deficiencies of the prior art, and provide a multi-objective consistency optimization method for smart grid multi-agents. According to the interaction requirements of the grid and loads, combined with the characteristics of different types of smart grid multi-agents, the smart grid multi-intelligence The coordination control model is established from the perspective of body multi-objective system consistency. The present invention can not only establish a multi-agent optimization model according to the power network and load characteristics, use the multi-agent theory to study the distributed output optimization algorithm considering partial information sharing, but also analyze the convergence of the algorithm according to different communication topologies, and analyze the algorithm Carry out the simulation analysis of the example and study the relevant technologies to improve the convergence of the distributed algorithm.
为解决上述技术问题,本发明采用以下技术方案:In order to solve the problems of the technologies described above, the present invention adopts the following technical solutions:
一种智能电网多智能体多目标一致性优化方法,其特征在于,根据智能电网多智能体协同控制因素的系统的特点,分析不同电力元件的不同典型特征,以及各自所提出的目标要求,当目标多样时选取恰当的目标函数获取优化运行控制方式与参数,确保系统运行时的可靠性和经济性,并验证优化运行策略的有效性;其实施步骤包括:A smart grid multi-agent multi-objective consistency optimization method, characterized in that, according to the characteristics of the smart grid multi-agent collaborative control factor system, analyze the different typical characteristics of different power components, and their respective target requirements, when When the objectives are diverse, select the appropriate objective function to obtain the optimal operation control mode and parameters, ensure the reliability and economy of the system during operation, and verify the effectiveness of the optimal operation strategy; the implementation steps include:
步骤1,根据电力系统网络结构,建立基于MATLAB与NETLOGO的联合仿真平台,其中,在MATLAB中建立电力系统元件模型,在NETLOGO中定义代表电力系统元件的智能体通用模块,同时,搭建MATLAB和NETLOGO之间的数据交换接口模块实现信息交互;Step 1. According to the network structure of the power system, establish a joint simulation platform based on MATLAB and NETLOGO, in which, the model of the power system components is established in MATLAB, and the general intelligent module representing the power system components is defined in NETLOGO. At the same time, MATLAB and NETLOGO are built The data exchange interface modules among them realize information interaction;
步骤2,针对各种负荷类型,分别根据负荷基准量、电价,以及对应负荷的各目标的目标倾向度,建立分别对应于各种负荷和电源类型的负荷-电价响应特性模型;所述的负荷包括刚性负荷和柔性负荷,所述的电源包括分布式电源和储能元件;其中,刚性负荷是指不参与电网互动的负荷,柔性负荷是指参与电网互动的负荷;Step 2, for each load type, according to the load reference amount, electricity price, and the target tendency of each target corresponding to the load, respectively, establish a load-electricity price response characteristic model corresponding to each load and power source type; the load Including rigid loads and flexible loads, the power supply includes distributed power sources and energy storage elements; wherein, rigid loads refer to loads that do not participate in grid interaction, and flexible loads refer to loads that participate in grid interaction;
步骤3,根据所述步骤2中建立的分别对应各种负荷类型的负荷-电价响应特性模型,分别获得各个负荷的各个目标的目标函数;并且分别针对各个负荷,将负荷的各个目标的目标函数进行加权处理,分别获得对应各个负荷的总目标函数;Step 3, according to the load-electricity price response characteristic models respectively corresponding to various load types established in the step 2, obtain the objective functions of each target of each load respectively; Perform weighting processing to obtain the total objective function corresponding to each load;
步骤4,将所述的各个负荷随机分布在NETLOGO三维层面上,获得各个负荷的初始策略;针对NETLOGO三维层面中的网络节点,随机设定电价,并且建立负荷代理;Step 4, randomly distribute the various loads on the NETLOGO three-dimensional layer to obtain the initial strategy of each load; for the network nodes in the NETLOGO three-dimensional layer, randomly set the electricity price, and establish a load agent;
步骤5,以所述各个负荷的初始策略作为负荷基准量,分别针对各个负荷的各个目标的目标倾向度,采用+i或-i的方式分别获得各个负荷对应的策略,并结合各个负荷的初始策略构成各个负荷的策略集;所述的i为每一步迭代步长,所述的步是指电价每变动一次,负荷的策略相应变化一次;Step 5, using the initial strategy of each load as the load reference amount, and respectively obtaining the strategy corresponding to each load in the way of +i or -i for the target tendency of each target of each load, and combining the initial strategy of each load The strategy constitutes the strategy set of each load; the i is the iterative step size of each step, and the step means that the strategy of the load changes once every time the electricity price changes;
步骤6,采用多智能体多目标协调控制的智能电网一致性优化算法,分别对各个负荷的总目标函数进行优化协调运算,并分别选择获得各个负荷对应其最大总目标函数值的策略,作为各个负荷的优选策略;Step 6, using the smart grid consistency optimization algorithm of multi-agent multi-objective coordinated control, respectively optimize and coordinate the total objective function of each load, and select the strategy to obtain the maximum total objective function value corresponding to each load, as each load load optimization strategy;
令xi表示电力元件的状态,根据一致性协议,当且仅当网络拓补中所有的结点的状态值都相等时,该网络的结点都达到了一致,即:Let xi represent the state of the power element. According to the consensus protocol, if and only if the state values of all nodes in the network topology are equal, the nodes of the network have reached the consensus, that is:
x1=x2=…=xn x 1 =x 2 =...=x n
所述的多智能体多目标协调控制的智能电网一致性优化算法,包括以下过程:The smart grid consistency optimization algorithm of the multi-agent multi-objective coordinated control includes the following processes:
假设发电机组的发电成本函数和柔性负荷的用电效益函数均为二次函数,发电机组的发电成本函数如下:Assuming that the power generation cost function of the generator set and the power consumption benefit function of the flexible load are both quadratic functions, the power generation cost function of the generator set is as follows:
Ci(PGi)=αi+βiPGi+γiP2 Gi,i∈SG C i (P Gi )=α i +β i P Gi +γ i P 2 Gi , i∈S G
柔性负荷的用电效益函数如下:The power consumption benefit function of the flexible load is as follows:
Bi(PDi)=ai+biPDi+ciP2 Di,i∈SD B i (P Di )=a i +b i P Di +c i P 2 Di ,i∈S D
经济调度问题是指发电机和柔性负荷在满足一系列运行约束的条件下,使整个电力系统运行的经济效益最大化的优化问题,即:The economic dispatch problem refers to the optimization problem of maximizing the economic benefits of the entire power system operation under the conditions of generators and flexible loads satisfying a series of operating constraints, namely:
PGi,min≤PGi≤PGi,max,i∈SG P Gi,min ≤P Gi ≤P Gi,max , i∈S G
PDj,min≤PDj≤PDj,max,j∈SD P Dj,min ≤P Dj ≤P Dj,max ,j∈S D
其中,PDj表示柔性负荷j的需求功率,PGi表示发电机组i的输出功率;SG表示发电机集合,SD表示柔性负载集合;利用经典的拉格朗日乘子法求解,令λ代表与等式约束对应的拉格朗日乘子,不考虑约束,上述等式约束优化问题可以转化为:Among them, P Dj represents the demand power of flexible load j, P Gi represents the output power of generator set i; S G represents the set of generators, and S D represents the set of flexible loads; using the classic Lagrangian multiplier method to solve, let λ Represents the Lagrangian multipliers corresponding to the equality constraints, regardless of the constraints, the above equality constraint optimization problem can be transformed into:
对变量PGi,PDj和λ求偏导得到最优性条件,即:The optimality condition is obtained by taking partial derivatives of the variables P Gi , P Dj and λ, namely:
上式即协调方程,根据协调方程可得:The above formula is the coordination equation, according to the coordination equation:
即经济调度的最优解是使发电机的增量成本与柔性负荷的增量效益相等,其中m表示发电机数目,k表示柔性负荷的数目;That is, the optimal solution of economic dispatch is to make the incremental cost of the generator equal to the incremental benefit of the flexible load, where m represents the number of generators, and k represents the number of flexible loads;
假设所有的柔性负荷与发电机组均在其功率约束范围内运行;在该一致性算法中,发电机组的IC与柔性负荷的IB的定义如下:Assume that all flexible loads and generators operate within their power constraints; in this consensus algorithm, the IC of generators and the IB of flexible loads are defined as follows:
选择IC与IB作为一致性变量,应用一致性算法,从发电机组(FollowerGenerator)的IC的更新公式为:Select IC and IB as the consistency variables, apply the consistency algorithm, and update the IC of the follower generator set (FollowerGenerator) formula as follows:
从负荷(Follower Load)的IB的更新公式为:The update formula of the IB of the follower load is:
为了满足电力系统中的功率平衡约束,用ΔP表示柔性负荷实际需求功率与发电机组实际输出功率之间的差值:In order to meet the power balance constraints in the power system, ΔP is used to represent the difference between the actual demand power of the flexible load and the actual output power of the generator set:
主发电机组(Leader Generator)的IC的更新公式为:The update formula of the IC of the leader generator set (Leader Generator) is:
主负荷(Leader Load)的IB的更新公式为:The update formula of the IB of the leader load is:
其中ε为收敛系数,是一个正的标量,它与主发电机组和主负荷的分布式优化收敛速度有关;Where ε is the convergence coefficient, which is a positive scalar, which is related to the convergence speed of the distributed optimization of the main generator set and main load;
步骤7,分别根据所述的各个负荷的优选策略中的各个目标的目标倾向度,将各个负荷分别运动到NETLOGO三维层面中相应的位置上,并更新各个负荷的各个目标的目标倾向度;然后根据对应的负荷-电价响应特性模型,获得此时各个负荷的功率,并且结合负荷代理针对对应负荷的管辖,分别获得各个负荷代理的总功率;Step 7, move each load to the corresponding position in the NETLOGO three-dimensional layer respectively according to the target inclination degree of each target in the optimal strategy of each load, and update the target inclination degree of each target of each load; then According to the corresponding load-electricity price response characteristic model, the power of each load at this time is obtained, and combined with the jurisdiction of the load agent for the corresponding load, the total power of each load agent is respectively obtained;
步骤8,将所述的各个负荷代理的总功率由NETLOGO发送至MATLAB中,在MATLAB中获得发电机出力和对应各个网络节点的电价,并返回至NETLOGO中,更新NETLOGO三维层面中对应网络节点上的电价;Step 8: Send the total power of each load agent from NETLOGO to MATLAB, obtain the generator output and the electricity price corresponding to each network node in MATLAB, and return it to NETLOGO, and update the corresponding network node in the 3D layer of NETLOGO electricity price;
步骤9,将所述的NETLOGO三维层面中各个网络节点上的电价作为牵引信号,并分别由所述的各个负荷代理将对应网络节点上的电价发布给其管辖的各个负荷;Step 9, using the electricity price on each network node in the NETLOGO three-dimensional layer as a traction signal, and each load agent releases the electricity price on the corresponding network node to each load under its jurisdiction;
步骤10,根据所述步骤9完成时NETLOGO三维层面中的各个负荷的位置,以及各个负荷的各个目标的目标倾向度,更新各个负荷的初始策略,并按照所述步骤5中的方法,更新所述各个负荷对应的策略集,然后根据对应各个负荷的总目标函数,结合各个负荷对应的电价,分别获得各个负荷对应其策略集中各个策略的总目标函数值;Step 10, according to the position of each load in the NETLOGO three-dimensional layer when the step 9 is completed, and the target inclination of each target of each load, update the initial strategy of each load, and update the initial strategy of each load according to the method in the step 5. Describe the strategy set corresponding to each load, and then according to the total objective function corresponding to each load, combined with the electricity price corresponding to each load, obtain the total objective function value of each load corresponding to each strategy in its strategy set;
步骤11,分别针对各个负荷,判断负荷的初始策略对应的总目标函数值是否大于其策略集中其它策略所对应的总目标函数值,是则该负荷停止运动;否则返回步骤4。Step 11: For each load, judge whether the total objective function value corresponding to the initial policy of the load is greater than the total objective function value corresponding to other policies in its policy set, if yes, the load stops moving; otherwise, return to step 4.
在所述步骤1中,所述的建立基于MATLAB与NETLOGO的联合仿真平台,是指:In the step 1, the establishment of the co-simulation platform based on MATLAB and NETLOGO refers to:
一种由MATLAB与NETLOGO构成的智能电网多智能体仿真平台,其中利用MATLAB的计算功能和编程技术,来建立电力系统元件的模型和建立复杂的电力网络仿真模型;而NETLOGO是一个对自然和社会现象进行仿真的可编程建模环境,适于对随时间演化的复杂系统进行建模;所述的NETLOGO完成电力系统元件通用模块的搭建,MATLAB进行电力系统的各项计算,求解得到的网络参数通过MATLAB和NETLOGO之间的接口程序实现信息交互。A smart grid multi-agent simulation platform composed of MATLAB and NETLOGO, in which the calculation function and programming technology of MATLAB are used to establish the model of the power system components and the complex power network simulation model; and NETLOGO is a natural and social A programmable modeling environment for simulating phenomena, which is suitable for modeling complex systems that evolve over time; the NETLOGO completes the construction of general modules for power system components, and MATLAB performs various calculations for power systems to solve the obtained network parameters Information exchange is realized through the interface program between MATLAB and NETLOGO.
在所述步骤3中,所述分别获得对应各个柔性负荷的总目标函数,其过程为:In the step 3, the total objective function corresponding to each flexible load is respectively obtained, and the process is:
设经济效益Bk作为电力元件的收益,定义如下:Let the economic benefit B k be the income of the power component, defined as follows:
其中Ek为净输入输出的总和,ρk为负荷买电的价格,Dk为负荷参考功率,Bk为经济效益,Where E k is the sum of net input and output, ρ k is the price of electricity purchased by the load, D k is the reference power of the load, B k is the economic benefit,
μk为经济性的倾向度,为舒适度的倾向度,υk为分布式电源卖电的价格,Gk为分布式电源参考功率;μ k is the tendency of economy, is the inclination degree of comfort, υ k is the price of distributed power selling electricity, and G k is the reference power of distributed power;
定义电力元件舒适度如下:The comfort level of power components is defined as follows:
其中Ck为电力元件舒适度;Among them, C k is the comfort degree of power components;
电力元件的整体效用由两个目标函数加权得到总目标函数表示,总目标函数定义如下:The overall utility of power components is represented by the total objective function weighted by two objective functions, and the total objective function is defined as follows:
其中Rk为电力元件的整体效用。where R k is the overall utility of the power element.
在所述步骤4中,所述的将各个负荷随机分布在NETLOGO三维层面上,构成多个负荷节点,并获得各个负荷的各个目标的初始目标倾向度,即为各个负荷的初始策略,其过程为:In the step 4, each load is randomly distributed on the NETLOGO three-dimensional layer to form a plurality of load nodes, and the initial target tendency degree of each target of each load is obtained, which is the initial strategy of each load, and the process for:
针对所述的NETLOGO三维层面中的网络节点,随机设定电价,并且根据NETLOGO三维层面中的负荷节点,建立负荷代理,所述的负荷代理的数量与负荷节点的数量一致,所述的负荷代理与负荷节点一一对应,所述的各个负荷代理管辖对应各个负荷,并且所述的各个负荷代理分别用于其管辖的各个负荷和MATLAB之间的信息传输。For the network nodes in the NETLOGO three-dimensional layer, randomly set the electricity price, and establish a load agent according to the load nodes in the NETLOGO three-dimensional layer, the number of the load agent is consistent with the number of load nodes, and the load agent In one-to-one correspondence with load nodes, each of the load agents governs each load, and each of the load agents is used for information transmission between each load under its jurisdiction and MATLAB.
在所述步骤5中,所述的以各个负荷的初始策略作为负荷基准量,分别针对各个负荷的各个目标的目标倾向度,采用+i或-i的方式分别获得各个负荷对应的策略,并结合各个负荷的初始策略构成各个负荷的策略集:In the step 5, the initial strategy of each load is used as the load reference amount, and the target inclination degree of each target of each load is respectively obtained by using +i or -i to obtain the strategy corresponding to each load, and Combine the initial policies of each load to form a policy set for each load:
其中,i=1,在NETLOGO三维层面上,每一个负荷周围包括八个点,该八个点分别是 即每一个负荷对应八个不同的策略,分别构成各个负荷的策略集。Among them, i=1, on the NETLOGO three-dimensional level, there are eight points around each load, and the eight points are That is, each load corresponds to eight different policies, which respectively constitute the policy set of each load.
所述步骤8的实现过程是:The realization process of described step 8 is:
将所述的各个负荷代理的总功率通过MATLAB与NETLOGO之间的数据交换接口模块,由NETLOGO发送至MATLAB中,在MATLAB中分别针对各个负荷代理的总功率进行最优潮流计算,获得发电机出力和对应各个网络节点的电价,并将该各个网络节点的电价,通过MATLAB与NETLOGO之间的数据交换接口模块返回至NETLOGO中,更新NETLOGO三维层面中对应网络节点上的电价。The total power of each load agent is sent from NETLOGO to MATLAB through the data exchange interface module between MATLAB and NETLOGO, and the optimal power flow calculation is performed on the total power of each load agent in MATLAB to obtain the generator output And the electricity price corresponding to each network node, and return the electricity price of each network node to NETLOGO through the data exchange interface module between MATLAB and NETLOGO, and update the electricity price on the corresponding network node in the NETLOGO three-dimensional layer.
在所述步骤9中,所述的将NETLOGO三维层面中各个网络节点上的电价作为牵引信号,并分别由各个负荷代理将对应网络节点上的电价发布给其管辖的各个负荷,是指:In the step 9, the use of the electricity price on each network node in the NETLOGO three-dimensional layer as a traction signal, and each load agent releases the electricity price on the corresponding network node to each load under its jurisdiction refers to:
电力系统调度平台每以一个固定时间段运行一次,在每个时间段末尾时计算实时电价、预测短时电价、计算电网频率和节点电压,并向各负荷代理、大负荷下发该时段电价、频率、电压,需要时同时下发该时段前后的历史和预测电价、频率、电压;所述电价、频率、电压统称为牵引信号,指导牵引各个负荷调整自身用电需求,在最大化自身利益的同时服务于电网。Every time the power system dispatching platform runs in a fixed time period, at the end of each time period, it calculates the real-time electricity price, predicts the short-term electricity price, calculates the grid frequency and node voltage, and sends the electricity price of this period to each load agent and large load. Frequency, voltage, when necessary, send the historical and forecasted electricity price, frequency, and voltage before and after this period at the same time; the electricity price, frequency, and voltage are collectively called the traction signal, which guides each load to adjust its own electricity demand, and maximizes its own interests. At the same time serve the grid.
在所述步骤10中,所述的分别获得各个负荷对应其策略集中各个策略的总目标函数值,是指:In said step 10, said respectively obtaining the total objective function value of each load corresponding to each strategy in its strategy set refers to:
分别针对各个负荷,判断负荷的初始策略对应的总目标函数值是否大于其策略集中其它策略所对应的总目标函数值,如果大于则该负荷停止运动。For each load, judge whether the total objective function value corresponding to the initial policy of the load is greater than the total objective function value corresponding to other policies in its policy set, and if it is greater, the load stops moving.
与现有技术相比,本发明含有以下优点和有益效果:Compared with prior art, the present invention contains following advantage and beneficial effect:
(1)本发明根据电力系统网络结构,建立基于MATLAB与NETLOGO的联合仿真平台,搭建MATLAB和NETLOGO之间的数据交换接口模块实现信息交互,提出了根据网荷互动要求,结合不同类型智能电网多智能体特性,从智能电网多智能体多目标系统一致性的角度建立协调控制模型,当目标多样时选取恰当的目标函数获取优化运行控制方式与参数,确保系统运行时的可靠性和经济性,并验证优化运行策略的有效性;(1) According to the network structure of the power system, the present invention establishes a joint simulation platform based on MATLAB and NETLOGO, and builds a data exchange interface module between MATLAB and NETLOGO to realize information interaction. Agent characteristics, establish a coordination control model from the perspective of smart grid multi-agent multi-objective system consistency, select the appropriate objective function to obtain optimal operation control methods and parameters when the objectives are diverse, and ensure the reliability and economy of the system during operation. And verify the effectiveness of the optimization operation strategy;
(2)本发明考虑含有柔性负荷多智能体协同控制的系统有其特有的特点,且这类模型属性之间相互竞争博弈,所以采用多智能体多目标协调控制的智能电网分布式一致性优化算法和优化运行策略,在确保系统可靠性的基础上,使系统具有良好的优化运行效果,有效地验证多智能体多目标协调控制优化运行结果;(2) The present invention considers that the system containing flexible load multi-agent cooperative control has its unique characteristics, and the attributes of such models compete with each other for a game, so the smart grid distributed consistency optimization of multi-agent multi-objective coordinated control is adopted Algorithms and optimal operation strategies, on the basis of ensuring system reliability, enable the system to have a good optimal operation effect, and effectively verify the optimal operation results of multi-agent multi-objective coordinated control;
(3)本发明可广泛应用于分布式网荷互动多智能体系统控制模型,特别适用于柔性负荷下的智能电网多智能体多目标一致性优化方法。(3) The present invention can be widely applied to the distributed grid-load interactive multi-agent system control model, and is especially suitable for the smart grid multi-agent multi-objective consistency optimization method under flexible load.
附图说明Description of drawings
图1是本发明的一种智能电网多智能体多目标一致性优化方法流程图。Fig. 1 is a flowchart of a smart grid multi-agent multi-objective consistency optimization method of the present invention.
图2是本发明的负荷k标准化的行为空间示意图。Fig. 2 is a schematic diagram of the behavior space of load k normalization in the present invention.
图3是本发明的基于NETLOGO的电网多智能体仿真平台系统。Fig. 3 is the grid multi-agent simulation platform system based on NETLOGO of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明做进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.
图1所示为本发明的一种智能电网多智能体多目标一致性优化方法的流程图。本发明方法根据智能电网多智能体协同控制因素的系统的特点,分析不同电力元件的不同典型特征,以及各自所提出的目标要求,当目标多样时选取恰当的目标函数获取优化运行控制方式与参数,确保系统运行时的可靠性和经济性,并验证优化运行策略的有效性;其实施步骤包括:FIG. 1 is a flowchart of a smart grid multi-agent multi-objective consistency optimization method of the present invention. The method of the present invention analyzes the different typical characteristics of different power components and their respective target requirements according to the characteristics of the system of smart grid multi-agent cooperative control factors, and selects an appropriate target function to obtain optimal operation control methods and parameters when the targets are diverse. , to ensure the reliability and economy of the system during operation, and to verify the effectiveness of the optimal operation strategy; its implementation steps include:
步骤1,根据电力系统网络结构,建立基于MATLAB与NETLOGO的联合仿真平台,其中,在MATLAB中建立电力系统元件模型,在NETLOGO中定义代表电力系统元件的智能体通用模块,同时,搭建MATLAB和NETLOGO之间的数据交换接口模块实现信息交互。Step 1. According to the network structure of the power system, establish a joint simulation platform based on MATLAB and NETLOGO, in which, the model of the power system components is established in MATLAB, and the general intelligent module representing the power system components is defined in NETLOGO. At the same time, MATLAB and NETLOGO are built The data exchange interface modules among them realize information exchange.
所述的建立基于MATLAB与NETLOGO的联合仿真平台,是指:一种由MATLAB与NETLOGO构成的智能电网多智能体仿真平台,其中利用MATLAB的计算功能和编程技术,来建立电力系统元件的模型和建立复杂的电力网络仿真模型;而NETLOGO是一个对自然和社会现象进行仿真的可编程建模环境,适于对随时间演化的复杂系统进行建模;所述的NETLOGO完成电力系统元件通用模块的搭建,MATLAB进行电力系统的各项计算,求解得到的网络参数通过MATLAB和NETLOGO之间的接口程序实现信息交互。The establishment of the joint simulation platform based on MATLAB and NETLOGO refers to: a smart grid multi-agent simulation platform composed of MATLAB and NETLOGO, wherein the calculation function and programming technology of MATLAB are used to establish the model and Establish a complex power network simulation model; and NETLOGO is a programmable modeling environment for simulating natural and social phenomena, suitable for modeling complex systems that evolve over time; the NETLOGO completes the general module of power system components Building, MATLAB performs various calculations of the power system, and the network parameters obtained through the solution realize information exchange through the interface program between MATLAB and NETLOGO.
所述的由MATLAB与NETLOGO构成的电网多智能体仿真平台如图3所示,电力系统调度平台和NETLOGO多智能仿真平台通过MATLAB接口,实现负荷的多智能体控制。电力系统调度平台主要负责电价计算与预测,同时进行相关的电力系统动态仿真。以基于响应电价的负荷仿真为例,电力系统调度平台则需要进行最优潮流计算,得到此时电网相关节点的电价,同时将该电价通过NETLOGO与MATLAB接口下达给NETLOGO中的负荷代理。而NETLOGO仿真平台主要完成电网运行环境的搭建以及电网元件的建模工作,具体表现为在NETLOGO中搭建拓扑结构、负荷代理及负荷群三层电网运行环境;同时根据负荷群的各自特性,在NETLOGO中对其特性进行建模。NETLOGO与MATLAB接口主要进行历史电价、实时电价、预测电价及相关牵引信号在NETLOGO与MATLAB之间的数据通信。The power grid multi-agent simulation platform composed of MATLAB and NETLOGO is shown in Figure 3. The power system dispatching platform and the NETLOGO multi-intelligence simulation platform realize multi-agent load control through the MATLAB interface. The power system dispatching platform is mainly responsible for electricity price calculation and forecasting, and at the same time carries out relevant power system dynamic simulation. Taking the load simulation based on the response electricity price as an example, the power system dispatching platform needs to calculate the optimal power flow to obtain the electricity price of the relevant nodes of the power grid at this time, and at the same time send the electricity price to the load agent in NETLOGO through the interface of NETLOGO and MATLAB. The NETLOGO simulation platform mainly completes the construction of the power grid operating environment and the modeling of the power grid components. Specifically, the three-tier power grid operating environment of topology, load agent and load group is built in NETLOGO; at the same time, according to the respective characteristics of the load group, in NETLOGO model its properties. The interface between NETLOGO and MATLAB is mainly for the data communication between NETLOGO and MATLAB of historical electricity price, real-time electricity price, predicted electricity price and related traction signals.
步骤2,针对各种负荷类型,分别根据负荷基准量、电价,以及对应负荷的各目标的目标倾向度,建立分别对应于各种负荷和电源类型的负荷-电价响应特性模型;在电力系统中存在多种多样的负荷和电源,所述的负荷包括刚性负荷和柔性负荷,所述的电源包括分布式电源和储能元件;其中,刚性负荷是指不参与电网互动的负荷,柔性负荷是指参与电网互动的负荷。Step 2, for each load type, according to the load reference amount, electricity price, and the target tendency of each target corresponding to the load, respectively, establish a load-electricity price response characteristic model corresponding to each load and power source type; in the power system There are a variety of loads and power sources. The loads include rigid loads and flexible loads. The power sources include distributed power sources and energy storage components. Among them, rigid loads refer to loads that do not participate in grid interaction, and flexible loads refer to Loads that participate in grid interaction.
针对负荷和电源不同特性分别进行建模。负荷耗电和电源发电的电价标幺值分别为[ρk,υk]。在本发明所提出的仿真架构中,电价对[ρk,υk]即为Agent下达给各个负荷的牵引信号。对于不同母线上的负荷而言,每对电价可能是不同的。Different characteristics of load and power supply are modeled separately. The per unit value of electricity price for load power consumption and power generation is [ρ k , υ k ] respectively. In the simulation framework proposed by the present invention, the electricity price pair [ρ k , υ k ] is the traction signal issued by the Agent to each load. For loads on different buses, the tariffs for each pair may be different.
在本发明中,假定采用的负荷和电源以追求经济性和舒适度为目标。在现有技术中,负荷的电价响应特性和电源的发电安排是不考虑舒适度的。因此,考虑舒适度后,负荷的需求无法根据传统模型准确预测,而电源的出力也不能根据传统的发电安排方法得到。负荷和电源追求各自目标的行为可以等效为对应的2-D空间:1)对经济性的倾向度μk,表现在一方面避免消费成本的最大化,另一方面获得最大化经济收益。2)对舒适度的倾向度表现个体考虑自身欲望和意愿,他们会使用装置或设备来满足他们的生活标准(生理方面)。每个负荷的目标行为特征用描述,Ak在经济性(如图2的横坐标所示)和舒适度(如图2的纵坐标所示)两个方面被赋予不同的值。In the present invention, it is assumed that the loads and power sources used are aimed at pursuing economy and comfort. In the prior art, the electricity price response characteristic of the load and the power generation arrangement of the power source do not consider the comfort level. Therefore, after considering the comfort level, the load demand cannot be accurately predicted according to the traditional model, and the output of the power supply cannot be obtained according to the traditional generation arrangement method. The behaviors of loads and power sources pursuing their respective goals can be equivalent to the corresponding 2-D space: 1) The degree of inclination μ k towards economy is manifested in avoiding the maximization of consumption cost on the one hand and maximizing economic benefits on the other hand. 2) Tendency towards comfort Representing individuals considering their own desires and wishes, they will use devices or equipment to meet their standard of living (physiological aspects). The target behavioral characteristics for each load are represented by To describe, A k is given different values in terms of economy (shown in the abscissa of Figure 2) and comfort (shown in the ordinate of Figure 2).
负荷从用电中获得的效能可以在经济效益方面和舒适度方面进行量化,这两个方面的价值取决于个体对功率输入输出方面的行为模式。在此,定义所述负荷和电源的功率输入输出为:The efficiency that a load obtains from electricity consumption can be quantified in terms of economic benefits and comfort, the value of which depends on the individual's behavior pattern in terms of power input and output. Here, the power input and output of the load and power supply are defined as:
1)刚性负荷:负荷量qk不随电价改变,即不参与电网互动的负荷;1) Rigid load: the load q k does not change with the electricity price, that is, the load that does not participate in the grid interaction;
2)柔性负荷:指参与电网互动的负荷,其中dk为负荷需求量,Dk为负荷参考功率,ρk为负荷买电的价格;2) Flexible load: refers to the load that participates in the grid interaction, Where d k is the load demand, D k is the reference power of the load, and ρ k is the price of electricity purchased by the load;
3)分布式电源:其中gk为分布式电源的发电量,Gk为分布式电源参考功率,υk为分布式电源卖电的价格;3) Distributed power supply: Where g k is the power generation of distributed power, G k is the reference power of distributed power, and υ k is the price of distributed power;
4)储能元件:充电时为 4) Energy storage element: when charging
放电时为 when discharging
负荷的网络输出功率是对参考功率的需求计算而来的。在此模型中负荷的参考功率是恒定的,不涉及技术方面的问题。负荷-电价响应特性由式中的状态参数μk,决定,其中所述与价格ρk,υk相关的需求减少率和生产增长率是从而引起功率的弹性变化。此外,与传统的基于固定响应的模型相反,我们的方法中,社会行为被明确建模,综合考虑了由于社会行为的交互所带来的弹性变化。The network output power of the load is calculated from the demand of the reference power. The reference power of the load in this model is constant and does not involve technical aspects. The load-price response characteristic is determined by the state parameter μ k in the formula, decision, where the rate of decrease in demand and growth rate of production associated with prices ρ k , υ k are This results in an elastic change in power. Furthermore, in contrast to traditional fixed-response based models, in our approach social behavior is explicitly modeled, taking into account elastic changes due to social behavior interactions.
负荷在空间的状态位置如图2所示。如果负荷k在位置Ak处,表示该负荷只考虑经济利益:ρk(υk)的增长会导致功率输出的减少或增加。位置B意味着它无法根据价格的改变而改变电能的输出或输入量,它考虑的是舒适度。与这两种情况相比,不在边界上的位置,其价格与一定程度的经济利益和舒适度都相关。例如,负荷k位于点C,从经济性而言,在价格ρk=1时,功率需求减少0.3,从舒适度而言,功率消耗将减少0.3。这就意味着在价格ρk=1时最终需求将减少0.3*(1-0.3)。同理在点D处,在价格ρk=1时最终需求将减少0.7*(1-0.7)。在价格υk=1时最终发电量将减少0.7*(1-0.7)。从理论上而言,ρk和υk可以单独设置。但为防止负荷套利,假设ρk=-υk。The state position of the load in space is shown in Figure 2. If the load k is at the position A k , it means that the load only considers the economic benefit: the increase of ρ k (υ k ) will lead to the decrease or increase of the power output. Position B means that it cannot change the output or input of electric energy according to the price change, it considers the comfort. In contrast to these two cases, the price of the location not on the border is related to a certain degree of economic interest and comfort. For example, load k is located at point C. From the perspective of economy, when the price ρ k =1, the power demand will be reduced by 0.3, and from the perspective of comfort, the power consumption will be reduced by 0.3. This means that the final demand will decrease by 0.3*(1-0.3) at the price ρ k =1. Similarly, at point D, the final demand will decrease by 0.7*(1-0.7) when the price ρ k =1. When the price υ k =1, the final power generation will be reduced by 0.7*(1-0.7). Theoretically speaking, ρ k and υ k can be set independently. But in order to prevent load arbitrage, it is assumed that ρ k = -υ k .
作为负荷的收益,经济效益Bk定义如下:As the load gain, the economic benefit Bk is defined as follows:
其中Ek为净输入输出的总和。Where E k is the sum of net input and output.
负荷舒适度定义如下:Load comfort is defined as follows:
负荷的整体效用由两个目标函数加权得到总目标函数表示,总目标函数定义如下:The overall utility of the load is represented by the total objective function weighted by two objective functions. The total objective function is defined as follows:
步骤3,根据所述步骤2中建立的分别对应各种负荷类型的负荷-电价响应特性模型,分别获得各个负荷的各个目标的目标函数;并且分别针对各个负荷,将负荷的各个目标的目标函数进行加权处理,分别获得对应各个负荷的总目标函数。Step 3, according to the load-electricity price response characteristic models respectively corresponding to various load types established in the step 2, obtain the objective functions of each target of each load respectively; Perform weighting processing to obtain the total objective function corresponding to each load.
所述的分别获得对应各个柔性负荷的总目标函数,其过程为:The described total objective function corresponding to each flexible load is respectively obtained, and the process is:
设经济效益Bk作为电力元件的收益,定义如下:Let the economic benefit B k be the income of the power component, defined as follows:
其中Ek为净输入输出的总和,ρk为负荷买电的价格,Dk为负荷参考功率,Bk为经济效益,Where E k is the sum of net input and output, ρ k is the price of electricity purchased by the load, D k is the reference power of the load, B k is the economic benefit,
μk为经济性的倾向度,为舒适度的倾向度,υk为分布式电源卖电的价格,Gk为分布式电源参考功率;μ k is the tendency of economy, is the inclination degree of comfort, υ k is the price of distributed power selling electricity, and G k is the reference power of distributed power;
定义电力元件舒适度如下:The comfort level of power components is defined as follows:
其中Ck为电力元件舒适度;Among them, C k is the comfort degree of power components;
电力元件的整体效用由两个目标函数加权得到总目标函数表示,总目标函数定义如下:The overall utility of power components is represented by the total objective function weighted by two objective functions, and the total objective function is defined as follows:
其中Rk为电力元件的整体效用。where R k is the overall utility of the power element.
步骤4,将所述的各个负荷随机分布在NETLOGO三维层面上,获得各个负荷的初始策略;针对NETLOGO三维层面中的网络节点,随机设定电价,并且建立负荷代理,其过程为:Step 4. Randomly distribute the various loads on the NETLOGO three-dimensional layer to obtain the initial strategy of each load; for the network nodes in the NETLOGO three-dimensional layer, randomly set the electricity price and establish a load agent. The process is as follows:
针对所述的NETLOGO三维层面中的网络节点,随机设定电价,并且根据NETLOGO三维层面中的负荷节点,建立负荷代理,所述的负荷代理的数量与负荷节点的数量一致,所述的负荷代理与负荷节点一一对应,所述的各个负荷代理管辖对应各个负荷,并且所述的各个负荷代理分别用于其管辖的各个负荷和MATLAB之间的信息传输。For the network nodes in the NETLOGO three-dimensional layer, randomly set the electricity price, and establish a load agent according to the load nodes in the NETLOGO three-dimensional layer, the number of the load agent is consistent with the number of load nodes, and the load agent In one-to-one correspondence with load nodes, each of the load agents governs each load, and each of the load agents is used for information transmission between each load under its jurisdiction and MATLAB.
步骤5,以所述各个负荷的初始策略作为负荷基准量,分别针对各个负荷的各个目标的目标倾向度,采用+i或-i的方式分别获得各个负荷对应的策略,并结合各个负荷的初始策略构成各个负荷的策略集;所述的i为每一步迭代步长,所述的步是指电价每变动一次,负荷的策略相应变化一次。Step 5, using the initial strategy of each load as the load reference amount, and respectively obtaining the strategy corresponding to each load in the way of +i or -i for the target tendency of each target of each load, and combining the initial strategy of each load The strategy constitutes the strategy set of each load; the i mentioned above is the iteration step size of each step, and the step means that every time the electricity price changes, the strategy of the load changes correspondingly once.
在所述步骤5中,所述的以各个负荷的初始策略作为负荷基准量,分别针对各个负荷的各个目标的目标倾向度,采用+i或-i的方式分别获得各个负荷对应的策略,并结合各个负荷的初始策略构成各个负荷的策略集:In the step 5, the initial strategy of each load is used as the load reference amount, and the target inclination degree of each target of each load is respectively obtained by using +i or -i to obtain the strategy corresponding to each load, and Combine the initial policies of each load to form a policy set for each load:
其中,i=1,在NETLOGO三维层面上,每一个负荷周围包括八个点,该八个点分别是 即每一个负荷对应八个不同的策略,分别构成各个负荷的策略集。Among them, i=1, on the NETLOGO three-dimensional level, there are eight points around each load, and the eight points are That is, each load corresponds to eight different policies, which respectively constitute the policy set of each load.
步骤6,采用多智能体多目标协调控制的智能电网一致性优化算法,分别对各个负荷的总目标函数进行优化协调运算,并分别选择获得各个负荷对应其最大总目标函数值的策略,作为各个负荷的优选策略。Step 6, using the smart grid consistency optimization algorithm of multi-agent multi-objective coordinated control, respectively optimize and coordinate the total objective function of each load, and select the strategy to obtain the maximum total objective function value corresponding to each load, as each load Optimal strategy for loading.
令xi表示电力元件的状态,根据一致性协议,当且仅当网络拓补中所有的结点的状态值都相等时,该网络的结点都达到了一致,即:Let xi represent the state of the power element. According to the consensus protocol, if and only if the state values of all nodes in the network topology are equal, the nodes of the network have reached the consensus, that is:
x1=x2=…=xn x 1 =x 2 =...=x n
所述的多智能体多目标协调控制的智能电网一致性优化算法,是采用分布式经济调度策略,是指:The smart grid consensus optimization algorithm for multi-agent multi-objective coordinated control adopts a distributed economic scheduling strategy, and refers to:
在柔性负荷下,电力系统经济调度的目标是社会福利最大。从分布式优化的角度,应用一致性算法,将发电机组的增量成本(IC)与柔性负荷的增量效益(IB)作为一致性变量,经济调度问题通过分布式优化的方式求解。嵌入到每一个发电机组和柔性负荷中的本地控制器根据邻居的增量成本或者增量效益来更新自己的增量成本或者增量效益。选择一个“主机组”和“主负荷”决策是否增大或减小全局增量成本和增量效益。当发电机总发电功率大于负荷总需求功率时,就会减小全局的增量成本,反之亦然。当负荷总需求功率大于发电机总发电功率时,就会增大全局的增量效益,反之亦然。Under flexible load, the goal of power system economic dispatch is to maximize social welfare. From the perspective of distributed optimization, the consensus algorithm is applied, and the incremental cost (IC) of the generator set and the incremental benefit (IB) of the flexible load are taken as the consistency variables, and the economic dispatch problem is solved by distributed optimization. The local controller embedded in each genset and flexible load updates its own incremental cost or incremental benefit according to the neighbor's incremental cost or incremental benefit. Choose a "Host Group" and "Primary Load" decision whether to increase or decrease the global incremental cost and incremental benefit. When the total generating power of the generator is greater than the total demand power of the load, the overall incremental cost will be reduced, and vice versa. When the total demand power of the load is greater than the total power generated by the generator, the overall incremental benefit will be increased, and vice versa.
该算法包括以下过程:The algorithm includes the following processes:
假设发电机组的发电成本函数和柔性负荷的用电效益函数均为二次函数,发电机组的发电成本函数如下:Assuming that the power generation cost function of the generator set and the power consumption benefit function of the flexible load are both quadratic functions, the power generation cost function of the generator set is as follows:
Ci(PGi)=αi+βiPGi+γiP2 Gi,i∈SG C i (P Gi )=α i +β i P Gi +γ i P 2 Gi , i∈S G
柔性负荷的用电效益函数如下:The power consumption benefit function of the flexible load is as follows:
Bj(PDj)=aj+bjPDj+cjP2 Dj,j∈SD Bj(P Dj )=a j +b j P Dj +c j P 2 Dj ,j∈S D
经济调度问题是指发电机和柔性负荷在满足一系列运行约束的条件下,使整个电力系统运行的经济效益最大化的优化问题,即:The economic dispatch problem refers to the optimization problem of maximizing the economic benefits of the entire power system operation under the conditions of generators and flexible loads satisfying a series of operating constraints, namely:
PGi,min≤PGi≤PGi,max,i∈SG P Gi,min ≤P Gi ≤P Gi,max , i∈S G
PDj,min≤PDj≤PDj,max,j∈SD P Dj,min ≤P Dj ≤P Dj,max ,j∈S D
其中,PDj表示柔性负荷j的需求功率,PGi表示发电机组i的输出功率。SG表示发电机集合,SD表示柔性负载集合。利用经典的拉格朗日乘子法求解,令λ代表与等式约束对应的拉格朗日乘子,不考虑约束,上述等式约束优化问题可以转化为:Among them, P Dj represents the demand power of flexible load j, and P Gi represents the output power of generator set i. S G represents the set of generators, and S D represents the set of flexible loads. Using the classic Lagrange multiplier method to solve, let λ represent the Lagrangian multiplier corresponding to the equality constraint, regardless of the constraint, the above equality constraint optimization problem can be transformed into:
对变量PGi,PDj和λ求偏导得到最优性条件,即:The optimality condition is obtained by taking partial derivatives of the variables P Gi , P Dj and λ, namely:
上式即协调方程,根据协调方程可得:The above formula is the coordination equation, according to the coordination equation:
即经济调度的最优解是使发电机的增量成本与柔性负荷的增量效益相等,其中m表示发电机数目,k表示柔性负荷的数目。That is, the optimal solution of economic dispatch is to make the incremental cost of the generator equal to the incremental benefit of the flexible load, where m represents the number of generators and k represents the number of flexible loads.
假设所有的柔性负荷与发电机组均在其功率约束范围内运行。在该一致性算法中,发电机组的IC与柔性负荷的IB的定义如下:It is assumed that all flexible loads and generators operate within their power constraints. In this consensus algorithm, the IC of the generating set and the IB of the flexible load are defined as follows:
选择IC与IB作为一致性变量,应用一致性算法,从发电机组(FollowerGenerator)的IC的更新公式为:Select IC and IB as the consistency variables, apply the consistency algorithm, and update the IC of the follower generator set (FollowerGenerator) formula as follows:
从负荷(Follower Load)的IB的更新公式为:The update formula of the IB of the follower load is:
为了满足电力系统中的功率平衡约束,用ΔP表示柔性负荷实际需求功率与发电机组实际输出功率之间的差值:In order to meet the power balance constraints in the power system, ΔP is used to represent the difference between the actual demand power of the flexible load and the actual output power of the generator set:
主发电机组(Leader Generator)的IC的更新公式为:The update formula of the IC of the leader generator set (Leader Generator) is:
主负荷(Leader Load)的IB的更新公式为:The update formula of the IB of the leader load is:
其中ε为收敛系数,是一个正的标量。它与主发电机组和主负荷的分布式优化收敛速度有关。Where ε is the convergence coefficient, which is a positive scalar. It is related to the convergence speed of the distributed optimization of main generating units and main loads.
步骤7,分别根据所述的各个负荷的优选策略中的各个目标的目标倾向度,将各个负荷分别运动到NETLOGO三维层面中相应的位置上,并更新各个负荷的各个目标的目标倾向度;然后根据对应的负荷-电价响应特性模型,获得此时各个负荷的功率,并且结合负荷代理针对对应负荷的管辖,分别获得各个负荷代理的总功率。Step 7, move each load to the corresponding position in the NETLOGO three-dimensional layer respectively according to the target inclination degree of each target in the optimal strategy of each load, and update the target inclination degree of each target of each load; then According to the corresponding load-electricity price response characteristic model, the power of each load at this time is obtained, and combined with the jurisdiction of the load agent for the corresponding load, the total power of each load agent is respectively obtained.
步骤8,将所述的各个负荷代理的总功率由NETLOGO发送至MATLAB中,在MATLAB中获得发电机出力和对应各个网络节点的电价,并返回至NETLOGO中,更新NETLOGO三维层面中对应网络节点上的电价。其实现过程是:Step 8: Send the total power of each load agent from NETLOGO to MATLAB, obtain the generator output and the electricity price corresponding to each network node in MATLAB, and return it to NETLOGO, and update the corresponding network node in the 3D layer of NETLOGO electricity price. Its implementation process is:
将所述的各个负荷代理的总功率通过MATLAB与NETLOGO之间的数据交换接口模块,由NETLOGO发送至MATLAB中,在MATLAB中分别针对各个负荷代理的总功率进行最优潮流计算,获得发电机出力和对应各个网络节点的电价,并将该各个网络节点的电价,通过MATLAB与NETLOGO之间的数据交换接口模块返回至NETLOGO中,更新NETLOGO三维层面中对应网络节点上的电价。The total power of each load agent is sent from NETLOGO to MATLAB through the data exchange interface module between MATLAB and NETLOGO, and the optimal power flow calculation is performed on the total power of each load agent in MATLAB to obtain the generator output And the electricity price corresponding to each network node, and return the electricity price of each network node to NETLOGO through the data exchange interface module between MATLAB and NETLOGO, and update the electricity price on the corresponding network node in the NETLOGO three-dimensional layer.
本发明中MATLAB与NETLOGO之间接口传递的信号为P、f、V和C等。以C为例,MATLAB进行电价求解运算后得到的C储存到bus矩阵中,在三机九节点系统中,电价信息是储存在Bus矩阵的第14列,Bus矩阵如表1所示。The signals transmitted by the interface between MATLAB and NETLOGO are P, f, V and C etc. among the present invention. Taking C as an example, the C obtained after MATLAB solves the electricity price is stored in the bus matrix. In the three-machine nine-node system, the electricity price information is stored in the 14th column of the Bus matrix. The Bus matrix is shown in Table 1.
表1Table 1
接上表Continuing from the table
NETLOGO调用MATLAB中负荷节点的C,首先要确定该节点电价在bus矩阵的位置,该节点处的Agent通过接口命令语句得到该节点的电价。另一方面,Agents也需要将负荷群总功率通过命令语句调用MATLAB,将电价计算中的负荷量用现有值替代重新进行电价计算。其代码描述如表2所示。When NETLOGO calls the C of the load node in MATLAB, it must first determine the position of the node's electricity price in the bus matrix, and the Agent at the node gets the electricity price of the node through the interface command statement. On the other hand, Agents also need to call MATLAB with the total power of the load group through the command statement, and replace the load in the electricity price calculation with the existing value to recalculate the electricity price. Its code description is shown in Table 2.
表2Table 2
步骤9,将所述的NETLOGO三维层面中各个网络节点上的电价作为牵引信号,并分别由所述的各个负荷代理将对应网络节点上的电价发布给其管辖的各个负荷。是指:Step 9: Use the electricity price on each network node in the NETLOGO three-dimensional layer as a traction signal, and each load agent releases the electricity price on the corresponding network node to each load under its jurisdiction. Refers to:
电力系统调度平台每以一个固定时间段运行一次,在每个时间段末尾时计算实时电价、预测短时电价、计算电网频率和节点电压,并向各负荷代理、大负荷下发该时段电价、频率、电压,需要时同时下发该时段前后的历史和预测电价、频率、电压;所述电价、频率、电压统称为牵引信号,指导牵引各个负荷调整自身用电需求,在最大化自身利益的同时服务于电网。Every time the power system dispatching platform runs in a fixed time period, at the end of each time period, it calculates the real-time electricity price, predicts the short-term electricity price, calculates the grid frequency and node voltage, and sends the electricity price of this period to each load agent and large load. Frequency, voltage, when necessary, send the historical and forecasted electricity price, frequency, and voltage before and after this period at the same time; the electricity price, frequency, and voltage are collectively called the traction signal, which guides each load to adjust its own electricity demand, and maximizes its own interests. At the same time serve the grid.
在NETLOGO三维界面中,原点位于西南角,水平方向代表经济性倾向度,垂直方向代表舒适度倾向度,数值范围都是0-1,用户层中的每个用户在该层面的左右、上下移动分别表示对经济性倾向度和舒适度倾向度的改变,移动的同时,负载也在不断地变化,直到最后到达一个总目标最大的点停止。In the NETLOGO three-dimensional interface, the origin is located in the southwest corner, the horizontal direction represents the economic tendency, the vertical direction represents the comfort tendency, and the value range is 0-1. Each user in the user layer moves left and right, up and down on this layer Respectively represent the change of the economic tendency and the comfort tendency. While moving, the load is constantly changing until it finally reaches a point where the total target is the largest.
步骤10,根据所述步骤9完成时NETLOGO三维层面中的各个负荷的位置,以及各个负荷的各个目标的目标倾向度,更新各个负荷的初始策略,并按照所述步骤5中的方法,更新所述各个负荷对应的策略集,然后根据对应各个负荷的总目标函数,结合各个负荷对应的电价,分别获得各个负荷对应其策略集中各个策略的总目标函数值;Step 10, according to the position of each load in the NETLOGO three-dimensional layer when the step 9 is completed, and the target inclination of each target of each load, update the initial strategy of each load, and update the initial strategy of each load according to the method in the step 5. Describe the strategy set corresponding to each load, and then according to the total objective function corresponding to each load, combined with the electricity price corresponding to each load, obtain the total objective function value of each load corresponding to each strategy in its strategy set;
所述的分别获得各个负荷对应其策略集中各个策略的总目标函数值,是指:分别针对各个负荷,判断负荷的初始策略对应的总目标函数值是否大于其策略集中其它策略所对应的总目标函数值,如果大于则该负荷停止运动。The said obtaining the total objective function value of each load corresponding to each strategy in its policy set refers to: for each load, judge whether the total objective function value corresponding to the initial policy of the load is greater than the total target corresponding to other strategies in the policy set Function value, if greater than, the load will stop moving.
步骤11,分别针对各个负荷,判断负荷的初始策略对应的总目标函数值是否大于其策略集中其它策略所对应的总目标函数值,是则该负荷停止运动;否则返回步骤4。Step 11: For each load, judge whether the total objective function value corresponding to the initial policy of the load is greater than the total objective function value corresponding to other policies in its policy set, if yes, the load stops moving; otherwise, return to step 4.
综上所述,当前多智能体互动电网的系统功率平衡控制已经成为当前的一个研究热点。多智能体互动电网的多变性和不确定性使其控制变得尤为困难,基于多智能体多目标一致性的方法能够有效应对。在设计的电网多智能体控制方法中每个电力元件组成的模块具有一定的智能性,能够应对外界扰动,做出积极反应,同时通过自身与周边模块的沟通来实现自我调整以达到一定程度的自治,实现实时调度以及分布式调度,从而提高电网运行的可靠性和经济性。因此,将电力元件参与系统功率平衡看作一个多智能体系统来研究是可行的。To sum up, the system power balance control of the current multi-agent interactive grid has become a current research hotspot. The variability and uncertainty of the multi-agent interactive grid make it particularly difficult to control, and the method based on multi-agent multi-objective consistency can effectively deal with it. In the designed grid multi-agent control method, the modules composed of each power element have a certain degree of intelligence, can respond to external disturbances, and make positive responses, and at the same time realize self-adjustment through communication with surrounding modules to achieve a certain degree Autonomy, realize real-time scheduling and distributed scheduling, so as to improve the reliability and economy of power grid operation. Therefore, it is feasible to study the power components participating in the system power balance as a multi-agent system.
本发明为了实现多智能体互动的电力系统功率平衡控制,采用了一种电网多智能体建模、仿真与控制方案。该方案仿真平台由NETLOGO与MATLAB组成,其中NETLOGO承担电力系统智能元件建模以及电网多智能体控制的工作,MATLAB负责电力系统的各项运算,通过NETLOGO和MATLAB之间的接口模块实现整个系统网络数据交互。仿真方案中电力元件智能体与MATLAB通过接口传递交互信息,电力元件智能体将有关参数上传给MATLAB进行电力系统各项运算,同时调用MATLAB中最新信号下达给电力元件智能体,各个电力元件智能体考虑自身目标做出积极响应。In order to realize the power balance control of the power system with multi-agent interaction, the present invention adopts a grid multi-agent modeling, simulation and control scheme. The simulation platform of this scheme is composed of NETLOGO and MATLAB. NETLOGO is responsible for the modeling of power system intelligent components and the work of multi-agent control of the power grid. MATLAB is responsible for various calculations of the power system. The entire system network is realized through the interface module between NETLOGO and MATLAB. Data interaction. In the simulation scheme, the power component agent and MATLAB transmit interactive information through the interface. The power component agent uploads relevant parameters to MATLAB for various calculations of the power system, and at the same time calls the latest signal in MATLAB to issue to the power component agent. Each power component agent Consider your own goals and respond positively.
本发明考虑柔性负荷特性,负荷在不同电价下,以追求经济性和舒适度为目标,研究分布式一致性优化调度策略,进行优化协调运算,使系统性能协同达到最优的效果,验证优化运行策略的有效性。通过建立智能电网多智能体多目标系统协调控制模型,实现间接、分布控制。在智能电网复杂网络理论体系中准确描述电网元件和系统的运行特性,以智能体形式描述柔性负荷,获得基于柔性负荷信息交互的电网互动运行多智能体环境、基于牵引控制的电网元件互动运行的协调控制策略和基于行为准则的电网元件自主运行的行为规范,采用合适的算法和优化运行策略,在确保系统可靠性的基础上,使系统具有良好的优化运行效果,并验证多智能体多目标协调控制优化运行结果。The invention considers the characteristics of flexible loads. The loads are under different electricity prices, with the goal of pursuing economy and comfort, researching the distributed consistency optimization scheduling strategy, performing optimization and coordination operations, so that the system performance can be coordinated to achieve the optimal effect, and verifying the optimal operation. effectiveness of the strategy. By establishing the coordinated control model of smart grid multi-agent multi-objective system, indirect and distributed control is realized. Accurately describe the operating characteristics of power grid components and systems in the complex network theory system of smart grid, describe flexible loads in the form of agents, and obtain the multi-agent environment of grid interactive operation based on flexible load information interaction, and the interactive operation of grid components based on traction control. Coordinate the control strategy and the behavior specification of the autonomous operation of grid components based on the code of conduct, adopt appropriate algorithms and optimal operation strategies, and ensure the system has a good optimal operation effect on the basis of ensuring system reliability, and verify multi-agent multi-objective Coordinated control optimizes operating results.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510759625.0A CN105391090B (en) | 2015-11-10 | 2015-11-10 | A kind of intelligent grid multiple agent multiple target uniformity optimization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510759625.0A CN105391090B (en) | 2015-11-10 | 2015-11-10 | A kind of intelligent grid multiple agent multiple target uniformity optimization method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105391090A CN105391090A (en) | 2016-03-09 |
CN105391090B true CN105391090B (en) | 2017-12-08 |
Family
ID=55423056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510759625.0A Expired - Fee Related CN105391090B (en) | 2015-11-10 | 2015-11-10 | A kind of intelligent grid multiple agent multiple target uniformity optimization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105391090B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106340890B (en) * | 2016-09-27 | 2018-12-28 | 东南大学 | For coordinating the distributed control method of power distribution network energy-storage system efficiency for charge-discharge |
CN106886603B (en) * | 2017-03-03 | 2020-07-14 | 东南大学 | A Layered Distributed Architecture and Method for Demand Response Resource Combination Optimization |
US10461540B2 (en) * | 2017-03-17 | 2019-10-29 | General Electric Technology Gmbh | Scalable flexibility control of distributed loads in a power grid |
CN108259250A (en) * | 2018-02-28 | 2018-07-06 | 哈尔滨理工大学 | A kind of multiple agent consistency method of sampling |
CN108519764A (en) * | 2018-04-09 | 2018-09-11 | 中国石油大学(华东) | Data-driven multi-agent coordinated control method |
CN114153431B (en) * | 2021-11-15 | 2024-04-30 | 西安电子科技大学 | Large-scale networked software self-optimization device and method based on group intelligence |
CN114881489B (en) * | 2022-05-13 | 2024-09-27 | 国网经济技术研究院有限公司 | Smart grid economic dispatching method based on event triggering and fixed time |
CN119228322B (en) * | 2024-11-28 | 2025-03-07 | 华电环球(北京)贸易发展有限公司 | Digital power analysis method and device for cooperative multiple production elements |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104537178A (en) * | 2014-12-31 | 2015-04-22 | 南京邮电大学 | Electric power system joint simulation modeling method based on Matlab and Netlogo |
CN104536304A (en) * | 2014-12-31 | 2015-04-22 | 南京邮电大学 | Electric system load multi-agent control method based on Matlab and Netlogo |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014128137A (en) * | 2012-12-27 | 2014-07-07 | Hitachi Ltd | Power system monitoring control device |
-
2015
- 2015-11-10 CN CN201510759625.0A patent/CN105391090B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104537178A (en) * | 2014-12-31 | 2015-04-22 | 南京邮电大学 | Electric power system joint simulation modeling method based on Matlab and Netlogo |
CN104536304A (en) * | 2014-12-31 | 2015-04-22 | 南京邮电大学 | Electric system load multi-agent control method based on Matlab and Netlogo |
Also Published As
Publication number | Publication date |
---|---|
CN105391090A (en) | 2016-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105391090B (en) | A kind of intelligent grid multiple agent multiple target uniformity optimization method | |
CN111353910A (en) | Economic dispatch method for distributed smart grid based on finite time consistency under directed topology | |
CN107579518B (en) | Method and device for environmental economic dispatching of power system based on MHBA | |
CN110739696B (en) | Integrated scheduling method of demand-side resources and renewable energy in intelligent distribution network environment | |
CN112290601B (en) | Optimized scheduling method and system for flexible interconnection alternating current-direct current power distribution system | |
CN101908172B (en) | A kind of power market hybrid simulation method adopting multiple intelligent agent algorithms | |
CN104536304B (en) | A multi-agent control method for power system load based on Matlab and Netlogo | |
CN104659816A (en) | Improved particle swarm algorithm-based optimized configuration method of distributed electrical connection power distribution system | |
CN110571865B (en) | Active power distribution network source load interaction decision method based on consistency algorithm | |
CN118983830B (en) | Light storage combined system energy storage capacity optimization configuration method considering source-load uncertainty | |
CN115085202A (en) | Power grid multi-region intelligent power collaborative optimization method, device, equipment and medium | |
CN106340890B (en) | For coordinating the distributed control method of power distribution network energy-storage system efficiency for charge-discharge | |
CN117039882A (en) | Resource aggregation regulation and control method and system based on binary consistency algorithm | |
CN115149586A (en) | Distributed energy aggregation regulation and autonomous regulation and control cooperative optimization method and system | |
CN115759370A (en) | Mapping operation method based on MADDPG algorithm | |
CN116307606B (en) | Shared energy storage flexible operation scheduling method based on block chain | |
CN116683541A (en) | An Optimal Scheduling Method for Two-tier Operation of Active Distribution Network Considering Demand Response | |
Glatt et al. | Collaborative energy demand response with decentralized actor and centralized critic | |
Guo et al. | Bi-level economic dispatch strategy for virtual power plants based on electric vehicles aggregation | |
CN114971250B (en) | Comprehensive energy economic dispatch system based on deep Q-learning | |
CN110380420A (en) | A kind of distributed multiple target optimization algorithm of quick self-adapted analytic expression safety | |
CN113689031A (en) | Power distribution network blocking management method based on improved sub-gradient algorithm | |
CN116544995A (en) | Cloud edge cooperation-based energy storage battery consistency charge and discharge control method and system | |
CN111082475B (en) | AC/DC hybrid power distribution network-based coordinated energy management and control method | |
CN115940299A (en) | A collaborative optimization method for active power and reactive power of power distribution system source network load storage |
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 | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20160309 Assignee: Zhangjiagang Institute of Zhangjiagang Assignor: NANJING University OF POSTS AND TELECOMMUNICATIONS Contract record no.: X2020980007094 Denomination of invention: A multi-agent multi-objective consistency optimization method for smart grid Granted publication date: 20171208 License type: Common License Record date: 20201026 |
|
EE01 | Entry into force of recordation of patent licensing contract | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171208 |
|
CF01 | Termination of patent right due to non-payment of annual fee |