CN118630839B - Microgrid capacity configuration method and device based on improved particle swarm algorithm - Google Patents
Microgrid capacity configuration method and device based on improved particle swarm algorithm Download PDFInfo
- Publication number
- CN118630839B CN118630839B CN202411087719.3A CN202411087719A CN118630839B CN 118630839 B CN118630839 B CN 118630839B CN 202411087719 A CN202411087719 A CN 202411087719A CN 118630839 B CN118630839 B CN 118630839B
- Authority
- CN
- China
- Prior art keywords
- particle
- energy storage
- storage unit
- hydrogen
- power generation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- 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
- H02J15/00—Systems for storing electric energy
- H02J15/008—Systems for storing electric energy using hydrogen as energy vector
-
- 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/24—Arrangements for preventing or reducing oscillations of power in networks
-
- 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/28—Arrangements for balancing of the load in a network by storage of energy
-
- 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/28—Arrangements for balancing of the load in a network by storage of energy
- H02J3/32—Arrangements for balancing of the load in a network by storage of energy using batteries with converting means
-
- 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/06—Multi-objective optimisation, e.g. Pareto optimisation using simulated annealing [SA], ant colony algorithms or genetic algorithms [GA]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2113/00—Details relating to the application field
- G06F2113/04—Power grid distribution networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2113/00—Details relating to the application field
- G06F2113/06—Wind turbines or wind farms
-
- 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]
-
- 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
- H02J2300/00—Systems for supplying or distributing electric power characterised by decentralized, dispersed, or local generation
- H02J2300/20—The dispersed energy generation being of renewable origin
- H02J2300/22—The renewable source being solar energy
- H02J2300/24—The renewable source being solar energy of photovoltaic origin
-
- 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
- H02J2300/00—Systems for supplying or distributing electric power characterised by decentralized, dispersed, or local generation
- H02J2300/20—The dispersed energy generation being of renewable origin
- H02J2300/28—The renewable source being wind energy
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- Economics (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Molecular Biology (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Biophysics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Geometry (AREA)
- Biomedical Technology (AREA)
- Computing Systems (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及储能系统配置技术领域,尤其涉及一种基于改进粒子群算法的微电网容量配置方法及装置。The present application relates to the technical field of energy storage system configuration, and in particular to a microgrid capacity configuration method and device based on an improved particle swarm algorithm.
背景技术Background Art
微电网是一种由分布式电源、储能装置、负载等设备组成的电力系统,目前采用新能源发电技术的分布式能源在微电网中的应用越来越广泛,由于新能源发电具有间歇性和波动性,需要配置相关储能装置以实现能量的供需平衡,因此如何合理调整上述设备以实现微电网容量配置成为了现阶段的研究焦点。A microgrid is an electric power system composed of distributed power sources, energy storage devices, loads and other equipment. Currently, distributed energy using renewable energy generation technology is increasingly used in microgrids. Due to the intermittent and volatile nature of renewable energy generation, relevant energy storage devices need to be configured to achieve a balance between energy supply and demand. Therefore, how to reasonably adjust the above-mentioned equipment to achieve microgrid capacity configuration has become the current research focus.
对于含有新能源发电的微电网来说,其运行过程中通常能量波动较大,而在相关技术中,传统的容量配置方法由于算法复杂度高、求解收敛速度较慢等问题,难以满足实际应用需求,导致对微电网的容量配置效率较低。For microgrids that contain renewable energy power generation, the energy fluctuations are usually large during their operation. In related technologies, traditional capacity configuration methods are difficult to meet actual application needs due to problems such as high algorithm complexity and slow solution convergence speed, resulting in low capacity configuration efficiency for microgrids.
发明内容Summary of the invention
本申请提供一种基于改进粒子群算法的微电网容量配置方法及装置,其解决了传统的容量配置算法由于求解收敛速度较慢,导致微电网容量配置效率降低的技术问题,达到了能够应对含有新能源发电的微电网的能量波动性快速求取可行解,从而提高微电网容量配置效率的技术效果。The present application provides a microgrid capacity configuration method and device based on an improved particle swarm algorithm, which solves the technical problem that the traditional capacity configuration algorithm has a slow solution convergence speed, resulting in reduced microgrid capacity configuration efficiency, and achieves the technical effect of being able to quickly obtain a feasible solution to the energy volatility of a microgrid containing renewable energy generation, thereby improving the microgrid capacity configuration efficiency.
为了达到上述目的,本申请采用的主要技术方案包括:In order to achieve the above objectives, the main technical solutions adopted in this application include:
第一方面,本申请实施例提供一种基于改进粒子群算法的微电网容量配置方法,所述微电网容量配置方法包括:In a first aspect, an embodiment of the present application provides a microgrid capacity configuration method based on an improved particle swarm algorithm, the microgrid capacity configuration method comprising:
根据微电网中新能源发电单元、氢储能单元和电池储能单元的数量生成初始粒子;Generate initial particles according to the number of renewable energy generation units, hydrogen energy storage units and battery energy storage units in the microgrid;
将微电网运行成本作为粒子适应度,基于所述初始粒子进行迭代并求取最优解,其中,在每一次迭代过程中对当前的每个粒子对应的微电网的能量运行状态进行分析,以确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代;The microgrid operation cost is used as the particle fitness, and the initial particles are iterated to obtain the optimal solution, wherein the energy operation state of the microgrid corresponding to each current particle is analyzed in each iteration process to determine the particle update parameter, and the corresponding particle is updated based on the particle update parameter to participate in the next iteration;
根据所述最优解调整所述新能源发电单元、所述氢储能单元和所述电池储能单元的数量,以实现对所述微电网的容量配置。The number of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit is adjusted according to the optimal solution to achieve capacity configuration of the microgrid.
本申请实施例提出的微电网容量配置方法,针对微电网中能量运行状态的不同情况,分别设置不同的更新参数以实现对传统的粒子速度更新算法的改进,从而有助于在求解过程中加速粒子离开不可行域并找到可行解,由此可见,本申请实施例能够考虑到微电网因新能源发电造成的能量波动,针对不同的能量运行状态设置更符合实际物理意义的更新参数,并以此适应性地指导调整粒子速度更新算法,有助于粒子找到更加可靠的向最优解的移动方向,加快了迭代与求解速度,以达到快速收敛可行域并提高微电网容量配置效率的效果,进而满足含有新能源发电的微电网的实际应用需求。The microgrid capacity configuration method proposed in the embodiment of the present application sets different update parameters for different energy operation states in the microgrid to improve the traditional particle velocity update algorithm, thereby helping to accelerate particles to leave the infeasible domain and find a feasible solution during the solution process. It can be seen that the embodiment of the present application can take into account the energy fluctuations caused by renewable energy power generation in the microgrid, set update parameters that are more in line with actual physical meanings for different energy operation states, and adaptively guide the adjustment of the particle velocity update algorithm, which helps particles find a more reliable direction of movement to the optimal solution, speeds up iteration and solution speed, and achieves the effect of quickly converging the feasible domain and improving the efficiency of microgrid capacity configuration, thereby meeting the actual application needs of microgrids containing renewable energy power generation.
可选地,所述根据微电网中新能源发电单元、氢储能单元和电池储能单元的数量生成初始粒子,包括:Optionally, generating initial particles according to the number of new energy power generation units, hydrogen energy storage units and battery energy storage units in the microgrid includes:
获取在若干个典型天中满足用户负荷所需要的所述新能源发电单元的基本数量,基于所述基本数量设置取值区间,并在所述取值区间中进行随机取整数,作为所述新能源发电单元的每个初始数量;Obtaining a basic number of the new energy power generation units required to meet user loads on several typical days, setting a value interval based on the basic number, and randomly selecting an integer in the value interval as each initial number of the new energy power generation units;
对于所述新能源发电单元的每个初始数量,基于下式计算所述氢储能单元和所述电池储能单元的初始数量为:For each initial number of the new energy power generation units, the initial numbers of the hydrogen energy storage units and the battery energy storage units are calculated based on the following formula:
; ;
式中,为第m个所述粒子对应的所述新能源发电单元的数量,为第m个所述粒子对应的所述氢储能单元的数量,为第m个所述粒子对应的所述电池储能单元的数量,为所述新能源发电单元在第i种典型天第t个采样时刻的发电功率,为在第i种典型天第t个采样时刻的用户负荷,为所述氢储能单元的额定制氢功率,为所述氢储能单元的额定发电功率,为所述电池储能单元的额定充电功率,为所述电池储能单元的额定放电功率,为典型天的总天数,为采样时刻的总数量;In the formula, is the number of the new energy power generation units corresponding to the mth particle, is the number of the hydrogen energy storage units corresponding to the mth particle, is the number of the battery energy storage units corresponding to the mth particle, is the power generation power of the new energy power generation unit at the t-th sampling time on the i-th typical day, is the user load at the t-th sampling time on the ith typical day, is the rated hydrogen power of the hydrogen energy storage unit, is the rated power generation power of the hydrogen energy storage unit, is the rated charging power of the battery energy storage unit, is the rated discharge power of the battery energy storage unit, is the total number of typical days, is the total number of sampling moments;
将、和作为第m个粒子的初始位置,以生成第m个初始粒子。Will , and As the initial position of the m-th particle, to generate the m-th initial particle.
本申请实施例考虑在满足实际配电需求,直接求取新能源发电单元、氢储能单元和电池储能单元初始数量,以达到生成初始粒子的目的。由此可见,相比于传统粒子求解算法在广域内随机生成初始粒子的方式,本申请实施例采用在一定范围内的随机生成初始粒子的方式,能够提高粒子进入可行域的速度,进而提高后续最优解的求解速度。The embodiment of the present application considers directly obtaining the initial number of new energy power generation units, hydrogen energy storage units and battery energy storage units to meet the actual power distribution needs, so as to achieve the purpose of generating initial particles. It can be seen that compared with the traditional particle solving algorithm that randomly generates initial particles in a wide area, the embodiment of the present application adopts a method of randomly generating initial particles within a certain range, which can increase the speed of particles entering the feasible domain, thereby increasing the speed of solving the subsequent optimal solution.
可选地,所述将微电网运行成本作为粒子适应度,包括:Optionally, taking the microgrid operation cost as the particle fitness includes:
基于每个所述粒子对应的微电网电力成本和新能源弃电率,确定所述微电网电力成本中的最大值和所述新能源弃电率中的最大值;Based on the microgrid power cost and the new energy power abandonment rate corresponding to each of the particles, determining the maximum value of the microgrid power cost and the maximum value of the new energy power abandonment rate;
计算每个所述粒子对应的微电网电力成本与所述微电网电力成本中的最大值的比值以得到第一比值,并计算每个所述粒子对应的新能源弃电率与所述新能源弃电率中的最大值的比值以得到第二比值;Calculating a ratio of a microgrid power cost corresponding to each of the particles to a maximum value among the microgrid power costs to obtain a first ratio, and calculating a ratio of a new energy power abandonment rate corresponding to each of the particles to a maximum value among the new energy power abandonment rates to obtain a second ratio;
将所述第一比值与第二比值之和作为所述粒子适应度。The sum of the first ratio and the second ratio is taken as the particle fitness.
本申请实施例针对微电网容量配置的多目标优化求解需求,采用模糊隶属度函数归一化折衷的方式对微电网电力成本最小和新能源弃电率最小这两个优化目标进行折衷处理,并将折衷处理得到的目标函数作为粒子适应度,从而能够满足微电网容量配置的多目标优化需求。The embodiment of the present application aims at solving the multi-objective optimization needs of microgrid capacity configuration, and uses a fuzzy membership function normalization compromise method to compromise the two optimization goals of minimizing the microgrid power cost and minimizing the new energy power abandonment rate, and uses the objective function obtained by the compromise as the particle fitness, thereby meeting the multi-objective optimization needs of microgrid capacity configuration.
可选地,所述在每一次迭代过程中对当前的每个粒子对应的微电网的能量运行状态进行分析,包括:Optionally, the analyzing the energy operation state of the microgrid corresponding to each current particle in each iteration process includes:
判断当前的每个粒子对应的所述氢储能单元的储氢水平和所述电池储能单元的荷电状态是否同时满足预设的容量约束条件,其中,若满足所述容量约束条件则所述能量运行状态为正常运行状态;若不满足所述容量约束条件则所述能量运行状态为第一异常运行状态;Determine whether the hydrogen storage level of the hydrogen energy storage unit and the charge state of the battery energy storage unit corresponding to each particle currently meet the preset capacity constraint condition at the same time, wherein if the capacity constraint condition is met, the energy operation state is a normal operation state; if the capacity constraint condition is not met, the energy operation state is a first abnormal operation state;
分别获取每个粒子对应的所述新能源发电单元的发电功率与所述新能源发电单元的数量的第一乘积,并将所述第一乘积与用户负荷进行比较,以及在所述第一乘积小于等于所述用户负荷的情况下,若所述新能源发电单元、所述氢储能单元和所述电池储能单元的最大总出力无法满足所述用户负荷,则所述能量运行状态为第二异常运行状态。The first product of the power generation power of the new energy power generation unit corresponding to each particle and the number of the new energy power generation units is obtained respectively, and the first product is compared with the user load. When the first product is less than or equal to the user load, if the maximum total output of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit cannot meet the user load, the energy operation state is the second abnormal operation state.
本申请实施例在对能量运行状态的分析过程中,能够具体识别是由于微电网的能量供应无法满足用户负荷而导致的异常运行状态,还是由于微电网超出容量约束而导致的异常运行状态,进而利用对异常运行状态的合理分析,帮助后续调整加速粒子的速度更新方式以加速粒子收敛到可行域。In the process of analyzing the energy operation status, the embodiment of the present application can specifically identify whether the abnormal operation status is caused by the microgrid's energy supply failing to meet the user's load, or the abnormal operation status is caused by the microgrid exceeding the capacity constraint, and then use the reasonable analysis of the abnormal operation status to help adjust the speed update method of the accelerated particles in the subsequent process to accelerate the particles to converge to the feasible domain.
可选地,所述在所述能量运行状态的分析结果为正常运行状态的情况下,所述确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代,包括:Optionally, when the analysis result of the energy operation state is a normal operation state, determining a particle update parameter, and updating a corresponding particle based on the particle update parameter so as to participate in the next iteration includes:
根据所述氢储能单元的初始储氢水平和所述电池储能单元的初始荷电状态,基于下式分别计算每个粒子对应的第一能量指标为:According to the initial hydrogen storage level of the hydrogen energy storage unit and the initial charge state of the battery energy storage unit, the first energy index corresponding to each particle is calculated based on the following formula:
; ;
式中,为所述粒子在第i种典型天对应的第一能量指标,为所述氢储能单元的额定容量,为氢气高热值,为所述氢储能单元在第i种典型天最后一个采样时刻的制氢水平,SOHini为所述氢储能单元的初始储氢水平,为第m个粒子对应的所述电池储能单元的数量,为所述电池储能单元的额定容量,为所述电池储能单元在第i种典型天最后一个采样时刻的荷电状态,SOCini为所述电池储能单元的初始荷电状态,为所述新能源发电单元在第i种典型天第t个采样时刻的发电功率;In the formula, is the first energy index of the particle corresponding to the i-th typical day, is the rated capacity of the hydrogen energy storage unit, The high calorific value of hydrogen. is the last sampling time of the hydrogen energy storage unit on the i-th typical day The hydrogen production level, SOH ini is the initial hydrogen storage level of the hydrogen energy storage unit, is the number of the battery energy storage units corresponding to the mth particle, is the rated capacity of the battery energy storage unit, is the last sampling time of the battery energy storage unit on the i-th typical day SOC ini is the initial state of charge of the battery energy storage unit, is the power generation power of the new energy power generation unit at the t-th sampling moment on the i-th typical day;
确定所述第一能量指标中的最小值,并计算所述最小值与预设的第一调整向量的转置向量的第二乘积,以及将所述第二乘积作为所述正常运行状态下的速度调整量;Determine a minimum value among the first energy indicators, calculate a second product of the minimum value and a transposed vector of a preset first adjustment vector, and use the second product as a speed adjustment amount under the normal operating state;
将所述正常运行状态下的速度调整量作为所述粒子更新参数,对相应粒子的速度进行调整;Using the speed adjustment amount in the normal operating state as the particle update parameter to adjust the speed of the corresponding particle;
根据调整后的粒子速度对相应粒子的位置进行更新,继而以更新后的粒子参与下一次迭代。The position of the corresponding particle is updated according to the adjusted particle speed, and then the updated particle participates in the next iteration.
可选地,所述氢储能单元的初始储氢水平和所述电池储能单元的初始荷电状态根据以下步骤进行确定:Optionally, the initial hydrogen storage level of the hydrogen energy storage unit and the initial state of charge of the battery energy storage unit are determined according to the following steps:
获取所述容量约束条件中设定的储氢水平上限和储氢水平下限,并将所述储氢水平上限和所述储氢水平下限的平均值作为所述氢储能单元的初始储氢水平;Obtaining the upper limit and lower limit of the hydrogen storage level set in the capacity constraint condition, and taking the average value of the upper limit and lower limit of the hydrogen storage level as the initial hydrogen storage level of the hydrogen energy storage unit;
获取所述容量约束条件中设定的荷电状态上限和荷电状态下限,并将所述荷电状态上限和所述荷电状态下限的平均值作为所述电池储能单元的初始荷电状态。The state of charge upper limit and the state of charge lower limit set in the capacity constraint condition are obtained, and an average value of the state of charge upper limit and the state of charge lower limit is used as the initial state of charge of the battery energy storage unit.
针对正常运行状态的情况,通过能量差的计算判断新能源发电单元的规模是可以有继续缩小的空间还是继续扩大的空间,从而指导粒子更新速度的调整。同时在保留了传统速度更新算法的基础上,让粒子寻优过程与微电网容量配置的实际优化意义更加匹配,有助于粒子找到更加可靠的向最优解的移动方向,加快了迭代速度,进而实现最优解的快速求解,从而提高微电网容量配置效率。In the case of normal operation, the energy difference is calculated to determine whether the scale of the new energy power generation unit can continue to shrink or expand, thereby guiding the adjustment of the particle update speed. At the same time, on the basis of retaining the traditional speed update algorithm, the particle optimization process is more compatible with the actual optimization significance of microgrid capacity configuration, which helps particles find a more reliable direction of movement to the optimal solution, speeds up the iteration speed, and then realizes the rapid solution of the optimal solution, thereby improving the efficiency of microgrid capacity configuration.
可选地,在所述能量运行状态的分析结果为第一异常运行状态的情况下,所述确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代,包括:Optionally, when the analysis result of the energy operation state is the first abnormal operation state, determining the particle update parameter, and updating the corresponding particle based on the particle update parameter so as to participate in the next iteration includes:
获取所述氢储能单元超出所述容量约束条件的第一超出值,并获取所述电池储能单元超出所述容量约束条件的第二超出值;Acquire a first excess value of the hydrogen energy storage unit exceeding the capacity constraint condition, and acquire a second excess value of the battery energy storage unit exceeding the capacity constraint condition;
获取所述氢储能单元超出所述容量约束条件的第一超出值,并获取所述电池储能单元超出所述容量约束条件的第二超出值;Acquire a first excess value of the hydrogen energy storage unit exceeding the capacity constraint condition, and acquire a second excess value of the battery energy storage unit exceeding the capacity constraint condition;
构建第二调整向量,其中,所述第二调整向量的第一维元素为零,所述第二调整向量的第二维元素为所述第一超出值,所述第二调整向量的第三维元素为所述第二超出值;constructing a second adjustment vector, wherein a first dimension element of the second adjustment vector is zero, a second dimension element of the second adjustment vector is the first excess value, and a third dimension element of the second adjustment vector is the second excess value;
将所述第二调整向量的转置向量、相应粒子的位置以及预设系数的第三乘积作为所述第一异常运行状态下的速度调整量;taking a third product of the transposed vector of the second adjustment vector, the position of the corresponding particle and the preset coefficient as a speed adjustment amount under the first abnormal operating state;
将所述第一异常运行状态下的速度调整量作为所述粒子更新参数,对相应粒子的速度进行调整;Using the speed adjustment amount in the first abnormal operation state as the particle update parameter to adjust the speed of the corresponding particle;
根据调整后的粒子速度对相应粒子的位置进行更新,继而以更新后的粒子参与下一次迭代。The position of the corresponding particle is updated according to the adjusted particle speed, and then the updated particle participates in the next iteration.
可选地,在所述能量运行状态的分析结果为第二异常运行状态的情况下,所述确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代,包括:Optionally, when the analysis result of the energy operation state is the second abnormal operation state, determining the particle update parameter, and updating the corresponding particle based on the particle update parameter so as to participate in the next iteration includes:
基于下式计算所述粒子对应的第二能量指标为:The second energy index corresponding to the particle is calculated based on the following formula:
式中,为所述粒子对应的第二能量指标,为在第i种典型天第t个采样时刻的用户负荷,为所述新能源发电单元在第i种典型天第t个采样时刻的发电功率,为所述氢储能单元在第i种典型天第t个采样时刻的发电功率,为所述电池储能单元的额定放电功率,为第m个所述粒子对应的所述新能源发电单元的数量,为第m个所述粒子对应的所述氢储能单元的数量;In the formula, is the second energy index corresponding to the particle, is the user load at the t-th sampling time on the ith typical day, is the power generation power of the new energy power generation unit at the t-th sampling time on the i-th typical day, is the power generation power of the hydrogen energy storage unit at the t-th sampling time on the i-th typical day, is the rated discharge power of the battery energy storage unit, is the number of the new energy power generation units corresponding to the mth particle, is the number of the hydrogen energy storage units corresponding to the m-th particle;
计算所述第二能量指标与预设的第一调整向量的转置向量的第四乘积,并将所述第四乘积作为所述第二异常运行状态下的速度调整量;Calculating a fourth product of the second energy index and a transposed vector of a preset first adjustment vector, and using the fourth product as a speed adjustment amount in the second abnormal operating state;
将所述第二异常运行状态下的速度调整量作为所述粒子更新参数,对相应粒子的速度进行调整;Using the speed adjustment amount in the second abnormal operation state as the particle update parameter to adjust the speed of the corresponding particle;
根据调整后的粒子速度对相应粒子的位置进行更新,继而以更新后的粒子参与下一次迭代。The position of the corresponding particle is updated according to the adjusted particle speed, and then the updated particle participates in the next iteration.
针对两种不同原因导致的异常运行状态,分别以不同的更新参数指导粒子更新速度的调整,并且以传统速度更新算法为基础,在增加参数较少的情况下帮助粒子加速离开不可行域。In view of the abnormal operating states caused by two different reasons, different update parameters are used to guide the adjustment of particle update speed. Based on the traditional speed update algorithm, the particles are helped to accelerate out of the infeasible region with fewer parameters added.
可选地,所述第一调整向量根据以下步骤进行确定:Optionally, the first adjustment vector is determined according to the following steps:
获取所述新能源发电单元、所述氢储能单元和所述电池储能单元的最大功率比为:The maximum power ratio of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit is obtained as follows:
; ;
式中,表示所述新能源发电单元在若干个典型日中的最大发电功率,表示所述氢储能单元的额定制氢功率和额定发电功率中得最大功率值,表示所述电池储能单元的额定充电功率和额定放电功率中的最大功率值;In the formula, represents the maximum power generation of the new energy power generation unit in several typical days, represents the maximum power value obtained between the rated hydrogen production power and the rated power generation power of the hydrogen energy storage unit, Indicates the maximum power value of the rated charging power and the rated discharging power of the battery energy storage unit;
根据所述最大功率比设置所述第一调整向量。The first adjustment vector is set according to the maximum power ratio.
通过上述最大功率比能够反映新能源发电单元、氢储能单元和电池储能单元在微电网中的能量流动能力,从而根据这个最大功率比确定各个单元的数量放缩比例,实现更新参数的合理设置。The above maximum power ratio can reflect the energy flow capacity of the new energy power generation unit, hydrogen energy storage unit and battery energy storage unit in the microgrid, so as to determine the quantity scaling ratio of each unit according to this maximum power ratio and realize the reasonable setting of the update parameters.
第二方面,本申请实施例提供一种基于改进粒子群算法的微电网容量配置装置,所述微电网容量配置装置包括:In a second aspect, an embodiment of the present application provides a microgrid capacity configuration device based on an improved particle swarm algorithm, the microgrid capacity configuration device comprising:
初始化模块,用于根据微电网中新能源发电单元、氢储能单元和电池储能单元的数量生成初始粒子;An initialization module, used to generate initial particles according to the number of new energy power generation units, hydrogen energy storage units and battery energy storage units in the microgrid;
迭代求解模块,用于将微电网运行成本作为粒子适应度,基于所述初始粒子进行迭代并求取最优解,其中,在每一次迭代过程中对当前的每个粒子对应的微电网的能量运行状态进行分析,以确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代;An iterative solution module, used to use the microgrid operation cost as the particle fitness, iterate based on the initial particles and obtain the optimal solution, wherein in each iteration process, the energy operation state of the microgrid corresponding to each current particle is analyzed to determine the particle update parameter, and the corresponding particle is updated based on the particle update parameter so as to participate in the next iteration;
配置模块,用于根据所述最优解调整所述新能源发电单元、所述氢储能单元和所述电池储能单元的数量,以实现对所述微电网的容量配置。A configuration module is used to adjust the number of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit according to the optimal solution to achieve capacity configuration of the microgrid.
本申请实施例提出的微电网容量配置装置,本申请实施例提出的微电网容量配置方法,针对微电网中能量运行状态的不同情况,分别设置不同的更新参数以实现对传统的粒子速度更新算法的改进,从而有助于在求解过程中加速粒子离开不可行域并找到可行解,由此可见,本申请实施例能够考虑到微电网因新能源发电造成的能量波动,针对不同的能量运行状态设置更符合实际物理意义的更新参数,并以此适应性地指导调整粒子速度更新算法,有助于粒子找到更加可靠的向最优解的移动方向,加快了迭代与求解速度,以达到快速收敛可行域并提高微电网容量配置效率的效果,进而满足含有新能源发电的微电网的实际应用需求。The microgrid capacity configuration device proposed in the embodiment of the present application and the microgrid capacity configuration method proposed in the embodiment of the present application respectively set different update parameters for different energy operation states in the microgrid to improve the traditional particle velocity update algorithm, thereby helping to accelerate particles to leave the infeasible domain and find feasible solutions during the solution process. It can be seen that the embodiment of the present application can take into account the energy fluctuations caused by renewable energy power generation in the microgrid, set update parameters that are more in line with the actual physical meaning for different energy operation states, and adaptively guide the adjustment of the particle velocity update algorithm, which helps particles find a more reliable moving direction towards the optimal solution, speeds up iteration and solution speed, so as to achieve the effect of quickly converging the feasible domain and improving the efficiency of microgrid capacity configuration, thereby meeting the actual application needs of microgrids containing renewable energy power generation.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1为本申请实施例提出的一种基于改进粒子群算法的微电网容量配置方法的流程示意图;FIG1 is a flow chart of a microgrid capacity configuration method based on an improved particle swarm algorithm proposed in an embodiment of the present application;
图2为本申请实施例提出的微电网系统架构示意图;FIG2 is a schematic diagram of a microgrid system architecture proposed in an embodiment of the present application;
图3为本申请实施例提出的微电网的能量运行状态的分析流程图;FIG3 is a flowchart of analyzing the energy operation status of a microgrid according to an embodiment of the present application;
图4为本申请实施例提出的一种基于改进粒子群算法的微电网容量配置装置的结构示意图;FIG4 is a schematic diagram of the structure of a microgrid capacity configuration device based on an improved particle swarm algorithm proposed in an embodiment of the present application;
图5为用于执行本申请实施例提出的微电网容量配置方法的一种计算机设备。FIG5 is a computer device for executing the microgrid capacity configuration method proposed in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
微电网容量配置的求解问题旨在确定微电网中新能源发电设备以及各种储能设备的最佳容量,以实现经济、可靠和环保的目标。然而,含有新能源发电的微电网在运行过程中通常面临较大的能量波动,这些波动主要来源于风能、太阳能等新能源具有的间歇性特点,并且新能源发电具有一定的不可预测性,同时用户负荷在一天中的峰谷变化,进一步加剧了能量供需情况的复杂多变。The problem of solving the microgrid capacity configuration aims to determine the optimal capacity of the renewable energy power generation equipment and various energy storage equipment in the microgrid to achieve the goals of economy, reliability and environmental protection. However, microgrids containing renewable energy power generation usually face large energy fluctuations during operation. These fluctuations mainly come from the intermittent characteristics of renewable energy such as wind energy and solar energy, and renewable energy power generation has a certain degree of unpredictability. At the same time, the peak and valley changes of user loads during the day further aggravate the complexity and variability of energy supply and demand.
本说明书提供的基于改进粒子群算法的微电网容量配置方法及装置,可以应用于图2所示的微电网系统架构,该微电网模型架构主要包括以下组成单元:新能源发电单元10、氢储能单元(HydrogenStorageSystem,HSS)20以及电池储能单元(BatteryStorageSystem, BSS)30,其中氢储能单元20包括储氢单元21、电解制氢单元22和燃料电池单元23。通过新能源发电单元10、氢储能单元20和电池储能单元30实现对用户负荷40的能量供应,并由如图2中的箭头示出在运行过程中的能量流动方向,其中新能源发电单元10向用户供电,同时还会有一定的弃电情况。The microgrid capacity configuration method and device based on the improved particle swarm algorithm provided in this specification can be applied to the microgrid system architecture shown in FIG2. The microgrid model architecture mainly includes the following components: a new energy power generation unit 10, a hydrogen storage unit (Hydrogen Storage System, HSS) 20 and a battery storage unit (Battery Storage System, BSS) 30, wherein the hydrogen storage unit 20 includes a hydrogen storage unit 21, an electrolytic hydrogen production unit 22 and a fuel cell unit 23. The energy supply to the user load 40 is realized by the new energy power generation unit 10, the hydrogen storage unit 20 and the battery storage unit 30, and the energy flow direction during operation is shown by the arrow in FIG2, wherein the new energy power generation unit 10 supplies power to the user, and there will be a certain amount of power abandonment at the same time.
如果新能源发电单元10在发电过程中多余的能量,则对氢储能单元20和电池储能单元30充电。特别地,对于氢储能单元20来说,电解制氢单元22通过电解水的方法将来自新能源发电单元10的电能转换为氢能,并将氢能存储在储氢单元21中,最后由燃料电池单元23通过电化学反应将存储在储氢单元21中的氢能转换为电能。在新能源发电单元10无法满足用户负荷40的用电需求时,氢储能单元20和电池储能单元30将向用户负荷40提供电能。If the new energy generation unit 10 has excess energy during the power generation process, the hydrogen energy storage unit 20 and the battery energy storage unit 30 are charged. In particular, for the hydrogen energy storage unit 20, the electrolysis hydrogen production unit 22 converts the electrical energy from the new energy generation unit 10 into hydrogen energy by electrolyzing water, and stores the hydrogen energy in the hydrogen storage unit 21. Finally, the fuel cell unit 23 converts the hydrogen energy stored in the hydrogen storage unit 21 into electrical energy through an electrochemical reaction. When the new energy generation unit 10 cannot meet the electricity demand of the user load 40, the hydrogen energy storage unit 20 and the battery energy storage unit 30 will provide electrical energy to the user load 40.
本申请实施例在上述微电网系统架构的基础上实现微电网容量配置的求解。粒子群算法(Particle Swarm Optimization, PSO)作为一种新兴的智能优化算法,其中粒子模拟鸟群觅食的行为,在解空间中搜索最优解,具有收敛速度快、全局搜索能力强等优点,已被广泛应用于各类优化问题的求解中。然而,传统的粒子群算法往往脱离待求解问题的真实意义,只能盲目地全域求解,不仅对算法的参数依赖性高,且容易陷入局部最优解的问题,还存在收敛速度慢等问题,因此难以满足含有新能源发电的微电网的实际应用需求。The embodiment of the present application realizes the solution of microgrid capacity configuration based on the above-mentioned microgrid system architecture. Particle Swarm Optimization (PSO) is a new intelligent optimization algorithm, in which particles simulate the foraging behavior of bird flocks and search for the optimal solution in the solution space. It has the advantages of fast convergence speed and strong global search ability, and has been widely used in solving various optimization problems. However, the traditional particle swarm algorithm often deviates from the true meaning of the problem to be solved, and can only blindly solve the whole domain. It not only has a high dependence on the parameters of the algorithm, but also easily falls into the problem of local optimal solution. There are also problems such as slow convergence speed, so it is difficult to meet the actual application needs of microgrids containing renewable energy power generation.
在粒子群算法的速度更新部分,其速度更新公式通常可表示为:In the speed update part of the particle swarm algorithm, the speed update formula can usually be expressed as:
; ;
其中,是粒子的速度,是粒子的位置,是粒子的个体最优位置,是全局最优位置,和是服从均匀分布的随机数。in, It is a particle speed, It is a particle location, It is a particle The individual optimal position of is the global optimal position, and is a random number that follows a uniform distribution.
在上述公式中包括惯性项、认知项和社会项,其中惯性项(Inertia Weight)类似于物理学中的惯性,用来保持粒子运动方向和速度的稳定性,避免算法陷入局部最优解而不能跳出,通常以惯性项权重因子来表示。认知项(Cognitive Component)代表了粒子自身的认知能力,即粒子根据个体历史最优位置所代表的自身经验来调整其运动方向,每个粒子记住了自己在搜索过程中找到的最佳位置,称为个体最优解(),认知项通常表示为,用它乘以粒子与其个体最优位置之间的差距调整速度。社会项(SocialComponent)代表了粒子受到群体中其他粒子影响的程度,即通过与群体中其他粒子的协作来调整运动方向,整个群体的全局最优位置称为全局最优解(),社会项通常表示为,用它乘以粒子与全局最优位置之间的差距调整速度。The above formula includes inertia, cognitive and social terms. The inertia term is similar to inertia in physics. It is used to maintain the stability of the direction and speed of particle movement and prevent the algorithm from falling into a local optimal solution and being unable to jump out. It is usually expressed as the inertia weight factor. The cognitive component represents the cognitive ability of the particle itself, that is, the particle adjusts its movement direction according to its own experience represented by its individual historical optimal position. Each particle remembers the best position it has found during the search process, which is called the individual optimal solution ( ), cognitive terms are usually expressed as , multiply it by the gap between the particle and its individual optimal position to adjust the speed. The social component represents the degree to which the particle is affected by other particles in the group, that is, the direction of movement is adjusted by cooperating with other particles in the group. The global optimal position of the entire group is called the global optimal solution ( ), the social term is usually expressed as , and adjust the velocity by multiplying it by the distance between the particle and the global optimal position.
根据本申请实施例,提供了一种基于改进粒子群算法的微电网容量配置方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, an embodiment of a microgrid capacity configuration method based on an improved particle swarm algorithm is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
在本实施例中提供了一种基于改进粒子群算法的微电网容量配置方法,可用于上述的微电网系统架构,图1是根据本申请实施例的基于改进粒子群算法的微电网容量配置方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a microgrid capacity configuration method based on an improved particle swarm algorithm is provided, which can be used for the above-mentioned microgrid system architecture. FIG1 is a flow chart of a microgrid capacity configuration method based on an improved particle swarm algorithm according to an embodiment of the present application. As shown in FIG1 , the process includes the following steps:
步骤S1,根据微电网中新能源发电单元、氢储能单元和电池储能单元的数量生成初始粒子;Step S1, generating initial particles according to the number of new energy power generation units, hydrogen energy storage units and battery energy storage units in the microgrid;
步骤S3,将微电网运行成本作为粒子适应度,基于所述初始粒子进行迭代并求取最优解,其中,在每一次迭代过程中对当前的每个粒子对应的微电网的能量运行状态进行分析,以确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代;Step S3, taking the microgrid operation cost as the particle fitness, iterating based on the initial particles and obtaining the optimal solution, wherein in each iteration process, the energy operation state of the microgrid corresponding to each current particle is analyzed to determine the particle update parameter, and the corresponding particle is updated based on the particle update parameter so as to participate in the next iteration;
步骤S5,根据所述最优解调整所述新能源发电单元、所述氢储能单元和所述电池储能单元的数量,以实现对所述微电网的容量配置。Step S5, adjusting the number of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit according to the optimal solution to achieve capacity configuration of the microgrid.
微电网的容量是指微电网中能够保证稳定供电的负荷的额定容量,新能源发电单元、氢储能单元和电池储能单元的数量作为求解优化问题中的决策变量,调整这些决策变变量即可实现微电网容量的配置,其最优解即为在满足用户负荷需求的前提下能够实现微电网运行成本最低的配置方案。因此以所述新能源发电单元10、所述氢储能单元20和所述电池储能单元30的数量为优化求解问题的决策变量,生成的初始粒子为三维向量,分别表示新能源发电单元10、氢储能单元和电池储能单元的数量,并为初始粒子设置相应的初始位置与初始速度。The capacity of a microgrid refers to the rated capacity of the load in the microgrid that can ensure stable power supply. The number of new energy power generation units, hydrogen energy storage units and battery energy storage units are used as decision variables in solving the optimization problem. Adjusting these decision variables can realize the configuration of the microgrid capacity. The optimal solution is the configuration scheme that can achieve the lowest operating cost of the microgrid under the premise of meeting the user load requirements. Therefore, the number of the new energy power generation unit 10, the hydrogen energy storage unit 20 and the battery energy storage unit 30 is used as the decision variable for the optimization problem, and the generated initial particles are three-dimensional vectors, which respectively represent the number of new energy power generation units 10, hydrogen energy storage units and battery energy storage units, and the corresponding initial position and initial velocity are set for the initial particles.
本申请实施例提出的微电网容量配置方法,针对微电网中能量运行状态的不同情况,分别设置不同的更新参数以实现对传统的粒子速度更新算法的改进,从而有助于在求解过程中加速粒子离开不可行域并找到可行解,由此可见,本申请实施例能够考虑到微电网因新能源发电造成的能量波动,针对不同的能量运行状态设置更符合实际物理意义的更新参数以指导调整粒子速度更新算法,有助于粒子找到更加可靠的向最优解的移动方向,加快了迭代与求解速度,从而提高微电网容量配置效率的效果,满足含有新能源发电的微电网的实际应用需求。The microgrid capacity configuration method proposed in the embodiment of the present application sets different update parameters for different energy operation states in the microgrid to improve the traditional particle speed update algorithm, thereby helping to accelerate particles to leave the infeasible region and find a feasible solution during the solution process. It can be seen that the embodiment of the present application can take into account the energy fluctuations of the microgrid caused by renewable energy power generation, and set update parameters that are more in line with actual physical meanings for different energy operation states to guide the adjustment of the particle speed update algorithm, which helps particles find a more reliable moving direction to the optimal solution, speeds up iteration and solution speed, thereby improving the efficiency of microgrid capacity configuration and meeting the actual application needs of microgrids containing renewable energy power generation.
需要说明的是,本申请实施例通过以天为数据向量长度,基于选定的一段时间的新能源发电、储能充放电和用户负载历史数据,通常选定一年的数据通过K均值、KNN等聚类方法将这段时间分成几类,每一类称为典型天。未来某一天如果被预测为属于某一类典型天,则视为其新能源发电、储能充放电和用户负载情况与该典型天完全相同。It should be noted that the embodiment of the present application uses a day as the length of the data vector, based on the historical data of renewable energy power generation, energy storage charging and discharging, and user load for a selected period of time, usually one year of data is selected, and the period is divided into several categories through clustering methods such as K-means and KNN, each of which is called a typical day. If a future day is predicted to belong to a certain type of typical day, it is considered that its renewable energy power generation, energy storage charging and discharging, and user load conditions are exactly the same as those of the typical day.
在本申请实施例中,所述根据微电网中新能源发电单元、氢储能单元和电池储能单元的数量生成初始粒子,包括以下步骤:In the embodiment of the present application, the generating of initial particles according to the number of new energy power generation units, hydrogen energy storage units and battery energy storage units in the microgrid includes the following steps:
步骤S110,获取在若干个典型天中满足用户负荷所需要的所述新能源发电单元的基本数量,基于所述基本数量设置取值区间,并在所述取值区间中进行随机取整数,作为所述新能源发电单元的每个初始数量。Step S110, obtaining the basic number of the new energy power generation units required to meet user loads in several typical days, setting a value interval based on the basic number, and randomly selecting an integer in the value interval as each initial number of the new energy power generation units.
具体地,所述新能源发电单元的基本数量的计算公式为:Specifically, the calculation formula for the basic number of the new energy power generation units is:
式中,为所述基本数量,为在第i种典型天第t个采样时刻的用户负荷,为所述新能源发电单元在第i种典型天第t个采样时刻的发电功率。In the formula, is the basic quantity, is the user load at the t-th sampling time on the ith typical day, is the power generation power of the new energy power generation unit at the tth sampling moment on the i-th typical day.
上述公式的求解思路在于每个典型天的新能源发电总能量至少要等于用户负荷所需的总能量,在上述公式中,分别对每个典型天的用户总负荷和新能源发电总功率的比值进行计算以得到每个典型天中新能源发电单元要想满足用户负荷所需要的数量,并且将所有典型天中最大的数量作为所述基本数量。The idea of solving the above formula is that the total energy of renewable energy power generation on each typical day must be at least equal to the total energy required by the user load. In the above formula, the ratio of the total user load and the total power of renewable energy power generation on each typical day is calculated to obtain the number of renewable energy power generation units required to meet the user load on each typical day, and the maximum number among all typical days is taken as the basic number.
由于这个计算过程没有考虑储能充放时的能量损失,因此将作为下届,构建取值区间并在该取值区间中随机取M个整数组成数组,该数组中包含了所述新能源发电单元的初始数量。其中为设定值,调整可以加速算法的收敛速度,本申请实施例中根据经验设置,并设置M为200。Since this calculation process does not take into account the energy loss during energy storage charging and discharging, As the next session, construct the value interval And randomly select M integers in the value range to form an array , which contains the initial number of the new energy power generation units. To set the value, adjust It can accelerate the convergence speed of the algorithm. In the embodiment of this application, according to experience, , and set M to 200.
步骤S120,对于所述新能源发电单元的每个初始数量,基于下式计算所述氢储能单元和所述电池储能单元的初始数量为:Step S120, for each initial number of the new energy power generation units, the initial number of the hydrogen energy storage units and the battery energy storage units is calculated based on the following formula:
; ;
式中,为第m个所述粒子对应的所述新能源发电单元的数量,为第m个所述粒子对应的所述氢储能单元的数量,为第m个所述粒子对应的所述电池储能单元的数量,为所述新能源发电单元在第i种典型天第t个采样时刻的发电功率,为在第i种典型天第t个采样时刻的用户负荷,为所述氢储能单元的额定制氢功率,为所述氢储能单元的额定发电功率,为所述电池储能单元的额定充电功率,为所述电池储能单元的额定放电功率,为典型天的总天数,为采样时刻的总数量。In the formula, is the number of the new energy power generation units corresponding to the mth particle, is the number of the hydrogen energy storage units corresponding to the mth particle, is the number of the battery energy storage units corresponding to the mth particle, is the power generation power of the new energy power generation unit at the t-th sampling time on the i-th typical day, is the user load at the t-th sampling time on the ith typical day, is the rated hydrogen power of the hydrogen energy storage unit, is the rated power generation power of the hydrogen energy storage unit, is the rated charging power of the battery energy storage unit, is the rated discharge power of the battery energy storage unit, is the total number of typical days, is the total number of sampling moments.
上述公式的求解思路在于,数组中的每一个整数作为第m个粒子对应的新能源发电单元的初始数量,,假设每个采样时刻均只有氢储能单元或电池储能单元出力,当不考虑储能的容量约束时,必须完全满足每一个采样时刻的充放电都能满足当前的用户负荷需求,这样得到的氢储能单元和电池储能单元的数量组合就一定是足够的,即一定是可行解,因此能够加速进入可行域的速度。The solution to the above formula is that the array Each integer in is the initial number of new energy generation units corresponding to the mth particle , , assuming that only the hydrogen energy storage unit or the battery energy storage unit is output at each sampling moment, when the capacity constraint of the energy storage is not considered, it must be fully satisfied that the charging and discharging at each sampling moment can meet the current user load demand. In this way, the number combination of hydrogen energy storage units and battery energy storage units obtained must be sufficient, that is, it must be a feasible solution, and therefore the speed of entering the feasible domain can be accelerated.
步骤S130,将、和作为第m个粒子的初始位置,以生成第m个初始粒子。Step S130: , and As the initial position of the m-th particle, to generate the m-th initial particle.
通过步骤S110和步骤S120能够得到第m个初始粒子的初始位置为,并为其随机生成每一个维度绝对值不超过的个三维速度向量作为每个初始粒子的初始速度,在本申请实施例中取。Through step S110 and step S120, the initial position of the mth initial particle can be obtained. for , and randomly generate each dimension with an absolute value not exceeding of A three-dimensional velocity vector is used as the initial velocity of each initial particle In the present application example, .
至此完成粒子群算法中的初始粒子的生成,由此可见,相比于传统粒子求解算法在广域内随机生成初始粒子的方式,本申请实施例采用在一定范围内的随机生成初始粒子的方式,这样考虑了实际配网需求而生成的新能源发电单元、氢储能单元和电池储能单元的数量组合,能够提高粒子进入可行域的速度,进而提高后续最优解的求解速度。At this point, the generation of initial particles in the particle swarm algorithm is completed. It can be seen that compared with the traditional particle solving algorithm that randomly generates initial particles in a wide area, the embodiment of the present application adopts a method of randomly generating initial particles within a certain range. In this way, the number combination of new energy power generation units, hydrogen energy storage units and battery energy storage units generated by considering the actual distribution network needs can increase the speed of particles entering the feasible domain, thereby increasing the speed of solving subsequent optimal solutions.
在本申请实施例中,所述将微电网运行成本作为粒子适应度,包括以下步骤:In the embodiment of the present application, the method of using the microgrid operation cost as the particle fitness includes the following steps:
步骤S211,基于每个所述粒子对应的微电网电力成本和新能源弃电率,确定所述微电网电力成本中的最大值和所述新能源弃电率中的最大值。Step S211, based on the microgrid power cost and the renewable energy power abandonment rate corresponding to each of the particles, determining the maximum value of the microgrid power cost and the maximum value of the renewable energy power abandonment rate.
具体地,所述为微电网电力成本为标准化电力成本(Levelized Cost ofElectricity,LCOE),其计算公式为:Specifically, the power cost of the microgrid is the Levelized Cost of Electricity (LCOE), and its calculation formula is:
式中,为全生命周期第种典型天的数量,为典型天种类的总数量。In the formula, For the whole life cycle The number of typical days, is the total number of typical day types.
为总投资成本,具体地: is the total investment cost, specifically:
其中,为一台新能源发电单元对应的投资成本系数,为一台氢储能单元对应的投资成本系数,为一台电池储能单元对应的投资成本系数。in, is the investment cost coefficient corresponding to a new energy power generation unit, is the investment cost coefficient corresponding to a hydrogen energy storage unit, is the investment cost coefficient corresponding to a battery energy storage unit.
为第i种典型天第个采样时刻的运行维护成本,具体地: is the i-th typical day The operation and maintenance cost at each sampling moment is:
其中,为一台新能源发电单元对应的运维成本系数,为一台氢储能单元对应的运维成本系数,为台电池储能单元对应的运维成本系数,为氢储能单元在第i种典型天第t个采样时刻的发电功率,为氢储能单元在第i种典型天第t个采样时刻的制氢功率,为电池储能单元在第i种典型天第t个采样时刻的放电功率,为电池储能单元在第i种典型天第t个采样时刻的充电功率。in, is the operation and maintenance cost coefficient corresponding to a new energy power generation unit, is the operation and maintenance cost coefficient corresponding to a hydrogen energy storage unit, is the operation and maintenance cost coefficient corresponding to each battery energy storage unit, is the power generation of the hydrogen energy storage unit at the t-th sampling time on the i-th typical day, is the hydrogen production power of the hydrogen energy storage unit at the t-th sampling time on the i-th typical day, is the discharge power of the battery energy storage unit at the tth sampling time on the i-th typical day, is the charging power of the battery energy storage unit at the tth sampling moment on the i-th typical day.
所述新能源弃电率R为:The new energy abandonment rate R is:
式中,为新能源发电单元在第i种典型天第t个采样时刻丢弃的新能源发电功率。In the formula, It is the renewable energy power generation power discarded by the renewable energy power generation unit at the tth sampling time on the i-th typical day.
步骤S212,计算每个所述粒子对应的微电网电力成本与所述微电网电力成本中的最大值的比值以得到第一比值,并计算每个所述粒子对应的新能源弃电率与所述新能源弃电率中的最大值的比值以得到第二比值。Step S212, calculating the ratio of the microgrid power cost corresponding to each of the particles to the maximum value of the microgrid power costs to obtain a first ratio, and calculating the ratio of the new energy power abandonment rate corresponding to each of the particles to the maximum value of the new energy power abandonment rate to obtain a second ratio.
步骤S213,将所述第一比值与第二比值之和作为所述粒子适应度。Step S213: taking the sum of the first ratio and the second ratio as the particle fitness.
本申请实施例对多目标采用模糊隶属度函数归一化折衷的方式,具体地,对于第m个粒子计算出的多组目标函数值折衷后的粒子适应度为:The embodiment of the present application adopts a fuzzy membership function normalization compromise method for multiple objectives. Specifically, the particle fitness after compromise of multiple groups of objective function values calculated for the mth particle is for:
由此可以看出,为所述第一比值,为所述第二比值。From this we can see that is the first ratio, is the second ratio.
本申请实施例采用模糊隶属度函数归一化折衷的方式对微电网电力成本最小和新能源弃电率最小这两个优化目标进行折衷处理,并将折衷处理得到的目标函数作为粒子适应度,从而能够满足微电网容量配置的多目标优化需求。The embodiment of the present application uses a fuzzy membership function normalization compromise method to compromise the two optimization objectives of minimizing the microgrid power cost and minimizing the new energy power abandonment rate, and uses the objective function obtained by the compromise as the particle fitness, thereby meeting the multi-objective optimization requirements of the microgrid capacity configuration.
需要说明的是,本申请实施例中无论是还是,其非线性项均为整数决策变量和时刻调度的乘积,也就是说微电网容量配置的优化问题的通常为非线性,但其非线性性并不强,因此优化问题最优解搜索的复杂度较小,适合使用粒子群算法。同时,微电网容量配置优化总是选取不能同时取最值的目标函数,增加了找到全局最优解的机会。基于目标函数的弱非线性性和多目标之间的权衡,本申请实施例选择粒子群算法求解多目标优化,且根据能量管理规则进行能量运行状态的分析,以此设计了新的粒子群速度更新公式。It should be noted that, in the embodiments of the present application, whether still , and its nonlinear terms are all products of integer decision variables and time scheduling, that is to say, the optimization problem of microgrid capacity configuration is usually nonlinear, but its nonlinearity is not strong, so the complexity of searching for the optimal solution of the optimization problem is relatively small, and it is suitable for the use of particle swarm algorithm. At the same time, microgrid capacity configuration optimization always selects objective functions that cannot take the maximum value at the same time, which increases the chance of finding the global optimal solution. Based on the weak nonlinearity of the objective function and the trade-off between multiple objectives, the embodiment of the present application selects the particle swarm algorithm to solve the multi-objective optimization, and analyzes the energy operation status according to the energy management rules, so as to design a new particle swarm speed update formula.
在本申请实施例中,所述在每一次迭代过程中对当前的每个粒子对应的微电网的能量运行状态进行分析,包括:In the embodiment of the present application, the energy operation state of the microgrid corresponding to each current particle is analyzed in each iteration process, including:
判断当前的每个粒子对应的所述氢储能单元的储氢水平和所述电池储能单元的荷电状态是否同时满足预设的容量约束条件,其中,若满足所述容量约束条件则所述能量运行状态为正常运行状态;若不满足所述容量约束条件则所述能量运行状态为第一异常运行状态;Determine whether the hydrogen storage level of the hydrogen energy storage unit and the charge state of the battery energy storage unit corresponding to each particle currently meet the preset capacity constraint condition at the same time, wherein if the capacity constraint condition is met, the energy operation state is a normal operation state; if the capacity constraint condition is not met, the energy operation state is a first abnormal operation state;
分别获取每个粒子对应的所述新能源发电单元的发电功率与所述新能源发电单元的数量的第一乘积,并将所述第一乘积与用户负荷进行比较,以及在所述第一乘积小于等于所述用户负荷的情况下,若所述新能源发电单元、所述氢储能单元和所述电池储能单元的最大总出力无法满足所述用户负荷,则所述能量运行状态为第二异常运行状态。The first product of the power generation power of the new energy power generation unit corresponding to each particle and the number of the new energy power generation units is obtained respectively, and the first product is compared with the user load. When the first product is less than or equal to the user load, if the maximum total output of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit cannot meet the user load, the energy operation state is the second abnormal operation state.
图3示出了对于第i种典型天,针对第m个粒子的上述能量运行状态的分析流程,下面对该分析流程进行具体说明:FIG3 shows the analysis process of the energy operation state of the mth particle for the i-th typical day. The analysis process is described in detail below:
步骤S221,判断新能源发电功率是否满足负载,即判断是否满足,若满足则执行步骤S222至步骤S226,若不满足则执行步骤S227至S2210。Step S221, determine whether the power generated by the new energy source meets the load, that is, determine whether it meets the If the conditions are met, execute steps S222 to S226; if not, execute steps S227 to S2210.
步骤S222,计算氢储能单元的制氢功率,其计算过程为:Step S222, calculating the hydrogen production power of the hydrogen energy storage unit , and its calculation process is:
步骤S223,判断步骤S222计算的制氢功率是否为额定制氢功率,即判断是否有,若是则执行步骤S224,否则执行步骤S2211。Step S223, judging whether the hydrogen production power calculated in step S222 is the rated hydrogen production power, i.e. judging whether If so, execute step S224; otherwise, execute step S2211.
步骤S224,计算电池储能单元的充电功率,其计算过程为:Step S224, calculating the charging power of the battery energy storage unit , and its calculation process is:
步骤S225,判断步骤S224计算的充电功率是否为额定充电功率,即判断是否有,若是则执行步骤S226,否则执行步骤S2211。Step S225, determining whether the charging power calculated in step S224 is the rated charging power, that is, determining whether If so, execute step S226; otherwise, execute step S2211.
步骤S226,计算丢弃的新能源发电功率并执行步骤 S2211,其计算过程为:Step S226, calculating the discarded new energy power generation And execute step S2211, the calculation process is:
步骤S227,计算氢储能单元的发电功率,其计算过程为:Step S227, calculating the power generation of the hydrogen energy storage unit , and its calculation process is:
步骤S228,判断步骤S227计算的发电功率是否为额定发电功率,即判断是否有,若是则执行步骤S229,否则执行步骤S2211。Step S228, judging whether the power generated by step S227 is the rated power generated, i.e. judging whether If so, execute step S229; otherwise, execute step S2211.
步骤S229,判断电池储能单元的放电电功率是否满足用户负荷,即判断是否满足:Step S229, determining the discharge power of the battery energy storage unit Whether the user load is met, that is, whether:
若满足则执行步骤S2210,若不满足则判定对第m个粒子的分析结果为第二异常运行状态并结束流程。If the conditions are met, step S2210 is executed. If not, the analysis result of the mth particle is determined to be in the second abnormal operation state and the process ends.
步骤S2210,计算电池储能单元的放电功率,并在完成计算后执行步骤S2211,其中放电功率的计算过程为:Step S2210, calculating the discharge power of the battery energy storage unit , and after completing the calculation, execute step S2211, where the discharge power The calculation process is:
步骤S2211,计算氢储能单元的储氢水平和电池储能单元的荷电状态,其计算过程为:Step S2211, calculating the hydrogen storage level of the hydrogen energy storage unit and the state of charge of the battery storage unit , and its calculation process is:
式中,为氢储能单元的制氢效率,为氢储能单元的发电效率,HHV为作为常数的氢气高热值,为氢储能单元额定容量,为电池储能单元的充电能量效率,为电池储能单元的放电能量效率,为电池储能单元的额定容量。和分别表示在第i种典型天的第t+1个采样时刻和第t个采样时刻的储氢水平,和分别表示在第i种典型天的第t+1个采样时刻和第t个采样时刻的荷电水平。In the formula, is the hydrogen production efficiency of the hydrogen energy storage unit, is the power generation efficiency of the hydrogen energy storage unit, HHV is the higher heating value of hydrogen as a constant, is the rated capacity of the hydrogen energy storage unit, is the charging energy efficiency of the battery energy storage unit, is the discharge energy efficiency of the battery energy storage unit, is the rated capacity of the battery energy storage unit. and They represent the hydrogen storage levels at the t+1th sampling time and the tth sampling time on the i-th typical day, respectively. and They represent the charge levels at the t+1th sampling time and the tth sampling time on the i-th typical day respectively.
步骤S2212,判断储氢水平和荷电状态是否满足约束,即判断是否满足 Step S2212, determine whether the hydrogen storage level and the state of charge meet the constraints, that is, determine whether
式中,和分别为预设的储氢水平上限和储氢水平下限,和分别为预设的荷电状态上限和荷电状态下限;In the formula, and are the preset upper and lower limits of hydrogen storage level, respectively. and They are respectively the preset upper limit of state of charge and the lower limit of state of charge;
若满足则执行t=t+1,并在的情况下返回步骤S221循环执行,直至t=24判定对第m个粒子的分析结果为正常运行状态并结束流程;If it is satisfied, execute t=t+1, and In the case of t=24, the process returns to step S221 and executes in a loop until the analysis result of the m-th particle is determined to be in a normal operating state and the process ends;
若不满足则判定对第m个粒子的分析结果为第一异常运行状态并结束流程。If not, the analysis result of the mth particle is determined to be the first abnormal operation state and the process ends.
从上述分析流程可以看出,本申请实施例中异常的运行状态主要由两种情况导致,一种是当电池储能单元放电和氢储能单元发电功率达到最大,用户负荷依旧无法被满足,此时增大新能源发电规模或者增大储能发电规模都有可能让异常的运行状态消失。另一种是当电池储能单元和氢储能单元超出容量约束,无论是容量不够还是溢出,减小新能源发电规模或扩大相应的储能规模均有可能让异常的运行状态消失。From the above analysis process, it can be seen that the abnormal operating state in the embodiment of the present application is mainly caused by two situations. One is that when the discharge of the battery energy storage unit and the power generation of the hydrogen energy storage unit reach the maximum, the user load still cannot be met. At this time, increasing the scale of new energy power generation or increasing the scale of energy storage power generation may make the abnormal operating state disappear. The other is when the battery energy storage unit and the hydrogen energy storage unit exceed the capacity constraint, whether it is insufficient capacity or overflow, reducing the scale of new energy power generation or expanding the corresponding energy storage scale may make the abnormal operating state disappear.
因此本申请实施例在对能量运行状态的分析过程中,能够识别出微电网的能量供需是否正常,并利用对异常运行状态的合理分析,帮助后续调整加速粒子的速度更新方式以加速粒子收敛到可行域。Therefore, in the process of analyzing the energy operation status, the embodiment of the present application can identify whether the energy supply and demand of the microgrid is normal, and use reasonable analysis of the abnormal operation status to help subsequently adjust the speed update method of the accelerated particles to accelerate the particles to converge to the feasible domain.
针对上述正常运行状态、第一异常运行状态和第二异常运行状态,本申请实施例分别提出了相应的粒子速度更新方法,改进的粒子群算法分别针对于正常运行状态和两种不同原因造成的异常运行状态改进了速度更新公式,有助于粒子找到更加可靠的向最优解的移动方向,加快了迭代速度,以下进行具体说明。For the above-mentioned normal operating state, the first abnormal operating state and the second abnormal operating state, the embodiments of the present application respectively propose corresponding particle speed update methods, and the improved particle swarm algorithm improves the speed update formula for the normal operating state and the abnormal operating state caused by two different reasons, which helps particles find a more reliable moving direction to the optimal solution and speeds up the iteration speed. The specific description is given below.
在所述能量运行状态的分析结果为正常运行状态的情况下,所述确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代,包括以下步骤:In the case that the analysis result of the energy operation state is a normal operation state, determining the particle update parameter and updating the corresponding particle based on the particle update parameter so as to participate in the next iteration includes the following steps:
步骤S2311,根据所述氢储能单元的初始储氢水平和所述电池储能单元的初始荷电状态,基于下式分别计算每个粒子对应的第一能量指标为:Step S2311, according to the initial hydrogen storage level of the hydrogen energy storage unit and the initial state of charge of the battery energy storage unit, the first energy index corresponding to each particle is calculated based on the following formula:
; ;
式中,为所述粒子在第i种典型天对应的第一能量指标,为所述氢储能单元的额定容量,为氢气高热值,为所述氢储能单元在第i种典型天最后一个采样时刻的制氢水平,为所述氢储能单元的初始储氢水平,为第m个粒子对应的所述电池储能单元的数量,为所述电池储能单元的额定容量,为所述电池储能单元在第i种典型天最后一个采样时刻的荷电状态,为所述电池储能单元的初始荷电状态,为所述新能源发电单元在第i种典型天第t个采样时刻的发电功率。In the formula, is the first energy index of the particle corresponding to the i-th typical day, is the rated capacity of the hydrogen energy storage unit, The high calorific value of hydrogen. is the last sampling time of the hydrogen energy storage unit on the i-th typical day The level of hydrogen production is the initial hydrogen storage level of the hydrogen energy storage unit, is the number of the battery energy storage units corresponding to the mth particle, is the rated capacity of the battery energy storage unit, is the last sampling time of the battery energy storage unit on the i-th typical day The state of charge, is the initial state of charge of the battery energy storage unit, is the power generation power of the new energy power generation unit at the tth sampling moment on the i-th typical day.
其中,所述氢储能单元的初始储氢水平和所述电池储能单元的初始荷电状态的确定方法包括:Wherein, the method for determining the initial hydrogen storage level of the hydrogen energy storage unit and the initial state of charge of the battery energy storage unit includes:
获取所述容量约束条件中设定的储氢水平上限和储氢水平下限,并将所述储氢水平上限和所述储氢水平下限的平均值作为所述氢储能单元的初始储氢水平,即有。The upper limit and lower limit of the hydrogen storage level set in the capacity constraint are obtained, and the average value of the upper limit and lower limit of the hydrogen storage level is used as the initial hydrogen storage level of the hydrogen energy storage unit, that is, .
获取所述容量约束条件中设定的荷电状态上限和荷电状态下限,并将所述荷电状态上限和所述荷电状态下限的平均值作为所述电池储能单元的初始荷电状态,即有。。The upper and lower limits of the state of charge set in the capacity constraint are obtained, and the average value of the upper and lower limits of the state of charge is used as the initial state of charge of the battery energy storage unit, that is, . .
以上计算过程的实际物理意义在于分析相对于用户负荷的能量供需,其多余或不够的能量可以折算称多少个单日的新能源发电总量。若均大于零,则新能源规模还有缩小的空间,且为了保证运行安全,新能源的规模缩小通常意味着储能规模的缩小。若不均大于零,则新能源发电的规模还有扩大的空间。其原因在于,如果不均大于零,直接缩小新能源发电的规模可能导致小于零的那个单日发生超过容量约束的情况,导致微电网运行安全风险。The actual physical significance of the above calculation process is to analyze the energy supply and demand relative to the user load, and how much of the total amount of new energy power generation per day can be converted into the excess or insufficient energy. If both are greater than zero, there is still room for the scale of new energy to be reduced, and in order to ensure operational safety, the reduction in the scale of new energy usually means the reduction in the scale of energy storage. If the unevenness is greater than zero, there is still room for the scale of renewable energy power generation to expand. The reason is that if If the unevenness is greater than zero, directly reducing the scale of renewable energy power generation may result in exceeding the capacity constraint on the day when the unevenness is less than zero, leading to safety risks in the operation of the microgrid.
步骤S2312,确定所述第一能量指标中的最小值,并计算所述最小值与预设的第一调整向量的转置向量的第二乘积,以及将所述第二乘积作为所述正常运行状态下的速度调整量。Step S2312: determine the minimum value of the first energy indicators, calculate a second product of the minimum value and a transposed vector of a preset first adjustment vector, and use the second product as the speed adjustment amount in the normal operating state.
步骤S2313,将所述正常运行状态下的速度调整量作为所述粒子更新参数,对相应粒子的速度进行调整。Step S2313: Using the speed adjustment amount in the normal operating state as the particle update parameter, the speed of the corresponding particle is adjusted.
步骤S2314,根据调整后的粒子速度对相应粒子的位置进行更新,继而以更新后的粒子参与下一次迭代。Step S2314, updating the position of the corresponding particle according to the adjusted particle speed, and then using the updated particle to participate in the next iteration.
具体地,若均大于零,计算最小能量差,并依据其更新速度为:Specifically, if are all greater than zero, calculate the minimum energy difference , and based on its update speed for:
; ;
若不均大于零,则找到中负项的最小值,并依据其更新速度为:like If the difference is greater than zero, then find Minimum value of negative term , and based on its update speed for:
。 .
其中,、、、、和为更新参数,可参考惯性项权重因子来设置,可参考认知项设置,可参考社会项设置,为该粒子的当前个体最优位置如果不存在则不考虑包含的这一项;所有粒子群体的全局最优位置,如果不存在则不考虑包含的这一项;为粒子在第j次迭代的位置,为粒子在第j+1次迭代的速度,是0,1之间的随机数。in, , , , , and To update the parameters, Refer to the inertia weight factor To set, Reference cognitive items set up, Please refer to social items set up, The current individual optimal position of the particle. If it does not exist, it will not be considered. This one; The global optimal position of all particle groups. If it does not exist, it will not be considered. This one; is the position of the particle at the jth iteration, is the velocity of the particle at the j+1th iteration, is a random number between 0 and 1.
由此可见,式中的即为步骤S2312中确定的第一调整向量,式中的和即为步骤S2312中确定的速度调整量,且该公式弱化了全局、局部最优解的影响,有效避免了粒子陷入局部最优解和粒子群低速迭代全局最优解的情况。It can be seen that That is, the first adjustment vector determined in step S2312, where and This is the speed adjustment amount determined in step S2312, and this formula weakens the influence of the global and local optimal solutions, effectively avoiding the situation where particles fall into the local optimal solution and the particle swarm iterates the global optimal solution at a low speed.
在所述能量运行状态的分析结果为第一异常运行状态的情况下,所述确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代,包括以下步骤:In the case where the analysis result of the energy operation state is the first abnormal operation state, determining the particle update parameter and updating the corresponding particle based on the particle update parameter so as to participate in the next iteration includes the following steps:
步骤S2321,获取所述氢储能单元超出所述容量约束条件的第一超出值,并获取所述电池储能单元超出所述容量约束条件的第二超出值。Step S2321, obtaining a first excess value of the hydrogen energy storage unit exceeding the capacity constraint condition, and obtaining a second excess value of the battery energy storage unit exceeding the capacity constraint condition.
具体地,设第一超出值为,第二超出值为,若氢储能单元超过最大容量约束,则有 Specifically, let the first excess value be , the second excess value is , if the hydrogen energy storage unit exceeds the maximum capacity constraint, then
若氢储能单元超过最小容量约束,则有 If the hydrogen storage unit exceeds the minimum capacity constraint, then
若氢储能单元未超过容量约束,则有。If the hydrogen energy storage unit does not exceed the capacity constraint, then .
同理,若电池储能单元超过最大容量约束,则有 Similarly, if the battery storage unit exceeds the maximum capacity constraint, then
若电池储能单元超过最小容量约束,则有 If the battery storage unit exceeds the minimum capacity constraint, then
若电池储能单元未超过容量约束,则有。If the battery storage unit does not exceed the capacity constraint, then .
步骤S2322,构建第二调整向量,其中,所述第二调整向量的第一维元素为零,所述第二调整向量的第二维元素为所述第一超出值,所述第二调整向量的第三维元素为所述第二超出值。Step S2322: construct a second adjustment vector, wherein a first-dimensional element of the second adjustment vector is zero, a second-dimensional element of the second adjustment vector is the first excess value, and a third-dimensional element of the second adjustment vector is the second excess value.
步骤S2323,将所述第二调整向量的转置向量、相应粒子的位置以及预设系数的第三乘积作为所述第一异常运行状态下的速度调整量。Step S2323: taking the third product of the transposed vector of the second adjustment vector, the position of the corresponding particle and the preset coefficient as the speed adjustment amount in the first abnormal operating state.
步骤S2324,将所述第一异常运行状态下的速度调整量作为所述粒子更新参数,对相应粒子的速度进行调整。Step S2324: Using the speed adjustment amount in the first abnormal operation state as the particle update parameter, the speed of the corresponding particle is adjusted.
步骤S2325,根据调整后的粒子速度对相应粒子的位置进行更新,继而以更新后的粒子参与下一次迭代。Step S2325, updating the position of the corresponding particle according to the adjusted particle speed, and then using the updated particle to participate in the next iteration.
具体地,根据上述计算指导扩大储能容量,因此速度更新为:Specifically, the energy storage capacity is expanded according to the above calculation guidance, so the speed is updated for:
。 .
式中,为参考惯性项权重因子设置的更新参数,需要设置为比小的值,这是因为异常运行状态对应的粒子相比正常运行状态时的自身参考性更小;为预设系数,其设置的值越大则和指导速度更新的权重越大。In the formula, is the reference inertia weight factor The update parameters set, Need to be set to Small value, this is because the particles corresponding to the abnormal operation state have less self-reference than those in the normal operation state; is the preset coefficient. The larger the value is, the and The greater the weight of guiding speed update.
由此可见,式中的即为步骤S2322中确定的第二调整向量,式中的即为步骤S2323中确定的速度调整量,且该公式弱化了全局、局部最优解的影响,有效避免了粒子陷入局部最优解和粒子群低速迭代全局最优解的情况。It can be seen that That is, the second adjustment vector determined in step S2322, where This is the speed adjustment amount determined in step S2323, and this formula weakens the influence of the global and local optimal solutions, effectively avoiding the situation where particles fall into the local optimal solution and the particle swarm iterates the global optimal solution at a low speed.
需要说明的是,在上述公式中第二调整向量与当前粒子位置相乘,是因为在进行储能容量扩大过程中,扩大的数量直接与目前的数量成比例。It should be noted that in the above formula, the second adjustment vector is multiplied by the current particle position because in the process of expanding the energy storage capacity, the amount of expansion is directly proportional to the current amount.
在所述能量运行状态的分析结果为第二异常运行状态的情况下,所述确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代,包括以下步骤:In the case where the analysis result of the energy operation state is the second abnormal operation state, determining the particle update parameter and updating the corresponding particle based on the particle update parameter so as to participate in the next iteration includes the following steps:
步骤S2331,基于下式计算所述粒子对应的第二能量指标为:Step S2331, calculating the second energy index corresponding to the particle based on the following formula:
式中,为所述粒子对应的第二能量指标,为在第i种典型天第t个采样时刻的用户负荷,为所述新能源发电单元在第i种典型天第t个采样时刻的发电功率,为所述氢储能单元在第i种典型天第t个采样时刻的发电功率,为所述电池储能单元的额定放电功率,为第m个所述粒子对应的所述新能源发电单元的数量,为第m个所述粒子对应的所述氢储能单元的数量。In the formula, is the second energy index corresponding to the particle, is the user load at the t-th sampling time on the ith typical day, is the power generation power of the new energy power generation unit at the t-th sampling time on the i-th typical day, is the power generation power of the hydrogen energy storage unit at the t-th sampling time on the i-th typical day, is the rated discharge power of the battery energy storage unit, is the number of the new energy power generation units corresponding to the mth particle, is the number of the hydrogen energy storage units corresponding to the mth particle.
这里对应的实际物理意义是计算需要再增加多少数量的储能单元,才能够满足用户负荷的能量差额。The actual physical meaning here is to calculate how many more energy storage units are needed to meet the energy difference of the user's load.
步骤S2332,计算所述第二能量指标与预设的第一调整向量的转置向量的第四乘积,并将所述第四乘积作为所述第二异常运行状态下的速度调整量。Step S2332: Calculate a fourth product of the second energy index and the transposed vector of the preset first adjustment vector, and use the fourth product as the speed adjustment amount in the second abnormal operating state.
步骤S2333,将所述第二异常运行状态下的速度调整量作为所述粒子更新参数,对相应粒子的速度进行调整。Step S2333: Using the speed adjustment amount in the second abnormal operation state as the particle update parameter, and adjusting the speed of the corresponding particle.
步骤2334,根据调整后的粒子速度对相应粒子的位置进行更新,继而以更新后的粒子参与下一次迭代。Step 2334, update the position of the corresponding particle according to the adjusted particle speed, and then use the updated particle to participate in the next iteration.
具体地,根据上述计算指导扩大储能容量,因此速度更新为:Specifically, the energy storage capacity is expanded according to the above calculation guidance, so the speed is updated for:
。 .
由此可见,式中的即为步骤S2332中确定的第一调整向量,式中的即为步骤S2332中确定的速度调整量,且该公式弱化了全局、局部最优解的影响,有效避免了粒子陷入局部最优解和粒子群低速迭代全局最优解的情况。It can be seen that That is, the first adjustment vector determined in step S2332, where This is the speed adjustment amount determined in step S2332, and this formula weakens the influence of the global and local optimal solutions, effectively avoiding the situation where particles fall into the local optimal solution and the particle swarm iterates the global optimal solution at a low speed.
需要说明的是,这里的参数项和无异常运行情况下相同的原因在于,新能源单元、氢储能单元和电池储能单元数量放缩的比例根源于各单元在微电网中能量/功率流动的能力,因此功率和能量的意义相同。It should be noted that here Parameters and no abnormal operation The same reason is that the scaling ratio of the number of new energy units, hydrogen energy storage units and battery energy storage units is rooted in the ability of each unit to flow energy/power in the microgrid, so power and energy have the same meaning.
另外,在申请实施例中,在设置上述参数、和时,可以根据新能源发电单元、氢储能单元和电池储能单元的额定功率进行初始估计与设置,因此,所述第一调整向量根据以下步骤进行确定:In addition, in the application embodiment, when setting the above parameters , and When the rated power of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit is used, the initial estimation and setting can be performed. Therefore, the first adjustment vector is determined according to the following steps:
获取所述新能源发电单元、所述氢储能单元和所述电池储能单元的最大功率比为:The maximum power ratio of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit is obtained as follows:
; ;
式中,表示所述新能源发电单元在若干个典型日中的最大发电功率,表示所述氢储能单元的额定制氢功率和额定发电功率中得最大功率值,表示所述电池储能单元的额定充电功率和额定放电功率中的最大功率值;In the formula, represents the maximum power generation of the new energy power generation unit in several typical days, represents the maximum power value obtained between the rated hydrogen production power and the rated power generation power of the hydrogen energy storage unit, Indicates the maximum power value of the rated charging power and the rated discharging power of the battery energy storage unit;
根据所述最大功率比设置所述第一调整向量。The first adjustment vector is set according to the maximum power ratio.
通过上述最大功率比能够反映新能源发电单元、氢储能单元和电池储能单元在微电网中的能量流动能力,从而根据这个最大功率比确定各个单元的数量放缩比例,实现更新参数的合理设置。The above maximum power ratio can reflect the energy flow capacity of the new energy power generation unit, hydrogen energy storage unit and battery energy storage unit in the microgrid, so as to determine the quantity scaling ratio of each unit according to this maximum power ratio and realize the reasonable setting of the update parameters.
本申请实施例在基于上述说明完成粒子速度更新后,将基于更新后的速度对粒子的位置进行更新,具体地对于每个粒子更新位置为:After completing the particle velocity update based on the above description, the embodiment of the present application will update the particle velocity based on the updated velocity. Update the position of the particles. Specifically, the position of each particle is updated as follows:
其中,为第j次迭代中的粒子位置,为第j+1次迭代中的粒子位置,函数实现对自变量x的每一个维度向上取整,且保证第一维度和第二维度至少为1,第三维度至少等于0。这样设置的意义在于,对于微电网的运行来说,新能源发电单元是必须存在的,并且为了保证成本较电池储能更昂贵的氢储能单元发挥调控作用,而不在优化求解中被电池储能单元替代,设置氢储能参与充放电的优先级高于电池储能,因此在后续基于改进粒子群算法求解的过程中使各个粒子更接近可行解。in, is the particle position in the jth iteration, is the particle position in the j+1th iteration, The function rounds up each dimension of the independent variable x, and ensures that the first and second dimensions are at least 1, and the third dimension is at least equal to 0. The significance of this setting is that for the operation of the microgrid, the new energy generation unit must exist, and in order to ensure that the hydrogen energy storage unit, which is more expensive than the battery energy storage unit, plays a regulatory role and is not replaced by the battery energy storage unit in the optimization solution, the priority of hydrogen energy storage in charging and discharging is set higher than that of battery energy storage, so that each particle is closer to a feasible solution in the subsequent solution process based on the improved particle swarm algorithm.
另外需要说明的是,在基于改进粒子群算法进行求解过程中,在筛选最优粒子以确定粒子的全局最优位置时,只对正常运行的粒子求取其适应度值以选出,而在确定粒子的当前个体最优位置则对所有能量运行状态下的粒子进行适应度的计算。It should also be noted that in the process of solving the problem based on the improved particle swarm algorithm, the optimal particles are screened to determine the global optimal position of the particles. When , only the fitness values of the particles running normally are calculated to select , and to determine the current individual optimal position of the particle, the fitness of the particles in all energy operating states is calculated.
综上,本申请实施例基于启发式的改进粒子群算法,能够分析微电网的各单元能量流,从而根据能量运行正常和异常情况,用分析结果分别指导粒子群的速度迭代寻优,在保留了传统算法的惯性项、认知项和社会项的前提下,让粒子群寻优过程和微电网的实际运行意义联系更加紧密。并且能够针对异常的能量运行情况改进相应的速度更新公式,有助于加速粒子离开不可行域,使粒子找到更加可靠的向最优解的移动方向,加快了迭代速度,从而适应新能源发电带来的能量波动影响,提高微电网容量配置效率。In summary, the embodiment of the present application is based on a heuristic improved particle swarm algorithm, which can analyze the energy flow of each unit of the microgrid, and thus use the analysis results to guide the particle swarm's speed iteration optimization according to the normal and abnormal energy operation conditions, and on the premise of retaining the inertia term, cognitive term and social term of the traditional algorithm, make the particle swarm optimization process and the actual operation significance of the microgrid more closely connected. And it can improve the corresponding speed update formula for abnormal energy operation conditions, which helps to accelerate the particles to leave the infeasible region, so that the particles can find a more reliable moving direction to the optimal solution, speed up the iteration speed, thereby adapting to the energy fluctuations brought by new energy generation and improving the efficiency of microgrid capacity configuration.
此外,改进粒子群算法中的速度更新公式相对于传统的粒子群算法仅增加少量更新参数即实现了收敛速度的提高,因此能够在不增加求解算法复杂度的情况下,还能够提高找到可行解并求取最优解的速度,从而提高微电网容量配置效率提高找到可行解并求取最优解的速度,从而提高微电网容量配置效率。In addition, the speed update formula in the improved particle swarm algorithm only adds a small number of update parameters compared to the traditional particle swarm algorithm to achieve an increase in convergence speed. Therefore, it can improve the speed of finding feasible solutions and obtaining optimal solutions without increasing the complexity of the solution algorithm, thereby improving the efficiency of microgrid capacity configuration.
相应地,请参考图4,本申请实施例提供一种基于改进粒子群算法的微电网容量配置装置,该装置包括:Accordingly, please refer to FIG4 , an embodiment of the present application provides a microgrid capacity configuration device based on an improved particle swarm algorithm, the device comprising:
初始化模块701,用于根据微电网中新能源发电单元、氢储能单元和电池储能单元的数量生成初始粒子;Initialization module 701, used to generate initial particles according to the number of new energy power generation units, hydrogen energy storage units and battery energy storage units in the microgrid;
迭代求解模块702,用于将微电网运行成本作为粒子适应度,基于所述初始粒子进行迭代并求取最优解,其中,在每一次迭代过程中对当前的每个粒子对应的微电网的能量运行状态进行分析,以确定粒子更新参数,并基于所述粒子更新参数对相应粒子进行更新以便参与下一次迭代;An iterative solution module 702 is used to use the microgrid operation cost as the particle fitness, iterate based on the initial particles and obtain the optimal solution, wherein in each iteration process, the energy operation state of the microgrid corresponding to each current particle is analyzed to determine the particle update parameter, and the corresponding particle is updated based on the particle update parameter so as to participate in the next iteration;
配置模块703,用于根据所述最优解调整所述新能源发电单元、所述氢储能单元和所述电池储能单元的数量,以实现对所述微电网的容量配置。The configuration module 703 is used to adjust the number of the new energy power generation unit, the hydrogen energy storage unit and the battery energy storage unit according to the optimal solution to achieve capacity configuration of the microgrid.
上述各个模块和单元的更进一步的功能描述与上述对应实施例相同,在此不再赘述。The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
本实施例中的微电网容量配置装置是以功能单元的形式来呈现,这里的单元是指ASIC(Application Specific Integrated Circuit,专用集成电路)电路,执行一个或多个软件或固定程序的处理器和存储器,和/或其他可以提供上述功能的器件。The microgrid capacity configuration device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and/or other devices that can provide the above functions.
如图5所示,本申请实施例提供的一种计算机设备,该计算机设备包括:一个或多个处理器50、存储器60,以及用于连接各部件的通信接口70,包括高速接口和低速接口。处理器50可以对在计算机设备内执行的指令进行处理,包括存储在存储器60中或者存储器60上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在一些可选的实施方式中,若需要,可以将多个处理器50和/或多条总线与多个存储器60和多个存储器60一起使用。同样,可以连接多个计算机设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。As shown in Figure 5, a computer device provided by an embodiment of the present application includes: one or more processors 50, a memory 60, and a communication interface 70 for connecting various components, including a high-speed interface and a low-speed interface. The processor 50 can process instructions executed in the computer device, including instructions stored in or on the memory 60 to display graphical information of a GUI on an external input/output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors 50 and/or multiple buses can be used together with multiple memories 60 and multiple memories 60. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
处理器50可以是中央处理器,网络处理器或其组合。其中,处理器50还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路,可编程逻辑器件或其组合。上述可编程逻辑器件可以是复杂可编程逻辑器件,现场可编程逻辑门阵列,通用阵列逻辑或其任意组合。The processor 50 may be a central processing unit, a network processor or a combination thereof. The processor 50 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
其中,所述存储器60存储有可由至少一个处理器执行的指令,以使所述至少一个处理器50执行实现上述实施例示出的方法。The memory 60 stores instructions executable by at least one processor, so that the at least one processor 50 executes the method shown in the above embodiment.
本申请实施例还提供了一种计算机可读存储介质实现上述实施例示出的方法,上述根据本申请实施例的方法可在硬件、固件中实现,或者被实现为可记录在存储介质,或者被实现通过网络下载的原始存储在远程存储介质或非暂时机器可读存储介质中并将被存储在本地存储介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件的存储介质上的这样的软件处理。其中,存储介质可为磁碟、光盘、只读存储记忆体、随机存储记忆体、快闪存储器、硬盘或固态硬盘等;进一步地,存储介质还可以包括上述种类的存储器的组合。The embodiment of the present application also provides a computer-readable storage medium to implement the method shown in the above embodiment. The above method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or downloaded through a network and originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory.
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机程序指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行本申请任一实施例的方法。The embodiment of the present application provides a computer program product, which includes computer program instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method of any embodiment of the present application.
虽然结合附图描述了本申请的实施例,但是本领域技术人员可以在不脱离本申请的精神和范围的情况下做出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above device is described in terms of functions and is divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
虽然结合附图描述了本申请的实施例,但是本领域技术人员可以在不脱离本申请的精神和范围的情况下作出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411087719.3A CN118630839B (en) | 2024-08-09 | 2024-08-09 | Microgrid capacity configuration method and device based on improved particle swarm algorithm |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411087719.3A CN118630839B (en) | 2024-08-09 | 2024-08-09 | Microgrid capacity configuration method and device based on improved particle swarm algorithm |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118630839A CN118630839A (en) | 2024-09-10 |
| CN118630839B true CN118630839B (en) | 2024-10-11 |
Family
ID=92596482
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411087719.3A Active CN118630839B (en) | 2024-08-09 | 2024-08-09 | Microgrid capacity configuration method and device based on improved particle swarm algorithm |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118630839B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115796492A (en) * | 2022-11-14 | 2023-03-14 | 国网福建省电力有限公司 | Micro-grid scheduling method and terminal of hybrid energy storage system |
| CN116645089A (en) * | 2023-05-11 | 2023-08-25 | 上海电力大学 | A two-layer optimal configuration method for energy storage systems considering the capacity degradation of decommissioned batteries |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9373960B2 (en) * | 2013-03-13 | 2016-06-21 | Oracle International Corporation | Computerized system and method for distributed energy resource scheduling |
| CN109462231B (en) * | 2018-11-15 | 2020-09-01 | 合肥工业大学 | Load optimization scheduling method, system and storage medium for residential microgrid |
| CN118157186B (en) * | 2024-05-09 | 2024-09-13 | 北京智芯微电子科技有限公司 | Micro-grid energy storage energy management method and device, storage medium and terminal equipment |
-
2024
- 2024-08-09 CN CN202411087719.3A patent/CN118630839B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115796492A (en) * | 2022-11-14 | 2023-03-14 | 国网福建省电力有限公司 | Micro-grid scheduling method and terminal of hybrid energy storage system |
| CN116645089A (en) * | 2023-05-11 | 2023-08-25 | 上海电力大学 | A two-layer optimal configuration method for energy storage systems considering the capacity degradation of decommissioned batteries |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118630839A (en) | 2024-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109325608B (en) | Distributed power supply optimal configuration method considering energy storage and considering photovoltaic randomness | |
| Khunkitti et al. | Optimal location and sizing of BESS for performance improvement of distribution systems with high DG penetration | |
| EP4481974A1 (en) | Energy storage control method and apparatus for micro grid system, and micro grid system | |
| CN110490429A (en) | Based on SSA algorithm intelligent building micro-capacitance sensor household loads fast dispatch method | |
| Wu et al. | Modeling and optimization methods for controlling and sizing grid-connected energy storage: A review | |
| CN114219205B (en) | A method for calculating the credible capacity of flexible loads for power grid planning | |
| CN117172486A (en) | Reinforced learning-based virtual power plant optical storage resource aggregation regulation and control method | |
| CN119312957A (en) | A large-scale distributed energy storage collaborative optimization method and system based on multi-objective particle swarm algorithm | |
| CN118971178A (en) | A source-load-storage coordinated optimization control method to promote new energy consumption | |
| CN111951123B (en) | Method, device, computer equipment and storage medium for controlling electric load | |
| CN118157160A (en) | Method, device, equipment and medium for optimizing wind power frequency modulation hybrid energy storage capacity | |
| CN119582254B (en) | Micro-grid optimal operation method considering different operation modes | |
| CN115425669A (en) | Distributed energy storage configuration method, medium and device | |
| CN119582226A (en) | A flexible load distribution and power supply optimization method and system | |
| CN118630839B (en) | Microgrid capacity configuration method and device based on improved particle swarm algorithm | |
| CN118659353A (en) | Power grid strategy determination method, device and electronic equipment | |
| CN116523193B (en) | Virtual power plant energy storage scheduling method and device, electronic equipment and storage medium | |
| CN111564868A (en) | Off-grid type optical storage micro-grid system capacity configuration evaluation method and device | |
| CN117595280A (en) | Site selection and capacity determination methods and devices for distributed photovoltaic power sources | |
| CN116799826A (en) | Distributed photovoltaic energy storage system optimal configuration method and related device | |
| CN113013909A (en) | Energy storage capacity improvement method based on stabilizing traction | |
| CN116505581B (en) | Island micro-grid black start method and device considering participation of multi-type heterogeneous resources | |
| CN117977655B (en) | Offshore wind power energy storage configuration method and device, storage medium and terminal | |
| CN117117960A (en) | Method and system for solving virtual power plant energy management based on SHADE algorithm | |
| Tsado et al. | Quantifying self-consumption and flexibility provision through battery storage, a deep reinforcement learning approach |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |