CN111129548B - Improved particle swarm optimization fuzzy PID fuel cell temperature control method - Google Patents
Improved particle swarm optimization fuzzy PID fuel cell temperature control method Download PDFInfo
- Publication number
- CN111129548B CN111129548B CN201911372127.5A CN201911372127A CN111129548B CN 111129548 B CN111129548 B CN 111129548B CN 201911372127 A CN201911372127 A CN 201911372127A CN 111129548 B CN111129548 B CN 111129548B
- Authority
- CN
- China
- Prior art keywords
- temperature
- objective function
- fuzzy pid
- fuel cell
- particle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000002245 particle Substances 0.000 title claims abstract description 70
- 239000000446 fuel Substances 0.000 title claims abstract description 39
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000005457 optimization Methods 0.000 title claims abstract description 25
- 238000013139 quantization Methods 0.000 claims abstract description 35
- 230000008859 change Effects 0.000 claims abstract description 15
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 10
- 230000004044 response Effects 0.000 claims abstract description 6
- 238000004088 simulation Methods 0.000 claims abstract description 5
- 230000008569 process Effects 0.000 claims description 15
- 239000013598 vector Substances 0.000 claims description 12
- 239000000498 cooling water Substances 0.000 claims description 9
- 239000012528 membrane Substances 0.000 claims description 8
- 230000035772 mutation Effects 0.000 claims description 6
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 4
- 241000073677 Changea Species 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000005291 chaos (dynamical) Methods 0.000 claims description 3
- 230000003750 conditioning effect Effects 0.000 claims description 3
- 238000001816 cooling Methods 0.000 claims description 3
- 239000004576 sand Substances 0.000 claims description 3
- 230000006641 stabilisation Effects 0.000 claims description 2
- 238000011105 stabilization Methods 0.000 claims description 2
- 238000001311 chemical methods and process Methods 0.000 claims 1
- 238000011217 control strategy Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000002826 coolant Substances 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000003487 electrochemical reaction Methods 0.000 description 1
- 239000003792 electrolyte Substances 0.000 description 1
- 238000003912 environmental pollution Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010248 power generation Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M8/00—Fuel cells; Manufacture thereof
- H01M8/04—Auxiliary arrangements, e.g. for control of pressure or for circulation of fluids
- H01M8/04298—Processes for controlling fuel cells or fuel cell systems
- H01M8/04305—Modeling, demonstration models of fuel cells, e.g. for training purposes
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M8/00—Fuel cells; Manufacture thereof
- H01M8/04—Auxiliary arrangements, e.g. for control of pressure or for circulation of fluids
- H01M8/04298—Processes for controlling fuel cells or fuel cell systems
- H01M8/04694—Processes for controlling fuel cells or fuel cell systems characterised by variables to be controlled
- H01M8/04701—Temperature
- H01M8/04731—Temperature of other components of a fuel cell or fuel cell stacks
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M8/00—Fuel cells; Manufacture thereof
- H01M8/04—Auxiliary arrangements, e.g. for control of pressure or for circulation of fluids
- H01M8/04298—Processes for controlling fuel cells or fuel cell systems
- H01M8/04992—Processes for controlling fuel cells or fuel cell systems characterised by the implementation of mathematical or computational algorithms, e.g. feedback control loops, fuzzy logic, neural networks or artificial intelligence
-
- 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
- Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Chemical & Material Sciences (AREA)
- Electrochemistry (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Chemical & Material Sciences (AREA)
- Sustainable Energy (AREA)
- Sustainable Development (AREA)
- Manufacturing & Machinery (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Medical Informatics (AREA)
- Fuzzy Systems (AREA)
- Evolutionary Computation (AREA)
- Health & Medical Sciences (AREA)
- Automation & Control Theory (AREA)
- Artificial Intelligence (AREA)
- Feedback Control In General (AREA)
Abstract
The invention discloses an improved particle swarm optimization fuzzy PID fuel cell temperature control method, which comprises the following steps: establishing a fuel cell dynamic model based on an MATLAB/Simulink simulation platform, and obtaining the output power and the corresponding temperature of the fuel cell through the fuel cell dynamic model; designing a fuzzy PID temperature controller aiming at the fuel cell dynamic model, and controlling the error and the error change rate of the expected temperature value and the actual temperature value by using the controller to obtain the parameter adjustment quantity of the fuzzy PID temperature controller; optimizing quantization factors and scale factors in the fuzzy PID temperature controller by adopting an improved particle swarm algorithm; and assigning the optimized quantization factor and the scale factor to a fuzzy PID temperature controller so as to control the temperature of the fuel cell in real time. The invention utilizes the improved particle swarm optimization fuzzy PID control, the control strategy is set according to the control experience rule, and the invention has the advantages of strong robustness, fast response speed and the like, and ensures that the PEMFC pile is maintained at a fixed temperature.
Description
Technical Field
The invention belongs to the technical field of thermal management of fuel cells, and particularly relates to an improved particle swarm optimization fuzzy PID fuel cell temperature control method.
Background
With the increasing energy crisis and environmental pollution problems, the development of efficient and low-pollution energy technology has become one of the major issues in all countries in the world. Fuel cells are widely regarded by the automotive industry as an efficient and clean energy conversion device. Among them, Proton Exchange Membrane Fuel Cells (PEMFCs) have the advantages of low operating temperature, fast starting speed, high power generation efficiency, mature technology, etc., and are receiving more and more extensive attention.
Temperature has a significant impact on fuel cell system performance and reliability. The temperature of the galvanic pile is increased, so that the electrochemical reaction activity is improved, the electric conductivity of the membrane is improved, and the performance of the battery is improved; however, the electrolyte membrane of PEMFCs has limited temperature resistance and, considering the problem of water-containing property of the membrane, the operating temperature is not preferably too high. For fuel cells, it is desirable that the temperature inside the stack be substantially uniform, which is beneficial for improving stack performance and extending stack life. However, the heat generated by the chemical reaction of the fuel cell is carried out of the stack by the low-temperature medium, so that a certain temperature difference is required inside the stack, and the redundant heat can be transferred from the inside of the stack to the cooling medium and carried out of the stack. The temperature of the electric pile is controlled within a certain range by controlling the flow of the cooling medium.
At present, the most widely applied PID controller is the classical PID controller, and three parameters K of the traditional PID controllerP,KI,KDThe method is fixed and unchangeable, the parameter setting method is more complicated, and the system control is more difficult; the fuzzy control has good control performance, but the fuzzy PID controller also has defects, quantization and scale factor determination, membership function selection and fuzzy rule table formulation have important influence on control effect, but can only be obtained by depending on expert experience and engineering experience, interference caused by special conditions cannot be avoided, and self-adaptive capacity and control effect are not ideal.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an improved particle swarm optimization fuzzy PID fuel cell temperature control method, which realizes effective control of the temperature of a proton exchange membrane fuel cell.
In order to achieve the purpose, the invention adopts the technical scheme that:
an improved particle swarm optimization fuzzy PID fuel cell temperature control method comprises the following steps:
s1, according to the physical characteristics of a galvanic pile, a water pump and a heat exchanger in the proton exchange membrane fuel cell system, building a dynamic model of the fuel cell based on an MATLAB/Simulink simulation platform to obtain the temperature change of the fuel cell;
s2, designing a fuzzy PID temperature controller according to the dynamic model of the fuel cell established in the step S1, and controlling the error and the error change rate of the expected temperature value and the actual temperature value by using the fuzzy PID temperature controller to obtain the parameter adjustment of the fuzzy PID temperature controller;
s3, optimizing the quantization factor and the scale factor in the fuzzy PID temperature controller by adopting an improved particle swarm optimization;
and S4, assigning the optimized quantization factor and the scale factor to a fuzzy PID temperature controller.
In step S2, the desired temperature value T of the fuel cell is selectedS(T) error e (T) from actual temperature value T (T) ═ TS(t) -T (t) and its error rate of changeAs an input variable of the PID temperature controller, the parameter adjustment quantity delta K of the fuzzy PID temperature controllerP,ΔKI,ΔKDAs output quantities, among others: Δ KP,ΔKI,ΔKDThree parameters K corresponding to proportional integral P, integral I and differential DP,KI,KDThe amount of change in (c).
In the step S3, the improved particle swarm algorithm is adopted to adjust the scale factor k of the fuzzy PID temperature controllere,And the quantization factor k of proportion, integral and differential in PID controlup、kuiAnd kudFive parameters are optimized, and the optimization process comprises the following steps:
s301, initializing particle swarm algorithm parameters, setting the parameters in a d-dimensional search space, and initializing a population with the size of NsIn the search space of each quantization factor parameterlowi,highiRespectively initializing the position X of each particle i of the group for the upper and lower limits of the search spaceiAnd velocity Vi;
S302, constructing a corresponding objective function:
in the formula, Fobj,iIs the objective function value; t is tp,tsAnd t∞Respectively representing peak time, adjustment time and system stabilityThe time is required; t (T)p) Representing the peak time t in the temperature control process of the subsystempThe temperature of (a); t (T)s) Representing the temperature at which the conditioning time is reached in the subsystem temperature control process; t (T)∞) Indicating the temperature of the system after the system tends to stabilize; according to the automatic control principle, if T (T)p)>T(t∞) And lim [ T (T) ]p)-T(t∞)]When T (T) is 0, the overshoot of the control system is reduced, and T (T) isp)<T(t∞) If so, the system does not have overshoot correspondingly;represents the minimum time required for the temperature response to reach and remain within ± 5% of the final temperature value;
s303, inputting a system control parameter, namely the particle population size N for optimizingsMaximum iteration step number N of the whole optimizing processcThe dimension N, N of the problem is the number of quantization factors to be optimized, i.e. the dimension is consistent with the number of quantization factors, and the maximum tolerance epsilon allowed by the objective function0And the parameters μ, ζ, F, CRA value of (d);
s304, in the search spaceUsing chaos theory model internally, and locating X for each particleiInitializing and calculating corresponding target function Fobj,iAnd taking the position of the current particle as the individual historical optimal position P of the particleiThe corresponding objective function value is taken as the individual optimum objective function value pbestiRepeating the above process to obtain the optimal position of each particle individual, recording the corresponding objective function, transversely comparing the optimal position of each particle on the basis, and finding out the optimal position P of the whole populationgAnd corresponding to the objective function gbest, and making the iteration time t equal to 0;
s305, judging whether iteration is converged, if one of the following two conditions is met in the iteration process, iteratively converging, and outputting an optimal quantization factor parameter combination;
(i) historical optimum position P of total groupgHas an objective function value gbest smaller than the maximum tolerance error epsilon0I.e. gbest<ε0;
(ii) The number of iterations t is greater than a given maximum number of iteration steps NtI.e. t>Nt;
S306, updating the position X of each particleiI.e. updating the quantization factor parameter information carried by each particle, if the new position exceeds the given search space during the calculation processThe position is forced to be the upper and lower limits of the search space, i.e. lowiAnd highi;
S307, evaluating the position of each particle and calculating a corresponding objective function value Fobj,i(ii) a Judging whether the objective function value of each current particle position is better than the objective function value pbest of the corresponding individual historical optimal positioniIf F isobj,i<pbestiUpdating the historical optimal position information of the individual group, namely updating the parameter combination of the individual optimal quantization factor;
s308, calculating a mutation vector Pi,mutSum target vector Pi,tarThe target vectors, i.e. the combination of the quantization factor parameters generated by the mutation, are then compared with the objective function value pbest for the optimal position of the acceptor particle iiIf F isobj(Pi,tar)<pbestiWherein: fobj(Pi,tar) As an objective function value of the target vector, pbestiUpdating the information of the historical optimal position of the receptor particle i if the target function value of the optimal position is obtained; otherwise, if Fobj(Pi,tar)≥pbestiWhen the time is long, the time is kept unchanged;
s309, judging the historical optimal position P of each particlegObjective function value pbest ofiWhether it is better than the objective function value gbest of the optimal position of the whole group, if pbesti<gbest updates the optimal position information of the entire total group, and step S305 is executed.
In S303, N is 5.
The step S4 includes the steps of,
s401, configuring a fuzzy PID temperature controller, assigning the optimized quantization factor and the optimized scale factor to the fuzzy PID temperature controller, wherein the input of the fuzzy PID temperature controller comprises two, and one is the set temperature T of the PEMFCS(T) error e (T) from actual temperature value T (T) ═ TS(t) -T (t), the other is the error rate of change
S402, when the actual temperature of the galvanic pile is higher than the set temperature, the cooling water flow is required to be increased so as to bring away heat to achieve the purpose of cooling, otherwise, when the actual temperature of the galvanic pile is lower than the set temperature, the cooling water flow is required to be reduced;
s403, dividing input and output of the PID temperature controller into 7 fuzzy sets: NB (negative big), NM (negative middle), NS (negative small), ZE (zero), PS (positive small), PM (middle), PB (positive big), fuzzification variables of a Gaussian function are adopted for the membership function, and the membership function f (x; C, sigma) is expressed as:
wherein: chi is variable, C is corresponding abscissa used for confirming the centre of the curve, sigma is the standard deviation;
and the trigonometric membership function f (χ, a, b, c) is expressed as:
wherein: a, c are the values of the triangle function on the abscissa, and b is the vertex of the triangle function.
Compared with the prior art, the invention has the following beneficial effects:
(1) the improved particle swarm algorithm is combined with the fuzzy PID control for optimization, the defect that parameter selection of the existing fuzzy PID control method excessively depends on expert experience and engineering experience is overcome, the requirement of attitude control of the modern unmanned helicopter is met, and the control performance is improved;
(2) the fuel cell temperature is controlled by adopting the improved particle swarm optimization fuzzy PID, so that the system response time is reduced, and the robustness of the system is improved.
Drawings
FIG. 1 is a block diagram of a PEMFC thermal management system;
FIG. 2 is a basic schematic diagram of a particle swarm optimization fuzzy PID controller in the invention;
FIG. 3 is a flowchart of a fuzzy PID control procedure for particle swarm optimization according to the present invention;
FIG. 4 shows the deviation e (t) and the deviation change rate in an embodiment of the present inventionDefining a curve according to the membership degree of the target;
FIG. 5 is a graph of fuzzy controller test signals in one embodiment of the present invention;
fig. 6 is a schematic diagram of a dynamic process of a controlled temperature when a load changes according to an embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the following examples.
As shown in fig. 1, a specific thermal management structure block diagram of a pem fuel cell is shown in fig. 1, where: t isst,inIs the cooling water inlet temperature; t isstThe outlet temperature of the cooling water, namely the temperature T (t) of the galvanic pile; wclThe flow rate of the cooling water is the same.
An improved particle swarm optimization fuzzy PID fuel cell temperature control method comprises the following steps:
s1, according to the physical characteristics of a galvanic pile, a water pump and a heat exchanger in the proton exchange membrane fuel cell system, building a dynamic model of the fuel cell based on an MATLAB/Simulink simulation platform to obtain the temperature change of the fuel cell;
s2, designing a fuzzy PID temperature controller according to the dynamic model of the fuel cell established in the step S1, and controlling the error and the error change rate of the expected temperature value and the actual temperature value by using the fuzzy PID temperature controller to obtain the parameter adjustment of the fuzzy PID temperature controller;
in step S2, the desired temperature value T of the fuel cell is selectedS(T) error e (T) from actual temperature value T (T) ═ TS(t) -T (t) and its error rate of changeAs an input variable of the PID temperature controller, the parameter adjustment quantity delta K of the fuzzy PID temperature controllerP,ΔKI,ΔKDAs output quantities, among others: Δ KP,ΔKI,ΔKDThree parameters K corresponding to proportional integral P, integral I and differential DP,KI,KDThe amount of change in (c).
S3, optimizing the quantization factor and the scale factor in the fuzzy PID temperature controller by adopting an improved particle swarm optimization;
in the step S3, the improved particle swarm algorithm is adopted to adjust the scale factor k of the fuzzy PID temperature controllere,And the quantization factor k of proportion, integral and differential in PID controlup、kuiAnd kudFive parameters are optimized, and the optimization process comprises the following steps:
s301, initializing particle swarm algorithm parameters, setting the parameters in a d-dimensional search space, and initializing a population with the size of NsIn the search space of each quantization factor parameterlowi,highiRespectively initializing the position X of each particle i of the group for the upper and lower limits of the search spaceiAnd velocity Vi;
S302, constructing a corresponding objective function:
in the formula, Fobj,iIs the objective function value; t is tp,tsAnd t∞Respectively representing peak time, adjusting time and time required by system stabilization; t (T)p) Representing the peak time t in the temperature control process of the subsystempThe temperature of (a); t (T)s) Representing the temperature at which the conditioning time is reached in the subsystem temperature control process; t (T)∞) Indicating the temperature of the system after the system tends to stabilize; according to the automatic control principle, if T (T)p)>T(t∞) And lim [ T (T) ]p)-T(t∞)]When T (T) is 0, the overshoot of the control system is reduced, and T (T) isp)<T(t∞) If so, the system does not have overshoot correspondingly;represents the minimum time required for the temperature response to reach and remain within ± 5% of the final temperature value;
s303, inputting a system control parameter, namely the particle population size N for optimizingsMaximum iteration step number N of the whole optimizing processcThe dimension N of the problem, N, is the number of quantization factors to be optimized, i.e. the dimension coincides with the number of quantization factors, in particular N-5, and the maximum tolerance epsilon allowed by the objective function0And the parameters μ, ζ, F, CRThe value of (c).
S304, in the search spaceUsing chaos theory model internally, and locating X for each particleiInitializing and calculating corresponding target function Fobj,iAnd taking the position of the current particle as the individual historical optimal position P of the particleiThe corresponding objective function value is taken as the individual optimum objective function value pbestiRepeating the above process to obtain the optimal position of each particle, recording the corresponding objective function, and comparing the lateral ratio based on the optimal positionFinding out the optimal position P of the whole population by comparing the optimal position of each particlegAnd corresponding to the objective function gbest, and making the iteration time t equal to 0;
s305, judging whether iteration is converged, if one of the following two conditions is met in the iteration process, iteratively converging, and outputting an optimal quantization factor parameter combination;
(i) historical optimum position P of total groupgHas an objective function value gbest smaller than the maximum tolerance error epsilon0I.e. gbest<ε0;
(ii) The number of iterations t is greater than a given maximum number of iteration steps NtI.e. t>Nt;
S306, updating the position X of each particleiI.e. updating the quantization factor parameter information carried by each particle, if the new position exceeds the given search space during the calculation processThe position is forced to be the upper and lower limits of the search space, i.e. lowiAnd highi;
S307, evaluating the position of each particle and calculating a corresponding objective function value Fobj,i(ii) a Judging whether the objective function value of each current particle position is better than the objective function value pbest of the corresponding individual historical optimal positioniIf F isobj,i<pbestiUpdating the historical optimal position information of the individual group, namely updating the parameter combination of the individual optimal quantization factor;
s308, calculating a mutation vector Pi,mutSum target vector Pi,tarThe target vectors, i.e. the combination of the quantization factor parameters generated by the mutation, are then compared with the objective function value pbest for the optimal position of the acceptor particle iiIf F isobj(Pi,tar)<pbestiWherein: fobj(Pi,tar) As an objective function value of the target vector, pbestiUpdating the information of the historical optimal position of the receptor particle i if the target function value of the optimal position is obtained; otherwise, if Fobj(Pi,tar)≥pbestiWhen the time is long, the time is kept unchanged;
s309, judging the historical optimal position P of each particlegObjective function value pbest ofiWhether it is better than the objective function value gbest of the optimal position of the whole group, if pbesti<gbest updates the optimal position information of the entire total group, and step S305 is executed.
S4, assigning the optimized quantization factor and the scale factor to a fuzzy PID temperature controller, wherein a basic schematic diagram of the particle swarm optimization fuzzy PID controller is shown in FIG. 2; referring to fig. 3 in detail, the step S4 includes the following steps,
401, configuring a fuzzy PID temperature controller, assigning the optimized quantization factor and the optimized scale factor to the fuzzy PID temperature controller, wherein the input of the fuzzy PID temperature controller comprises two, one is the set temperature T of the PEMFCS(T) error e (T) from actual temperature value T (T) ═ TS(t) -T (t), the other is the error rate of change
And 402, performing fuzzy decision according to a fuzzy rule to obtain a fuzzy control quantity, and performing defuzzification on the fuzzy control quantity by a weighted average gravity center method to obtain an accurate control quantity suitable for the controlled object. Specifically, when the actual temperature of the galvanic pile is higher than the set temperature, the cooling water flow needs to be increased so as to bring away heat to achieve the purpose of cooling, and conversely, when the actual temperature of the galvanic pile is lower than the set temperature, the cooling water flow needs to be decreased;
the input and output of the PID temperature controller are divided into 7 fuzzy sets 403: NB (negative big), NM (negative middle), NS (negative small), ZE (zero), PS (positive small), PM (middle), PB (positive big), fuzzification variables of a Gaussian function are adopted for the membership function, and the membership function f (x; C, sigma) is expressed as:
wherein: chi is variable, C is corresponding abscissa used for confirming the centre of the curve, sigma is the standard deviation;
and the trigonometric membership function f (χ, a, b, c) is expressed as:
wherein: a and c are values of the triangular function on the abscissa, b is the vertex of the triangular function, and the membership function curves corresponding to the input and output variables are shown in fig. 4.
In step 7, fig. 5 shows a load current test signal of the stack in the working range, which is mainly represented by two step signals of rising and falling. The obtained control effect of the improved particle swarm optimization fuzzy PID and the control effect of the non-optimization fuzzy PID are compared and shown in FIG. 6. Therefore, under the action of the improved controller, the temperature response is faster and the stability is better.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.
Claims (3)
1. An improved particle swarm optimization fuzzy PID fuel cell temperature control method is characterized by comprising the following steps:
s1, according to the physical characteristics of a galvanic pile, a water pump and a heat exchanger in the proton exchange membrane fuel cell system, building a dynamic model of the fuel cell based on an MATLAB/Simulink simulation platform to obtain the temperature change of the fuel cell;
s2, designing a fuzzy PID temperature controller according to the dynamic model of the fuel cell established in the step S1, and controlling the error and the error change rate of the expected temperature value and the actual temperature value by using the fuzzy PID temperature controller to obtain the parameter adjustment of the fuzzy PID temperature controller;
in step S2, the desired temperature value T of the fuel cell is selectedS(T) error e (T) from actual temperature value T (T) ═ TS(t) -T (t) and its error rate of changeAs an input variable of the PID temperature controller, the parameter adjustment quantity delta K of the fuzzy PID temperature controllerP,ΔKI,ΔKDAs output quantities, among others: Δ KP,ΔKI,ΔKDThree parameters K corresponding to proportional integral P, integral I and differential DP,KI,KDThe amount of change in (c);
s3, adopting improved particle swarm optimization to quantize the factor k in the fuzzy PID temperature controllerup、kui、kudAnd a scale factor ke,Optimizing, constructing an objective function according to the temperature change of the galvanic pile, and then searching a combination of the optimized objects when the objective function obtains the minimum value through a series of iterative computations by means of the algorithm;
s4, the improved particle swarm optimization algorithm is used for obtaining the minimum value of the optimized object according to the iterative solution of the constructed objective function, and the optimized quantization factor k is usedup、kui、kudAnd a scale factor ke,And transferring the parameters to a Simulink simulation platform, and assigning the parameters to a fuzzy PID temperature controller.
2. The improved particle swarm optimization fuzzy PID fuel cell temperature control method according to claim 1, wherein in the step S3, the improved particle swarm optimization algorithm is adopted to apply the scaling factor k to the fuzzy PID temperature controllere,And the quantization factor k of proportion, integral and differential in PID controlup、kuiAnd kudFive parameters are optimized, excellentThe chemical process comprises the following steps:
s301, initializing particle swarm algorithm parameters, setting the parameters in a d-dimensional search space, and initializing a population with the size of NsIn the search space of each quantization factor parameterlowi,highiRespectively initializing the position X of each particle i of the group for the upper and lower limits of the search spaceiAnd velocity Vi;
S302, constructing a corresponding objective function:
in the formula, Fobj,iIs the objective function value; t is tp,tsAnd t∞Respectively representing peak time, adjusting time and time required by system stabilization; t (T)p) Representing the peak time t in the temperature control process of the subsystempThe temperature of (a); t (T)s) Representing the temperature at which the conditioning time is reached in the subsystem temperature control process; t (T)∞) Indicating the temperature of the system after the system tends to stabilize; according to the automatic control principle, if T (T)p)>T(t∞) And lim [ T (T) ]p)-T(t∞)]When T (T) is 0, the overshoot of the control system is reduced, and T (T) isp)<T(t∞) If so, the system does not have overshoot correspondingly;represents the minimum time required for the temperature response to reach and remain within ± 5% of the final temperature value;
s303, inputting a system control parameter, namely the particle population size N for optimizingsMaximum iteration step number N of the whole optimizing processcThe dimension N, N of the problem is the number of quantization factors to be optimized, i.e. the dimension is consistent with the number of quantization factors, and the maximum tolerance epsilon allowed by the objective function0And the parameters μ, ζ, F, CRWherein N is 5;
s304, in the search spaceUsing chaos theory model internally, and locating X for each particleiInitializing and calculating corresponding target function Fobj,iAnd taking the position of the current particle as the individual historical optimal position P of the particleiThe corresponding objective function value is taken as the individual optimum objective function value pbestiRepeating the above process to obtain the optimal position of each particle individual, recording the corresponding objective function, transversely comparing the optimal position of each particle on the basis, and finding out the optimal position P of the whole populationgAnd corresponding to the objective function gbest, and making the iteration time t equal to 0;
s305, judging whether iteration is converged, if one of the following two conditions is met in the iteration process, iteratively converging, and outputting an optimal quantization factor parameter combination;
(i) historical optimum position P of total groupgHas an objective function value gbest smaller than the maximum tolerance error epsilon0I.e. gbest < epsilon0;
(ii) The number of iterations t is greater than a given maximum number of iteration steps NtI.e. t > Nt;
S306, updating the position X of each particleiI.e. updating the quantization factor parameter information carried by each particle, if the new position exceeds the given search space during the calculation processThe position is forced to be the upper and lower limits of the search space, i.e. lowiAnd highi;
S307, evaluating the position of each particle and calculating a corresponding objective function value Fobj,i(ii) a Judging whether the objective function value of each current particle position is better than the objective function value pbest of the corresponding individual historical optimal positioniIf F isobj,i<pbestiThen, the individual group calendar is updatedHistory optimal position information, namely updating the parameter combination of the individual optimal quantization factor;
s308, calculating a mutation vector Pi,mutSum target vector Pi,tarThe target vectors, i.e. the combination of the quantization factor parameters generated by the mutation, are then compared with the objective function value pbest for the optimal position of the acceptor particle iiIf F isobj(Pi,tar)<pbestiWherein: fobj(Pi,tar) As an objective function value of the target vector, pbestiUpdating the information of the historical optimal position of the receptor particle i if the target function value of the optimal position is obtained; otherwise, if Fobj(Pi,tar)≥pbestiWhen the time is long, the time is kept unchanged;
s309, judging the historical optimal position P of each particlegObjective function value pbest ofiWhether it is better than the objective function value gbest of the optimal position of the whole group, if pbestiIf < gbest, the optimal position information of the entire total group is updated, and step S305 is executed.
3. The improved particle swarm optimization fuzzy PID fuel cell temperature control method according to claim 2, wherein the step S4 comprises the steps of:
s401, configuring a fuzzy PID temperature controller, assigning the optimized quantization factor and the optimized scale factor to the fuzzy PID temperature controller, wherein the input of the fuzzy PID temperature controller comprises two, and one is the set temperature T of the PEMFCS(T) error e (T) from actual temperature value T (T) ═ TS(t) -T (t), the other is the error rate of change
S402, when the actual temperature of the galvanic pile is higher than the set temperature, the cooling water flow is required to be increased so as to bring away heat to achieve the purpose of cooling, otherwise, when the actual temperature of the galvanic pile is lower than the set temperature, the cooling water flow is required to be reduced;
s403, dividing input and output of the PID temperature controller into 7 fuzzy sets: NB negative is large, NM negative is medium, NS negative is small, ZE zero, PS positive is small, PM positive is medium, PB positive is large, a Gaussian function fuzzification variable is adopted for the membership function, and the membership function f (x; C, sigma) is expressed as:
wherein: chi is variable, C is corresponding abscissa used for confirming the centre of the curve, sigma is the standard deviation;
and the trigonometric membership function f (χ, a, b, c) is expressed as:
wherein: a, c are the values of the triangle function on the abscissa, and b is the vertex of the triangle function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911372127.5A CN111129548B (en) | 2019-12-27 | 2019-12-27 | Improved particle swarm optimization fuzzy PID fuel cell temperature control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911372127.5A CN111129548B (en) | 2019-12-27 | 2019-12-27 | Improved particle swarm optimization fuzzy PID fuel cell temperature control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111129548A CN111129548A (en) | 2020-05-08 |
CN111129548B true CN111129548B (en) | 2021-06-22 |
Family
ID=70503636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911372127.5A Active CN111129548B (en) | 2019-12-27 | 2019-12-27 | Improved particle swarm optimization fuzzy PID fuel cell temperature control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111129548B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110647190A (en) * | 2019-11-07 | 2020-01-03 | 中船动力有限公司 | PID parameter setting method for cooling water temperature controller of diesel engine |
CN111613817B (en) * | 2020-06-02 | 2022-04-08 | 上海电力大学 | Battery hybrid system energy optimization strategy based on improved particle swarm optimization |
CN112531187B (en) * | 2020-12-09 | 2022-05-03 | 奇瑞汽车股份有限公司 | Fuel cell oxygen ratio control method, device and computer storage medium |
CN112736268B (en) * | 2020-12-17 | 2022-02-15 | 华中科技大学 | Control optimization method and system for prolonging service life of SOFC (solid oxide fuel cell) system |
CN112713290B (en) * | 2020-12-29 | 2021-11-09 | 浙江高成绿能科技有限公司 | Temperature control method of fuel cell |
CN112886036B (en) * | 2021-01-08 | 2022-07-12 | 南京航空航天大学 | PEMFC air supply system control strategy based on improved wolf optimization |
CN113147311B (en) * | 2021-01-14 | 2023-05-02 | 西安交通大学 | Transcritical carbon dioxide new energy automobile thermal management system and control method thereof |
CN113078337B (en) * | 2021-03-26 | 2022-03-15 | 电子科技大学 | Fuel cell stack active temperature control device based on composite PID controller |
CN113253779A (en) * | 2021-04-12 | 2021-08-13 | 南通大学 | Heat pump temperature control system based on particle swarm fuzzy PID algorithm |
CN113110061B (en) * | 2021-04-30 | 2022-05-10 | 华南农业大学 | Intelligent irrigation fuzzy control method and system based on improved particle swarm optimization |
WO2023216150A1 (en) * | 2022-05-11 | 2023-11-16 | 中国科学院深圳先进技术研究院 | Thermal management method for fuel cell |
CN115095907B (en) * | 2022-07-15 | 2022-11-11 | 唐山学院 | Intelligent heat supply energy-saving regulation and control method and system based on deep learning and storage medium |
CN115741692A (en) * | 2022-11-17 | 2023-03-07 | 山东大学 | High-precision control method and system for hydraulic mechanical arm based on data driving |
CN115832374B (en) * | 2023-02-17 | 2023-05-02 | 江苏重塑能源科技有限公司 | Temperature calculation method and device for fuel cell and device with storage function |
CN116466563B (en) * | 2023-04-07 | 2024-04-19 | 上海大学 | Pump truck energy-saving control method based on improved quantum particle swarm optimization setting PID |
CN117518780B (en) * | 2023-12-04 | 2024-04-09 | 陕西旭氢时代科技有限公司 | Fuel cell cogeneration system control method based on simulation model |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7526346B2 (en) * | 2004-12-10 | 2009-04-28 | General Motors Corporation | Nonlinear thermal control of a PEM fuel cell stack |
CN103336867B (en) * | 2013-06-28 | 2016-01-20 | 西南交通大学 | Proton Exchange Membrane Fuel Cells model optimization disposal route |
CN108134114B (en) * | 2017-12-07 | 2020-04-14 | 电子科技大学 | Proton exchange membrane fuel cell temperature control method |
CN108428916B (en) * | 2018-03-02 | 2021-02-09 | 北京亿华通科技股份有限公司 | Fuel cell temperature control method and device |
CN109212965A (en) * | 2018-08-06 | 2019-01-15 | 广州云雷智能科技有限公司 | Floor heating temperature control system and method based on particle swarm optimization algorithm |
CN109818016B (en) * | 2019-01-29 | 2021-09-28 | 福州大学 | Temperature self-regulating method for cathode open type fuel cell |
-
2019
- 2019-12-27 CN CN201911372127.5A patent/CN111129548B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111129548A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111129548B (en) | Improved particle swarm optimization fuzzy PID fuel cell temperature control method | |
CN108134114B (en) | Proton exchange membrane fuel cell temperature control method | |
CN109524693A (en) | Fuel battery air feed system model predictive control method | |
CN111162295B (en) | Degradation-considered energy management method for fuel cell hybrid system | |
CN111261909B (en) | Maximum net power tracking control device and method for fuel cell system | |
CN112736268B (en) | Control optimization method and system for prolonging service life of SOFC (solid oxide fuel cell) system | |
CN110867597B (en) | Thermoelectric water cooperative control method for consistency of proton exchange membrane fuel cell | |
CN106654319A (en) | Temperature modeling method for proton exchange membrane fuel cell (PEMFC) system based on variation particle swarm and differential evolution hybrid algorithm | |
CN106709131A (en) | Parameter intelligent optimization method suitable for proton exchange membrane fuel cell model | |
CN114447378B (en) | Parameter optimization method for proton exchange membrane fuel cell | |
Shen et al. | Nonlinear modeling and adaptive fuzzy control of MCFC stack | |
WO2023216150A1 (en) | Thermal management method for fuel cell | |
CN114300713A (en) | Cross-flow SOEC galvanic pile two-dimensional dynamic model construction method and application thereof | |
Zhang et al. | Optimization of energy management in hybrid SOFC-based DC microgrid considering high efficiency and operating safety when external load power goes up | |
CN112886036B (en) | PEMFC air supply system control strategy based on improved wolf optimization | |
CN112563541A (en) | Fuel cell cathode pressure control method for improving particle swarm PID | |
CN114488821B (en) | Method and system for predicting and controlling interval economic model of fuel cell oxygen passing ratio | |
CN115758193A (en) | Distributed energy storage aggregation control method and device | |
CN116244888A (en) | Hybrid electric unmanned aerial vehicle energy management method based on MPC sequence convex optimization | |
Shen et al. | Thermal modeling and temperature control of an all-vanadium redox flow battery | |
CN115716469A (en) | Output power distribution control method of hybrid power system | |
CN115763908A (en) | Distributed control method for efficiency optimization of multi-stack fuel cell system | |
CN114389294A (en) | Dimension reduction equivalent-oriented mass electric vehicle centralized control method and system | |
CN114400713A (en) | Interval optimized scheduling method for comprehensive energy system | |
He et al. | Backpropagation Neural Network‐Based Prediction Model for Fuel Cell Thermal Management System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |