Fuel cell ship real-time power distribution optimization method based on improved genetic simulated annealing algorithm
Through the improved genetic simulated annealing algorithm and nonlinear autoregressive neural network model, the power distribution of the fuel cell and lithium battery system is optimized, which solves the problems of self-starting and poor response of fuel cells in ship applications, reduces operating costs, and extends The life of the fuel cell improves the economy of the ship.
Patent Information
- Application Number
- CN202410664712.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-24
AI Technical Summary
Fuel cells in ship applications have problems such as inability to self-start, poor dynamic response, and high operating costs. Mainly due to system fuel consumption costs and fuel cell performance degradation rate, the application in the shipping industry is limited.
An improved genetic simulated annealing algorithm is used, combined with a nonlinear autoregressive neural network model, to predict ship load power in real time, and through the objective function of minimizing equivalent hydrogen consumption and fuel cell degradation rate, adjust fuel cell output power and optimize fuel cell and lithium Power distribution of the battery system reduces the total cost of ownership of the system.
It achieves effective utilization of resources of the fuel cell system, reduces fuel consumption, extends the service life of the fuel cell, reduces operation and life costs, and improves the economy of the ship.
Smart Images

Figure CN118690707A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of fuel cells and relates to a fuel cell ship real-time power distribution optimization method using an improved genetic simulated annealing algorithm. Background Art
[0002] With the implementation of "energy conservation and emission reduction" measures in the maritime field by countries around the world, the application of gradually mature fuel cell technology in the field of ships is considered to be an ideal choice to replace traditional ship engines. The advantages of hydrogen-fueled fuel cells, such as no pollution, high energy density, and high power generation efficiency, make them have broad application prospects in the field of ships. However, the application of fuel cells in ships faces various challenges. They must form a hybrid power system with lithium batteries or supercapacitors to solve the defects of fuel cells that cannot start automatically and have poor dynamic response. The high total cost of ownership of fuel cell hybrid power systems limits their application in the shipping industry, and the system operating cost accounts for a large part of the total cost of ownership. Specifically, the system operating cost mainly includes the system fuel consumption cost and the large performance degradation rate of fuel cells under unreasonable load power output, which shortens the fuel cell life and shortens the fuel cell replacement interval, thereby increasing the cost of ship maintenance and fuel cell replacement. Therefore, at this stage, the effective and healthy use of hybrid power systems is a feasible way to reduce the operating cost of fuel cell ships. This goal can be achieved by formulating and implementing an open energy management strategy. By adjusting the power output of fuel and power batteries / supercapacitors in the hybrid power system, the economy of the ship can be maximized while meeting the power requirements of the ship. Summary of the invention
[0003] In order to solve the above problems, the technical solution adopted by the present invention is: a fuel cell ship real-time power allocation optimization method based on an improved genetic simulated annealing algorithm, comprising the following steps:
[0004] Build fuel cell, lithium battery and converter models;
[0005] Build a nonlinear autoregressive neural network model;
[0006] Based on the ship load power, the nonlinear autoregressive neural network model is trained to obtain a trained nonlinear autoregressive neural network model;
[0007] Based on the historical load power of the ship, the trained linear autoregressive neural network model is used to predict the load power of the ship at the next moment;
[0008] Based on the load power, historical load power and real-time load power of the ship at the next moment, the initial population and the population after the crossover and mutation of the initial population are calculated with the objective function through the genetic simulated annealing algorithm, and then the selection probability in the simulated annealing algorithm is used for iterative selection. The equivalent hydrogen consumption and the minimum degradation rate of the fuel cell are used as the objective function, and the adjustment coefficient in the equivalent hydrogen consumption strategy and the output power of the fuel cell are calculated, so as to allocate the output power of the fuel cell system and the energy storage system in the ship fuel cell hybrid system in real time;
[0009] The fuel cell performance degradation caused by the real-time load power fluctuation of the fuel cell is added to the objective function to achieve the reduction of the fuel cell degradation rate and the fuel cell power fluctuation.
[0010] Furthermore: the method is applicable to a multi-stack fuel cell hybrid power system, which includes a fuel cell and a lithium battery, the fuel cell is connected to the DC bus through a unidirectional DC / DC converter, and the lithium battery is connected to the DC bus through a bidirectional DC / DC converter.
[0011] Furthermore, the expression of the objective function is as follows:
[0012] The objective function is shown in formula (2):
[0013]
[0014] in: is the equivalent hydrogen consumption cost, J ΔU is the degradation cost of the fuel cell.
[0015] Furthermore, the expression of the equivalent hydrogen consumption cost is as follows:
[0016]
[0017] in is the price per kilogram of hydrogen, C represents the equivalent hydrogen consumption of the hybrid system, and the calculation formula is:
[0018] C=C fc + k·C Bat (4)
[0019] Among them C fc represents the fuel cell hydrogen consumption rate, k·C Bat It represents the equivalent hydrogen consumption of the power battery, and k is the equivalent coefficient.
[0020] Furthermore, the expression of the equivalent coefficient k is as follows:
[0021]
[0022] The fuel cell hydrogen consumption rate C fc The expression is as follows:
[0023]
[0024] Among them: a0, a1, a2 are fitting coefficients;
[0025] Among them: SoC represents the real-time state of charge of the power battery, SoC H 、SoC L They represent the maximum and minimum values of battery SoC respectively, and μ represents the adjustment coefficient;
[0026] C bat It can be calculated by the following formula:
[0027]
[0028] Among them, P Bat is the output power of the power battery, C fc_avg is the average hydrogen consumption rate of the fuel cell, P fc_avg is the average output power of the fuel cell, η chg is the power battery charging efficiency, η dis is the power battery discharge efficiency;
[0029] η chg_avg , η dis_avg It is the average charge and discharge efficiency of the power battery.
[0030]
[0031] Further, the degradation cost of the fuel cell is expressed as:
[0032] J ΔU =J on-off +J shift +J high +J low (9)
[0033] Among them: J on-off represents the start-stop cycle degradation cost, J shift represents the transient load degradation cost, J high represents the high load power degradation cost, J low It represents the low load power degradation cost. The fuel cell output power is set to 20-80kW, and the impact of high and low loads on fuel cell degradation is not considered.
[0034] The fuel cell degradation cost is:
[0035] J ΔU =J on-off +J shift (10)
[0036] The start-stop cycle degradation cost can be calculated as:
[0037]
[0038] Among them, U end is the final pressure drop of the fuel cell when it stops using, p stack For the purchase cost of fuel cells,
[0039] Where: The transient load degradation cost is calculated as:
[0040]
[0041] Among them, P fc (k+1),P fc (k), P fc (k-1) are the fuel cell power at this moment, the fuel cell power in the previous sampling time, and the fuel cell power in the next sampling time, respectively. N fc =400 is the number of fuel cells.
[0042] Furthermore, the expression of the objective function is as follows.
[0043] P fc_min ≤P fc ≤P fc_max
[0044] SoC L ≤SoC≤SoC H
[0045] P load =η DC-DC1 ·P fc +η DC-DC2 ·P Bat
[0046] The present invention provides a fuel cell ship real-time power allocation optimization method of an improved genetic simulated annealing algorithm, which predicts the load power situation of the ship during navigation in real time; combines the concept of equivalent hydrogen consumption of the genetic simulated annealing algorithm; limits the power output range of the fuel cell; obtains the required power of the fuel cell system under the condition of minimum equivalent hydrogen consumption; and allocates the required power to the corresponding fuel cell system. The present invention combines a nonlinear autoregressive neural network prediction model with a genetic simulated annealing algorithm to minimize the calculation of the equivalent fuel consumption of the ship and the life of the fuel cell, realizes the real-time output power allocation between the fuel cell and the energy storage system, and multiple stacks of fuel cells, realizes the effective use of resources, reduces fuel consumption, prolongs the service life of the fuel cell, and saves the economic cost and life cost of the multiple stack fuel cell system. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0048] Figure 1 This is a block diagram of the fuel cell ship hybrid power system of the present invention;
[0049] Figure 2 A nonlinear autoregressive neural network topology diagram of a fuel cell hybrid power system of the present invention;
[0050] Figure 3 is the load power of the Dali Erhai passenger ship and the Alsterwasser ship in the present invention
[0051] Figure 4 A diagram showing the training process of a nonlinear autoregressive neural network in the energy management strategy of the present invention;
[0052] Figure 5 The training result diagram of the nonlinear autoregressive neural network in the present invention is shown in FIG.
[0053] Figure 6 This is the result of predicting the load power of the Alsterwasser ship using the trained nonlinear autoregressive neural network in the present invention.
[0054] Figure 7 It is a calculation flow chart of the combination of genetic simulated annealing algorithm and neural network in the energy management strategy of the present invention;
[0055] Figure 8 The figures are the verification results of the comparison between the energy management strategy of the present invention and the equivalent hydrogen consumption minimum strategy (ECMS) under different initial states of charge (SoC0) of lithium batteries, where (a) is the comparison of fuel cell output power and (b) is the comparison of battery states of charge. DETAILED DESCRIPTION
[0056] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] A fuel cell ship real-time power allocation optimization method based on an improved genetic simulated annealing algorithm comprises the following steps:
[0059] S1: Build fuel cell, lithium battery and converter models;
[0060] S2: Build a nonlinear autoregressive neural network model;
[0061] S3: Based on the ship load power, the nonlinear autoregressive neural network model is trained to obtain a trained nonlinear autoregressive neural network model;
[0062] S4: Based on the historical load power of the ship, the trained linear autoregressive neural network model is used to predict the load power of the ship at the next moment;
[0063] S5: Based on the load power, historical load power and real-time load power of the ship at the next moment, the initial population and the population after the initial population crossover and mutation are calculated with the objective function through the genetic simulated annealing algorithm, and then the selection probability in the simulated annealing algorithm is iteratively selected, wherein the equivalent hydrogen consumption and the minimum fuel cell degradation rate are used as the objective function, and the adjustment coefficient in the equivalent hydrogen consumption strategy and the output power of the fuel cell are calculated, so as to allocate the output power of the fuel cell system and the energy storage system in the ship fuel cell hybrid system in real time;
[0064] S6: Adding the fuel cell performance degradation caused by the real-time load power fluctuation of the fuel cell to the objective function to achieve a reduction in the fuel cell degradation rate and the fuel cell power fluctuation.
[0065] Steps S1 / S2 / S3 / S4 / S5 / S6 are executed in sequence;
[0066] It also includes calculating the fuel cell output power through the combination of a nonlinear autoregressive neural network and a genetic simulated annealing algorithm, thereby achieving the purpose of reducing the system equivalent hydrogen consumption and minimizing the fuel cell degradation rate.
[0067] like Figure 1The fuel cell hybrid power system shown is the object of the implemented energy management strategy and is composed of fuel cells, lithium batteries, DC conversion and other equipment. The ship power source is mainly provided by the fuel cell, and the lithium battery is assisted and realizes the peak shaving and valley filling effect.
[0068] Build a fuel cell-lithium battery hybrid system model, build a converter and its control model, including: build a fuel cell voltage model through the fuel cell voltage equation, build a battery R-int model, select fuel cells and batteries based on the approximate load power conditions; build a converter model to achieve constant voltage / constant current control of the converter;
[0069] like Figure 2 The nonlinear autoregressive neural network topology shown in FIG. includes an input layer, a hidden layer, and an output layer. It is based on a gate-controlled recurrent unit and has memory and reasoning capabilities. It simulates the signal transmission mode of human brain neurons by dividing the input signal into stages and has good time series information processing capabilities. For the time series y(t), t=1,2,3,…,n, the nonlinear autoregressive neural network model expression is shown in formula (1).
[0070] y(t)=f(x(t-1),x(t-2)...,x(tn)) (1)
[0071] Where n is the output delay, f() is the nonlinear activation function of the network, and y(t) is the predicted value.
[0072] like Figure 3 Shown are the ship load power used for the neural network training of the present invention and the Alsterwasser ship load power used for further verifying the effect of the neural network.
[0073] like Figure 4 The first step of the energy management strategy of the present invention is shown: the training of the nonlinear autoregressive neural network. The neural network is trained using the load power of ships visiting Erhai Lake in Dali, Yunnan. By taking points every 0.01s of the load power, a total of 24,001 data are obtained, of which 70% of the data are presented to the neural network during training and the network is adjusted according to its error. 15% of the data is used to measure the generalization error of the neural network, and the training is stopped when the generalization stops improving. The remaining 15% is used to provide an independent network performance measurement standard during and after training.
[0074] like Figure 5 The result of the nonlinear autoregressive neural network in the present invention is shown in FIG. 333. The training number of the neural network is 333, and the mean square error is 2.793·10 -4 .
[0075] like Figure 6The figure shows the result of predicting the load power of the Alsterwasser ship after training with the load power of the Erhai passenger ship in Dali, which proves the universality of the neural network.
[0076] like Figure 7 The figure shows the calculation process of combining the genetic simulated annealing algorithm with the neural network in the energy management strategy of the present invention, wherein the calculation objective function of the present invention is shown in formula (2):
[0077]
[0078] in: is the equivalent hydrogen consumption cost, expressed as:
[0079]
[0080] in: is the price per kilogram of hydrogen, C represents the equivalent hydrogen consumption of the hybrid system, and the calculation formula is:
[0081] C=C fc + k·C Bat (4)
[0082] Among them C fc represents the fuel cell hydrogen consumption rate, which is calculated by equation (6), k·C Bat Indicates the equivalent hydrogen consumption of the power battery. k is the equivalent coefficient [6] , the calculation formula is:
[0083]
[0084] Among them: SoC represents the real-time state of charge of the power battery, SoC H 、SoC L They represent the maximum and minimum values of the battery SoC, which are 0.8 and 0.5 respectively; μ represents the adjustment coefficient, which ranges from 0 to 1.
[0085]
[0086] Among them, a0, a1, and a2 are fitting coefficients, which are 2.909*10 -5 , 0.01331, 0.005990.
[0087] In addition, C bat It can be calculated by the following formula:
[0088]
[0089] Among them, P Bat is the output power of the power battery, C fc_avgis the average hydrogen consumption rate of the fuel cell, P fc_avg is the average output power of the fuel cell, η chg , η dis is the charge and discharge efficiency of the power battery, which can be calculated by formula (8), η chg_avg , η dis_avg It is the average charge and discharge efficiency of the power battery.
[0090]
[0091] In addition, the degradation cost of fuel cells is ΔU It is expressed as:
[0092] J ΔU =J on-off +J shift +J high +J low (9)
[0093] Among them: J on-off represents the start-stop cycle degradation cost, J shift represents the transient load degradation cost, J high represents the high load power degradation cost, J low It represents the low load power degradation cost. Since the fuel cell output power is limited to 20-80kW in this study, the effect of high and low loads on fuel cell degradation is not considered. The fuel cell degradation cost is:
[0094] J ΔU =J on-off +J shift (10)
[0095] The start-stop cycle degradation cost can be calculated as:
[0096]
[0097] Among them, U end The final pressure drop of the fuel cell when it stops being used. stack Purchase cost for fuel cell.
[0098] The transient load degradation cost can be calculated as:
[0099]
[0100] Among them, P fc (k+1),P fc (k), P fc (k-1) are the fuel cell power at this moment, the fuel cell power in the previous sampling time, and the fuel cell power in the next sampling time, respectively. N fc =400 is the number of fuel cells.
[0101] To ensure the normal operation of the system, the objective function makes the following constraints when allocating power:
[0102] P fc_min ≤P fc ≤P fc_max
[0103] SoC L ≤SoC≤SoC H
[0104] P load =η DC-DC1 ·P fc +η DC-DC2 ·P Bat
[0105] like Figure 7 As shown, after collecting the system SoC, the real-time ship load power, and the ship load power at the previous moment, the fuel cell power setting value is iteratively calculated by the genetic simulated annealing algorithm.
[0106] (Added in the figure) The calculation results are as follows Figure 8 The thicker line in (a) shows that the equivalent hydrogen consumption is 68.60g, 194.45g, 207.97g, 194.61g and 154.55g at SoC0 values of 20%, 50%, 65%, 80% and 90%, respectively. At these SoC0 levels, the voltage degradation of the fuel cell is 20.28μV, 25.82μV, 24.64μV, 24.42μV and 22.09μV, respectively. (b) is a comparison of the battery state of charge.
[0107] like Figure 8 The results after iterative calculation are shown in the table below, which are compared with the classic equivalent hydrogen consumption minimum strategy.
[0108] Equivalent consumption and fuel cell degradation of ECMS and the proposed method under different SoC0 conditions for a single load power cycle
[0109]
[0110] Compared with ECMS, the strategy proposed in this application can balance the equivalent hydrogen consumption and the degradation of the fuel cell to further reduce the operating cost of the ship. The equivalent fuel consumption is reduced by about 13% to 30%. Under normal circumstances, that is, (50% ≤ SoC0 ≤ 80%), the performance degradation rate is reduced by about 34%. In extreme cases, when SoC0 = 20%, the degradation rate is reduced by 18%, and when SoC0 = 90%, the degradation rate is increased by about 21%. This is because when the battery SoC is high, when ECMS is used, in order to restore the battery SoC to the limit as soon as possible, the calculated P fc_ref The longer the fuel cell power is at the lower limit, the smaller the degradation of the fuel cell caused by the transient load, and the smaller the overall degradation. For the change of the battery SoC in a single load cycle, such as Figure 8 As shown in the figure, it can be seen that each strategy is restored from the initial SoC0 to SoC ref = The time spent near 65% is basically the same.
[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A fuel cell ship real-time power allocation optimization method based on an improved genetic simulated annealing algorithm, characterized in that: The following steps are involved: Build fuel cell, lithium battery and converter models; Build a nonlinear autoregressive neural network model; Based on the ship load power, the nonlinear autoregressive neural network model is trained to obtain a trained nonlinear autoregressive neural network model; Based on the historical load power of the ship, the trained linear autoregressive neural network model is used to predict the load power of the ship at the next moment; Based on the load power, historical load power and real-time load power of the ship at the next moment, the initial population and the population after the crossover and mutation of the initial population are calculated with the objective function through the genetic simulated annealing algorithm, and then the selection probability in the simulated annealing algorithm is used for iterative selection. The equivalent hydrogen consumption and the minimum degradation rate of the fuel cell are used as the objective function, and the adjustment coefficient in the equivalent hydrogen consumption strategy and the output power of the fuel cell are calculated, so as to allocate the output power of the fuel cell system and the energy storage system in the ship fuel cell hybrid system in real time; The fuel cell performance degradation caused by the real-time load power fluctuation of the fuel cell is added to the objective function to achieve the reduction of the fuel cell degradation rate and the fuel cell power fluctuation.
2. According to claim 1, a fuel cell ship real-time power allocation optimization method based on an improved genetic simulated annealing algorithm is characterized by: The method is applicable to a multi-stack fuel cell hybrid power system, which includes a fuel cell and a lithium battery, wherein the fuel cell is connected to a DC bus via a unidirectional DC / DC converter, and the lithium battery is connected to the DC bus via a bidirectional DC / DC converter.
3. The method for optimizing real-time power allocation of a fuel cell ship using an improved genetic simulated annealing algorithm according to claim 1 is characterized in that: The expression of the objective function is as follows: The objective function is shown in formula (2): in: is the equivalent hydrogen consumption cost, J ΔU is the degradation cost of the fuel cell.
4. The method for optimizing real-time power allocation of a fuel cell ship using an improved genetic simulated annealing algorithm according to claim 1 is characterized in that: The expression of the equivalent hydrogen consumption cost is as follows: in is the price per kilogram of hydrogen, C represents the equivalent hydrogen consumption of the hybrid system, and the calculation formula is: C=C fc +k·C Bat (4) Among them C fc represents the fuel cell hydrogen consumption rate, k·C Bat It represents the equivalent hydrogen consumption of the power battery, and k is the equivalent coefficient.
5. The method for optimizing real-time power allocation of a fuel cell ship using an improved genetic simulated annealing algorithm according to claim 3 is characterized by: The expression of the equivalent coefficient k is as follows: The fuel cell hydrogen consumption rate C fc The expression is as follows: Among them: a0, a1, a2 are fitting coefficients; Among them: SoC represents the real-time state of charge of the power battery, SoC H 、SoC L They represent the maximum and minimum values of battery SoC respectively, and μ represents the adjustment coefficient; C bat It can be calculated by the following formula: Among them, P Bat is the output power of the power battery, C fc_avg is the average hydrogen consumption rate of the fuel cell, P fc_avg is the average output power of the fuel cell, η chg is the power battery charging efficiency, η dis is the power battery discharge efficiency; η chg_avg , η dis_avg is the average charge and discharge efficiency of the power battery.
6. The method for optimizing real-time power allocation of a fuel cell ship using an improved genetic simulated annealing algorithm according to claim 1 is characterized by: The degradation cost of the fuel cell is expressed as: I ΔU =J on-off +J shift +J high +J low (9) Among them: J on-off represents the start-stop cycle degradation cost, J shift represents the transient load degradation cost, J high represents the high load power degradation cost, J low It represents the low load power degradation cost. The fuel cell output power is set to 20-80kW, and the impact of high and low loads on fuel cell degradation is not considered. The fuel cell degradation cost is: I ΔU =J on-off +J shift (10) The start-stop cycle degradation cost can be calculated as: Among them, U end is the final pressure drop of the fuel cell when it stops using, p stack For the purchase cost of fuel cells, Where: The transient load degradation cost is calculated as: Among them, P fc (k+1),P fc (k), P fc (k-1) are the fuel cell power at this moment, the fuel cell power in the previous sampling time, and the fuel cell power in the next sampling time, respectively. N fc =400 is the number of fuel cells.
7. The method for optimizing real-time power allocation of a fuel cell ship using an improved genetic simulated annealing algorithm according to claim 1 is characterized by: The expression of the objective function is as follows. P fc_min ≤P fc ≤P fc_max SoC L ≤SoC≤SoC H P load =the DC-DC1 ·P fc +n DC-DC2 ·P Bat 。
Citation Information
Cited By
Energy management method based on equivalent hydrogen consumption of energy storage system
CN119918263A
Ship power regulation and control method and system based on hydrogen fuel cell
CN120191500A
