CN115954504A - PEMFC model parameter optimization method based on CGSASA algorithm - Google Patents

PEMFC model parameter optimization method based on CGSASA algorithm Download PDF

Info

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
Application number
CN202211628455.9A
Other languages
Chinese (zh)
Inventor
赵超
范克威
付斌
林立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou University
Original Assignee
Fuzhou University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fuzhou University filed Critical Fuzhou University
Priority to CN202211628455.9A priority Critical patent/CN115954504A/en
Publication of CN115954504A publication Critical patent/CN115954504A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/30Hydrogen technology
    • Y02E60/50Fuel 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

PEMFC model parameter optimization method based on CGSASA algorithm
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 individual
Figure BDA00040047713700000210
Forming 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:
(1) In that
Figure BDA0004004771370000021
Field generating a new solution>
Figure BDA0004004771370000022
/>
(2) Evaluation of
Figure BDA0004004771370000023
And &>
Figure BDA0004004771370000024
Has an fitness value>
Figure BDA0004004771370000025
And &>
Figure BDA0004004771370000026
And calculates Δ f: />
Figure BDA0004004771370000027
(3) If Δ f < 0, then accept
Figure BDA0004004771370000028
As a new solution; otherwise accepts with probability exp (- Δ f/T) < >>
Figure BDA0004004771370000029
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):
Figure BDA0004004771370000031
Figure BDA0004004771370000032
Figure BDA0004004771370000033
Figure BDA0004004771370000034
step S6: push type
Figure BDA0004004771370000035
And/or>
Figure BDA0004004771370000036
Updating individual speed and position, and enabling G = G +1Step S3 is executed;
step S7: the algorithm is terminated and the optimal value is output
Figure BDA0004004771370000037
In a preferred embodiment: passing each individual through
Figure BDA0004004771370000038
Is mapped to the chaotic variable->
Figure BDA0004004771370000039
Hybrid variable>
Figure BDA00040047713700000310
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->
Figure BDA00040047713700000311
Will be/are>
Figure BDA00040047713700000312
Pass-through type>
Figure BDA00040047713700000313
Transform, map to (g) i,max ,g i,min ) Is based on a common variable->
Figure BDA00040047713700000314
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-
Cathode electrode
Figure BDA0004004771370000041
General reaction
Figure BDA0004004771370000042
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 Nernstactohmiccon (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:
Figure BDA0004004771370000051
in the formula: Δ G is gibbs free energy; f is a Faraday constant; Δ S is enthalpy change; r is a universal gas constant;
Figure BDA0004004771370000052
is the effective partial pressure of hydrogen; />
Figure BDA0004004771370000053
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 =-[ξ 12 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:
Figure BDA0004004771370000054
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) 1234 ,λ,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,
Figure BDA0004004771370000061
and &>
Figure BDA0004004771370000062
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):
Figure BDA0004004771370000063
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):
Figure BDA0004004771370000064
(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):
Figure BDA0004004771370000065
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):
Figure BDA0004004771370000071
the individual velocity and position updates are respectively equations (17), (18):
Figure BDA0004004771370000072
Figure BDA0004004771370000073
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;
Figure BDA0004004771370000074
wherein
Figure BDA0004004771370000075
And 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 ]) 1234 λ, rc, b); the fitness function in the parameter optimization process is defined as:
Figure BDA0004004771370000076
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 individual
Figure BDA0004004771370000091
Forming 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:
(1) In that
Figure BDA0004004771370000092
The field generates a new solution>
Figure BDA0004004771370000093
(2) Evaluation of
Figure BDA0004004771370000094
And &>
Figure BDA0004004771370000095
Is based on the fitness value->
Figure BDA0004004771370000096
And &>
Figure BDA0004004771370000097
And calculates Δ f: />
Figure BDA0004004771370000098
(3) If Δ f < 0, then accept
Figure BDA0004004771370000099
As a new solution; otherwise it is accepted with a probability exp (- Δ f/T)>
Figure BDA00040047713700000910
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):
Figure BDA00040047713700000911
Figure BDA0004004771370000101
Figure BDA0004004771370000102
Figure BDA0004004771370000103
step S6: push type
Figure BDA0004004771370000104
And/or>
Figure BDA0004004771370000105
Updating the individual speed and position, enabling G = G +1, and turning to the step S3;
step S7: the algorithm is terminated and the optimal value is output
Figure BDA0004004771370000106
Passing each individual through
Figure BDA0004004771370000107
Is mapped to the chaotic variable->
Figure BDA0004004771370000108
Mix the variable->
Figure BDA0004004771370000109
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->
Figure BDA00040047713700001010
Will->
Figure BDA00040047713700001011
Passing through type
Figure BDA00040047713700001012
Transform, map to (gi, max, g) i,min ) Is based on a common variable->
Figure BDA00040047713700001013
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 -
Cathode electrode
Figure BDA0004004771370000111
General reaction
Figure BDA0004004771370000112
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 ernstactohmiccon (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:
Figure BDA0004004771370000121
in the formula: Δ G is gibbs free energy; f is a Faraday constant; Δ S is enthalpy change; r is a universal gas constant;
Figure BDA0004004771370000122
is an effective partial pressure of hydrogen; />
Figure BDA0004004771370000123
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:
Figure BDA0004004771370000124
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:
Figure BDA0004004771370000125
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) 1234 ,λ,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,
Figure BDA0004004771370000131
and &>
Figure BDA0004004771370000132
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):
Figure BDA0004004771370000133
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):
Figure BDA0004004771370000134
(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):
Figure BDA0004004771370000135
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):
Figure BDA0004004771370000136
the individual velocity and position updates are equations (17), (18), respectively:
Figure BDA0004004771370000141
Figure BDA0004004771370000142
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;
Figure BDA0004004771370000143
wherein
Figure BDA0004004771370000145
And 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 ]) 1234 ,λ,R c The set of optimal parameter combinations of b); in the process of parameter optimizationThe fitness function is defined as:
Figure BDA0004004771370000144
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
Figure BDA0004004771370000151
TABLE 2 Algorithm optimization results
Figure BDA0004004771370000152
/>
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 individual
Figure FDA0004004771360000011
Forming 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:
(1) In that
Figure FDA0004004771360000012
The field generates a new solution>
Figure FDA0004004771360000013
(2) Evaluation of
Figure FDA0004004771360000014
And &>
Figure FDA0004004771360000015
Is based on the fitness value->
Figure FDA0004004771360000016
And &>
Figure FDA0004004771360000017
And calculates Δ f: />
Figure FDA0004004771360000018
(3) If Δ f < 0, then accept
Figure FDA0004004771360000019
As a new solution; otherwise accepts with probability exp (- Δ f/T) < >>
Figure FDA00040047713600000110
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):
Figure FDA0004004771360000021
Figure FDA0004004771360000022
(i, j ∈ {1,2, \ 8230;, N }, and i ≠ j; D =1,2 \8230;, D)
Figure FDA0004004771360000023
Figure FDA0004004771360000024
Step S6: push type
Figure FDA0004004771360000025
And &>
Figure FDA0004004771360000026
Updating the individual speed and position, enabling G = G +1, and turning to a step S3;
step S7: the algorithm is terminated and the optimal value is output
Figure FDA0004004771360000027
2. The PEMFC model parameter optimization method based on CGSASA algorithm of claim 1, wherein: passing each individual through
Figure FDA0004004771360000028
Is mapped to the chaotic variable->
Figure FDA0004004771360000029
Mix the variable->
Figure FDA00040047713600000210
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->
Figure FDA00040047713600000211
Will->
Figure FDA00040047713600000212
Passing type->
Figure FDA00040047713600000213
Transform, map to (g) i,max, g i,min ) Is based on a common variable->
Figure FDA00040047713600000214
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 -
Cathode electrode
Figure FDA0004004771360000031
General reaction
Figure FDA0004004771360000032
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 Nernstactohmiccon (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:
Figure FDA0004004771360000041
in the formula: Δ G is gibbs free energy; f is a Faraday constant; Δ S is enthalpy change; r is a universal gas constant;
Figure FDA0004004771360000043
is an effective partial pressure of hydrogen; />
Figure FDA0004004771360000044
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:
Figure FDA0004004771360000042
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:
Figure FDA0004004771360000051
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 1234 ,λ,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,
Figure FDA0004004771360000052
and &>
Figure FDA0004004771360000053
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):
Figure FDA0004004771360000054
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):
Figure FDA0004004771360000055
the total force acting on the individual i at the t-th iteration is formula (15):
Figure FDA0004004771360000061
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):
Figure FDA0004004771360000062
/>
the individual velocity and position updates are respectively equations (17), (18):
Figure FDA0004004771360000063
Figure FDA0004004771360000064
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;
Figure FDA0004004771360000065
wherein
Figure FDA0004004771360000066
And E (x) are respectively expressed as objective function values corresponding to the new solution and the old solution.
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 ]) 1234 ,λ,R c The set of optimal parameter combinations of b); the fitness function in the parameter optimization process is defined as:
Figure FDA0004004771360000071
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.
CN202211628455.9A 2022-12-17 2022-12-17 PEMFC model parameter optimization method based on CGSASA algorithm Pending CN115954504A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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