CN106296044A - power system risk scheduling method and system - Google Patents
power system risk scheduling method and system Download PDFInfo
- Publication number
- CN106296044A CN106296044A CN201610882652.1A CN201610882652A CN106296044A CN 106296044 A CN106296044 A CN 106296044A CN 201610882652 A CN201610882652 A CN 201610882652A CN 106296044 A CN106296044 A CN 106296044A
- Authority
- CN
- China
- Prior art keywords
- matrix
- knowledge matrix
- knowledge
- risk scheduling
- power system
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 239000011159 matrix material Substances 0.000 claims abstract description 205
- 238000005457 optimization Methods 0.000 claims abstract description 64
- 230000006870 function Effects 0.000 claims abstract description 52
- 230000001580 bacterial effect Effects 0.000 claims abstract description 45
- 241000894006 Bacteria Species 0.000 claims abstract description 44
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 39
- 230000002431 foraging effect Effects 0.000 claims abstract description 24
- 230000002787 reinforcement Effects 0.000 claims abstract description 17
- 238000013508 migration Methods 0.000 claims description 27
- 230000005012 migration Effects 0.000 claims description 27
- 238000012545 processing Methods 0.000 claims description 24
- 230000010076 replication Effects 0.000 claims description 18
- 230000010415 tropism Effects 0.000 claims description 18
- 230000009467 reduction Effects 0.000 claims description 8
- 238000012549 training Methods 0.000 claims description 8
- 230000005283 ground state Effects 0.000 claims description 6
- 238000000547 structure data Methods 0.000 claims description 3
- 230000001617 migratory effect Effects 0.000 claims 2
- 230000003362 replicative effect Effects 0.000 claims 2
- 238000012546 transfer Methods 0.000 abstract description 21
- 238000013526 transfer learning Methods 0.000 abstract description 8
- 230000009471 action Effects 0.000 description 22
- 238000004364 calculation method Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 239000000446 fuel Substances 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000001186 cumulative effect Effects 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 239000003795 chemical substances by application Substances 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000002068 genetic effect Effects 0.000 description 2
- 238000013178 mathematical model Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000010248 power generation Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000009182 swimming Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0635—Risk analysis of enterprise or organisation activities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- Y—GENERAL 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
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Quality & Reliability (AREA)
- Educational Administration (AREA)
- Game Theory and Decision Science (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Supply And Distribution Of Alternating Current (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明涉及一种电力系统风险调度方法和系统,获取电力系统的架构数据以及新任务负荷断面数据;根据架构数据和新任务负荷断面数据,通过细菌觅食强化学习算法对预设的初始知识矩阵进行迭代更新,得到对应的风险调度目标函数值以及更新后的知识矩阵。根据风险调度目标函数值最小时对应的更新后的知识矩阵进行新任务在线优化,得到风险调度优化结果并输出。将源任务中的最优知识矩阵作为新任务的初始矩阵实现知识迁移,利用基于知识迁移的细菌觅食强化学习对新任务进行在线优化。通过迁移学习极大提高了在线学习的速度,实现风险调度问题的在线动态优化,当问题规模进一步扩大仍能保证较快的求解速度,可适应大规模复杂风险调度快速优化。
The present invention relates to a power system risk scheduling method and system, which acquires the architecture data and new task load section data of the power system; according to the architecture data and the new task load section data, the preset initial knowledge matrix is modified by bacteria foraging reinforcement learning algorithm Perform iterative update to obtain the corresponding risk scheduling objective function value and the updated knowledge matrix. According to the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function, the new task is optimized online, and the risk scheduling optimization result is obtained and output. The optimal knowledge matrix in the source task is used as the initial matrix of the new task to realize knowledge transfer, and the new task is optimized online by using the reinforcement learning of bacterial foraging based on knowledge transfer. Through transfer learning, the speed of online learning is greatly improved, and the online dynamic optimization of risk scheduling problems is realized. When the scale of the problem is further expanded, it can still guarantee a faster solution speed, and can adapt to the rapid optimization of large-scale and complex risk scheduling.
Description
技术领域technical field
本发明涉及电力电网技术领域,特别是涉及一种电力系统风险调度方法和系统。The invention relates to the technical field of power grids, in particular to a method and system for power system risk scheduling.
背景技术Background technique
近年来,伴随区域电网互联与高压长距离大容量输电的发展,电力系统的安全稳定运行面临着更为严峻的挑战。为更好地权衡系统安全性与经济效益,增强调度操作抵御运行风险的水平,在发电优化中引入电力系统的风险理论,对风险调度进行了大量研究。In recent years, with the development of regional power grid interconnection and high-voltage long-distance large-capacity transmission, the safe and stable operation of the power system is facing more severe challenges. In order to better balance system security and economic benefits, and enhance the level of dispatching operations against operational risks, the risk theory of power system is introduced in power generation optimization, and a lot of research has been done on risk dispatching.
传统的电力系统风险调度方法是将遗传(genetic algorithm,GA)、量子遗传(quantum genetic algorithm,QGA)、蜂群(artificial bee colony,ABC)、粒子群(particle swarm optimization,PSO)等智能算法应用于电力系统各个优化问题。然而,这类智能算法对相似任务的优化是孤立进行的,不能有效保存过去任务的经验和知识,缺乏自学习能力,每次新任务执行时需重新初始化,导致寻优效率较低,难以适应大规模复杂风险调度的快速优化。The traditional power system risk scheduling method is to apply intelligent algorithms such as genetic algorithm (GA), quantum genetic algorithm (QGA), artificial bee colony (ABC), particle swarm optimization (PSO), etc. various optimization problems in power systems. However, the optimization of similar tasks by such intelligent algorithms is carried out in isolation, cannot effectively preserve the experience and knowledge of past tasks, lacks self-learning ability, and needs to be re-initialized every time a new task is executed, resulting in low optimization efficiency and difficulty in adapting Rapid optimization of large-scale complex risk scheduling.
发明内容Contents of the invention
基于此,有必要针对上述问题,提供一种可适应大规模复杂风险调度快速优化的电力系统风险调度方法和系统。Based on this, it is necessary to provide a power system risk scheduling method and system that can adapt to the rapid optimization of large-scale and complex risk scheduling to address the above problems.
一种电力系统风险调度方法,包括以下步骤:A power system risk scheduling method, comprising the following steps:
获取电力系统的架构数据以及新任务负荷断面数据;Obtain the architecture data of the power system and the load section data of the new task;
根据所述架构数据和所述新任务负荷断面数据,通过细菌觅食强化学习算法对预设的初始知识矩阵进行迭代更新,得到对应的风险调度目标函数值以及更新后的知识矩阵;所述初始知识矩阵为源任务中的最优知识矩阵;According to the framework data and the new task load profile data, the preset initial knowledge matrix is iteratively updated through the bacterial foraging reinforcement learning algorithm to obtain the corresponding risk scheduling objective function value and the updated knowledge matrix; the initial The knowledge matrix is the optimal knowledge matrix in the source task;
根据风险调度目标函数值最小时对应的更新后的知识矩阵进行新任务在线优化,得到风险调度优化结果并输出。According to the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function, the new task is optimized online, and the risk scheduling optimization result is obtained and output.
一种电力系统风险调度系统,包括:A power system risk scheduling system, comprising:
任务数据获取模块,用于获取电力系统的架构数据以及新任务负荷断面数据;The task data acquisition module is used to acquire the structure data of the power system and the load section data of the new task;
知识矩阵更新模块,用于根据所述架构数据和所述新任务负荷断面数据,通过细菌觅食强化学习算法对预设的初始知识矩阵进行迭代更新,得到对应的风险调度目标函数值以及更新后的知识矩阵;所述初始知识矩阵为源任务中的最优知识矩阵;The knowledge matrix update module is used to iteratively update the preset initial knowledge matrix through the bacterial foraging reinforcement learning algorithm according to the architecture data and the new task load section data, to obtain the corresponding risk scheduling objective function value and the updated The knowledge matrix; The initial knowledge matrix is the optimal knowledge matrix in the source task;
风险调度优化模块,用于根据风险调度目标函数值最小时对应的更新后的知识矩阵进行新任务在线优化,得到风险调度优化结果并输出。The risk scheduling optimization module is used to perform online optimization of new tasks according to the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function, and obtain and output the risk scheduling optimization results.
上述电力系统风险调度方法和系统,获取电力系统的架构数据以及新任务负荷断面数据;根据架构数据和新任务负荷断面数据,通过细菌觅食强化学习算法对预设的初始知识矩阵进行迭代更新,得到对应的风险调度目标函数值以及更新后的知识矩阵。根据风险调度目标函数值最小时对应的更新后的知识矩阵进行新任务在线优化,得到风险调度优化结果并输出。将源任务中的最优知识矩阵作为新任务的初始矩阵实现知识迁移,利用基于知识迁移的细菌觅食强化学习对新任务进行在线优化。通过迁移学习极大提高了在线学习的速度,实现风险调度问题的在线动态优化,当问题规模进一步扩大仍能保证较快的求解速度,可适应大规模复杂风险调度快速优化。The above power system risk scheduling method and system obtains the architecture data of the power system and the new task load section data; according to the architecture data and the new task load section data, iteratively updates the preset initial knowledge matrix through the bacterial foraging reinforcement learning algorithm, The corresponding risk scheduling objective function value and the updated knowledge matrix are obtained. According to the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function, the new task is optimized online, and the risk scheduling optimization result is obtained and output. The optimal knowledge matrix in the source task is used as the initial matrix of the new task to realize knowledge transfer, and the new task is optimized online by using the reinforcement learning of bacterial foraging based on knowledge transfer. Through transfer learning, the speed of online learning is greatly improved, and the online dynamic optimization of risk scheduling problems is realized. When the scale of the problem is further expanded, it can still guarantee a faster solution speed, and can adapt to the rapid optimization of large-scale and complex risk scheduling.
附图说明Description of drawings
图1为一实施例中电力系统风险调度方法的流程图;Fig. 1 is a flowchart of a power system risk scheduling method in an embodiment;
图2为一实施例中基于知识迁移的细菌觅食强化学习算法的知识获取示意图;Fig. 2 is the knowledge acquisition schematic diagram of the bacteria foraging reinforcement learning algorithm based on knowledge transfer in an embodiment;
图3为一实施例中基于知识延伸的维度缩减示意图;FIG. 3 is a schematic diagram of dimensionality reduction based on knowledge extension in an embodiment;
图4为一实施例中知识迁移示意图;Fig. 4 is a schematic diagram of knowledge transfer in an embodiment;
图5为一实施例中测试系统拓扑图;Fig. 5 is a test system topology diagram in an embodiment;
图6为一实施例中电力系统风险调度系统的结构图。Fig. 6 is a structural diagram of a power system risk dispatching system in an embodiment.
具体实施方式detailed description
在一个实施例中,一种电力系统风险调度方法,如图1所示,包括以下步骤:In one embodiment, a power system risk scheduling method, as shown in Figure 1, includes the following steps:
步骤S120:获取电力系统的架构数据以及新任务负荷断面数据。Step S120: Obtain the structure data of the power system and the new task load profile data.
电力系统的架构数据具体可包括母线节点、传输线、变压器和发电机等数据。新任务负荷断面数据包括一个或多个负荷断面,每个负荷断面作为一个新任务。获取电力系统的架构数据以及新任务负荷断面数据用于后续进行风险调度优化。The architecture data of the power system may specifically include data such as bus nodes, transmission lines, transformers, and generators. The new task load section data includes one or more load sections, and each load section is regarded as a new task. Obtain the architecture data of the power system and the new task load section data for subsequent risk scheduling optimization.
步骤S130:根据架构数据和新任务负荷断面数据,通过细菌觅食强化学习算法对预设的初始知识矩阵进行迭代更新,得到对应的风险调度目标函数值以及更新后的知识矩阵。Step S130: According to the framework data and the new task load section data, iteratively update the preset initial knowledge matrix through the bacterial foraging reinforcement learning algorithm to obtain the corresponding risk scheduling objective function value and the updated knowledge matrix.
初始知识矩阵为源任务中的最优知识矩阵。将源任务中的最优知识矩阵作为新任务的初始矩阵实现知识迁移,通过细菌群结合细菌觅食优化算法的随机搜索模式与概率空间动作选择策略执行动作选择,实现利用基于知识迁移的细菌觅食强化学习算法(Transfer Bacteria Foraging Optimization,TBFO)对新任务进行在线优化。The initial knowledge matrix is the optimal knowledge matrix in the source task. The optimal knowledge matrix in the source task is used as the initial matrix of the new task to realize knowledge transfer, and the action selection is performed by combining the bacterial group with the random search mode of the bacterial foraging optimization algorithm and the probabilistic space action selection strategy to realize the bacterial foraging based on knowledge transfer. The new task is optimized online using the Transfer Bacteria Foraging Optimization (TBFO) algorithm.
初始知识矩阵的具体类型并不唯一,本实施例中,初始知识矩阵为Q矩阵。Q学习算法中,Q矩阵中的元素Q(s,a)表示在状态s下选择动作a所得累积奖励值的期望。矩阵记录了智能体把状态映射到动作这一过程的知识。将Q矩阵作为记录群体优化信息的知识矩阵,通过分析不同优化任务间的相似性,利用源任务的知识矩阵形成新任务的初始知识矩阵,以知识迁移的方式实现对不同时间断面任务的在线动态优化,确保优化可靠性。The specific type of the initial knowledge matrix is not unique. In this embodiment, the initial knowledge matrix is a Q matrix. In the Q learning algorithm, the element Q(s, a) in the Q matrix represents the expectation of the cumulative reward value obtained by choosing action a in state s. The matrix records the agent's knowledge of the process of mapping states to actions. The Q matrix is used as the knowledge matrix for recording group optimization information. By analyzing the similarity between different optimization tasks, the knowledge matrix of the source task is used to form the initial knowledge matrix of the new task, and the online dynamics of different time-section tasks are realized by knowledge transfer. optimized to ensure optimal reliability.
TBFO算法中细菌群从初始知识矩阵中获得针对特定环境状态的动作策略,并利用从多次重复试验中获得的反馈信息更新原有知识,形成对特定状态的固有反应,以使细菌群觅食过程中累积的能量值达到最大。In the TBFO algorithm, the bacterial group obtains the action strategy for a specific environmental state from the initial knowledge matrix, and uses the feedback information obtained from repeated experiments to update the original knowledge, forming an inherent response to the specific state, so that the bacterial group foraging The energy value accumulated during the process reaches a maximum.
在一个实施例中,步骤S130包括步骤131至步骤136。In one embodiment, step S130 includes step 131 to step 136 .
步骤131:根据架构数据和新任务负荷断面数据,控制细菌在初始知识矩阵的指导下进行趋向性操作、迁徙性操作和复制性操作。Step 131: According to the framework data and new task load section data, the control bacteria perform tropism, migration and replication operations under the guidance of the initial knowledge matrix.
细菌在初始知识矩阵的指导下,通过趋向性操作、迁徙性操作和复制性操作获取知识。TBFO算法中,全部细菌将根据初始知识矩阵对觅食区域进行搜索,并将所得奖励反馈到知识矩阵。如图2所示,按照正在执行的操作,TBFO将细菌划分配为趋向和迁徙两种状态。在算法单次迭代循环中,将两种状态分别赋予一定比例的细菌个体,两组细菌执行完各操作后,计算并排序全部细菌的能量值,进入复制性操作,以使细菌群觅食过程中累积的能量值达到最大。新一轮迭代循中,依据上次迭代中能量值高低对细菌状态进行再分配,能量值较大的细菌保持所在区域不变并进行趋向性操作,能量值较低的细菌执行迁徙性操作。Under the guidance of the initial knowledge matrix, bacteria acquire knowledge through tropism operation, migration operation and replication operation. In the TBFO algorithm, all bacteria will search the foraging area according to the initial knowledge matrix, and feed back the obtained rewards to the knowledge matrix. As shown in Figure 2, TBFO divides bacteria into two states, tropism and migration, according to the operation being performed. In a single iterative cycle of the algorithm, the two states are assigned to a certain proportion of individual bacteria. After the two groups of bacteria perform each operation, the energy values of all bacteria are calculated and sorted, and the replication operation is entered to make the bacteria group feed. The energy value accumulated in reaches the maximum. In the new iteration cycle, the bacterial status is redistributed according to the energy value in the previous iteration. Bacteria with higher energy values keep their area unchanged and perform tropism operations, while bacteria with lower energy values perform migration operations.
具体地,基于能量值排序,将菌群中的优势个体置于趋向状态,仍承担局部搜索的任务。其趋向行为可由下式表示:Specifically, based on the ranking of energy values, the dominant individuals in the flora are placed in the tendency state, and still undertake the task of local search. Its tendency behavior can be expressed by the following formula:
式中,θi(j,k,l)为细菌个体i在第l代迁徙操作、第k代复制操作和第j代趋向操作后的位置;Δ表示游动后确定的随机方向上的单位向量。In the formula, θi ( j ,k,l) is the position of bacterial individual i after the migration operation of the first generation, the replication operation of the kth generation, and the trending operation of the jth generation; Δ represents the unit in the random direction determined after swimming vector.
Ck(i)可以是固定的步长,也可以是变化的步长。本实施例中,Ck(i)为非线性递减的惯性步长,Ck(i)更新方式如下式所示:C k (i) can be a fixed step size or a variable step size. In the present embodiment, C k (i) is the inertial step size of non-linear decrease, and C k (i) update mode is shown in the following formula:
式中:Ck(i)为第k次迭代时的惯性步长,C0为初始游动步长,Ce为最终游动步长,cly为最大迭代步数。In the formula: C k (i) is the inertial step size at the kth iteration, C 0 is the initial walking step size, C e is the final walking step size, and cly is the maximum number of iteration steps.
对处于迁徙状态的细菌,当其满足迁徙概率Ped时,细菌按照动作概率矩阵进行轮盘选择;否则细菌按照最大知识元素对应的动作迁徙(贪婪策略):For bacteria in the migrating state, when the migration probability P ed is met, the bacteria perform roulette selection according to the action probability matrix; otherwise, the bacteria migrate according to the action corresponding to the largest knowledge element (greedy strategy):
式中:上标i表示第i个可控变量,与第i个子知识矩阵相对应,i∈M;M为可控变量集合;上标j表示第j只细菌,j∈N,N为菌群集合;Ped为迁徙概率;r为0~1之间的随机数;as则是概率矩阵Pi在全局范围内选择的动作。当满足迁徙条件时,细菌按照动作概率矩阵Pi执行伪随机轮盘选择;Pi的更新方式如下所示:In the formula: the superscript i represents the i-th controllable variable, corresponding to the i-th sub-knowledge matrix, i∈M; M is the set of controllable variables; the superscript j represents the j-th bacterium, j∈N, N is the bacteria group set; P ed is the migration probability; r is a random number between 0 and 1; a s is the action selected by the probability matrix P i in the global scope. When the migration conditions are met, the bacteria perform pseudo-random roulette selection according to the action probability matrix P i ; the update method of P i is as follows:
式中:β为差异系数,用于放大Qi矩阵元素的差异性;ei属于中间计算矩阵。In the formula: β is the difference coefficient, which is used to amplify the difference of Q i matrix elements; e i belongs to the intermediate calculation matrix.
在一个实施例中,复制性操作中引入了交叉的过程,其交叉方式如下:In one embodiment, a crossover process is introduced in the duplication operation, and the crossover method is as follows:
θi+S/2(j,k,l)=rθi(j,k,l)+(1-r)θi+S/2(j,k,l)θ i+S/2 (j,k,l)=rθ i (j,k,l)+(1-r)θ i+S/2 (j,k,l)
式中:S为细菌个体数,i∈[1,S/2],r为[0,1]内的随机数。In the formula: S is the number of individual bacteria, i ∈ [1, S/2], r is a random number in [0, 1].
步骤132:根据细菌的趋向性操作、迁徙性操作和复制性操作,计算电力系统在基态和预设故障下的潮流值。Step 132: According to the tropism operation, migration operation and replication operation of the bacteria, calculate the power flow value of the power system under the ground state and preset fault.
在细菌的趋向性操作、迁徙性操作和复制性操作结束后,根据相应结果计算计算电力系统在基态和预设故障下的潮流值。基态即指系统未发生系统故障,预设故障的具体种类并不唯一。After the bacterial tropism operation, migration operation and replication operation are over, the power flow value of the power system in the ground state and preset fault is calculated according to the corresponding results. The ground state means that the system does not have a system failure, and the specific type of preset failure is not unique.
步骤133:根据电力系统在基态和预设故障下的潮流值计算得到风险调度目标函数值。Step 133: Calculate the value of the risk scheduling objective function according to the power flow value of the power system under the base state and the preset fault.
在TBFO算法中立即奖励值反映了优化的方向,菌群通过迭代优化知识矩阵获得最优策略,以期望获得最大的累积奖励函数值。在风险调度数学模型中,目标函数为算法奖励函数的倒数,期望通过优化使目标函最小化。本实施例中,奖励函数设计如下:In the TBFO algorithm, the immediate reward value reflects the direction of optimization, and the bacterial group obtains the optimal strategy by iteratively optimizing the knowledge matrix in order to expect to obtain the maximum cumulative reward function value. In the mathematical model of risk scheduling, the objective function is the reciprocal of the reward function of the algorithm, and it is expected to minimize the objective function through optimization. In this embodiment, the reward function is designed as follows:
其中,FC非线性函数描述的燃料成本,IR为非线性效用函数描述的系统安全风险指标。CV是基态下系统总约束的违反程度,c1、c2分别来配合燃料成本与风险指标间的量级关系,ω1、ω2分别用于体现对对应目标的侧重程度。Among them, F C is the fuel cost described by the nonlinear function, and I R is the system safety risk index described by the nonlinear utility function. C V is the degree of violation of the overall constraints of the system in the base state, c 1 and c 2 are used to match the magnitude relationship between fuel costs and risk indicators, and ω 1 and ω 2 are used to reflect the degree of emphasis on the corresponding goals.
步骤134:根据风险调度目标函数值对细菌状态进行再分配。在计算得到风险调度目标函数值之后,根据风险调度目标函数值对细菌状态进行再分配。Step 134: Redistribute the bacterial status according to the value of the risk scheduling objective function. After calculating the value of the risk scheduling objective function, the bacterial status is redistributed according to the value of the risk scheduling objective function.
步骤135:根据再分配后的细菌状态对初始知识矩阵进行迭代更新,得到更新后的知识矩阵。在一个实施例中,步骤135包括步骤11和步骤12。Step 135: Iteratively update the initial knowledge matrix according to the redistributed bacterial status to obtain an updated knowledge matrix. In one embodiment, step 135 includes step 11 and step 12 .
步骤11:对初始知识矩阵进行维度缩减,得到多个子知识矩阵。Step 11: Reduce the dimension of the initial knowledge matrix to obtain multiple sub-knowledge matrices.
如图3所示,为有效解决“维数灾难”问题,采用知识延伸进行维度缩减,将初始知识矩阵Q划分为多个子知识矩阵Qi,与各变量一一对应。变量间通过知识矩阵联系起来,相邻矩阵中的元素为相关知识,也就是说xi的动作空间Ai即为xi+1的状态空间Si+1。只有先确定了变量xi的动作,才能基于其选择结果选择xi+1的动作,从而在相关知识间形成了一种链式的延伸,实现了对知识矩阵的分解降维。As shown in Figure 3, in order to effectively solve the "curse of dimensionality" problem, knowledge extension is used to reduce the dimensionality, and the initial knowledge matrix Q is divided into multiple sub-knowledge matrix Q i , corresponding to each variable one by one. The variables are connected through the knowledge matrix, and the elements in the adjacent matrix are relevant knowledge, that is to say, the action space A i of x i is the state space S i+1 of x i +1. Only after the action of the variable xi is determined, the action of xi+1 can be selected based on the selection result, thus forming a chain extension among related knowledge and realizing the decomposition and dimensionality reduction of the knowledge matrix.
步骤12:根据再分配后的细菌状态对多个子知识矩阵进行更新,得到更新后的知识矩阵。对多个子知识矩阵进行更新,由更新后的多个子知识矩阵便可得到更新后的知识矩阵。Step 12: Update multiple sub-knowledge matrices according to the redistributed bacterial status to obtain an updated knowledge matrix. The multiple sub-knowledge matrices are updated, and an updated knowledge matrix can be obtained from the updated multiple sub-knowledge matrices.
将菌群作为多主体对知识矩阵协同更新,全部细菌共享一个知识矩阵,单次迭代中可同时更新多个知识元素,大大加快了寻优的效率。每次试错探索后会对各主体进行奖励值评估。引入菌群协同后,子知识矩阵Qi更新方式如下:The bacteria group is used as a multi-agent to update the knowledge matrix collaboratively. All bacteria share a knowledge matrix, and multiple knowledge elements can be updated simultaneously in a single iteration, which greatly speeds up the efficiency of optimization. After each trial and error exploration, the reward value of each subject will be evaluated. After the introduction of bacterial group collaboration, the update method of the sub-knowledge matrix Q i is as follows:
式中:R(sij k,sij k+1,aij k)表示第k次迭代在状态sk下选择动作ak转移到状态sk+1时得到的奖励函数值;α为学习因子,γ为折扣因子。In the formula: R(s ij k , s ij k+1 , a ij k ) represents the reward function value obtained when the k-th iteration selects action a k in state s k and transfers to state s k+1 ; α is the learning factor, and γ is the discount factor.
在另一个实施例中,步骤135包括步骤21和步骤23。In another embodiment, step 135 includes step 21 and step 23 .
步骤21:根据再分配后的细菌状态计算初始知识矩阵中各源任务与新任务的有功功率偏差。Step 21: Calculate the active power deviation between each source task and the new task in the initial knowledge matrix according to the redistributed bacterial state.
有功功率偏差定义为源任务和新任务间的相似性,并将有功需求由小到大划分成多个负荷断面:The active power deviation is defined as the similarity between the source task and the new task, and the active demand is divided into multiple load sections from small to large:
[PDs1,PDs2),[PDs2,PDs3),...[PDsi-1,PDsi)...,[PDsn-1,PDsn)[P Ds1 ,P Ds2 ),[P Ds2 ,P Ds3 ),...[P Dsi-1 ,P Dsi )...,[P Dsn - 1 ,P Dsn )
步骤22:根据有功功率偏差由大到小对源任务进行排序,获取前预设个数的源任务。预设个数的具体取值并不唯一,本实施例中,预设个数为两个。Step 22: Sort the source tasks according to the active power deviation from large to small, and obtain the previously preset number of source tasks. The specific value of the preset number is not unique, and in this embodiment, the preset number is two.
步骤23:根据获取的源任务对初始知识矩阵进行更新,得到更新后的知识矩阵。Step 23: Update the initial knowledge matrix according to the acquired source task to obtain an updated knowledge matrix.
以获取两个源任务进行矩阵更新为例,首先计算两个源任务迁移学习的贡献系数,然后根据迁移系数对初始知识矩阵进行更新,得到新任务的知识矩阵。Taking two source tasks for matrix update as an example, first calculate the contribution coefficients of the transfer learning of the two source tasks, and then update the initial knowledge matrix according to the transfer coefficients to obtain the knowledge matrix of the new task.
具体地,假设新任务x的有功需求是PDx,PDi、PDk为源任务中与任务x最接近的两个断面负荷,且满足PDi<PDx<PDk,则两个源任务PDi、PDk对迁移学习的贡献系数η1、η2可由下式计算:Specifically, assuming that the active demand of the new task x is P Dx , P Di and P Dk are the two section loads closest to task x in the source task, and satisfy P Di <P Dx <P Dk , then the two source tasks The contribution coefficients η 1 and η 2 of P Di and P Dk to transfer learning can be calculated by the following formula:
利用线性迁移方式,可以得新任务x的知识矩阵:Using the linear migration method, the knowledge matrix of the new task x can be obtained:
利用与新任务相似度高的知识,使用最接近新任务负荷需求的源任务断面信息进行迁移,避免迁移受到无效知识对新任务学习质量和速率产生负干扰,提高计算准确性。Utilize the knowledge with high similarity to the new task, use the source task section information closest to the new task load requirements for migration, avoid negative interference caused by invalid knowledge on the learning quality and rate of the new task, and improve calculation accuracy.
可以理解,在一个实施例中,还可以是先将初始知识矩阵进行维度缩减得到多个子知识矩阵,然后利用与新任务相似度高的知识对多个子知识矩阵进行更新,得到更新后的知识矩阵。It can be understood that, in one embodiment, it is also possible to reduce the dimensionality of the initial knowledge matrix to obtain multiple sub-knowledge matrices, and then use the knowledge with high similarity to the new task to update the multiple sub-knowledge matrices to obtain an updated knowledge matrix .
步骤136:判断迭代更新是否满足预设条件。Step 136: Determine whether the iterative update satisfies a preset condition.
预设条件的具体类型并不唯一,本实施例中,预设条件为k>kmax或其中,kmax表示预设最大迭代次数;为知识矩阵的2-范数,反映前后两次迭代中知识矩阵的偏差程度。The specific type of preset condition is not unique. In this embodiment, the preset condition is k>k max or Among them, k max represents the preset maximum number of iterations; is the knowledge matrix The 2-norm of , reflects the degree of deviation of the knowledge matrix in the two iterations before and after.
判断迭代更新是否满足预设条件,若否,则将更新后的知识矩阵作为初始知识矩阵,并返回步骤131,再次对知识矩阵进行更新;若是,则迭代更新结束,将最终得到的知识矩阵作为新任务优化所需的优化矩阵。Judging whether the iterative update meets the preset conditions, if not, then use the updated knowledge matrix as the initial knowledge matrix, and return to step 131, and update the knowledge matrix again; if so, the iterative update ends, and the finally obtained knowledge matrix is used as The optimization matrix needed for new task optimization.
步骤S140:根据风险调度目标函数值最小时对应的更新后的知识矩阵进行新任务在线优化,得到风险调度优化结果并输出。Step S140: Perform online optimization of new tasks according to the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function, and obtain and output the risk scheduling optimization result.
在对初始知识矩阵进行迭代更新结束后,将风险调度目标函数值最小时对应的更新后的知识矩阵作为优化矩阵对新任务进行在线优化,得到风险调度优化结果并输出。输出风险调度优化结果的具体方式并不唯一,可以是输出至存储器进行存储,也可以是输出至显示器进行显示。After the iterative update of the initial knowledge matrix, the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function is used as the optimization matrix to optimize the new task online, and the risk scheduling optimization result is obtained and output. The specific way of outputting the risk scheduling optimization result is not unique, it may be output to a memory for storage, or it may be output to a display for display.
此外,在一个实施例中,步骤S130之前,电力系统风险调度方法还包括步骤110。In addition, in one embodiment, before step S130, the power system risk scheduling method further includes step 110.
步骤110:接收源任务进行训练,得到最优知识矩阵作为初始知识矩阵。Step 110: Receive the source task for training, and obtain the optimal knowledge matrix as the initial knowledge matrix.
步骤110可以是在步骤S120之前,也可以是在步骤S120之后。TBFO算法在预学习阶段执行一系列的源任务以获取最优知识矩阵,并从中挖掘出初始知识,为将来相关的新任务做好准备。如图4所示,来自源任务的相关初始知识将用于在线优化中,根据源任务与新任务间的相似性,源任务QS的初始知识矩阵将迁移为新任务QN的初始知识矩阵。Step 110 may be before step S120 or after step S120. The TBFO algorithm performs a series of source tasks in the pre-learning stage to obtain the optimal knowledge matrix, and mines the initial knowledge from it to prepare for future related new tasks. As shown in Figure 4, the relevant initial knowledge from the source task will be used in online optimization. According to the similarity between the source task and the new task, the initial knowledge matrix of the source task QS will be transferred to the initial knowledge matrix of the new task QN .
为了便于更好地理解上述电力系统风险调度方法,下面结合具体实施例进行详细解释说明。In order to facilitate a better understanding of the above power system risk scheduling method, a detailed explanation will be given below in conjunction with specific embodiments.
将某一可靠性测试系统作为风险调度的仿真对象。选取系统基准容量为100MVA,系统中共有24条母线节点、34条传输线/变压器和32台发电机,其拓扑结构如图5所示。在全部10个发电机节点中,将单机容量最大的发电机节点21定为全系统的平衡节点,其余9个节点为PV(电压控制)节点。A certain reliability test system is taken as the simulation object of risk scheduling. The base capacity of the system is selected as 100MVA. There are 24 busbar nodes, 34 transmission lines/transformers and 32 generators in the system. Its topology is shown in Figure 5. Among all 10 generator nodes, the generator node 21 with the largest stand-alone capacity is designated as the balance node of the whole system, and the remaining 9 nodes are PV (voltage control) nodes.
为测试算法对不同负荷水平进行优化的适应性,本实施例进行96个断面的风险调度优化仿真。本实施例中,选取了典型日负荷曲线,并按照时序每隔十五分钟划分一个断面,得到断面1至断面96。In order to test the adaptability of the algorithm to optimize different load levels, this embodiment conducts risk scheduling optimization simulations for 96 sections. In this embodiment, a typical daily load curve is selected, and a section is divided every fifteen minutes according to the time sequence, and section 1 to section 96 are obtained.
基于以上平台,按照以下步骤进行风险调度优化。Based on the above platform, follow the steps below to optimize risk scheduling.
(1)选取PV节点处的发电机有功出力PG为控制变量,动作变量空间A(APG1,APG2,…,APGi)与控制变量空间是一一对应的,i为PV节点上机组总数。前一个变量的动作空间即为下一个变量的状态空间。与各变量状态-动作空间对应的子知识矩阵分别为QPG1,QPG2,…,QPGi。细菌在知识矩阵的指导下,通过趋向性操作、迁徙性操作和复制性操作获取知识。(1) Select the active power output PG of the generator at the PV node as the control variable, the action variable space A (A PG1 , A PG2 ,..., A PGi ) is in one-to-one correspondence with the control variable space, and i is the unit on the PV node total. The action space of the previous variable is the state space of the next variable. The sub-knowledge matrices corresponding to each variable state-action space are Q PG1 , Q PG2 , . . . , Q PGi . Under the guidance of knowledge matrix, bacteria acquire knowledge through tropism operation, migration operation and replication operation.
(2)风险调度的目标函数的计算依赖于非线性潮流计算。若使用标准BFO算法,设Ned、Nre和Nc分别表示迁徙、复制和趋向行为的操作数,最大游动次数为Ns,预想故障集包含故障Np个,则潮流计算次数可多达NedNreNcNs(Np+1)次,使得求解过程极为缓慢。通过对算法寻优模式的改进,去除了原算法的嵌套循环,提高了算法的效率。细菌群结合BFO算法的随机搜索模式与概率空间动作选择策略执行动作选择。(2) The calculation of the objective function of risk scheduling depends on nonlinear power flow calculation. If the standard BFO algorithm is used, let N ed , N re and N c denote the operands of migration, replication and trend behavior respectively, the maximum number of walks is N s , and the expected fault set contains N p faults, then the number of power flow calculations can be more Up to N ed N re N c N s (N p +1) times, making the solution process extremely slow. By improving the optimization mode of the algorithm, the nested loop of the original algorithm is removed, and the efficiency of the algorithm is improved. The bacterial swarm combines the random search mode of the BFO algorithm with the probability space action selection strategy to perform action selection.
(3)将同一节点上有相同燃料成本系数的机组划为一个控制变量,31台机组有功出力为控制变量共划分为13个变量。将前一台机组出力大小作为后一台机组的状态空间。其中,第一台机组的状态空间为当前断面的有功功率大小,从而减小了知识矩阵的维度。(3) Units with the same fuel cost coefficient on the same node are classified as a control variable, and the active output of 31 units is divided into 13 variables as control variables. The output of the former unit is used as the state space of the latter unit. Among them, the state space of the first unit is the active power of the current section, thus reducing the dimension of the knowledge matrix.
(4)在TBFO算法中,立即奖励值反应了优化的方向,菌群通过迭代优化知识矩阵获得最优策略,以期望获得最大的累积奖励函数值。(4) In the TBFO algorithm, the immediate reward value reflects the direction of optimization, and the bacterial group obtains the optimal strategy by iteratively optimizing the knowledge matrix in order to expect to obtain the maximum cumulative reward function value.
(5)将有功功率偏差定义为源任务和新任务间的相似性,并将有功需求由小到大划分成多个负荷断面。(5) The active power deviation is defined as the similarity between the source task and the new task, and the active demand is divided into multiple load sections from small to large.
为避免迁移受到无效知识对新任务学习质量和速率产生负干扰,学习过程中应尽量利用与新任务相似度高的知识,本实施例仅使用最接近新任务负荷需求的两个源任务断面信息进行迁移。假设新任务x的有功需求是PDx,PDi、PDk为源任务中与任务x最接近的两个断面负荷,且满足PDi<PDx<PDk,则获取两个源任务对迁移学习的贡献系数,然后利用线性迁移方式,可以得新任务x的知识矩阵。In order to avoid the negative interference of invalid knowledge on the learning quality and rate of the new task, knowledge with high similarity to the new task should be used as much as possible during the learning process. In this embodiment, only the two source task section information closest to the load requirements of the new task are used. to migrate. Assuming that the active demand of the new task x is P Dx , P Di and P Dk are the two section loads closest to task x in the source task, and satisfying P Di <P Dx <P Dk , then the transfer of the two source task pairs Learning the contribution coefficient, and then using the linear transfer method, the knowledge matrix of the new task x can be obtained.
在完成对初始知识矩阵的迭代更新之后,将风险调度目标函数值最小时对应的更新后的知识矩阵作为优化矩阵对新任务进行在线,得到风险调度优化结果并输出。After the iterative update of the initial knowledge matrix is completed, the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function is used as the optimization matrix to carry out online for new tasks, and the risk scheduling optimization results are obtained and output.
上述电力系统风险调度方法,将源任务中的最优知识矩阵作为新任务的初始矩阵实现知识迁移,利用基于知识迁移的细菌觅食强化学习对新任务进行在线优化。通过迁移学习极大提高了在线学习的速度,实现风险调度问题的在线动态优化,当问题规模进一步扩大仍能保证较快的求解速度,可适应大规模复杂风险调度快速优化。The above power system risk scheduling method uses the optimal knowledge matrix in the source task as the initial matrix of the new task to realize knowledge transfer, and uses knowledge transfer-based bacterial foraging reinforcement learning to optimize the new task online. Through transfer learning, the speed of online learning is greatly improved, and the online dynamic optimization of risk scheduling problems is realized. When the scale of the problem is further expanded, it can still guarantee a faster solution speed, and can adapt to the rapid optimization of large-scale and complex risk scheduling.
在一个实施例中,一种电力系统风险调度系统,如图6所示,包括任务数据获取模块120、知识矩阵更新模块130和风险调度优化模块140。In one embodiment, a power system risk scheduling system, as shown in FIG. 6 , includes a task data acquisition module 120 , a knowledge matrix updating module 130 and a risk scheduling optimization module 140 .
任务数据获取模块120用于获取电力系统的架构数据以及新任务负荷断面数据。电力系统的架构数据具体可包括母线节点、传输线、变压器和发电机等数据,新任务负荷断面数据包括一个或多个负荷断面。获取电力系统的架构数据以及新任务负荷断面数据用于后续进行风险调度优化。The task data acquisition module 120 is used to acquire the architecture data of the power system and the new task load section data. The architecture data of the power system may specifically include data such as bus nodes, transmission lines, transformers, and generators, and the new task load section data includes one or more load sections. Obtain the architecture data of the power system and the new task load section data for subsequent risk scheduling optimization.
知识矩阵更新模块130用于根据架构数据和新任务负荷断面数据,通过细菌觅食强化学习算法对预设的初始知识矩阵进行迭代更新,得到对应的风险调度目标函数值以及更新后的知识矩阵。The knowledge matrix update module 130 is used to iteratively update the preset initial knowledge matrix through the bacterial foraging reinforcement learning algorithm according to the architecture data and the new task load section data, to obtain the corresponding risk scheduling objective function value and the updated knowledge matrix.
初始知识矩阵为源任务中的最优知识矩阵。将源任务中的最优知识矩阵作为新任务的初始矩阵实现知识迁移,通过细菌群结合细菌觅食优化算法的随机搜索模式与概率空间动作选择策略执行动作选择,实现利用TBFO算法对新任务进行在线优化。The initial knowledge matrix is the optimal knowledge matrix in the source task. The optimal knowledge matrix in the source task is used as the initial matrix of the new task to realize knowledge transfer, and the action selection is performed by combining the random search mode of the bacterial foraging optimization algorithm with the bacterial foraging optimization algorithm and the action selection strategy of probability space, and realizes the new task by using the TBFO algorithm. Online optimization.
初始知识矩阵的具体类型并不唯一,本实施例中,初始知识矩阵为Q矩阵。将Q矩阵作为记录群体优化信息的知识矩阵,通过分析不同优化任务间的相似性,利用源任务的知识矩阵形成新任务的初始知识矩阵,以知识迁移的方式实现对不同时间断面任务的在线动态优化,确保优化可靠性。The specific type of the initial knowledge matrix is not unique. In this embodiment, the initial knowledge matrix is a Q matrix. The Q matrix is used as the knowledge matrix for recording group optimization information. By analyzing the similarity between different optimization tasks, the knowledge matrix of the source task is used to form the initial knowledge matrix of the new task, and the online dynamics of different time-section tasks are realized by knowledge transfer. optimized to ensure optimum reliability.
在一个实施例中,知识矩阵更新模块130包括第一处理单元、第二处理单元、第三处理单元、第四处理单元、第五处理单元和第六处理单元。In one embodiment, the knowledge matrix update module 130 includes a first processing unit, a second processing unit, a third processing unit, a fourth processing unit, a fifth processing unit and a sixth processing unit.
第一处理单元用于根据架构数据和新任务负荷断面数据,控制细菌在初始知识矩阵的指导下进行趋向性操作、迁徙性操作和复制性操作。The first processing unit is used to control the bacteria to perform tropism, migration and replication operations under the guidance of the initial knowledge matrix according to the architecture data and the new task load section data.
细菌在初始知识矩阵的指导下,通过趋向性操作、迁徙性操作和复制性操作获取知识。具体地,基于能量值排序,将菌群中的优势个体置于趋向状态,仍承担局部搜索的任务。其趋向行为可由下式表示:Under the guidance of the initial knowledge matrix, bacteria acquire knowledge through tropism operation, migration operation and replication operation. Specifically, based on the ranking of energy values, the dominant individuals in the flora are placed in the tendency state, and still undertake the task of local search. Its tendency behavior can be expressed by the following formula:
Ck(i)可以是固定的步长,也可以是变化的步长。本实施例中,Ck(i)为非线性递减的惯性步长,Ck(i)更新方式如下式所示:C k (i) can be a fixed step size or a variable step size. In the present embodiment, C k (i) is the inertial step size of non-linear decrease, and C k (i) update mode is shown in the following formula:
对处于迁徙状态的细菌,当其满足迁徙概率Ped时,细菌按照动作概率矩阵进行轮盘选择;否则细菌按照最大知识元素对应的动作迁徙(贪婪策略):For bacteria in the migrating state, when the migration probability P ed is met, the bacteria perform roulette selection according to the action probability matrix; otherwise, the bacteria migrate according to the action corresponding to the largest knowledge element (greedy strategy):
当满足迁徙条件时,细菌按照动作概率矩阵Pi执行伪随机轮盘选择aS;Pi的更新方式如下所示:When the migration conditions are met, the bacteria perform pseudo-random roulette selection a S according to the action probability matrix P i ; the update method of P i is as follows:
在一个实施例中,复制性操作中引入了交叉的过程,其交叉方式如下:In one embodiment, a crossover process is introduced in the replication operation, and the crossover method is as follows:
θi+S/2(j,k,l)=rθi(j,k,l)+(1-r)θi+S/2(j,k,l)θ i+S/2 (j,k,l)=rθ i (j,k,l)+(1-r)θ i+S/2 (j,k,l)
第二处理单元用于根据细菌的趋向性操作、迁徙性操作和复制性操作,计算电力系统在基态和预设故障下的潮流值。The second processing unit is used to calculate the power flow value of the power system in the base state and preset fault according to the tropism operation, migration operation and replication operation of the bacteria.
在细菌的趋向性操作、迁徙性操作和复制性操作结束后,根据相应结果计算计算电力系统在基态和预设故障下的潮流值。基态即指系统未发生系统故障,预设故障的具体种类并不唯一。After the tropism operation, migration operation and replication operation of bacteria are over, the power flow value of the power system in the ground state and preset fault is calculated according to the corresponding results. The ground state means that the system does not have a system failure, and the specific type of preset failure is not unique.
第三处理单元用于根据电力系统在基态和预设故障下的潮流值计算得到风险调度目标函数值。The third processing unit is used to calculate the value of the risk scheduling objective function according to the power flow value of the power system in the base state and the preset fault.
在TBFO算法中立即奖励值反应了优化的方向,菌群通过迭代优化知识矩阵获得最优策略,以期望获得最大的累积奖励函数值。在风险调度数学模型中,目标函数为算法奖励函数的倒数,期望通过优化使目标函最小化。本实施例中,奖励函数设计如下:In the TBFO algorithm, the immediate reward value reflects the direction of optimization, and the bacterial group obtains the optimal strategy by iteratively optimizing the knowledge matrix in order to expect to obtain the maximum cumulative reward function value. In the mathematical model of risk scheduling, the objective function is the reciprocal of the reward function of the algorithm, and it is expected to minimize the objective function through optimization. In this embodiment, the reward function is designed as follows:
其中,FC非线性函数描述的燃料成本,IR为非线性效用函数描述的系统安全风险指标。CV是基态下系统总约束的违反程度,c1、c2分别来配合燃料成本与风险指标间的量级关系,ω1、ω2分别用于体现对对应目标的侧重程度。Among them, F C is the fuel cost described by the nonlinear function, and I R is the system safety risk index described by the nonlinear utility function. C V is the degree of violation of the overall constraints of the system in the base state, c 1 and c 2 are used to match the magnitude relationship between fuel costs and risk indicators, and ω 1 and ω 2 are used to reflect the degree of emphasis on the corresponding goals.
第四处理单元用于根据风险调度目标函数值对细菌状态进行再分配。在计算得到风险调度目标函数值之后,根据风险调度目标函数值对细菌状态进行再分配。The fourth processing unit is used to redistribute the bacteria status according to the value of the risk scheduling objective function. After calculating the value of the risk scheduling objective function, the bacterial status is redistributed according to the value of the risk scheduling objective function.
第五处理单元用于根据再分配后的细菌状态对初始知识矩阵进行迭代更新,得到更新后的知识矩阵。The fifth processing unit is configured to iteratively update the initial knowledge matrix according to the redistributed bacterial status to obtain an updated knowledge matrix.
在一个实施例中,第五处理单元包括维度缩减单元和矩阵更新单元。In one embodiment, the fifth processing unit includes a dimensionality reduction unit and a matrix update unit.
维度缩减单元用于对初始知识矩阵进行维度缩减,得到多个子知识矩阵。采用知识延伸进行维度缩减,将初始知识矩阵Q划分为多个子知识矩阵Qi,与各变量一一对应。The dimension reduction unit is used to reduce the dimension of the initial knowledge matrix to obtain multiple sub-knowledge matrices. Dimensionality reduction is carried out by knowledge extension, and the initial knowledge matrix Q is divided into multiple sub-knowledge matrices Q i , which correspond to each variable one by one.
矩阵更新单元用于根据再分配后的细菌状态对多个子知识矩阵进行更新,得到更新后的知识矩阵。对多个子知识矩阵进行更新,由更新后的多个子知识矩阵便可得到更新后的知识矩阵。The matrix update unit is used to update multiple sub-knowledge matrices according to the redistributed bacterial states to obtain updated knowledge matrices. The multiple sub-knowledge matrices are updated, and an updated knowledge matrix can be obtained from the updated multiple sub-knowledge matrices.
将菌群作为多主体对知识矩阵协同更新,全部细菌共享一个知识矩阵,单次迭代中可同时更新多个知识元素,大大加快了寻优的效率。每次试错探索后会对各主体进行奖励值评估。引入菌群协同后,子知识矩阵Qi更新方式如下:The bacteria group is used as a multi-agent to update the knowledge matrix collaboratively. All bacteria share a knowledge matrix, and multiple knowledge elements can be updated simultaneously in a single iteration, which greatly speeds up the efficiency of optimization. After each trial and error exploration, the reward value of each subject will be evaluated. After the introduction of bacterial group collaboration, the update method of the sub-knowledge matrix Q i is as follows:
在另一个实施例中,第五处理单元包括计算单元、提取单元和更新单元。In another embodiment, the fifth processing unit includes a calculation unit, an extraction unit and an update unit.
计算单元用于根据再分配后的细菌状态计算初始知识矩阵中各源任务与新任务的有功功率偏差。有功功率偏差定义为源任务和新任务间的相似性,并将有功需求由小到大划分成多个负荷断面:The calculation unit is used to calculate the active power deviation between each source task and the new task in the initial knowledge matrix according to the redistributed bacterial state. The active power deviation is defined as the similarity between the source task and the new task, and the active demand is divided into multiple load sections from small to large:
[PDs1,PDs2),[PDs2,PDs3),...[PDsi-1,PDsi)...,[PDsn-1,PDsn)[P Ds1 ,P Ds2 ),[P Ds2 ,P Ds3 ),...[P Dsi-1 ,P Dsi )...,[P Dsn - 1 ,P Dsn )
提取单元用于根据有功功率偏差由大到小对源任务进行排序,获取前预设个数的源任务。预设个数的具体取值并不唯一,本实施例中,预设个数为两个。The extraction unit is used to sort the source tasks according to the active power deviation from large to small, and obtain a preset number of source tasks. The specific value of the preset number is not unique, and in this embodiment, the preset number is two.
更新单元用于根据获取的源任务对初始知识矩阵进行更新,得到更新后的知识矩阵。The update unit is used to update the initial knowledge matrix according to the acquired source task to obtain the updated knowledge matrix.
以获取两个源任务进行矩阵更新为例,首先计算两个源任务迁移学习的贡献系数,然后根据迁移系数对初始知识矩阵进行更新,得到新任务的知识矩阵。两个源任务PDi、PDk对迁移学习的贡献系数η1、η2可由下式计算:Taking two source tasks for matrix update as an example, first calculate the contribution coefficients of transfer learning of the two source tasks, and then update the initial knowledge matrix according to the transfer coefficients to obtain the knowledge matrix of the new task. The contribution coefficients η 1 and η 2 of the two source tasks P Di and P Dk to transfer learning can be calculated by the following formula:
利用线性迁移方式,可以得新任务x的知识矩阵:Using the linear migration method, the knowledge matrix of the new task x can be obtained:
利用与新任务相似度高的知识,使用最接近新任务负荷需求的源任务断面信息进行迁移,避免迁移受到无效知识对新任务学习质量和速率产生负干扰,提高计算准确性。Utilize the knowledge with high similarity to the new task, use the source task section information closest to the new task load requirements for migration, avoid the negative interference of invalid knowledge on the learning quality and rate of the new task, and improve the calculation accuracy.
可以理解,在一个实施例中,还可以是第五处理单元包括维度缩减单元和矩阵更新单元,矩阵更新单元包括计算单元、提取单元和更新单元。先将初始知识矩阵进行维度缩减得到多个子知识矩阵,然后利用与新任务相似度高的知识对多个子知识矩阵进行更新,得到更新后的知识矩阵。It can be understood that, in an embodiment, the fifth processing unit may also include a dimension reduction unit and a matrix update unit, and the matrix update unit includes a calculation unit, an extraction unit, and an update unit. First, reduce the dimensions of the initial knowledge matrix to obtain multiple sub-knowledge matrices, and then use the knowledge with high similarity to the new task to update the multiple sub-knowledge matrices to obtain the updated knowledge matrix.
第六处理单元用于判断迭代更新是否满足预设条件,并在迭代更新未满足预设条件时,将更新后的知识矩阵作为初始知识矩阵,并控制第一处理单元再次根据架构数据和新任务负荷断面数据,控制细菌在初始知识矩阵的指导下进行趋向性操作、迁徙性操作和复制性操作。The sixth processing unit is used to judge whether the iterative update satisfies the preset condition, and when the iterative update does not meet the preset condition, use the updated knowledge matrix as the initial knowledge matrix, and control the first processing unit again according to the architecture data and the new task Load section data, control bacteria to perform tropism operation, migration operation and replication operation under the guidance of the initial knowledge matrix.
预设条件的具体类型并不唯一,本实施例中,预设条件为k>kmax或判断迭代更新是否满足预设条件,若否,则将更新后的知识矩阵作为初始知识矩阵再次进行迭代更新,若是,则迭代更新结束,将最终得到的知识矩阵作为新任务优化所需的优化矩阵。The specific type of preset condition is not unique. In this embodiment, the preset condition is k>k max or Determine whether the iterative update meets the preset conditions. If not, use the updated knowledge matrix as the initial knowledge matrix for iterative update again. If so, the iterative update ends, and use the final knowledge matrix as the optimization matrix required for new task optimization. .
风险调度优化模块140用于根据风险调度目标函数值最小时对应的更新后的知识矩阵进行新任务在线优化,得到风险调度优化结果并输出。The risk scheduling optimization module 140 is used to perform online optimization of new tasks according to the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function, and obtain and output the risk scheduling optimization result.
在对初始知识矩阵进行迭代更新结束后,将风险调度目标函数值最小时对应的更新后的知识矩阵作为优化矩阵对新任务进行在线优化,得到风险调度优化结果并输出。输出风险调度优化结果的具体方式并不唯一,可以是输出至存储器进行存储,也可以是输出至显示器进行显示。After the iterative update of the initial knowledge matrix, the updated knowledge matrix corresponding to the minimum value of the risk scheduling objective function is used as the optimization matrix to optimize the new task online, and the risk scheduling optimization result is obtained and output. The specific way of outputting the risk scheduling optimization result is not unique, it may be output to a memory for storage, or it may be output to a display for display.
此外,在一个实施例中,电力系统风险调度系统还包括矩阵训练模块。In addition, in one embodiment, the power system risk scheduling system further includes a matrix training module.
矩阵训练模块用于在知识矩阵更新模块130根据架构数据和新任务负荷断面数据,通过细菌觅食强化学习算法对预设的初始知识矩阵进行迭代更新,得到对应的风险调度目标函数值以及更新后的知识矩阵之前,接收源任务进行训练,得到最优知识矩阵作为初始知识矩阵。TBFO算法在预学习阶段执行一系列的源任务以获取最优知识矩阵,并从中挖掘出初始知识,为将来相关的新任务做好准备。The matrix training module is used to iteratively update the preset initial knowledge matrix through the bacterial foraging reinforcement learning algorithm in the knowledge matrix update module 130 according to the architecture data and the new task load section data, to obtain the corresponding risk scheduling objective function value and the updated Before the knowledge matrix, the source task is received for training, and the optimal knowledge matrix is obtained as the initial knowledge matrix. The TBFO algorithm performs a series of source tasks in the pre-learning stage to obtain the optimal knowledge matrix, and mines the initial knowledge from it to prepare for future related new tasks.
上述电力系统风险调度系统,将源任务中的最优知识矩阵作为新任务的初始矩阵实现知识迁移,利用基于知识迁移的细菌觅食强化学习对新任务进行在线优化。通过迁移学习极大提高了在线学习的速度,实现风险调度问题的在线动态优化,当问题规模进一步扩大仍能保证较快的求解速度,可适应大规模复杂风险调度快速优化。The above power system risk scheduling system uses the optimal knowledge matrix in the source task as the initial matrix of the new task to realize knowledge transfer, and uses bacterial foraging reinforcement learning based on knowledge transfer to optimize the new task online. Through transfer learning, the speed of online learning is greatly improved, and the online dynamic optimization of risk scheduling problems is realized. When the scale of the problem is further expanded, it can still guarantee a faster solution speed, and can adapt to the rapid optimization of large-scale and complex risk scheduling.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as limiting the patent scope of the invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610882652.1A CN106296044B (en) | 2016-10-08 | 2016-10-08 | Power system risk scheduling method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610882652.1A CN106296044B (en) | 2016-10-08 | 2016-10-08 | Power system risk scheduling method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106296044A true CN106296044A (en) | 2017-01-04 |
CN106296044B CN106296044B (en) | 2023-08-25 |
Family
ID=57717240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610882652.1A Active CN106296044B (en) | 2016-10-08 | 2016-10-08 | Power system risk scheduling method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106296044B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106526432A (en) * | 2017-01-06 | 2017-03-22 | 中国南方电网有限责任公司电网技术研究中心 | BFOA-based fault location algorithm and device |
CN108549907A (en) * | 2018-04-11 | 2018-09-18 | 武汉大学 | A kind of data verification method based on multi-source transfer learning |
CN108734419A (en) * | 2018-06-15 | 2018-11-02 | 大连理工大学 | A kind of blast furnace gas Modeling of Scheduling method of knowledge based migration |
CN109460890A (en) * | 2018-09-21 | 2019-03-12 | 浙江大学 | A kind of intelligent self-healing method based on intensified learning and control performance monitoring |
CN109873406A (en) * | 2019-03-28 | 2019-06-11 | 华中科技大学 | A Method for Identifying Weak Lines in Power System |
CN110048461A (en) * | 2019-05-16 | 2019-07-23 | 广东电网有限责任公司 | A kind of more virtual plant dispersion self-discipline optimization methods |
CN111626539A (en) * | 2020-03-03 | 2020-09-04 | 中国南方电网有限责任公司 | Power grid operation section dynamic generation method based on Q reinforcement learning |
CN112749785A (en) * | 2019-10-29 | 2021-05-04 | 株式会社东芝 | Information processing apparatus, information processing method, and program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103199544A (en) * | 2013-03-26 | 2013-07-10 | 上海理工大学 | Reactive power optimization method of electrical power system |
WO2014090037A1 (en) * | 2012-12-10 | 2014-06-19 | 中兴通讯股份有限公司 | Task scheduling method and system in cloud computing |
CN105023056A (en) * | 2015-06-26 | 2015-11-04 | 华南理工大学 | Power grid optimal carbon energy composite flow obtaining method based on swarm intelligence reinforcement learning |
CN105373183A (en) * | 2015-10-20 | 2016-03-02 | 同济大学 | Method for tracking whole-situation maximum power point in photovoltaic array |
-
2016
- 2016-10-08 CN CN201610882652.1A patent/CN106296044B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014090037A1 (en) * | 2012-12-10 | 2014-06-19 | 中兴通讯股份有限公司 | Task scheduling method and system in cloud computing |
CN103199544A (en) * | 2013-03-26 | 2013-07-10 | 上海理工大学 | Reactive power optimization method of electrical power system |
CN105023056A (en) * | 2015-06-26 | 2015-11-04 | 华南理工大学 | Power grid optimal carbon energy composite flow obtaining method based on swarm intelligence reinforcement learning |
CN105373183A (en) * | 2015-10-20 | 2016-03-02 | 同济大学 | Method for tracking whole-situation maximum power point in photovoltaic array |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106526432B (en) * | 2017-01-06 | 2019-05-10 | 中国南方电网有限责任公司电网技术研究中心 | BFOA-based fault location algorithm and device |
CN106526432A (en) * | 2017-01-06 | 2017-03-22 | 中国南方电网有限责任公司电网技术研究中心 | BFOA-based fault location algorithm and device |
CN108549907A (en) * | 2018-04-11 | 2018-09-18 | 武汉大学 | A kind of data verification method based on multi-source transfer learning |
CN108549907B (en) * | 2018-04-11 | 2021-11-16 | 武汉大学 | Data verification method based on multi-source transfer learning |
CN108734419A (en) * | 2018-06-15 | 2018-11-02 | 大连理工大学 | A kind of blast furnace gas Modeling of Scheduling method of knowledge based migration |
CN109460890B (en) * | 2018-09-21 | 2021-08-06 | 浙江大学 | An intelligent self-healing method based on reinforcement learning and control performance monitoring |
CN109460890A (en) * | 2018-09-21 | 2019-03-12 | 浙江大学 | A kind of intelligent self-healing method based on intensified learning and control performance monitoring |
CN109873406A (en) * | 2019-03-28 | 2019-06-11 | 华中科技大学 | A Method for Identifying Weak Lines in Power System |
CN109873406B (en) * | 2019-03-28 | 2019-11-22 | 华中科技大学 | A Method for Identifying Weak Lines in Power System |
CN110048461A (en) * | 2019-05-16 | 2019-07-23 | 广东电网有限责任公司 | A kind of more virtual plant dispersion self-discipline optimization methods |
CN110048461B (en) * | 2019-05-16 | 2021-07-02 | 广东电网有限责任公司 | Multi-virtual power plant decentralized self-discipline optimization method |
CN112749785A (en) * | 2019-10-29 | 2021-05-04 | 株式会社东芝 | Information processing apparatus, information processing method, and program |
CN112749785B (en) * | 2019-10-29 | 2024-12-24 | 株式会社东芝 | Information processing device, information processing method, and program |
CN111626539A (en) * | 2020-03-03 | 2020-09-04 | 中国南方电网有限责任公司 | Power grid operation section dynamic generation method based on Q reinforcement learning |
CN111626539B (en) * | 2020-03-03 | 2023-06-16 | 中国南方电网有限责任公司 | Q reinforcement learning-based power grid operation section dynamic generation method |
Also Published As
Publication number | Publication date |
---|---|
CN106296044B (en) | 2023-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106296044B (en) | Power system risk scheduling method and system | |
Sallam et al. | An improved gaining-sharing knowledge algorithm for parameter extraction of photovoltaic models | |
Sun et al. | An online generator start-up algorithm for transmission system self-healing based on MCTS and sparse autoencoder | |
Kavousi-Fard et al. | Considering uncertainty in the multi-objective stochastic capacitor allocation problem using a novel self adaptive modification approach | |
CN104376389B (en) | Master-slave mode microgrid power load prediction system and method based on load balancing | |
CN111191856B (en) | Regional comprehensive energy system multi-energy load prediction method considering time sequence dynamic characteristics and coupling characteristics | |
Lekouaghet et al. | Adolescent identity search algorithm for parameter extraction in photovoltaic solar cells and modules | |
CN114692965A (en) | Electric vehicle cluster schedulable potential prediction method and device based on digital-analog hybrid driving | |
CN117350423A (en) | A cluster collaborative optimization method for distributed energy systems based on multi-agent reinforcement learning | |
Nhung et al. | Load shedding in microgrids with dual neural networks and AHP algorithm | |
CN109449994B (en) | Power regulation and control method for active power distribution network comprising flexible interconnection device | |
Abou El-Ela et al. | Multiobjective fruit fly optimization algorithm for OPF solution in power system | |
Arsyad et al. | Multi-objective dynamic economic dispatch using Fruit Fly Optimization method | |
CN114611757A (en) | Electric power system short-term load prediction method based on genetic algorithm and improved depth residual error network | |
El Bourakadi et al. | Multi-agent system based on the fuzzy control and extreme learning machine for intelligent management in hybrid energy system | |
CN111047071B (en) | Real-time supply and demand interaction method of power system based on deep transfer learning and Stackelberg game | |
CN111105025A (en) | Congestion management method for urban high-voltage distribution network based on data-driven heuristic optimization | |
CN105184383A (en) | Urban mobile emergency power supply optimal scheduling method based on intelligent optimization method | |
CN117057623A (en) | Comprehensive power grid safety optimization scheduling method, device and storage medium | |
Dehnavi et al. | Application of machine learning and artificial intelligence in design, optimization, and control of power electronics converters for renewable energy-based technologies | |
Sulaiman et al. | Cuckoo search for determining Artificial Neural Network training parameters in modeling operating photovoltaic module temperature | |
CN115528750A (en) | Data model hybrid drive unit combination method for power grid safety and stability | |
Sulaiman et al. | Optimization of an Artificial Neural Network using Firefly Algorithm for modeling AC power from a photovoltaic system | |
Alharbi et al. | Neuromorphic Computing-Based Model for Short-Term Forecasting of Global Horizontal Irradiance In Saudi Arabia | |
Farshi et al. | Hybrid PSO-GA algorithm for automatic generation control of multi-area power system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210810 Address after: 510663 3 building, 3, 4, 5 and J1 building, 11 building, No. 11, Ke Xiang Road, Luogang District Science City, Guangzhou, Guangdong. Applicant after: China South Power Grid International Co.,Ltd. Applicant after: SOUTH CHINA University OF TECHNOLOGY Address before: 510080 water Donggang 8, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong. Applicant before: China South Power Grid International Co.,Ltd. Applicant before: POWER GRID TECHNOLOGY RESEARCH CENTER. CHINA SOUTHERN POWER GRID Applicant before: SOUTH CHINA University OF TECHNOLOGY |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |