CN115954504A - PEMFC model parameter optimization method based on CGSASA algorithm - Google Patents
PEMFC model parameter optimization method based on CGSASA algorithm Download PDFInfo
- Publication number
- CN115954504A CN115954504A CN202211628455.9A CN202211628455A CN115954504A CN 115954504 A CN115954504 A CN 115954504A CN 202211628455 A CN202211628455 A CN 202211628455A CN 115954504 A CN115954504 A CN 115954504A
- Authority
- CN
- China
- Prior art keywords
- algorithm
- individual
- formula
- population
- cgsasa
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000005457 optimization Methods 0.000 title claims abstract description 28
- 230000000739 chaotic effect Effects 0.000 claims abstract description 26
- 238000013507 mapping Methods 0.000 claims abstract description 21
- 239000000446 fuel Substances 0.000 claims abstract description 13
- 238000002922 simulated annealing Methods 0.000 claims abstract description 10
- 230000005484 gravity Effects 0.000 claims abstract description 8
- 238000010845 search algorithm Methods 0.000 claims abstract description 5
- 239000012528 membrane Substances 0.000 claims description 18
- 230000010287 polarization Effects 0.000 claims description 17
- 238000006243 chemical reaction Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 10
- UFHFLCQGNIYNRP-UHFFFAOYSA-N Hydrogen Chemical compound [H][H] UFHFLCQGNIYNRP-UHFFFAOYSA-N 0.000 claims description 6
- 230000001133 acceleration Effects 0.000 claims description 6
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 claims description 6
- 238000011156 evaluation Methods 0.000 claims description 6
- 239000001257 hydrogen Substances 0.000 claims description 6
- 229910052739 hydrogen Inorganic materials 0.000 claims description 6
- 239000001301 oxygen Substances 0.000 claims description 6
- 229910052760 oxygen Inorganic materials 0.000 claims description 6
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 6
- 238000004088 simulation Methods 0.000 claims description 5
- 230000008859 change Effects 0.000 claims description 4
- 238000001816 cooling Methods 0.000 claims description 4
- 230000004913 activation Effects 0.000 claims description 3
- 238000005341 cation exchange Methods 0.000 claims description 3
- 239000007789 gas Substances 0.000 claims description 3
- 238000012804 iterative process Methods 0.000 claims description 3
- 239000007800 oxidant agent Substances 0.000 claims description 3
- 230000033116 oxidation-reduction process Effects 0.000 claims description 3
- 230000001590 oxidative effect Effects 0.000 claims description 3
- 230000035699 permeability Effects 0.000 claims description 3
- 239000012466 permeate Substances 0.000 claims description 3
- 239000012495 reaction gas Substances 0.000 claims description 3
- 230000002441 reversible effect Effects 0.000 claims description 3
- 238000012163 sequencing technique Methods 0.000 claims description 3
- 239000000126 substance Substances 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 230000003213 activating effect Effects 0.000 claims description 2
- 238000000926 separation method Methods 0.000 claims 1
- 230000000750 progressive effect Effects 0.000 abstract 1
- 238000012360 testing method Methods 0.000 description 6
- 238000000137 annealing Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 229910052731 fluorine Inorganic materials 0.000 description 1
- 125000001153 fluoro group Chemical group F* 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002028 premature Effects 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
Images
Classifications
-
- 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
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a PEMFC model parameter optimization method based on a CGSASA algorithm. The parameters are preferably an important step in the modeling of the fuel cell. Aiming at the problems that the basic gravity search algorithm is low in convergence speed and easy to fall into local optimum, the algorithm combines the ergodicity of chaotic mapping and the advantage that the SA algorithm has progressive convergence, the gravity search algorithm, the chaotic mapping and the simulated annealing are organically combined by introducing two parameters of a population grouping coefficient and a mixed evolution algebra, the CGSASA algorithm is provided, so that the respective advantages of the three algorithms are expected to be exerted, and the solving precision and the convergence speed of the standard GSA algorithm are improved.
Description
Technical Field
The invention relates to the technical field of PEMFCs, in particular to a PEMFC model parameter optimization method based on a CGSASA algorithm.
Background
Proton exchange membrane fuel cells have the advantages of high energy conversion efficiency, quick start at low temperature, zero emission, complementarity between the energy and solar energy and wind energy, and the like, and have attracted more and more attention in the field of new energy. The establishment of a steady-state model reflecting the output performance of the PEMFC is the basis for system structure optimization and performance analysis, and has important significance for further improving the process control performance of the PEMFC and improving the operation and running level of the system. In the modeling process of the PEMFC, besides the requirement of reasonable structure of a model, the simulation effect and the prediction accuracy of the model depend on the selection of model parameters to a great extent. The parameter estimation problem usually translates it into a minimization problem of the deviation of the empirical observations from the estimated values. Because the internal reaction mechanism of the fuel cell is very complex, the PEMFC model has the characteristics of nonlinear structure and numerous parameters, and high correlation and remarkable nonlinear interference exist among the parameters, so that the parameter estimation becomes a complex high-dimensional nonlinear optimization problem, and the solution of the optimization problem faces great challenges.
Most of traditional gradient-based classical optimization methods adopt local search and are sensitive to initial values, the solution of the PEMFC model parameter optimization problem is large in workload and low in solution precision, and a global optimal solution is difficult to obtain.
Disclosure of Invention
In view of this, the present invention aims to provide a PEMFC model parameter optimization method based on a CGSASA algorithm, which can improve the solution accuracy and convergence rate of a standard PSO algorithm, has higher simulation accuracy, and has obvious superiority for optimizing a polarization curve model parameter of a PEMFC.
In order to achieve the purpose, the invention adopts the following technical scheme: a PEMFC model parameter optimization method based on a CGSASA algorithm comprises the following specific steps:
step S1, initializing CGSASA algorithm parameters: population size m, maximum number of iterations G max SA initial temperature T 0 Termination temperature Tf, cooling rate ρ; mixed algebra Mg and population grouping coefficient Pd;
s2, initializing GSA population individuals: initializing a position value and a speed value of a population individual according to a Logistic chaotic mapping equation, namely formula (1), and setting the current iteration number to be G =0; GG =1;
x n =u·(1-x n ) x n ∈(0,1) (1)
in the formula: x is a radical of a fluorine atom n The position value of the population individual corresponding to the iteration value of the variable x at the nth time; u is the value x of the variable x at the nth iteration n The corresponding speed value of the population individual; x is more than or equal to 0 and less than or equal to 1 and is a bifurcation parameter of the Logistic chaotic mapping;
s3, judging an iteration condition, and if G is less than or equal to G max If not, turning to step6, otherwise, turning to step S4;
s4, evaluating the individual fitness evaluation, carrying out individual adjustment on the race, if GG is less than Mg, turning to S5, otherwise, using the current optimal position of each individualForming a new population, sequencing according to the fitness value, dividing the new population into two groups according to a population grouping coefficient Pd, and executing simulated annealing operation on Pd m superior individuals:
(3) If Δ f < 0, then acceptAs a new solution; otherwise accepts with probability exp (- Δ f/T) < >>As a new solution;
(4) Update the temperature T k+1 =ρ·T k (ii) a For (1-Pd) × m poor individuals, performing global disturbance by using chaotic mapping;
step S5: calculating the mass, gravity and acceleration of each individual in the new population according to the following formulas (2) to (5):
step S6: push typeAnd/or>Updating individual speed and position, and enabling G = G +1Step S3 is executed;
In a preferred embodiment: passing each individual throughIs mapped to the chaotic variable->Hybrid variable>Warp formula x n =u·(1-x n )x n The element belongs to (0, 1) to do chaotic motion to obtain a new position point->Will be/are>Pass-through type>Transform, map to (g) i,max ,g i,min ) Is based on a common variable->Then, two parts of elite individuals obtained by performing simulated annealing and chaotic mapping are combined into a new population again, and GG =0 is set.
In a preferred embodiment: the principle of the CGSASA algorithm is as follows:
the principle of the CGSASA hybrid algorithm is: generating a large number of initial populations by utilizing the ergodicity of chaotic mapping, selecting the initial population of the GSA from the initial populations, setting parameters, and recording the current optimal position of each individual; when the GSA runs to a certain algebra, a new population is formed by the optimal positions of the current individuals and is sorted according to the fitness value; dividing the sorted new population into two parts including a better individual and a worse individual according to a preset grouping coefficient, and performing local search on each better individual by using an SA (SA) algorithm; for each poor individual, performing global disturbance by using chaotic mapping to increase the diversity of the population; and finally, mixing the two parts of individuals which are subjected to the local search and the global disturbance to form a new population, and continuing to carry out the GSA evolution operation, and alternating the steps until the termination condition of the algorithm is met.
In a preferred embodiment: the PEMFC model is specifically as follows:
the essential reaction of the PEM fuel cell is the oxidation-reduction of hydrogen and oxygen to produce water and the direct conversion of the chemical energy stored in the fuel and oxidant into electrical and thermal energy; the method comprises the following specific steps:
anode H 2 →2H + +2e-
The two polar reactions are separated by a proton exchange membrane, which is a cation exchange membrane with selective permeability, allowing only protons H + Passing; therefore, the protons generated at the anode permeate the proton exchange membrane to migrate to the cathode, and the electrons are attracted by the protons diffused to the cathode to reach the cathode through an external circuit, so as to form current;
the PEMFC fuel cell stack dynamic physical model comprises a steady-state electrochemical model, dynamic models of a cathode and an anode and a temperature model;
1) The steady-state electrochemical model satisfies:
V cell =E Nernst -η act -η ohmic -η con (6)
in the formula, E Nernst Is a thermodynamic electromotive force; eta act Is an activation overvoltage; eta ohmic Is an ohmic over-currentPressing; eta con Is a concentration overvoltage;
2) Thermodynamic electromotive force E Nernst Is the thermodynamic equilibrium reversible electromotive force when the single cell is open-circuited and no load, and is expressed as:
in the formula: Δ G is gibbs free energy; f is a Faraday constant; Δ S is enthalpy change; r is a universal gas constant;is the effective partial pressure of hydrogen; />Is the effective partial pressure of oxygen; t is the working environment temperature; t is a unit of 0 Is a reference temperature;
3) Active polarization overvoltage E act Is the voltage drop due to the polarization of the cathode and anode of the electrode, and is a measure of the polarization voltage drop to the electrode, expressed as:
η act =-[ξ 1 +ξ 2 T+ξ 3 Tln(CO2)+ξ 4 Tln(I)] (8)
in the formula, coefficient xi 1 、ξ 2 、ξ 3 And xi 4 Determined by experimental data and a parameter optimization method;
4) Ohmic polarization overvoltage E ohmic Comprising a voltage drop caused by the impedance of the two cells, i.e. the equivalent membrane impedance resistance R of the protons across the PEM M And the resistance R of the electrons passing through the external circuit C The resulting voltage loss, expressed according to ohm's law, is:
V ohmic =I(R M +R C ) (9)
wherein the equivalent film resistance R M Represented by the formula:
R M =ρ M ·l/A (10)
in the formula, ρ M Is the resistivity of the film to electron flow; l is the thickness of the film;
ρ M is obtained by the following formula:
in the formula, lambda is the water content of the proton exchange membrane;
5) Concentration polarization overvoltage E con Is a reaction gas H 2 And O 2 The voltage drop induced by the mass transfer process of (1) is represented by the following formula:
V con =-bln(1-I/I max ) (12)
in the formula, b is a system parameter; i is the actual current density of the battery; i is max Is the maximum current density of the cell;
in the above PEMFC steady-state model, there are (xi) 1 ,ξ 2 ,ξ 3 ,ξ 4 ,λ,R c And b) the values of the 7 parameters are not determined.
In a preferred embodiment: the specific principle of the gravity search algorithm GSA is as follows:
in the space of the D-dimension,and &>The position and the speed of the ith individual are respectively initialized, the fitness value of each individual is calculated, and the quality of the corresponding individual is expressed as an expression (13):
wherein t is the number of iterations; fit i (t) and M i (t) are each an individual x i Fitness and quality of; best (t) and worst (t) are respectively an optimal solution and a worst solution of the t iteration;
the attractive force between the two bodies is then equation (14):
(i, j ∈ {1,2, \ 8230;, N }, and i ≠ j; D =1,2 \8230;, D) (14)
The total force acting on the individual i at the t-th iteration is formula (15):
wherein G (t) is a universal gravitation constant which is changed along with the iteration number t, and G (t) = G 0 e -αt/T In the formula G 0 And alpha is a constant, T is the maximum iteration number; epsilon is a constant such that the denominator is not zero; r ij (t) is the Euclidean distance between the two bodies; further, according to newton's second law, the acceleration is defined as formula (16):
the individual velocity and position updates are respectively equations (17), (18):
in a preferred embodiment: the specific principle of the simulated annealing algorithm is as follows:
the algorithm adopts a heuristic random search process based on a Monte Carlo iterative solution method; the algorithm repeats iteration of 'generating new solution, calculating target function difference, accepting or abandoning' on the current solution from the initial solution x and the temperature parameter T, gradually attenuates the value T, and the current solution when the algorithm is terminated is the obtained approximate optimal solution; the probability that the current new solution is accepted or rejected in the iterative process is determined by the Metropolis criterion;
whereinAnd E (x) are expressed as objective function values corresponding to the new solution and the old solution, respectively.
In a preferred embodiment: the individual fitness function in step S4 is specifically as follows:
applying the proposed CGSASA algorithm to the PEMFC battery model to obtain ([ xi ]) 1 ,ξ 2 ,ξ 3 ,ξ 4 λ, rc, b); the fitness function in the parameter optimization process is defined as:
in the formula, S is a fitness function; v i And V i sim Respectively an ith experimental value and a model simulation output value; n is the number of data points.
Compared with the prior art, the invention has the following beneficial effects: compared with the traditional algorithm, the CGSASA has the advantages that the square error obtained by parameter optimization is smaller, the model precision performance is better, and the convergence speed is higher; the PEMFC polarization curve optimized based on the CGSASA algorithm has the best fitting effect with the experimental value and higher precision, and can accurately reflect the change trend of the voltage of the proton exchange membrane fuel cell along with the current; by combining the chaotic mapping and the annealing search strategy, the premature convergence phenomenon is effectively avoided, and higher convergence precision is obtained. Thereby laying a foundation for the optimization design and control of the PEMFC system.
Drawings
FIG. 1 is a flow chart of a method of a preferred embodiment of the present invention.
Detailed Description
The invention is further explained by the following embodiments in conjunction with the drawings.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present application; as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
A PEMFC model parameter optimization method based on CGSASA algorithm refers to FIG. 1, and comprises the following specific steps:
step S1, initializing CGSASA algorithm parameters: population size m, maximum number of iterations G max SA initial temperature T 0 End temperature T f The cooling rate ρ; mixed algebra Mg and population grouping coefficient Pd;
s2, initializing GSA population individuals: initializing a position value and a speed value of a population individual according to a Logistic chaotic mapping equation, namely formula (1), and setting the current iteration number to be G =0; GG =1;
x n =u·(1-x n ) x n ∈(0,1) (1)
in the formula: x is the number of n The position value of the population individual corresponding to the iteration value of the variable x at the nth time; u is the value x of the variable x at the nth iteration n The corresponding speed value of the individual population; x is more than or equal to 0 and less than or equal to 1 and is a bifurcate parameter of the Logl sic chaotic mapping;
s3, judging an iteration condition, and if G is less than or equal to G max If not, turning to step6, otherwise, turning to step S4;
s4, evaluating the individual fitness evaluation, carrying out individual adjustment on the race, if GG is less than Mg, turning to S5, otherwise, using the current optimal position of each individualForming a new population, sequencing according to the fitness value, dividing the new population into two groups according to a population grouping coefficient Pd, and executing simulated annealing operation on Pd m superior individuals:
(3) If Δ f < 0, then acceptAs a new solution; otherwise it is accepted with a probability exp (- Δ f/T)>As a new solution; />
(4) Update temperature Tk +1= ρ · T k (ii) a For (1-Pd) m poor individuals, performing global disturbance by using chaotic mapping;
step S5: calculating the mass, gravity and acceleration of each individual in the new population according to the following formulas (2) to (5):
step S6: push typeAnd/or>Updating the individual speed and position, enabling G = G +1, and turning to the step S3;
Passing each individual throughIs mapped to the chaotic variable->Mix the variable->Warp formula x n =u·(1-x n )x n The element belongs to (0, 1) to do chaotic motion to obtain a new position point->Will->Passing through typeTransform, map to (gi, max, g) i,min ) Is based on a common variable->Then, two parts of elite individuals obtained by performing simulated annealing and chaotic mapping are grouped into a new population again, and GG =0.
The specific values of the control parameters are as follows:
the settings of the test function are: dimension D =30, the number of groups is set to N =50, and the maximum number of iterations Max _ it =2000. The parameters of the CGSASA algorithm are set as: the annealing initiation temperature T0=92, and the cooling rate k =0.98.
The principle of the CGSASA algorithm is as follows:
the principle of the CGSASA hybrid algorithm is: generating a large number of initial populations by utilizing the ergodicity of chaotic mapping, selecting the initial population of the GSA from the initial populations, setting parameters, and recording the current optimal position of each individual; when the GSA runs to a certain algebra, a new population is formed by the optimal positions of the current individuals and is sorted according to the fitness value; dividing the sorted new population into two parts including a better individual and a worse individual according to a preset grouping coefficient, and performing local search on each better individual by using an SA algorithm; for each poor individual, performing global disturbance by using chaotic mapping to increase the diversity of the population; and finally, mixing the two parts of individuals which are subjected to the local search and the global disturbance to form a new population, and continuing the GSA evolution operation, and alternating the steps until the termination condition of the algorithm is met.
The PEMFC model is specifically as follows:
the essential reaction of the PEM fuel cell is the oxidation-reduction of hydrogen and oxygen to produce water and the direct conversion of the chemical energy stored in the fuel and oxidant into electrical and thermal energy; the method comprises the following specific steps:
anode H 2 →2H + +2e -
The two polar reactions are separated by a proton exchange membrane, which is a cation exchange membrane with selective permeability, allowing only protons H + Passing; therefore, the protons generated at the anode permeate the proton exchange membrane to migrate to the cathode, and the electrons are attracted by the protons diffused to the cathode to reach the cathode through an external circuit, so as to form current;
the PEMFC fuel cell stack dynamic physical model comprises a steady-state electrochemical model, dynamic models of a cathode and an anode and a temperature model;
1) The steady-state electrochemical model satisfies:
V ce ll=EN ernst -η act -η ohmic -η con (6)
in the formula, E Nernst Is a thermodynamic electromotive force; eta act Is an activation overvoltage; eta ohmic Is an ohmic overvoltage; eta con Is a concentration overvoltage;
2) Thermodynamic electromotive force E Nernst Is the thermodynamic equilibrium reversible electromotive force when a single cell is open-circuited and no load, and is expressed as:
in the formula: Δ G is gibbs free energy; f is a Faraday constant; Δ S is enthalpy change; r is a universal gas constant;is an effective partial pressure of hydrogen; />Is the effective partial pressure of oxygen; t is the working environment temperature; t is 0 Is a reference temperature;
3) Activating polarization overvoltage E act Is the voltage drop due to the polarization of the cathode and anode of the electrode, and is a measure of the polarization voltage drop to the electrode, expressed as:
in the formula, coefficient xi 1 、ξ 2 、ξ 3 And xi 4 Determined by experimental data and a parameter optimization method;
4) Ohmic polarization overvoltage E ohmic Involving a voltage drop due to the impedance of the two-part cell, i.e. the equivalent membrane impedance resistance R of the protons across the proton exchange membrane M And the resistance R of the electrons passing through the external circuit C The resulting voltage loss, expressed according to ohm's law, is:
V ohmic =I(R M +R C ) (9)
wherein the equivalent film resistance R M Represented by the formula:
R M =ρ M ·l/A (10)
in the formula, ρ M Is the resistivity of the film to electron flow; l is the thickness of the film;
ρ M is obtained by the following formula:
in the formula, lambda is the water content of the proton exchange membrane;
5) Concentration polarization overvoltage E con Is a reaction gas H 2 And O 2 The voltage drop induced by the mass transfer process of (a) is represented by the following formula:
V con =-bln(1-I/I max ) (12)
in the formula, b is a system parameter; i is electricityThe actual current density of the cell; i is max Is the maximum current density of the battery;
in the above PEMFC steady-state model, there are (xi) 1 ,ξ 2 ,ξ 3 ,ξ 4 ,λ,R c And b) the values of the 7 parameters are not determined. The specific principle of the gravity search algorithm GSA is as follows:
in the space of the D-dimension,and &>The position and the speed of the ith individual are respectively initialized, the fitness value of each individual is calculated, and the quality of the corresponding individual is expressed as an expression (13):
wherein t is the number of iterations; fit (Fit) i (t) and M i (t) are each an individual x i Fitness and quality of; best (t) and worst (t) are respectively an optimal solution and a worst solution of the t iteration;
the attractive force between the two bodies is then equation (14):
(i, j ∈ {1,2, \ 8230;, N }, and i ≠ j; D =1,2 \8230;, D) (14)
The total force at the t iteration on individual i is formula (15):
wherein G (t) is a universal gravitation constant which is transformed with the iteration number t, and G (t) = G 0 e -αt/T In the formula G 0 And alpha is a constant, T is the maximum iteration number; epsilon is a constantMaking the denominator not zero; r ij (t) is the Euclidean distance between the two bodies; further, according to newton's second law, the acceleration is defined as formula (16):
the individual velocity and position updates are equations (17), (18), respectively:
the specific principle of the simulated annealing algorithm is as follows:
the algorithm adopts a heuristic random search process based on a Monte Carlo iterative solution method; the algorithm repeats iteration of 'generating new solution, calculating target function difference, accepting or abandoning' on the current solution from the initial solution x and the temperature parameter T, gradually attenuates the value T, and the current solution when the algorithm is terminated is the obtained approximate optimal solution; the probability that the current new solution is accepted or rejected in the iterative process is determined by the Metropolis criterion;
whereinAnd E (x) are expressed as objective function values corresponding to the new solution and the old solution, respectively.
The individual fitness function of step S4 is specifically as follows:
applying the proposed CGSASA algorithm to the PEMFC battery model to obtain ([ xi ]) 1 ,ξ 2 ,ξ 3 ,ξ 4 ,λ,R c The set of optimal parameter combinations of b); in the process of parameter optimizationThe fitness function is defined as:
in the formula, S is a fitness function; v i And V i sim Respectively an ith experimental value and a model simulation output value; n is the number of data points.
The test selects 5 representative standard test functions to verify the optimizing performance of the proposed CGSASA algorithm, and compares the optimizing performance with two optimization algorithms of GSA and PSO. Table 1 lists 5 criteria functions and their search spaces. The dimension of the test function is set to D =30, the population is set to N =50, and the maximum number of iterations Max _ it =2000. In order to eliminate the influence of randomness, each algorithm was independently run 20 times on each standard test function, and the results of the optimal values, mean values and variances obtained by the operation are shown in table 2.
TABLE 1 Standard test function
TABLE 2 Algorithm optimization results
The above description is only a preferred embodiment of the present invention, and all the equivalent changes and modifications made according to the claims of the present invention should be covered by the present invention.
Claims (7)
1. A PEMFC model parameter optimization method based on CGSASA algorithm is characterized in that: the method comprises the following specific steps:
step S1, initializing CGSASA algorithm parameters: population size m, maximum number of iterations G max SA initial temperature T 0 End temperature T f The cooling rate ρ; mixed algebra Mg and population grouping coefficient Pd;
s2, initializing GSA population individuals: initializing a position value and a speed value of a population individual according to a Logistic chaotic mapping equation, namely formula (1), and setting the current iteration number to be G =0; GG =1;
x n =u·(1-x n )x n ∈(0,1) (1)
in the formula: x is the number of n The position value of the population individual corresponding to the iteration value of the variable x at the nth time; u is the value x of the variable x at the nth iteration n The corresponding speed value of the individual population; x is more than or equal to 0 and less than or equal to 1 and is a bifurcate parameter of the Logic chaotic mapping;
s3, judging an iteration condition, and if G is less than or equal to G max If not, turning to step6, otherwise, turning to step S4;
s4, evaluating the individual fitness evaluation, carrying out individual adjustment on the race, if GG is less than Mg, turning to the step S5, or else, taking the current optimal position of each individualForming a new population, sequencing according to the fitness value, dividing the new population into two groups according to a population grouping coefficient Pd, and executing simulated annealing operation on Pd m superior individuals:
(3) If Δ f < 0, then acceptAs a new solution; otherwise accepts with probability exp (- Δ f/T) < >>As a new solution;
(4) Update the temperature T k+1 =ρ·T k (ii) a For (1-Pd) × m poor individuals, performing global disturbance by using chaotic mapping;
step S5: calculating the mass, gravity and acceleration of each individual in the new population according to the following formulas (2) to (5):
(i, j ∈ {1,2, \ 8230;, N }, and i ≠ j; D =1,2 \8230;, D)
Step S6: push typeAnd &>Updating the individual speed and position, enabling G = G +1, and turning to a step S3;
2. The PEMFC model parameter optimization method based on CGSASA algorithm of claim 1, wherein: passing each individual throughIs mapped to the chaotic variable->Mix the variable->Warp formula x n =u·(1-x n )x n The element belongs to (0, 1) to do chaotic motion to obtain a new position point->Will->Passing type->Transform, map to (g) i,max, g i,min ) Is based on a common variable->Then, the simulated annealing and chaos mapping are performedThe two elite individuals that came in again constituted a new population and were given GG =0.
3. The method of claim 1 for PEMFC model parameter optimization based on CGSASA algorithm, wherein: the principle of the CGSASA algorithm is as follows:
the principle of the CGSASA hybrid algorithm is: generating a large number of initial populations by utilizing the ergodicity of chaotic mapping, selecting the initial population of the GSA from the initial populations, setting parameters, and recording the current optimal position of each individual; when the GSA runs to a certain algebra, a new population is formed by the optimal positions of the current individuals and is sorted according to the fitness value; dividing the sorted new population into two parts including a better individual and a worse individual according to a preset grouping coefficient, and performing local search on each better individual by using an SA algorithm; for each poor individual, performing global disturbance by using chaotic mapping to increase the diversity of the population; and finally, mixing the two parts of individuals which are subjected to the local search and the global disturbance to form a new population, and continuing to carry out the GSA evolution operation, and alternating the steps until the termination condition of the algorithm is met.
4. The PEMFC model parameter optimization method based on CGSASA algorithm of claim 1, wherein: the PEMFC model is specifically as follows:
the essential reaction of the PEM fuel cell is the oxidation-reduction of hydrogen and oxygen to produce water and the direct conversion of the chemical energy stored in the fuel and oxidant into electrical and thermal energy; the method comprises the following specific steps:
anode H 2 →2H + +2e -
The bipolar reaction being carried out by proton exchangeMembrane separation which is a cation exchange membrane with selective permeability allowing only protons H + Passing; therefore, the protons generated at the anode permeate the proton exchange membrane to migrate to the cathode, and the electrons are attracted by the protons diffused to the cathode to reach the cathode through an external circuit, so as to form current;
the PEMFC fuel cell stack dynamic physical model comprises a steady-state electrochemical model, dynamic models of a cathode and an anode and a temperature model;
1) The steady-state electrochemical model satisfies:
V cell =E Nernst -η act -η ohmic -η con (6)
in the formula, E Nernst Is a thermodynamic electromotive force; eta act Is an activation overvoltage; eta ohmic Is an ohmic overvoltage; eta con Is a concentration overvoltage;
2) Thermodynamic electromotive force E Nernst Is the thermodynamic equilibrium reversible electromotive force when a single cell is open-circuited and no load, and is expressed as:
in the formula: Δ G is gibbs free energy; f is a Faraday constant; Δ S is enthalpy change; r is a universal gas constant;is an effective partial pressure of hydrogen; />Is the effective partial pressure of oxygen; t is the working environment temperature; t is 0 Is a reference temperature;
3) Activating polarization overvoltage E act Is the voltage drop due to the polarization of the cathode and anode of the electrode, and is a measure of the polarization voltage drop to the electrode, expressed as:
in the formula, coefficient xi 1 、ξ 2 、ξ 3 And xi 4 Determined by experimental data and a parameter optimization method;
4) Ohmic polarization overvoltage E ohmic Involving a voltage drop due to the impedance of the two-part cell, i.e. the equivalent membrane impedance resistance R of the protons across the proton exchange membrane M And the resistance R of the electrons passing through the external circuit C The voltage loss caused is expressed according to ohm's law as:
V ohmic =I(R M +R C ) (9)
wherein the equivalent film resistance R M Represented by the formula:
R M =ρ M ·l/A (10)
in the formula, ρ M Is the resistivity of the film to electron flow; l is the thickness of the film;
ρ M is obtained by the following formula:
in the formula, lambda is the water content of the proton exchange membrane;
5) Concentration polarization overvoltage E con Is a reaction gas H 2 And O 2 The voltage drop induced by the mass transfer process of (1) is represented by the following formula:
V con =-bln(1-I/I max ) (12)
in the formula, b is a system parameter; i is the actual current density of the battery; i is max Is the maximum current density of the cell;
in the above PEMFC steady-state model, xi is still 1 ,ξ 2 ,ξ 3 ,ξ 4 ,λ,R c And b) the values of the 7 parameters are not determined.
5. The method of claim 3 for PEMFC model parameter optimization based on CGSASA algorithm, wherein: the specific principle of the gravity search algorithm GSA is as follows:
in the space of the D-dimension,and &>The position and the speed of the ith individual are respectively initialized, the fitness value of each individual is calculated, and the quality of the corresponding individual is expressed as an expression (13):
wherein t is the number of iterations; fit (Fit) i (t) and M i (t) are each an individual x i Fitness and quality of (2); best (t) and worst (t) are respectively an optimal solution and a worst solution of the t iteration;
the attractive force between the two bodies is then equation (14):
the total force acting on the individual i at the t-th iteration is formula (15):
wherein G (t) is a universal gravitation constant which is changed along with the iteration number t, and G (t) = G 0 e -αt/T In the formula G 0 And alpha is a constant, T is the maximum iteration number; epsilon is a constant such that the denominator is not zero; r ij (t) is the Euclidean distance between the two bodies; further, according to newton's second law, the acceleration is defined as formula (16):
the individual velocity and position updates are respectively equations (17), (18):
6. the method of claim 3 for PEMFC model parameter optimization based on CGSASA algorithm, wherein: the specific principle of the simulated annealing algorithm is as follows:
the algorithm adopts a heuristic random search process based on a Monte Carlo iterative solution; the algorithm repeats iteration of 'generating new solution, calculating target function difference, accepting or abandoning' on the current solution from the initial solution x and the temperature parameter T, gradually attenuates the value T, and the current solution when the algorithm is terminated is the obtained approximate optimal solution; the probability that the current new solution is accepted or rejected in the iterative process is determined by the Metropolis criterion;
7. The PEMFC model parameter optimization method based on CGSASA algorithm of claim 1, wherein: the individual fitness function of step S4 is specifically as follows:
applying the proposed CGSASA algorithm to the PEMFC battery model to obtain ([ xi ]) 1 ,ξ 2 ,ξ 3 ,ξ 4 ,λ,R c The set of optimal parameter combinations of b); the fitness function in the parameter optimization process is defined as:
in the formula, S is a fitness function; v i And V i sim Respectively an ith experimental value and a model simulation output value; n is the number of data points.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211628455.9A CN115954504A (en) | 2022-12-17 | 2022-12-17 | PEMFC model parameter optimization method based on CGSASA algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211628455.9A CN115954504A (en) | 2022-12-17 | 2022-12-17 | PEMFC model parameter optimization method based on CGSASA algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115954504A true CN115954504A (en) | 2023-04-11 |
Family
ID=87286824
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211628455.9A Pending CN115954504A (en) | 2022-12-17 | 2022-12-17 | PEMFC model parameter optimization method based on CGSASA algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115954504A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106654319A (en) * | 2016-12-27 | 2017-05-10 | 东南大学 | Temperature modeling method for proton exchange membrane fuel cell (PEMFC) system based on variation particle swarm and differential evolution hybrid algorithm |
CN106709131A (en) * | 2016-11-15 | 2017-05-24 | 上海电机学院 | Parameter intelligent optimization method suitable for proton exchange membrane fuel cell model |
DE102016200111A1 (en) * | 2016-01-07 | 2017-07-13 | Volkswagen Aktiengesellschaft | Method for adapting a model for determining an operating parameter of a fuel cell and use of the model |
CN108764452A (en) * | 2018-06-01 | 2018-11-06 | 福州大学 | A kind of Chaos particle swarm optimization algorithm based on the mechanism of discussion |
WO2020191801A1 (en) * | 2019-03-27 | 2020-10-01 | 东北大学 | Lithium ion battery remaining life prediction method based on wolf pack optimization lstm network |
US20210028472A1 (en) * | 2019-07-26 | 2021-01-28 | Xi?An Jiaotong University | Similar Principle Analysis Method of Input and Output Characteristics for Fuel Cell |
AU2020103886A4 (en) * | 2020-12-04 | 2021-02-11 | Nanjing Forestry University | A Method for Estimating SOC of a Fractional-Order Kinetic Battery Considering Temperature and Hysteresis Effect |
CN114970332A (en) * | 2022-05-16 | 2022-08-30 | 西北工业大学 | Lithium battery model parameter identification method based on chaotic quantum sparrow search algorithm |
CN114976129A (en) * | 2022-05-13 | 2022-08-30 | 南京工业大学 | Application of novel crow search algorithm in proton exchange membrane fuel cell model parameter identification |
-
2022
- 2022-12-17 CN CN202211628455.9A patent/CN115954504A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102016200111A1 (en) * | 2016-01-07 | 2017-07-13 | Volkswagen Aktiengesellschaft | Method for adapting a model for determining an operating parameter of a fuel cell and use of the model |
CN106709131A (en) * | 2016-11-15 | 2017-05-24 | 上海电机学院 | Parameter intelligent optimization method suitable for proton exchange membrane fuel cell model |
CN106654319A (en) * | 2016-12-27 | 2017-05-10 | 东南大学 | Temperature modeling method for proton exchange membrane fuel cell (PEMFC) system based on variation particle swarm and differential evolution hybrid algorithm |
CN108764452A (en) * | 2018-06-01 | 2018-11-06 | 福州大学 | A kind of Chaos particle swarm optimization algorithm based on the mechanism of discussion |
WO2020191801A1 (en) * | 2019-03-27 | 2020-10-01 | 东北大学 | Lithium ion battery remaining life prediction method based on wolf pack optimization lstm network |
US20210028472A1 (en) * | 2019-07-26 | 2021-01-28 | Xi?An Jiaotong University | Similar Principle Analysis Method of Input and Output Characteristics for Fuel Cell |
AU2020103886A4 (en) * | 2020-12-04 | 2021-02-11 | Nanjing Forestry University | A Method for Estimating SOC of a Fractional-Order Kinetic Battery Considering Temperature and Hysteresis Effect |
CN114976129A (en) * | 2022-05-13 | 2022-08-30 | 南京工业大学 | Application of novel crow search algorithm in proton exchange membrane fuel cell model parameter identification |
CN114970332A (en) * | 2022-05-16 | 2022-08-30 | 西北工业大学 | Lithium battery model parameter identification method based on chaotic quantum sparrow search algorithm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Priya et al. | A novel approach for fuel cell parameter estimation using simple genetic algorithm | |
Akkaya | Electrochemical model for performance analysis of a tubular SOFC | |
Jia et al. | Modeling and dynamic characteristic simulation of a proton exchange membrane fuel cell | |
Yang et al. | Parameter optimization for tubular solid oxide fuel cell stack based on the dynamic model and an improved genetic algorithm | |
CN109873186B (en) | Method for establishing proton exchange membrane fuel cell quasi-two-dimensional model | |
CN106407590A (en) | Membrane calculation-based proton exchange membrane fuel cell model optimization method | |
CN107463995A (en) | Fuel cell Optimization Modeling method with Adaptive Genetic strategy RNA GA | |
CN114447378B (en) | Parameter optimization method for proton exchange membrane fuel cell | |
Haghighi et al. | Exergy analysis and optimization of a high temperature proton exchange membrane fuel cell using genetic algorithm | |
CN106709131A (en) | Parameter intelligent optimization method suitable for proton exchange membrane fuel cell model | |
CN114065483A (en) | Hydrogen production system efficiency optimization method and device, computer equipment and storage medium | |
Zhang et al. | Application of coRNA-GA based RBF-NN to model proton exchange membrane fuel cells | |
Liu et al. | Multi-objective optimization of proton exchange membrane fuel cell geometry and operating parameters based on three new performance evaluation indexes | |
Miao et al. | Metamodel based design optimization approach in promoting the performance of proton exchange membrane fuel cells | |
Abdel-Basset et al. | Adaptive and efficient optimization model for optimal parameters of proton exchange membrane fuel cells: A comprehensive analysis | |
CN114300713A (en) | Cross-flow SOEC galvanic pile two-dimensional dynamic model construction method and application thereof | |
CN115954504A (en) | PEMFC model parameter optimization method based on CGSASA algorithm | |
CN104778315B (en) | Merge the fuel cell Optimization Modeling method of krill behavior artificial bee colony algorithm | |
CN107546755B (en) | Isolated island microgrid system frequency and voltage adjusting method based on power sensitivity analysis | |
Wang et al. | An adaptive PID control based on BP neural network for the voltage of MFC | |
CN117154127A (en) | Solid oxide fuel cell flow channel structure and multi-objective optimization method thereof | |
CN115470581B (en) | Fuel cell gas flow channel optimization design method, system, electronic equipment and medium | |
CN114530618B (en) | Random optimization algorithm-based fuel cell and air compressor matching modeling method | |
Mahcene et al. | Computational modeling of the transport and electrochemical phenomena in solid oxide fuel cells | |
Abdi et al. | Multi-objective optimization of operating parameters of a PEMFC under flooding conditions using the non-dominated sorting genetic algorithm |
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 |