CN116053536B - Proton exchange membrane fuel cell estimation method and computer readable medium - Google Patents
Proton exchange membrane fuel cell estimation method and computer readable medium Download PDFInfo
- Publication number
- CN116053536B CN116053536B CN202310042334.4A CN202310042334A CN116053536B CN 116053536 B CN116053536 B CN 116053536B CN 202310042334 A CN202310042334 A CN 202310042334A CN 116053536 B CN116053536 B CN 116053536B
- Authority
- CN
- China
- Prior art keywords
- factor
- proton exchange
- exchange membrane
- empirical factor
- constant
- 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
- 239000012528 membrane Substances 0.000 title claims abstract description 147
- 239000000446 fuel Substances 0.000 title claims abstract description 86
- 238000000034 method Methods 0.000 title claims abstract description 83
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims abstract description 40
- 238000005457 optimization Methods 0.000 claims abstract description 31
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 25
- 235000008954 quail grass Nutrition 0.000 claims description 118
- 241000282485 Vulpes vulpes Species 0.000 claims description 92
- 239000013598 vector Substances 0.000 claims description 69
- 230000008569 process Effects 0.000 claims description 59
- 241000282487 Vulpes Species 0.000 claims description 26
- 230000006870 function Effects 0.000 claims description 18
- 230000000694 effects Effects 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 12
- 230000000739 chaotic effect Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 8
- 230000004913 activation Effects 0.000 claims description 6
- 238000010845 search algorithm Methods 0.000 claims description 6
- 230000009471 action Effects 0.000 claims description 5
- 238000009395 breeding Methods 0.000 claims description 3
- 230000001488 breeding effect Effects 0.000 claims description 3
- 238000012804 iterative process Methods 0.000 claims 2
- 238000013507 mapping Methods 0.000 claims 2
- 238000012163 sequencing technique Methods 0.000 claims 2
- 230000001105 regulatory effect Effects 0.000 claims 1
- UFHFLCQGNIYNRP-UHFFFAOYSA-N Hydrogen Chemical compound [H][H] UFHFLCQGNIYNRP-UHFFFAOYSA-N 0.000 description 6
- 229910052739 hydrogen Inorganic materials 0.000 description 6
- 239000001257 hydrogen Substances 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 239000000126 substance Substances 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003245 coal Substances 0.000 description 1
- 238000002485 combustion reaction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010287 polarization Effects 0.000 description 1
- 230000002028 premature Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M8/00—Fuel cells; Manufacture thereof
- H01M8/04—Auxiliary arrangements, e.g. for control of pressure or for circulation of fluids
- H01M8/04298—Processes for controlling fuel cells or fuel cell systems
- H01M8/04992—Processes for controlling fuel cells or fuel cell systems characterised by the implementation of mathematical or computational algorithms, e.g. feedback control loops, fuzzy logic, neural networks or artificial intelligence
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/0084—Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring voltage only
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/3644—Constructional arrangements
- G01R31/3648—Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/367—Software therefor, e.g. for battery testing using modelling or look-up tables
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/378—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC] specially adapted for the type of battery or accumulator
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/382—Arrangements for monitoring battery or accumulator variables, e.g. SoC
- G01R31/3835—Arrangements for monitoring battery or accumulator variables, e.g. SoC involving only voltage measurements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N7/00—Computing arrangements based on specific mathematical models
- G06N7/08—Computing arrangements based on specific mathematical models using chaos models or non-linear system models
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M8/00—Fuel cells; Manufacture thereof
- H01M8/04—Auxiliary arrangements, e.g. for control of pressure or for circulation of fluids
- H01M8/04298—Processes for controlling fuel cells or fuel cell systems
- H01M8/04313—Processes for controlling fuel cells or fuel cell systems characterised by the detection or assessment of variables; characterised by the detection or assessment of failure or abnormal function
- H01M8/04537—Electric variables
- H01M8/04544—Voltage
- H01M8/04559—Voltage of fuel cell stacks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/30—Hydrogen technology
- Y02E60/50—Fuel cells
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Evolutionary Computation (AREA)
- Life Sciences & Earth Sciences (AREA)
- Software Systems (AREA)
- Electrochemistry (AREA)
- Data Mining & Analysis (AREA)
- Manufacturing & Machinery (AREA)
- Sustainable Development (AREA)
- Sustainable Energy (AREA)
- Chemical & Material Sciences (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Health & Medical Sciences (AREA)
- General Chemical & Material Sciences (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Fuzzy Systems (AREA)
- Medical Informatics (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Automation & Control Theory (AREA)
- Biophysics (AREA)
- Nonlinear Science (AREA)
- Algebra (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Fuel Cell (AREA)
Abstract
本发明公开一种质子交换膜燃料电池估测方法及计算机可读介质。本发明计算每个时刻的质子交换膜燃料电池的堆叠电压,输入多个时刻的质子交换膜燃料电池的测量堆叠电压;构建堆叠电压优化目标,选取决策变量,构建参数的约束条件;通过改进红狐优化算法进行求解,得到优化后的第一半经验因子、优化后的第二半经验因子、优化后的第三半经验因子、优化后的第四半经验因子、优化后的膜的恒定电阻、优化后的质子交换膜内含水量、优化后的常数因子,进一步实现质子交换膜燃料电池的优化设置。本发明所提出的改进算法具有收敛速度快,结果准确的特点,且输出堆栈电压的理论值与实验输出电压拟合程度较高。
The invention discloses a proton exchange membrane fuel cell estimation method and a computer readable medium. The invention calculates the stack voltage of the proton exchange membrane fuel cell at each moment, and inputs the measured stack voltage of the proton exchange membrane fuel cell at multiple moments; constructs the optimization target of the stack voltage, selects decision variables, and constructs constraint conditions of parameters; Fox optimization algorithm to solve, get the optimized first half empirical factor, optimized second half empirical factor, optimized third half empirical factor, optimized fourth half empirical factor, optimized constant resistance of the film , the optimized water content in the proton exchange membrane, and the optimized constant factor to further realize the optimal setting of the proton exchange membrane fuel cell. The improved algorithm proposed by the invention has the characteristics of fast convergence speed and accurate results, and the theoretical value of the output stack voltage has a high fitting degree with the experimental output voltage.
Description
技术领域Technical Field
本发明涉及燃料电池技术领域,尤其涉及一种质子交换膜燃料电池估测方法及计算机可读介质。The present invention relates to the field of fuel cell technology, and in particular to a proton exchange membrane fuel cell estimation method and a computer-readable medium.
背景技术Background Art
随着社会经济与新能源产业的飞速发展,能源需求逐渐提高,煤炭和石油等化石能源储量日益减少,可再生能源会逐渐替代传统化石能源。氢能作为一种新二次能源,具有燃烧无污染、热值高等优点,并且储量丰富。合理利用氢能源,对缓解化石能源危机有重要意义。推广氢能源的应用,技术创新意义重大。With the rapid development of social economy and new energy industry, energy demand is gradually increasing, and the reserves of fossil energy such as coal and oil are decreasing. Renewable energy will gradually replace traditional fossil energy. Hydrogen energy, as a new secondary energy, has the advantages of pollution-free combustion, high calorific value, and abundant reserves. The rational use of hydrogen energy is of great significance to alleviating the fossil energy crisis. Promoting the application of hydrogen energy and technological innovation are of great significance.
在对氢能源的运用中,燃料电池技术因其能量转化效率高、能量密度高、无污染、噪音小等优点得到了快速发展。燃料电池是一种把燃料所具有的化学能转化为电能的化学装置。在众多燃料电池中,质子交换膜燃料电池是最具有发展前景的燃料电池,对氢能的利用具有重要意义。对于质子交换膜燃料电池相关领域,我国政府给予政策上的支持,以期早日实现氢能源革命。In the application of hydrogen energy, fuel cell technology has developed rapidly due to its advantages of high energy conversion efficiency, high energy density, no pollution, and low noise. A fuel cell is a chemical device that converts the chemical energy of a fuel into electrical energy. Among many fuel cells, proton exchange membrane fuel cells are the most promising fuel cells, which are of great significance to the utilization of hydrogen energy. For the fields related to proton exchange membrane fuel cells, the Chinese government has given policy support in order to realize the hydrogen energy revolution as soon as possible.
在过去的十年里,中外质子交换膜领域相关科研论文不断涌现,每一篇都对燃料电池领域进行了技术突破。现有技术采用改进版阿基米德优化算法估计质子交换膜燃料电池模型参数;并采用基于自洽模型和SCCSA优化算法,实现了对PEM燃料电池参数精确提取;采用混沌博弈优化技术建立了质子交换膜燃料电池模型。若通过智能算法将质子交换膜燃料电池极化曲线精确模拟,将极大节省成本与运算时间。In the past decade, scientific research papers related to the field of proton exchange membranes have continued to emerge in China and abroad, and each of them has made a technological breakthrough in the field of fuel cells. The existing technology uses an improved version of the Archimedean optimization algorithm to estimate the parameters of the proton exchange membrane fuel cell model; and uses a self-consistent model and SCCSA optimization algorithm to achieve accurate extraction of PEM fuel cell parameters; and uses chaos game optimization technology to establish a proton exchange membrane fuel cell model. If the polarization curve of the proton exchange membrane fuel cell is accurately simulated through an intelligent algorithm, it will greatly save costs and computing time.
发明内容Summary of the invention
为了解决上述技术问题,本发明提供一种质子交换膜燃料电池估测方法及计算机可读介质,得出质子交换膜燃料电池参数的最优解,使输出堆栈电压的计算值与测量值尽可能接近,以便于对质子交换膜燃料电池做进一步的预测与动态分析。In order to solve the above technical problems, the present invention provides a proton exchange membrane fuel cell estimation method and a computer-readable medium to obtain the optimal solution of the proton exchange membrane fuel cell parameters, so that the calculated value of the output stack voltage is as close as possible to the measured value, so as to facilitate further prediction and dynamic analysis of the proton exchange membrane fuel cell.
本发明方法的技术方案为一种质子交换膜燃料电池估测方法,具体步骤如下:The technical solution of the method of the present invention is a proton exchange membrane fuel cell estimation method, and the specific steps are as follows:
步骤1:获取多个时刻的能斯特电压、多个时刻的激活电压、多个时刻的电极和膜电阻引起的欧姆压降、多个时刻的浓度电压损失,计算每个时刻的质子交换膜燃料电池的堆叠电压,输入多个时刻的质子交换膜燃料电池的测量堆叠电压;Step 1: Obtain the Nernst voltage at multiple times, the activation voltage at multiple times, the ohmic voltage drop caused by the electrode and membrane resistance at multiple times, and the concentration voltage loss at multiple times, calculate the stack voltage of the proton exchange membrane fuel cell at each time, and input the measured stack voltage of the proton exchange membrane fuel cell at multiple times;
步骤2:构建堆叠电压优化目标,选取第一半经验因子、第二半经验因子、第三半经验因子、第四半经验因子、膜的恒定电阻、质子交换膜内含水量、常数因子作为决策变量,构建参数的约束条件;Step 2: Construct the stack voltage optimization target, select the first semi-empirical factor, the second semi-empirical factor, the third semi-empirical factor, the fourth semi-empirical factor, the constant resistance of the membrane, the water content in the proton exchange membrane, and the constant factor as decision variables, and construct the parameter constraints;
步骤3:结合堆叠电压优化目标、参数的约束条件,将第一半经验因子、第二半经验因子、第三半经验因子、第四半经验因子、膜的恒定电阻、质子交换膜内含水量、常数因子作为待求解变量,通过改进红狐优化算法进行求解,得到优化后的第一半经验因子、优化后的第二半经验因子、优化后的第三半经验因子、优化后的第四半经验因子、优化后的膜的恒定电阻、优化后的质子交换膜内含水量、优化后的常数因子,进一步实现质子交换膜燃料电池的优化设置。Step 3: In combination with the stack voltage optimization objective and parameter constraints, the first semi-empirical factor, the second semi-empirical factor, the third semi-empirical factor, the fourth semi-empirical factor, the constant resistance of the membrane, the water content in the proton exchange membrane, and the constant factor are taken as variables to be solved, and solved by the improved Red Fox optimization algorithm to obtain the optimized first semi-empirical factor, the optimized second semi-empirical factor, the optimized third semi-empirical factor, the optimized fourth semi-empirical factor, the optimized constant resistance of the membrane, the optimized water content in the proton exchange membrane, and the optimized constant factor, thereby further realizing the optimized setting of the proton exchange membrane fuel cell.
作为优选,步骤1所述计算每个时刻的质子交换膜燃料电池的堆叠电压,具体如下:Preferably, the calculation of the stack voltage of the proton exchange membrane fuel cell at each moment in step 1 is as follows:
其中,表示第k个时刻的质子交换膜燃料电池的堆叠电压,为每个堆栈中串联燃料电池的数量,为第k个时刻的单个燃料电池的输出电压,为第k个时刻的能斯特电压,为第k个时刻的激活电压,为第k个时刻的电极和膜电阻引起的欧姆压降,为第k个时刻的浓度电压损失,n表示时刻的数量;in, represents the stack voltage of the proton exchange membrane fuel cell at the kth moment, For the number of fuel cells in series in each stack, is the output voltage of a single fuel cell at the kth moment, is the Nernst voltage at the kth moment, is the activation voltage at the kth moment, is the ohmic voltage drop caused by the electrode and membrane resistance at the kth moment, is the concentration voltage loss at the kth moment, n represents the number of moments;
步骤1所述多个时刻的质子交换膜燃料电池的测量堆叠电压,定义为:The measured stack voltage of the proton exchange membrane fuel cell at multiple moments in step 1 is defined as:
, ,
其中,表示第k个时刻的质子交换膜燃料电池的测量堆叠电压,n表示时刻的数量;in, represents the measured stack voltage of the proton exchange membrane fuel cell at the kth moment, and n represents the number of moments;
作为优选,步骤2所述构建堆叠电压优化目标,具体如下:Preferably, the stack voltage optimization target is constructed in step 2, specifically as follows:
其中,min表示最小化,表示第k个时刻的质子交换膜燃料电池的堆叠电压,表示第k个时刻的质子交换膜燃料电池的测量堆叠电压,n表示时刻的数量,SSE表示质子交换膜燃料电池的电压误差模型;Among them, min means minimization, represents the stack voltage of the proton exchange membrane fuel cell at the kth moment, represents the measured stack voltage of the proton exchange membrane fuel cell at the kth moment, n represents the number of moments, and SSE represents the voltage error model of the proton exchange membrane fuel cell;
步骤2所述参数的约束条件,具体如下:The constraints of the parameters described in step 2 are as follows:
其中,表示第一半经验因子,表示第一半经验因子的下限,表示第一半经验因子的上限;in, represents the first semi-empirical factor, represents the lower limit of the first half of the empirical factor, represents the upper limit of the first half of the empirical factor;
表示第二半经验因子,表示第二半经验因子的下限,表示第二半经验因子的上限; represents the second semi-empirical factor, represents the lower limit of the second half empirical factor, represents the upper limit of the second half of the empirical factor;
表示第三半经验因子,表示第三半经验因子的下限,表示第三半经验因子的上限; represents the third semi-empirical factor, represents the lower limit of the third semi-empirical factor, represents the upper limit of the third semi-empirical factor;
表示第四半经验因子,表示第四半经验因子的下限,表示第四半经验因子的上限; represents the fourth semi-empirical factor, represents the lower limit of the fourth half empirical factor, represents the upper limit of the fourth half of the empirical factor;
表示质子交换膜内含水量,为质子交换膜内含水量的下限,为质子交换膜内含水量的上限; represents the water content in the proton exchange membrane, is the lower limit of water content in the proton exchange membrane, is the upper limit of water content in the proton exchange membrane;
表示膜的恒定电阻,为膜的恒定电阻的下限,为膜的恒定电阻的上限; represents the constant resistance of the membrane, is the lower limit of the constant resistance of the membrane, is the upper limit of the constant resistance of the membrane;
表示常数因子,为常数因子的下限,为常数因子的上限。 represents the constant factor, is the lower limit of the constant factor, is the upper limit of the constant factor.
作为优选,步骤3所述通过用改进红狐优化算法进行求解,具体过程如下:As a preference, step 3 is solved by using an improved Red Fox optimization algorithm, and the specific process is as follows:
步骤3.1:初始化红狐搜索算法;Step 3.1: Initialize the Red Fox search algorithm;
步骤3.1.1:根据参数的约束条件设置红狐的活动空间;Step 3.1.1: Set the activity space of the red fox according to the parameter constraints ;
将第一半经验因子的上限、第二半经验因子的下限、第三半经验因子的下限、第四三半经验因子的下限、膜的恒定电阻的下限、质子交换膜内含水量的下限、常数因子的下限逐维存入中,The upper limit of the first half of the empirical factor, the lower limit of the second half of the empirical factor, the lower limit of the third half of the empirical factor, the lower limit of the fourth half of the empirical factor, the lower limit of the constant resistance of the membrane, the lower limit of the water content in the proton exchange membrane, and the lower limit of the constant factor are stored dimension by dimension. middle,
具体如下:为第一半经验因子的下限,为第二半经验因子的下限,为第三半经验因子的下限,为第四半经验因子的下限,为膜恒定电阻的下限,为质子交换膜内水含量的下限,为常数因子下限;The details are as follows: is the lower limit of the first half of the empirical factor, is the lower limit of the second half of the empirical factor, is the lower limit of the third half empirical factor, is the lower limit of the fourth half empirical factor, is the lower limit of the constant resistance of the membrane, is the lower limit of water content in the proton exchange membrane, is the lower limit of the constant factor;
将第一半经验因子的上限、第二半经验因子的上限、第三半经验因子的上限、第四三半经验因子的上限、膜的恒定电阻的上限、质子交换膜内含水量的上限、常数因子的上限逐维存入中,具体如下:The upper limit of the first half of the empirical factor, the upper limit of the second half of the empirical factor, the upper limit of the third half of the empirical factor, the upper limit of the fourth half of the empirical factor, the upper limit of the constant resistance of the membrane, the upper limit of the water content in the proton exchange membrane, and the upper limit of the constant factor are stored dimension by dimension. The details are as follows:
为第一半经验因子的上限,为第二半经验因子的上限,为第三半经验因子的下上限,为第四半经验因子的上限,为膜恒定电阻的上限,为质子交换膜内水含量的上限,为常数因子上限; is the upper limit of the first half of the empirical factor, is the upper limit of the second half of the empirical factor, is the lower upper limit of the third semi-empirical factor, is the upper limit of the fourth semi-empirical factor, is the upper limit of the membrane constant resistance, is the upper limit of water content in the proton exchange membrane, is the upper limit of the constant factor;
设置最大迭代次数为、种群内红狐数量为、观察角度为、天气因子为、行动判断因子为、路线判断因子为、进化判断因子为、进化个体数量为、形状控制因子为;Set the maximum number of iterations to The number of red foxes in the population is , the observation angle is , weather factors are , the action judgment factor is , the route judgment factor is , the evolution judgment factor is The number of evolved individuals is The shape control factor is ;
根据步骤2所述质子交换膜燃料电池优化模型中决策变量的数量确定红狐的搜索维度为;According to the number of decision variables in the proton exchange membrane fuel cell optimization model described in step 2, the search dimension of the red fox is determined as ;
其中,为之间的随机数,为之间的随机数,为区间之间的常数,、和为之间的常数,为区间之间的常数;in, for A random number between for A random number between For interval The constant between , and for The constant between For interval The constant between
在红狐的活动区间内随机生成红狐种群,设置当前迭代次数;Randomly generate a red fox population within the red fox's activity range and set the current number of iterations ;
其中,初始化红狐种群的定义如下:Among them, the definition of the initial red fox population is as follows:
其中,表示第次迭代过程中第个个体解向量的第一半经验因子,表示第次迭代过程中第个个体解向量的第二半经验因子,表示第次迭代过程中第个个体解向量的第三半经验因子,表示第次迭代过程中第个个体解向量的第四半经验因子,表示第次迭代过程中第个个体解向量的质子交换膜内含水量,表示第次迭代过程中第个个体解向量的质子交换膜恒定电阻,表示第次迭代过程中第个个体解向量的燃料电池常数因子;in, Indicates In the iteration process The first half empirical factor of the individual solution vector, Indicates In the iteration process The second semi-empirical factor of the individual solution vector, Indicates In the iteration process The third semi-empirical factor of the individual solution vector, Indicates In the iteration process The fourth semi-empirical factor of the individual solution vector, Indicates In the iteration process The water content in the proton exchange membrane of each individual solution vector, Indicates In the iteration process The constant resistance of the proton exchange membrane of the individual solution vector, Indicates In the iteration process The fuel cell constant factor of each individual solution vector;
且满足: And satisfy:
其中,为解的维度,表示红狐活动空间中第维解向量参数的下限,表示红狐活动空间中第维解向量参数的上限。in, is the dimension of the solution, Indicates the red fox activity space The lower limit of the solution vector parameter, Indicates the red fox activity space An upper limit on the dimensional solution vector parameter.
步骤3.2:搜寻猎物栖息地,采用融入混沌优化算法的小波精英学习策略进行全局搜索;Step 3.2: Search for prey habitats and use a wavelet elite learning strategy integrated with a chaotic optimization algorithm for global search;
根据步骤2所述的质子交换膜燃料电池的电压误差模型的目标函数计算种群内所有红狐个体的适应度,并依据适应度的大小对红狐个体进行排序,挑选出最优红狐个体;The fitness of all red fox individuals in the population is calculated according to the objective function of the voltage error model of the proton exchange membrane fuel cell described in step 2, and the red fox individuals are sorted according to the size of the fitness to select the best red fox individual ;
采用融入混沌优化算法的小波精英学习策略驱动其余个体向最优个体移动,具体如下:The wavelet elite learning strategy integrated with the chaotic optimization algorithm is used to drive the remaining individuals to move toward the optimal individual, as follows:
其中,为Morlet小波,为全局搜索因子,为SPM混沌映射,表示第次迭代过程中第个更新前的个体,表示第次迭代过程中更新前的全局最优解,为符号函数,为红狐活动空间的下限,为红狐活动空间的上限,表示第次迭代过程中第个更新后的个体;in, is the Morlet wavelet, is the global search factor, is the SPM chaotic map, Indicates In the iteration process Individuals before the update, Indicates The global optimal solution before updating in the iteration process is is the symbolic function, is the lower limit of the red fox's activity space. The upper limit of the red fox's activity space. Indicates In the iteration process An updated individual;
其中,为区间之间的随机数;in, For interval A random number between
其中,为取随机数函数,为与之间的欧氏距离,计算公式如下:in, To get the random number function, for and The Euclidean distance between them is calculated as follows:
其中,为质子交换膜燃料电池模型参数个数;in, is the number of parameters of the proton exchange membrane fuel cell model;
其中,表示混沌因子,为区间之间的随机数,为取余函数,表示第t次迭代过程中第个更新前的个体,和为区间之间的常数;表示第t次迭代过程中第个更新前的个体,in, represents the chaos factor, For interval A random number between is the remainder function, Indicates the number of iterations in the tth Individuals before the update, and For interval The constant between Indicates the number of iterations in the tth Individuals before the update,
根据步骤2所述的质子交换膜燃料电池的电压误差模型重新计算更新后的红狐适应度,判断更新后的红狐适应度是否优于历史最优个体,若满足保持更新后的位置不变并替换历史最优个体。Recalculate the updated red fox fitness according to the voltage error model of the proton exchange membrane fuel cell described in step 2, and determine whether the updated red fox fitness is better than the historical best individual. If it is satisfied, keep the updated position unchanged and replace the historical best individual.
步骤3.3:遍历栖息地,在猎物栖息地内搜索猎物的准确位置;Step 3.3: Traverse the habitat and search for the exact location of the prey in the prey habitat;
对每只红狐设置伪装因子以模拟红狐在接近猎物时被注意到的可能性,其中伪装因子为区间之间的随机数;Set a camouflage factor for each red fox To simulate the likelihood of a red fox being noticed when approaching prey, the camouflage factor For interval A random number between
判断伪装因子是否满足,若不满足则留在原地进行伪装;Determine the camouflage factor Is it satisfied? , if not satisfied, stay where you are and pretend;
其中,为区间之间的常数;in, For interval The constant between
若满足则设置路线影响因子与局部放缩因子;If satisfied, set the route impact factor Local scaling factor ;
其中,路线影响因子为区间之间的随机数,局部放缩因子为区间之间的随机数;Among them, the route impact factor For interval A random number between , a local scaling factor For interval A random number between
判断满足红狐个体的路线影响因子是否满足,若满足则依照螺线公式更新红狐种群;其中,和为区间之间的常数;Judgment Satisfaction Factors affecting the route of individual red foxes Is it satisfied? , if satisfied, the red fox population is updated according to the spiral formula; among them, and For interval The constant between
所述螺线公式,具体如下:The spiral formula is as follows:
其中,表示第一搜索角度,表示第二搜索角度,表示第三搜索角度,表示第四搜索角度,表示第五搜索角度,表示第六搜索角度,表示第七搜索角度,均为之间的随机数,为局部放缩因子,表示第次迭代过程中第个个体解向量的第一半经验因子,表示第次迭代过程中第个个体解向量的第二半经验因子,表示第次迭代过程中第个个体解向量的第三半经验因子,表示第次迭代过程中第个个体解向量的第四半经验因子,表示第次迭代过程中第个个体解向量的质子交换膜内含水量,表示第次迭代过程中第个个体解向量的质子交换膜恒定电阻,表示第次迭代过程中第个个体解向量的燃料电池常数因子,表示第次迭代过程中第个个体螺线更新后解向量的第一半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的第二半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的第三半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的第四半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的质子交换膜内含水量,表示第次迭代过程中第个个体螺线更新后解向量的质子交换膜恒定电阻,表示第次迭代过程中第个个体螺线更新后解向量的燃料电池常数因子;in, represents the first search angle, represents the second search angle, represents the third search angle, represents the fourth search angle, represents the fifth search angle, represents the sixth search angle, Indicates the seventh search angle, both A random number between is the local scaling factor, Indicates In the iteration process The first half empirical factor of the individual solution vector, Indicates In the iteration process The second semi-empirical factor of the individual solution vector, Indicates In the iteration process The third semi-empirical factor of the individual solution vector, Indicates In the iteration process The fourth semi-empirical factor of the individual solution vector, Indicates In the iteration process The water content in the proton exchange membrane of each individual solution vector, Indicates In the iteration process The constant resistance of the proton exchange membrane of the individual solution vector, Indicates In the iteration process The fuel cell constant factor for each individual solution vector, Indicates In the iteration process The first half empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The second half empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The third semi-empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The fourth semi-empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The water content in the proton exchange membrane of the solution vector after the individual spiral is updated, Indicates In the iteration process The constant resistance of the proton exchange membrane after the solution vector of each individual spiral is updated, Indicates In the iteration process The fuel cell constant factor of the solution vector after each individual spiral update;
为红狐的视野半径,计算公式如下: is the field of vision radius of the red fox, and the calculation formula is as follows:
其中,为观察角度,为天气因子,为局部放缩因子;in, For the observation angle, For weather factors, is the local scaling factor;
若不满足路线影响因子,则采用改进后的阿基米德螺线公式更新红狐种群,为区间之间的常数;If the route impact factor is not met , the improved Archimedean spiral formula is used to update the red fox population. For interval The constant between
所述改进后的阿基米德螺线公式,具体如下:The improved Archimedean spiral formula is as follows:
其中,为表示第次迭代过程中更新后的第个个体,表示调节因子,为对数螺旋形状常数,为区间中的随机数,T表示最大迭代次数,表示第次迭代过程中第个更新前的个体,表示第次迭代过程中更新前的全局最优解;in, To indicate the After the update in the iteration Individuals, represents the adjustment factor, is the logarithmic spiral shape constant, For interval The random number in, T represents the maximum number of iterations, Indicates In the iteration process Individuals before the update, Indicates The global optimal solution before updating in the iteration process;
调节因子的计算公式为:Modulating Factor The calculation formula is:
其中,为四舍五入函数;in, is the rounding function;
重新计算红狐种群适应度,依据适应度对红狐进行重新排序,并选出最优的两只红狐个体;Recalculate the fitness of the red fox population, reorder the red foxes according to their fitness, and select the two best red fox individuals;
步骤3.4:繁殖与放逐,根据红狐个体的适应度选择个最差个体放逐至栖息地之外或直接猎杀,其中,为具体操作步骤如下:Step 3.4: Breeding and exile, selection based on individual red fox fitness The worst individuals are exiled outside their habitats or hunted directly, among which, The specific steps are as follows:
设置进化因子,其中为之间的随机数;Set the evolution factor ,in for A random number between
判断是否满足,若满足,则将个最差个体猎杀,同时最优的两只红狐会在栖息地内繁殖出等量的红狐个体替代被猎杀的红狐,随机分布在当前栖息地内;其中,为区间之间的常数。judge Is it satisfied? , if satisfied, then The worst individuals are hunted, and the two best red foxes will breed an equal number of red fox individuals in the habitat to replace the hunted red foxes, which are randomly distributed in the current habitat; For interval The constant between .
当前栖息地中心点计算公式如下:The current habitat center point calculation formula is as follows:
其中,为第次迭代过程中适应度排序为前2的红狐个体。in, For the The red fox individuals ranked in the top 2 in fitness during the iteration.
步骤3.4.2所述栖息地的直径计算公式如下:The diameter of the habitat described in step 3.4.2 is calculated as follows:
若不满足,则将个最差红狐个体逐出栖息地,被逐出栖息地的红狐会结合狩猎经验重新寻找新的猎物栖息地;If not satisfied , then The worst red foxes are driven out of their habitats. The driven red foxes will find new prey habitats based on their hunting experience.
即采用新型回溯更新策略对被放逐红狐的位置进行更新,更新公式如下:That is, a new backtracking update strategy is used to update the position of the exiled red fox. The update formula is as follows:
其中,为红狐的初始位置,为SPM混沌映射,为第次迭代过程中进化后的第个红狐个体,为幂函数分布值;为区间之间的常数,T表示最大迭代次数;in, is the initial position of the red fox, is the SPM chaotic map, For the After the evolution in the iteration Red fox individuals, is the power function distribution value; For interval The constant between them, T represents the maximum number of iterations;
计算所有红狐个体的适应度并排序,令;Calculate the fitness of all red fox individuals and sort them. ;
步骤3.5:重复步骤3.2—步骤3.4,直至大于T,并输出优化后的第一半经验因子、优化后的第二半经验因子、优化后的第三半经验因子、优化后的第四半经验因子、优化后的膜的恒定电阻、优化后的质子交换膜内含水量、优化后的常数因子。Step 3.5: Repeat steps 3.2 to 3.4 until Greater than T, and output the optimized first semi-empirical factor, the optimized second semi-empirical factor, the optimized third semi-empirical factor, the optimized fourth semi-empirical factor, the optimized constant resistance of the membrane, the optimized water content in the proton exchange membrane, and the optimized constant factor.
本发明还提供了一种计算机可读介质,所述计算机可读介质存储电子设备执行的计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行所述质子交换膜燃料电池估测方法的步骤。The present invention also provides a computer-readable medium, which stores a computer program executed by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the proton exchange membrane fuel cell estimation method.
本发明的优点在于:The advantages of the present invention are:
采用融入混沌优化算法的小波精英学习策略驱动红狐个体向最优个体移动,有效地保留了精英解的特性,优化红狐的空间分布,提高算法的全局搜索能力。The wavelet elite learning strategy integrated with the chaotic optimization algorithm is used to drive the red fox individuals to move towards the optimal individual, which effectively retains the characteristics of the elite solution, optimizes the spatial distribution of red foxes, and improves the global search ability of the algorithm.
在算法进行局部搜索时,引入新型阿基米德螺线行动路径,使红狐的行动路线多样化,提高算法的局部搜索能力,帮助算法更快地寻到局部最优解的准确位置。When the algorithm performs local search, a new Archimedean spiral action path is introduced to diversify the red fox's action route, improve the algorithm's local search capability, and help the algorithm find the exact location of the local optimal solution more quickly.
采用新型回溯更新策略对放逐后的红狐个体进行位置更新,帮助被放逐红狐更快寻找到其他栖息地,有助于算法跳出局部最优,避免算法因陷入局部最优而过早收敛。A new backtracking update strategy is used to update the positions of exiled red foxes, helping them to find other habitats faster. This helps the algorithm to escape from the local optimum and avoid premature convergence due to being trapped in the local optimum.
对红狐搜索算法进行改进,提高了算法对复杂模型的适应能力。Improvements have been made to the Red Fox search algorithm to increase the algorithm's adaptability to complex models.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1:本发明实施例的方法流程图;FIG1 is a flow chart of a method according to an embodiment of the present invention;
图2:本发明实施例的改进红狐搜索算法流程图。FIG2 is a flow chart of an improved RedFox search algorithm according to an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
具体实施时,本发明技术方案提出的方法可由本领域技术人员采用计算机软件技术实现自动运行流程,实现方法的系统装置例如存储本发明技术方案相应计算机程序的计算机可读存储介质以及包括运行相应计算机程序的计算机设备,也应当在本发明的保护范围内。In specific implementation, the method proposed in the technical solution of the present invention can be implemented by technical personnel in this field using computer software technology to realize automatic operation process. System devices for implementing the method, such as computer-readable storage media storing the corresponding computer program of the technical solution of the present invention and computer equipment running the corresponding computer program, should also be within the protection scope of the present invention.
下面结合图1-图2介绍本发明实施例方法的技术方案为一种质子交换膜燃料电池估测方法,具体如下:The technical solution of the method of the embodiment of the present invention is described below in conjunction with FIG. 1-FIG 2 as a proton exchange membrane fuel cell estimation method, which is as follows:
如图1所示为本发明的方法流程图。FIG. 1 is a flow chart of the method of the present invention.
步骤1:获取多个时刻的能斯特电压、多个时刻的激活电压、多个时刻的电极和膜电阻引起的欧姆压降、多个时刻的浓度电压损失,计算每个时刻的质子交换膜燃料电池的堆叠电压,输入多个时刻的质子交换膜燃料电池的测量堆叠电压;Step 1: Obtain the Nernst voltage at multiple times, the activation voltage at multiple times, the ohmic voltage drop caused by the electrode and membrane resistance at multiple times, and the concentration voltage loss at multiple times, calculate the stack voltage of the proton exchange membrane fuel cell at each time, and input the measured stack voltage of the proton exchange membrane fuel cell at multiple times;
步骤1所述计算每个时刻的质子交换膜燃料电池的堆叠电压,具体如下:The calculation of the stack voltage of the proton exchange membrane fuel cell at each moment in step 1 is as follows:
其中,表示第k个时刻的质子交换膜燃料电池的堆叠电压,为每个堆栈中串联燃料电池的数量,为第k个时刻的单个燃料电池的输出电压,为第k个时刻的能斯特电压,为第k个时刻的激活电压,为第k个时刻的电极和膜电阻引起的欧姆压降,为第k个时刻的浓度电压损失,n=3600表示时刻的数量;in, represents the stack voltage of the proton exchange membrane fuel cell at the kth moment, For the number of fuel cells in series in each stack, is the output voltage of a single fuel cell at the kth moment, is the Nernst voltage at the kth moment, is the activation voltage at the kth moment, is the ohmic voltage drop caused by the electrode and membrane resistance at the kth moment, is the concentration voltage loss at the kth moment, n = 3600 represents the number of moments;
步骤1所述多个时刻的质子交换膜燃料电池的测量堆叠电压,定义为:, The measured stack voltage of the proton exchange membrane fuel cell at multiple moments in step 1 is defined as: ,
其中,表示第k个时刻的质子交换膜燃料电池的测量堆叠电压,n表示时刻的数量;in, represents the measured stack voltage of the proton exchange membrane fuel cell at the kth moment, and n represents the number of moments;
步骤2:构建堆叠电压优化目标,选取第一半经验因子、第二半经验因子、第三半经验因子、第四半经验因子、膜的恒定电阻、质子交换膜内含水量、常数因子作为决策变量,构建参数的约束条件;Step 2: Construct the stack voltage optimization target, select the first semi-empirical factor, the second semi-empirical factor, the third semi-empirical factor, the fourth semi-empirical factor, the constant resistance of the membrane, the water content in the proton exchange membrane, and the constant factor as decision variables, and construct the parameter constraints;
步骤2所述构建堆叠电压优化目标,具体如下:Step 2 constructs the stack voltage optimization target as follows:
其中,min表示最小化,表示第k个时刻的质子交换膜燃料电池的堆叠电压,表示第k个时刻的质子交换膜燃料电池的测量堆叠电压,n表示时刻的数量,SSE表示质子交换膜燃料电池的电压误差模型;Among them, min means minimization, represents the stack voltage of the proton exchange membrane fuel cell at the kth moment, represents the measured stack voltage of the proton exchange membrane fuel cell at the kth moment, n represents the number of moments, and SSE represents the voltage error model of the proton exchange membrane fuel cell;
步骤2所述参数的约束条件,具体如下:The constraints of the parameters described in step 2 are as follows:
其中,表示第一半经验因子,=-1.19969表示第一半经验因子的下限,=-0.8532表示第一半经验因子的上限,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。in, represents the first semi-empirical factor, =-1.19969 represents the lower limit of the first half of the empirical factor, =-0.8532 represents the upper limit of the first half empirical factor, which is determined through experience. Obviously, this value is only a preferred value among multiple values.
表示第二半经验因子,=0.001表示第二半经验因子的下限,=0.005表示第二半经验因子的上限,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。 represents the second semi-empirical factor, =0.001 represents the lower limit of the second half empirical factor, =0.005 represents the upper limit of the second semi-empirical factor, and this value is determined through experience. Obviously, this value is only a preferred value among multiple values.
表示第三半经验因子,=0.000036表示第三半经验因子的下限,=0.000098表示第三半经验因子的上限,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。 represents the third semi-empirical factor, =0.000036 represents the lower limit of the third half empirical factor, =0.000098 represents the upper limit of the third semi-empirical factor, and this value is obtained through experience. Obviously, this value is only a preferred value among multiple values.
表示第四半经验因子,=-0.00026表示第四半经验因子的下限,=-0.0000954表示第四半经验因子的上限,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。 represents the fourth semi-empirical factor, =-0.00026 represents the lower limit of the fourth half empirical factor, =-0.0000954 represents the upper limit of the fourth semi-empirical factor, which is determined through experience. Obviously, this value is only a preferred value among multiple values.
表示质子交换膜内含水量,=10为质子交换膜内含水量的下限,=24为质子交换膜内含水量的上限,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。 represents the water content in the proton exchange membrane, =10 is the lower limit of water content in the proton exchange membrane, =24 is the upper limit of the water content in the proton exchange membrane, and this value is determined through experience. Obviously, this value is only a preferred value among multiple values.
表示膜的恒定电阻,=0.0001为膜的恒定电阻的下限,=0.0008为膜的恒定电阻的上限,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。 represents the constant resistance of the membrane, =0.0001 is the lower limit of the constant resistance of the membrane, =0.0008 is the upper limit of the constant resistance of the membrane, and this value is determined through experience. Obviously, this value is only a preferred value among multiple values.
表示常数因子,=0.0136为常数因子的下限,=0.5为常数因子的上限,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。 represents the constant factor, =0.0136 is the lower limit of the constant factor, =0.5 is the upper limit of the constant factor, and this value is determined through experience. Obviously, this value is only a preferred value among multiple values.
步骤3:结合堆叠电压优化目标、参数的约束条件,将第一半经验因子、第二半经验因子、第三半经验因子、第四半经验因子、膜的恒定电阻、质子交换膜内含水量、常数因子作为待求解变量,通过改进红狐优化算法进行求解,得到优化后的第一半经验因子、优化后的第二半经验因子、优化后的第三半经验因子、优化后的第四半经验因子、优化后的膜的恒定电阻、优化后的质子交换膜内含水量、优化后的常数因子,进一步实现质子交换膜燃料电池的优化设置。Step 3: In combination with the stack voltage optimization objective and parameter constraints, the first semi-empirical factor, the second semi-empirical factor, the third semi-empirical factor, the fourth semi-empirical factor, the constant resistance of the membrane, the water content in the proton exchange membrane, and the constant factor are taken as variables to be solved, and solved by the improved Red Fox optimization algorithm to obtain the optimized first semi-empirical factor, the optimized second semi-empirical factor, the optimized third semi-empirical factor, the optimized fourth semi-empirical factor, the optimized constant resistance of the membrane, the optimized water content in the proton exchange membrane, and the optimized constant factor, thereby further realizing the optimized setting of the proton exchange membrane fuel cell.
如图2所示,步骤3所述通过用改进红狐优化算法进行求解,具体过程如下:As shown in Figure 2, step 3 is solved by using the improved Red Fox optimization algorithm. The specific process is as follows:
步骤3.1:初始化红狐搜索算法;Step 3.1: Initialize the Red Fox search algorithm;
步骤3.1.1:根据参数的约束条件设置红狐的活动空间;Step 3.1.1: Set the activity space of the red fox according to the parameter constraints ;
将第一半经验因子的上限、第二半经验因子的下限、第三半经验因子的下限、第四三半经验因子的下限、膜的恒定电阻的下限、质子交换膜内含水量的下限、常数因子的下限逐维存入中,The upper limit of the first half of the empirical factor, the lower limit of the second half of the empirical factor, the lower limit of the third half of the empirical factor, the lower limit of the fourth half of the empirical factor, the lower limit of the constant resistance of the membrane, the lower limit of the water content in the proton exchange membrane, and the lower limit of the constant factor are stored dimension by dimension. middle,
具体如下:为第一半经验因子的下限,为第二半经验因子的下限,为第三半经验因子的下限,为第四半经验因子的下限,为膜恒定电阻的下限,为质子交换膜内水含量的下限,为常数因子下限;The details are as follows: is the lower limit of the first half of the empirical factor, is the lower limit of the second half of the empirical factor, is the lower limit of the third half empirical factor, is the lower limit of the fourth half empirical factor, is the lower limit of the constant resistance of the membrane, is the lower limit of water content in the proton exchange membrane, is the lower limit of the constant factor;
将第一半经验因子的上限、第二半经验因子的上限、第三半经验因子的上限、第四三半经验因子的上限、膜的恒定电阻的上限、质子交换膜内含水量的上限、常数因子的上限逐维存入中,具体如下:The upper limit of the first half of the empirical factor, the upper limit of the second half of the empirical factor, the upper limit of the third half of the empirical factor, the upper limit of the fourth half of the empirical factor, the upper limit of the constant resistance of the membrane, the upper limit of the water content in the proton exchange membrane, and the upper limit of the constant factor are stored dimension by dimension. The details are as follows:
为第一半经验因子的上限,为第二半经验因子的上限,为第三半经验因子的下上限,为第四半经验因子的上限,为膜恒定电阻的上限,为质子交换膜内水含量的上限,为常数因子上限; is the upper limit of the first half of the empirical factor, is the upper limit of the second half of the empirical factor, is the lower upper limit of the third semi-empirical factor, is the upper limit of the fourth semi-empirical factor, is the upper limit of the membrane constant resistance, is the upper limit of water content in the proton exchange membrane, is the upper limit of the constant factor;
设置最大迭代次数为、种群内红狐数量为、观察角度为、天气因子为、行动判断因子为、路线判断因子为、进化判断因子为、进化个体数量为、形状控制因子为;Set the maximum number of iterations to The number of red foxes in the population is , the observation angle is , weather factors are , the action judgment factor is , the route judgment factor is , the evolution judgment factor is The number of evolved individuals is The shape control factor is ;
根据步骤2所述质子交换膜燃料电池优化模型中决策变量的数量确定红狐的搜索维度为;According to the number of decision variables in the proton exchange membrane fuel cell optimization model described in step 2, the search dimension of the red fox is determined as ;
其中,最大迭代次数=100,种群内红狐数量=100,为之间的随机数,为之间的随机数,=10为区间之间的常数,=0.75、=0.5、=0.45为之间的常数,=-0.8为区间之间的常数,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。Among them, the maximum number of iterations =100, the number of red foxes in the population =100, for A random number between for A random number between =10 is the interval The constant between =0.75, =0.5, =0.45 The constant between =-0.8 is the interval The constant between is determined through experience. Obviously, this value is only a preferred value among multiple values.
在红狐的活动区间内随机生成红狐种群,设置当前迭代次数;Randomly generate a red fox population within the red fox's activity range and set the current number of iterations ;
其中,初始化红狐种群的定义如下:Among them, the definition of the initial red fox population is as follows:
其中,表示第次迭代过程中第个个体解向量的第一半经验因子,表示第次迭代过程中第个个体解向量的第二半经验因子,表示第次迭代过程中第个个体解向量的第三半经验因子,表示第次迭代过程中第个个体解向量的第四半经验因子,表示第次迭代过程中第个个体解向量的质子交换膜内含水量,表示第次迭代过程中第个个体解向量的质子交换膜恒定电阻,表示第次迭代过程中第个个体解向量的燃料电池常数因子;且满足: in, Indicates In the iteration process The first half empirical factor of the individual solution vector, Indicates In the iteration process The second semi-empirical factor of the individual solution vector, Indicates In the iteration process The third semi-empirical factor of the individual solution vector, Indicates In the iteration process The fourth semi-empirical factor of the individual solution vector, Indicates In the iteration process The water content in the proton exchange membrane of each individual solution vector, Indicates In the iteration process The constant resistance of the proton exchange membrane of the individual solution vector, Indicates In the iteration process The fuel cell constant factor of each individual solution vector; and satisfying:
其中,为解的维度,表示红狐活动空间中第维解向量参数的下限,表示红狐活动空间中第维解向量参数的上限。in, is the dimension of the solution, Indicates the red fox activity space The lower limit of the solution vector parameter, Indicates the red fox activity space An upper limit on the dimensional solution vector parameter.
步骤3.2:搜寻猎物栖息地,采用融入混沌优化算法的小波精英学习策略进行全局搜索;Step 3.2: Search for prey habitats and use a wavelet elite learning strategy integrated with a chaotic optimization algorithm for global search;
根据步骤2所述的质子交换膜燃料电池的电压误差模型的目标函数计算种群内所有红狐个体的适应度,并依据适应度的大小对红狐个体进行排序,挑选出最优红狐个体;The fitness of all red fox individuals in the population is calculated according to the objective function of the voltage error model of the proton exchange membrane fuel cell described in step 2, and the red fox individuals are sorted according to the size of the fitness to select the best red fox individual ;
采用融入混沌优化算法的小波精英学习策略驱动其余个体向最优个体移动,具体如下:The wavelet elite learning strategy integrated with the chaotic optimization algorithm is used to drive the remaining individuals to move toward the optimal individual, as follows:
其中,为Morlet小波,为全局搜索因子,为SPM混沌映射,表示第次迭代过程中第个更新前的个体,表示第次迭代过程中更新前的全局最优解,为符号函数,为红狐活动空间的下限,为红狐活动空间的上限,表示第次迭代过程中第个更新后的个体;in, is the Morlet wavelet, is the global search factor, is the SPM chaotic map, Indicates In the iteration process individuals before the update, indicating the The global optimal solution before updating in the iteration process is is the symbolic function, is the lower limit of the red fox's activity space. The upper limit of the red fox's activity space. Indicates In the iteration process An updated individual;
其中,为区间之间的随机数。in, For interval A random number between .
其中,为取随机数函数,为与之间的欧氏距离,计算公式如下:in, is the random number function, and The Euclidean distance between them is calculated as follows:
其中,为质子交换膜燃料电池模型参数个数;in, is the number of parameters of the proton exchange membrane fuel cell model;
其中,表示混沌因子,为区间之间的随机数,为取余函数,表示第次迭代过程中第个更新前的个体,=0.4和=0.3为区间之间的常数;表示第次迭代过程中第个更新前的个体,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。in, represents the chaos factor, For interval A random number between is the remainder function, Indicates In the iteration process Individuals before the update, =0.4 and =0.3 is the interval The constant between Indicates In the iteration process The value is determined through experience. Obviously, this value is only a preferred value among multiple values.
根据步骤2所述的质子交换膜燃料电池的电压误差模型重新计算更新后的红狐适应度,判断更新后的红狐适应度是否优于历史最优个体,若满足保持更新后的位置不变并替换历史最优个体。Recalculate the updated red fox fitness according to the voltage error model of the proton exchange membrane fuel cell described in step 2, and determine whether the updated red fox fitness is better than the historical best individual. If it is satisfied, keep the updated position unchanged and replace the historical best individual.
步骤3.3:遍历栖息地,在猎物栖息地内搜索猎物的准确位置;Step 3.3: Traverse the habitat and search for the exact location of the prey in the prey habitat;
对每只红狐设置伪装因子以模拟红狐在接近猎物时被注意到的可能性,其中伪装因子为区间之间的随机数;Set a camouflage factor for each red fox To simulate the likelihood of a red fox being noticed when approaching prey, the camouflage factor For interval A random number between
判断伪装因子是否满足,若不满足则留在原地进行伪装;Determine the camouflage factor Is it satisfied? , if not satisfied, stay where you are and pretend;
其中,=0.75为区间之间的常数。in, =0.75 is the interval The constant between .
若满足则设置路线影响因子与局部放缩因子;If satisfied, set the route impact factor Local scaling factor ;
其中,路线影响因子为区间之间的随机数,局部放缩因子为区间之间的随机数;Among them, the route impact factor For interval A random number between , a local scaling factor For interval A random number between
判断满足红狐个体的路线影响因子是否满足,若满足则依照螺线公式更新红狐种群;其中,=0.5为区间之间的常数,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。Judgment Satisfaction Factors affecting the route of individual red foxes Is it satisfied? , if satisfied, the red fox population is updated according to the spiral formula; among them, =0.5 is the interval The constant between is determined through experience. Obviously, this value is only a preferred value among multiple values.
所述螺线公式,具体如下:The spiral formula is as follows:
其中,表示第一搜索角度,表示第二搜索角度,表示第三搜索角度,表示第四搜索角度,表示第五搜索角度,表示第六搜索角度,表示第七搜索角度,均为之间的随机数,为局部放缩因子,表示第次迭代过程中第个个体解向量的第一半经验因子,表示第次迭代过程中第个个体解向量的第二半经验因子,表示第次迭代过程中第个个体解向量的第三半经验因子,表示第次迭代过程中第个个体解向量的第四半经验因子,表示第次迭代过程中第个个体解向量的质子交换膜内含水量,表示第次迭代过程中第个个体解向量的质子交换膜恒定电阻,表示第次迭代过程中第个个体解向量的燃料电池常数因子,表示第次迭代过程中第个个体螺线更新后解向量的第一半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的第二半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的第三半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的第四半经验因子,表示第次迭代过程中第个个体螺线更新后解向量的质子交换膜内含水量,表示第次迭代过程中第个个体螺线更新后解向量的质子交换膜恒定电阻,表示第次迭代过程中第个个体螺线更新后解向量的燃料电池常数因子;in, represents the first search angle, represents the second search angle, represents the third search angle, represents the fourth search angle, represents the fifth search angle, represents the sixth search angle, Indicates the seventh search angle, both A random number between is the local scaling factor, Indicates In the iteration process The first half empirical factor of the individual solution vector, Indicates In the iteration process The second semi-empirical factor of the individual solution vector, Indicates In the iteration process The third semi-empirical factor of the individual solution vector, Indicates In the iteration process The fourth semi-empirical factor of the individual solution vector, Indicates In the iteration process The water content in the proton exchange membrane of each individual solution vector, Indicates In the iteration process The constant resistance of the proton exchange membrane of the individual solution vector, Indicates In the iteration process The fuel cell constant factor for each individual solution vector, Indicates In the iteration process The first half empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The second half empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The third semi-empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The fourth semi-empirical factor of the solution vector after the individual spiral is updated, Indicates In the iteration process The water content in the proton exchange membrane of the solution vector after the individual spiral is updated, Indicates In the iteration process The constant resistance of the proton exchange membrane after the solution vector of each individual spiral is updated, Indicates In the iteration process The fuel cell constant factor of the solution vector after each individual spiral update;
为红狐的视野半径,计算公式如下: is the field of vision radius of the red fox, and the calculation formula is as follows:
其中,为观察角度,为天气因子,为局部放缩因子。in, For the observation angle, For weather factors, is the local scaling factor.
若不满足路线影响因子,则采用改进后的阿基米德螺线公式更新红狐种群,=0.5为区间之间的常数;If the route impact factor is not met , the improved Archimedean spiral formula is used to update the red fox population. =0.5 is the interval The constant between
所述改进后的阿基米德螺线公式,具体如下:The improved Archimedean spiral formula is as follows:
其中,为表示第次迭代过程中更新后的第个个体,表示调节因子,=1为对数螺旋形状常数,为区间中的随机数,T表示最大迭代次数,表示第次迭代过程中第个更新前的个体,表示第次迭代过程中更新前的全局最优解;in, To indicate the After the update in the iteration Individuals, represents the adjustment factor, =1 is the logarithmic spiral shape constant, For interval The random number in, T represents the maximum number of iterations, Indicates In the iteration process Individuals before the update, Indicates The global optimal solution before updating in the iteration process;
调节因子的计算公式为:Modulating Factor The calculation formula is:
其中,为四舍五入函数;in, is the rounding function;
重新计算红狐种群适应度,依据适应度对红狐进行重新排序,并选出最优的两只红狐个体;Recalculate the fitness of the red fox population, reorder the red foxes according to their fitness, and select the two best red fox individuals;
步骤3.4:繁殖与放逐,根据红狐个体的适应度选择个最差个体放逐至栖息地之外或直接猎杀,其中,为具体操作步骤如下:Step 3.4: Breeding and exile, selection based on individual red fox fitness The worst individuals are exiled outside their habitats or hunted directly, among which, The specific steps are as follows:
设置进化因子,其中为之间的随机数。Set the evolution factor ,in for A random number between .
判断是否满足,若满足,则将个最差个体猎杀,同时最优的两只红狐会在栖息地内繁殖出等量的红狐个体替代被猎杀的红狐,随机分布在当前栖息地内;其中,=0.45为区间之间的常数,该取值通过经验取值,显然,该取值仅仅是多种取值中的一种优选取值。judge Is it satisfied? , if satisfied, then The worst individuals are hunted, and the two best red foxes will breed an equal number of red fox individuals in the habitat to replace the hunted red foxes, which are randomly distributed in the current habitat; =0.45 is the interval The constant between is determined through experience. Obviously, this value is only a preferred value among multiple values.
当前栖息地中心点计算公式如下:The current habitat center point calculation formula is as follows:
其中,为第次迭代过程中适应度排序为前2的红狐个体。in, For the The red fox individuals ranked in the top 2 in fitness during the iteration.
步骤3.4.2所述栖息地的直径计算公式如下:The diameter of the habitat described in step 3.4.2 is calculated as follows:
若不满足,则将个最差红狐个体逐出栖息地,被逐出栖息地的红狐会结合狩猎经验重新寻找新的猎物栖息地;If not satisfied , then The worst red foxes are driven out of their habitats. The driven red foxes will find new prey habitats based on their hunting experience.
即采用新型回溯更新策略对被放逐红狐的位置进行更新,更新公式如下:That is, a new backtracking update strategy is used to update the position of the exiled red fox. The update formula is as follows:
其中,为红狐的初始位置,为SPM混沌映射,为第次迭代过程中进化后的第个红狐个体,为幂函数分布值;为区间之间的常数,T表示最大迭代次数;in, is the initial position of the red fox, is the SPM chaotic map, For the After the evolution in the iteration Red fox individuals, is the power function distribution value; For interval The constant between them, T represents the maximum number of iterations;
计算所有红狐个体的适应度并排序,令;Calculate the fitness of all red fox individuals and sort them. ;
步骤3.5:重复步骤3.2—步骤3.4,直至大于,并输出优化后的第一半经验因子、优化后的第二半经验因子、优化后的第三半经验因子、优化后的第四半经验因子、优化后的膜的恒定电阻、优化后的质子交换膜内含水量、优化后的常数因子。Step 3.5: Repeat steps 3.2 to 3.4 until Greater than , and output the optimized first semi-empirical factor, the optimized second semi-empirical factor, the optimized third semi-empirical factor, the optimized fourth semi-empirical factor, the optimized constant resistance of the membrane, the optimized water content in the proton exchange membrane, and the optimized constant factor.
本发明的具体实施例还提供了一种计算机可读介质。A specific embodiment of the present invention also provides a computer-readable medium.
所述计算机可读介质为服务器工作站;The computer readable medium is a server workstation;
所述服务器工作站存储电子设备执行的计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行本发明实施例的质子交换膜燃料电池估测方法的步骤。The server workstation stores a computer program executed by an electronic device. When the computer program is executed on the electronic device, the electronic device executes the steps of the proton exchange membrane fuel cell estimation method according to the embodiment of the present invention.
应当理解的是,本说明书未详细阐述的部分均属于现有技术。It should be understood that parts not elaborated in detail in this specification belong to the prior art.
应当理解的是,上述针对较佳实施例的描述较为详细,并不能因此而认为是对本发明专利保护范围的限制,本领域的普通技术人员在本发明的启示下,在不脱离本发明权利要求所保护的范围情况下,还可以做出替换或变形,均落入本发明的保护范围之内,本发明的请求保护范围应以所附权利要求为准。It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310042334.4A CN116053536B (en) | 2023-01-28 | 2023-01-28 | Proton exchange membrane fuel cell estimation method and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310042334.4A CN116053536B (en) | 2023-01-28 | 2023-01-28 | Proton exchange membrane fuel cell estimation method and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116053536A CN116053536A (en) | 2023-05-02 |
CN116053536B true CN116053536B (en) | 2023-06-16 |
Family
ID=86119998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310042334.4A Active CN116053536B (en) | 2023-01-28 | 2023-01-28 | Proton exchange membrane fuel cell estimation method and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116053536B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114976129A (en) * | 2022-05-13 | 2022-08-30 | 南京工业大学 | Application of novel crow search algorithm in proton exchange membrane fuel cell model parameter identification |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6422999B1 (en) * | 1999-05-13 | 2002-07-23 | Daniel A. Hill | Method of measuring consumer reaction |
GB2537406B (en) * | 2015-04-16 | 2017-10-18 | Oxis Energy Ltd | Method and apparatus for determining the state of health and state of charge of lithium sulfur batteries |
CN114089210B (en) * | 2022-01-24 | 2022-04-01 | 北京理工大学 | Method and system for estimating state of health of proton exchange membrane fuel cell |
CN115392139B (en) * | 2022-10-27 | 2023-02-07 | 西北工业大学 | Fuel cell parameter identification method |
-
2023
- 2023-01-28 CN CN202310042334.4A patent/CN116053536B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114976129A (en) * | 2022-05-13 | 2022-08-30 | 南京工业大学 | Application of novel crow search algorithm in proton exchange membrane fuel cell model parameter identification |
Also Published As
Publication number | Publication date |
---|---|
CN116053536A (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111611750B (en) | A lithium-ion battery charging and thermal management method using digital twin technology | |
CN107463995B (en) | Fuel cell optimization modeling method with adaptive genetic strategy RNA-GA | |
CN106654319B (en) | A kind of PEMFC system temperature modeling method based on mutation particle swarm and differential evolution hybrid algorithm | |
CN115392139B (en) | Fuel cell parameter identification method | |
CN110399928A (en) | Solid oxide fuel cell voltage prediction method, terminal equipment and storage medium | |
Askarzadeh et al. | A new artificial bee swarm algorithm for optimization of proton exchange membrane fuel cell model parameters | |
CN113095715B (en) | Hydrogen-containing energy storage micro-grid optimized operation method based on deep reinforcement learning | |
CN110210071B (en) | All-vanadium redox flow battery energy storage system operation optimization method based on genetic algorithm | |
CN110188408B (en) | Particle swarm algorithm-based operation optimization method for all-vanadium redox flow battery energy storage system | |
Sheng et al. | System identification of the PEMFCs based on balanced manta-ray foraging optimization algorithm | |
CN116494839A (en) | Whale optimization algorithm-based fuel cell automobile energy management method | |
CN116053536B (en) | Proton exchange membrane fuel cell estimation method and computer readable medium | |
CN110688762B (en) | A Model Construction Method for Solid Oxide Fuel Cell Stack | |
CN102521523B (en) | Autophagy membrane-computing optimization modeling method for fuel cell | |
Liu et al. | A multi-objective evolutionary algorithm based on membrane systems | |
CN118226757B (en) | Energy management method and system for fuel cell aircraft | |
CN115983134A (en) | A neural network-based battery power state prediction method and system | |
CN115966739B (en) | Fuel cell parameter identification method and system based on improved hippocampus optimization algorithm | |
CN118386949B (en) | Fuel cell automobile energy management method based on deep reinforcement learning | |
CN117669139A (en) | Optimization method of proton exchange membrane fuel cell flow channel based on improved genetic algorithm | |
CN116819372A (en) | A neural network method for calculating the health status of energy storage batteries | |
Menon et al. | Realisation of optimal parameters of PEM fuel cell using simple genetic algorithm (SGA) and simulink modeling | |
CN118898207B (en) | Wind power plant layout optimization method based on intelligent algorithm | |
Balasubramanian et al. | An innovative approach of PEMFC parameter extraction using artificial immune system | |
CN118472499B (en) | A control strategy optimization method for thermal management system of flying car power battery |
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 |