Solid hydrogen storage fuel cell sightseeing vehicle control method and system
By constructing the sightseeing car and energy storage battery model, and combining it with the PID neural network, the hydrogen flow rate is adjusted in real time, which solves the problem of reduced control effect caused by changes in the parameters of the solid-state hydrogen storage fuel cell sightseeing car system, and achieves efficient hydrogen flow management.
Patent Information
- Application Number
- CN202411140198.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-08-20
AI Technical Summary
When the existing PID control technology slightly changes the valve diameter and pipe volume of the solid-state hydrogen storage fuel cell sightseeing car system, the control effect drops significantly, requiring the model to be readjusted, which is time-consuming and labor-intensive.
Construct a sightseeing car dynamics, energy storage battery and solid-state hydrogen storage fuel cell model, combined with PID neural network, adjust the hydrogen flow in real time to adapt to system parameter changes, and execute computer-readable instructions through the processor and memory for control.
There is no need to repeatedly adjust the PID control model, and hydrogen flow control can be optimized in real time, improving the system's adaptability and robustness, and improving control accuracy and response speed.
Smart Images

Figure CN118683408A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fuel cells, and in particular to a control method and system for a solid-state hydrogen storage fuel cell sightseeing vehicle. Background Art
[0002] Fuel cell vehicles are an important branch of new energy vehicles. They have the advantages of fast refueling, high efficiency, low noise and zero emissions, and are regarded as one of the effective solutions for future transportation. Among fuel cells, solid-state hydrogen storage fuel cells have the advantages of fast dynamic response, low operating temperature and relatively simple structure, and are regarded as the most promising power source for automotive applications.
[0003] The solid-state hydrogen storage fuel cell sightseeing car is a complex nonlinear time-varying system. In particular, the driving environment faced by the sightseeing car is more complex and changeable. In order to achieve the key indicators and power requirements of the vehicle operation, it is necessary to provide controlled operating conditions to ensure that the internal state of the fuel cell is within a reasonable range. Among them, the pressure difference control between the anode and the cathode is a very important link.
[0004] Since the air compressor itself has a large pipeline volume and inherent hysteresis characteristics, and the hydrogen is stored in a solid hydrogen tank, the pressure response speed on the cathode side is significantly slower than that on the anode side, which leads to instability in the flow control on the cathode side. There have been many studies on the control of the hydrogen flow on the cathode side, such as PID control technology.
[0005] For a given automotive system, the current PID control model for hydrogen flow control is fully capable. However, once the valve diameter, pipeline volume and other system parameters of the automotive system change slightly, the control effect will be greatly reduced, and a lot of time will be spent on re-adjusting and modifying the PID control model. Summary of the invention
[0006] In order to solve the technical problem that once the current PID control technology has slight changes in system parameters such as valve diameter and pipeline volume of the automobile system, the control effect will be greatly reduced, and a lot of time needs to be spent on readjusting and modifying the PID control model, the present invention provides a solid-state hydrogen storage fuel cell sightseeing vehicle control method and system.
[0007] The technical solution provided by the embodiment of the present invention is as follows: First aspect: A control method for a solid-state hydrogen storage fuel cell sightseeing vehicle provided in an embodiment of the present invention comprises: S1: Construct the dynamic model of sightseeing car; S2: Construct energy storage battery model; S3: Construct a solid-state hydrogen storage fuel cell model; S4: determining the total power currently required by the sightseeing vehicle according to the sightseeing vehicle dynamics model; S5: Determine the maximum output power of the energy storage battery according to the energy storage battery model and on the condition that the battery temperature is lower than the safety temperature threshold; S6: Determine whether the total power currently required by the sightseeing vehicle is greater than the maximum output power of the energy storage battery or whether the remaining power of the energy storage battery is less than the power threshold; if so, calculate the output power required by the solid-state hydrogen storage fuel cell and start the solid-state hydrogen storage fuel cell to supplement energy supply; otherwise, the energy storage battery is used to supply energy completely; S7: Substituting the required output power of the solid-state hydrogen storage fuel cell into the solid-state hydrogen storage fuel cell model to calculate the theoretical hydrogen flow rate; S8: Obtain the current hydrogen flow rate; S9: According to the theoretical hydrogen flow rate and the current hydrogen flow rate, the sightseeing car is controlled through a PID neural network.
[0008] Second aspect: A solid-state hydrogen storage fuel cell sightseeing vehicle control system provided by an embodiment of the present invention comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the solid-state hydrogen storage fuel cell sightseeing vehicle control method as described in the first aspect is implemented.
[0009] The third aspect: An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the solid-state hydrogen storage fuel cell sightseeing vehicle control method as described in the first aspect is implemented.
[0010] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least: In the present invention, the sightseeing car is controlled by a PID neural network according to the theoretical hydrogen flow rate and the current hydrogen flow rate. When the system parameters of the automobile system, such as the valve diameter and pipeline volume, undergo slight changes, the PID neural network can adjust the PID control parameters in real time according to the actual situation to improve the control effect. There is no need to spend a lot of time to adjust and modify the PID control model again, which saves time and effort. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 A schematic flow chart of a solid-state hydrogen storage fuel cell sightseeing vehicle control method provided by an embodiment of the present invention; Figure 2 A schematic structural diagram of a solid-state hydrogen storage fuel cell sightseeing vehicle control system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0013] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0014] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0015] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.
[0016] In the embodiments of the present invention, sometimes a subscript such as W1 may be mistakenly written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are consistent.
[0017] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0018] Reference Manual Attached Figure 1 , showing a flow chart of a solid-state hydrogen storage fuel cell sightseeing vehicle control method provided by an embodiment of the present invention.
[0019] The embodiment of the present invention provides a solid-state hydrogen storage fuel cell sightseeing vehicle control method, which can be implemented by a solid-state hydrogen storage fuel cell sightseeing vehicle control device, and the solid-state hydrogen storage fuel cell sightseeing vehicle control device can be a terminal or a server. The processing flow of the solid-state hydrogen storage fuel cell sightseeing vehicle control method can include the following steps: S1: Construct a dynamic model of the sightseeing car.
[0020] In a possible implementation, the sightseeing vehicle dynamics model is specifically: in, P req Indicates the total power required by the sightseeing car, f represents the drag coefficient, m Indicates the quality of the sightseeing car. g represents the acceleration due to gravity, v Indicates the speed of the sightseeing bus. r air represents the air density, C w is the air resistance coefficient, A represents the front projection area of the sightseeing car, tan represents the tangent function, α Indicates the road slope angle, m a represents the equivalent inertial mass of the sightseeing car, d represents the differential operation, t Indicates time.
[0021] It should be noted that the sightseeing car dynamics model describes the total power required by the vehicle during driving. The model takes into account the various forces acting on the vehicle during driving and its power consumption. It mainly includes: rolling resistance power, air resistance power, slope resistance power and acceleration power. By considering the various forces that affect the vehicle's driving, the dynamics model can accurately predict the vehicle's energy consumption and help plan energy management strategies.
[0022] S2: Build an energy storage battery model.
[0023] In a possible implementation, the energy storage battery model is specifically: in, P bat Indicates the output power of the energy storage battery, V C represents the terminal voltage, V OCV represents the open circuit voltage, R 0 indicates the internal resistance of the battery. i L represents the load current, V RC Indicates the dynamic voltage drop of the battery. R 1 represents dynamic resistance, C 1 represents dynamic capacitance, d represents the differential operation, t Indicates time, SOC indicates the remaining battery power, Ah nom Indicates the nominal capacity of the battery. Ah used Indicates that the battery has been used. or C is the Coulomb efficiency,i L ( t )express t The load current at the moment, t 0 represents the starting time, t 1 indicates the end time, m batt Indicates the battery quality. c p represents the specific heat capacity of the battery, T cell Indicates the battery temperature. h represents the heat transfer coefficient, A represents the heat exchange area, T air Indicates the ambient air temperature.
[0024] It should be noted that the energy storage battery model can predict and control the battery temperature to avoid overheating or overcooling, improve the safety and service life of the battery, and determine the maximum output power of the energy storage battery based on the safety temperature threshold. At the same time, by calculating the ratio of output power to input power, the model can be used to evaluate the efficiency of the battery and guide the battery usage strategy to maximize efficiency.
[0025] S3: Build a solid-state hydrogen storage fuel cell model.
[0026] In a possible implementation, the solid-state hydrogen storage fuel cell model is specifically: in, P FC Represents the output power of solid-state hydrogen storage fuel cell, or FC represents the efficiency of solid-state hydrogen storage fuel cells, m react represents the amount of hydrogen reaction, is the enthalpy change of hydrogen reaction, M H2 represents the molar mass of hydrogen, m pv represents the mass flow injected by the proportional valve, m pug,H2 represents the exhaust hydrogen flow rate, represents the mass flow rate injected by the proportional valve, c pv represents the non-uniform flow coefficient, p u represents the upstream pressure, A pv represents the nozzle opening area, k represents the hydrogen adiabatic coefficient, R is the gas constant, Tu represents the upstream gas temperature, m pug represents the mass flow rate injected by the purge valve, represents the mass flow rate injected by the purge valve, k pug represents the purge flow coefficient, p an represents the anode pressure, p env Indicates environmental pressure, represents the exhaust hydrogen flow rate, m pug,vap Indicates the exhaust steam flow rate, represents the exhaust steam flow rate, p H2 represents the hydrogen flow rate, represents the hydrogen flow rate change rate, R H2 is the hydrogen gas constant, T an represents the anode temperature, V an represents the equivalent volume of the anode, u pv Indicates the duty cycle of the proportional valve control signal, u pug Indicates the duty cycle of the purge valve control signal, m current represents the oxygen flow rate consumed by the reaction, represents the oxygen flow rate consumed by the reaction, p vap represents the steam pressure, represents the rate of change of steam pressure, R vap is the steam gas constant, m vap,men represents the net steam flow rate in the membrane, represents the net vapor flow rate within the membrane, x H2 represents the hydrogen molar ratio, x vap represents the steam molar ratio, p H2 represents the hydrogen partial pressure in the anode, p vap Represents the steam partial pressure in the anode.
[0027] It should be noted that the solid-state hydrogen storage fuel cell model takes into account the efficiency of the fuel cell, the amount of hydrogen reaction and its reaction enthalpy change. This can accurately estimate the output power of the fuel cell under different operating conditions, thereby helping to design and optimize the fuel cell system. At the same time, it reveals the relationship between the hydrogen flow rate and various control parameters (proportional valve opening, purge valve opening, etc.).
[0028] S4: Determine the total power currently required by the sightseeing car according to the sightseeing car dynamics model.
[0029] It should be noted that by calculating the total power required by the vehicle under specific conditions (such as speed, slope, air resistance, etc.), energy consumption can be accurately predicted. This is very important for vehicle mileage prediction, energy scheduling and planning of battery management system (BMS) and fuel cell management system (FCMS), and helps to optimize the use of electricity and fuel.
[0030] S5: According to the energy storage battery model, the maximum output power of the energy storage battery is determined on the condition that the battery temperature is lower than the safety temperature threshold.
[0031] It should be noted that battery temperature is an important factor affecting its safety. High temperature may cause decomposition of battery materials, thermal runaway, or even fire and explosion. By monitoring and controlling the temperature of the battery and ensuring that it operates within a safe range, safety accidents can be effectively prevented. When the temperature is too high, limiting the maximum output power of the battery can reasonably allocate energy use. For example, in a hybrid system, more reliance can be placed on other energy sources (such as fuel cells or internal combustion engines) to reduce the burden on the battery and optimize the overall energy management strategy.
[0032] S6: Determine whether the total power currently required by the sightseeing car is greater than the maximum output power of the energy storage battery or whether the remaining power of the energy storage battery is less than the power threshold. If so, calculate the output power required by the solid-state hydrogen storage fuel cell and start the solid-state hydrogen storage fuel cell to supplement the energy supply. Otherwise, the energy storage battery is used to supply energy.
[0033] Among them, those skilled in the art can set the size of the power threshold according to actual conditions, and the present invention does not limit it.
[0034] It should be noted that by judging the relationship between the total power currently required by the sightseeing car and the maximum output power of the energy storage battery, it is possible to ensure that the most suitable energy is used first under different working conditions. Energy storage batteries can usually respond quickly to power demands and are suitable for short-term high power demands or stable low power output; while solid-state hydrogen storage fuel cells are suitable for providing relatively stable long-term power supply. Through this combination, the energy efficiency of the system can be maximized and energy waste can be reduced.
[0035] In a possible implementation, S6 specifically includes: calculating the required output power of the solid-state hydrogen storage fuel cell according to the following formula: in, P FC represents the output power required by the solid-state hydrogen storage fuel cell, P req Indicates the total power required by the sightseeing car, P bat Indicates the current output power of the energy storage battery.
[0036] S7: Substitute the required output power of the solid-state hydrogen storage fuel cell into the solid-state hydrogen storage fuel cell model to calculate the theoretical hydrogen flow rate.
[0037] It should be noted that by calculating the required hydrogen flow rate, the hydrogen supply to the fuel cell can be accurately determined. Too high a hydrogen flow rate may cause damage to the fuel cell components, while too low a pressure may cause the fuel cell to be unable to provide the required power output. By accurately calculating and controlling the hydrogen flow rate, these situations can be avoided and the safety and reliability of the fuel cell can be protected.
[0038] S8: Obtain the current hydrogen flow rate.
[0039] S9: According to the theoretical hydrogen flow rate and the current hydrogen flow rate, the sightseeing car is controlled through the PID neural network.
[0040] Among them, PID neural network is a control system that combines the traditional PID (proportional-integral-differential) control strategy with artificial neural network. It uses the self-learning and adaptive capabilities of neural networks to adjust the parameters of the PID controller, thereby achieving precise control of the system.
[0041] In a possible implementation, S9 specifically includes: S901: In the input layer of the PID neural network, the theoretical hydrogen flow rate and the current hydrogen flow rate are input.
[0042] Optionally, the input of the input layer is: in, N s1 ( k ) indicates the s Subnetwork k The target signal is input at any time. N s2 ( k ) indicates the s Subnetwork k The actual output signal input at any moment, r s ( k) indicates the s Subnetwork k The theoretical hydrogen flow rate input at any time, y s ( k ) indicates the s Subnetwork k The current hydrogen flow rate entered at any moment.
[0043] It should be noted that each sub-network controls a system parameter (eg, proportional valve opening, purge valve opening, exhaust valve opening).
[0044] The state values of the input layer neurons are as follows: in, v si ( k ) indicates the s In the sub-network i Input layer neurons k The state value at the moment, N si ( k ) indicates the s Sub-network i Input layer neurons k The input value at the time, i =1 or 2.
[0045] The output of the input layer is: in, x si ( k ) indicates the s In the subnetwork i Input layer neurons k Output value at time.
[0046] S902: In the hidden layer of the PID neural network, determine the proportional gain coefficient, the integral gain coefficient, and the differential gain coefficient.
[0047] Optionally, the input of the hidden layer is: in, Indicates s In the sub-network j Hidden layer neurons k The input value at the time, oh sij ( k ) indicates the s In the sub-network k Moment i The input layer neurons are j The connection weights between the neurons in the hidden layer are as well as Respectively represent s In the sub-network k Moment i The proportional gain coefficient, integral gain coefficient and differential gain coefficient between the input layer neurons and the hidden layer neurons, j =1, 2, or 3.
[0048] The state values of the hidden layer neurons are as follows: in, Indicates s Proportional neurons in the subnetwork k The state value at the moment, Indicates s Proportional neurons in the subnetwork k The input value at the time, Indicates s Integrating neurons in the subnetwork k The state value at the moment, Indicates s Integrating neurons in the subnetwork k The input value at the time, Indicates s Integrating neurons in the subnetwork k -1 input value at time, Indicates s Differentiable neurons in subnetworks k The state value at the moment, Indicates s Differentiable neurons in subnetworks k The input value at the time, Indicates s Differentiable neurons in subnetworks k -1 is the input value at time instant.
[0049] The output of the hidden layer is: in, Indicates s In the sub-network j Hidden layer neurons k The output value at time, Indicates s In the sub-network j Hidden layer neurons k The state value at the moment.
[0050] S903: Outputting the sightseeing car control signal at the output layer of the PID neural network.
[0051] Optionally, the input of the output layer is: in, Represents the output layer k The input value at the time, oh sjo ( k ) indicates the s In the sub-network k Moment j The connection weights between the hidden layer neurons and the output layer neurons.
[0052] The state value of the output layer neuron is specifically: in, Represents the output layer neurons k The state value at the moment.
[0053] The output of the output layer is: in, Represents the output layer neurons k The output value at the moment also represents the sightseeing car control signal. Represents the output layer neurons k The state value at the moment.
[0054] In the present invention, by utilizing the structure of the PID neural network, the theoretical hydrogen flow rate and the current hydrogen flow rate are taken as input signals, which are processed by the neural network and finally output as a control signal to adjust the operating state of the sightseeing car. This can not only improve the control accuracy and response speed, but also enhance the system's adaptability and robustness, providing strong support for realizing a more intelligent and efficient control system.
[0055] Specifically, the weights and biases of the PID neural network can be updated using the gradient descent method.
[0056] The loss function of the gradient descent method is constructed as follows: in, L represents the loss function, i s Indicates s The weights and biases of the sub-networks, r s ( k ) indicates the s Subnetwork k The theoretical hydrogen flow rate input at any time, y s ( k ) indicates the s Subnetwork k The current hydrogen flow rate input at any time, K Represents the total observation time.
[0057] The specific method for updating the weights and biases of the PID neural network is: in, i s,t+1 Indicates s Sub-network t +1 iteration weights and biases, i s,t Indicates s Sub-network t The weights and biases at the iteration, i s,t-1 Indicates s Sub-network t -The weight and bias at 1 iteration, or t Indicates t The adaptive learning rate at the iteration, Represents the loss function L right i s,t The gradient of w represents the coefficient of inertia.
[0058] It should be noted that by adding the inertia term, the direction and magnitude of the previous update can be utilized, which helps to accelerate convergence in areas with consistent gradient directions. This can significantly reduce the number of iterations required to reach the global or local optimal solution. At the same time, the inertia coefficient w The introduction of can help smooth the path of gradient updates and reduce oscillations in deep non-convex loss spaces. Especially when the learning rate is large, the inertia term can prevent drastic changes in the update direction and maintain the stability of training.
[0059] Furthermore, the adaptive learning rate is calculated as: in, or t Indicates t The adaptive learning rate at the iteration, or 0 represents the initial learning rate, i s,u Indicates s Sub-network u The weights and biases at the iteration, Loss Function L right i s,u The gradient of , m represents a hyperparameter that prevents the denominator from being zero.
[0060] It should be noted that the learning rate is dynamically adjusted based on the cumulative sum of squares of past gradients. When the gradient is large, the cumulative sum of squares increases and the learning rate decreases; when the gradient is small, the cumulative sum of squares is small and the learning rate is relatively large. This adaptive adjustment can help the model learn quickly in the early stages of training, while reducing the step size and making fine adjustments when approaching the optimal solution.
[0061] Although the gradient descent method can be used to adaptively update the weights and biases of the PID neural network. However, there is no fixed algorithm for selecting the initial weights of the PID neural network, which are generally selected randomly. The initial weights of the neural network represent the initial direction of network convergence and the starting point of learning. The randomly selected initial values will cause the neural network to train from a random direction. If you want to obtain the correct convergence direction, you must spend a lot of time on repeated training and learning, which will slow down the network convergence. The random starting point will also increase the probability of weight convergence falling into the local optimum.
[0062] In order to improve the control effect of the PID neural network, it is necessary to select appropriate initial weights. The present invention innovatively proposes a method for optimizing the initial weights through a harmony search algorithm.
[0063] Among them, the Harmony Search Algorithm (HS) is a heuristic optimization algorithm based on finding harmonious tones during music improvisation. The Harmony Search Algorithm imitates the process of musicians finding the best harmony by constantly adjusting the tones during improvisation.
[0064] The inverse of the above loss function is used as the fitness function of the harmony search algorithm.
[0065] Initialize the harmony memory. The harmony memory includes multiple harmonies. Harmonies include multiple components. Each harmony represents a feasible weight set, and each component represents a weight: in, H.M. Indicates the harmony memory bank, D represents the harmonic dimension, X i Indicates i A harmony, , HMS Indicates the size of the harmony memory library. x ij Indicates i The first in harmony j Quantity, , D Represents the harmonic dimension.
[0066] Generate random numbers r 1. Determine the random number rIs 1 less than the probability of taking the value from the harmony memory? If so, randomly generate a new harmony from the harmony memory. Otherwise, generate a new harmony by random selection.
[0067] Optionally, randomly generating new harmonies through a harmony memory library is specifically as follows: in, X new Indicates a new harmony, x new,j Indicates the first j Quantity, , D represents the harmonic dimension, rand represents random selection, x ij Indicates i The first in harmony j Quantity, , HMS Indicates the size of the harmony memory library.
[0068] It should be noted that by selecting components from the harmony memory, this method effectively utilizes the information of the currently known better solutions. The harmonies in the memory usually represent relatively good solutions found during the search process, and extracting information from these solutions helps guide new solutions to a better direction. By randomly selecting components from the harmony memory, multiple different new harmonies can be generated, thereby increasing the diversity of solutions. This method helps avoid the search process from falling into a local optimum and maintains the ability to explore the search space.
[0069] Optionally, generating new harmony by random selection is as follows: in, upper j Indicates j The upper boundary of the component, lower j Indicates j The lower boundary of the component.
[0070] It should be noted that by randomly selecting new harmonies between the upper and lower boundaries, the diversity of the harmonies can be significantly increased. This diversity is crucial to maintaining a wide range of exploration during the search process, especially in the early stages, ensuring that the search covers a larger solution space. By introducing new, randomly generated harmonies, the global search ability of the algorithm can be maintained. Even if the solutions in the harmonic memory tend to be concentrated, this method can still generate new harmonies far away from the current solution space, thereby continuing to explore undiscovered areas.
[0071] Optionally, the upper boundary and the lower boundary are specifically: in, Indicates j The quantity in t The upper bound at the iteration, Indicates j The quantity in t -The upper bound at 1 iteration, H.M. (: j ) indicates the first j Quantity, Indicates the first j The maximum value of the components, Indicates j The quantity in t The lower bound at the iteration, Indicates j The quantity in t -The lower bound at 1 iteration, Indicates the first j The minimum value of the components, T Indicates the total number of iterations.
[0072] It should be noted that as the number of iterations increases, the upper and lower boundaries gradually shrink to the range of the optimal solution in the harmony memory library. This gradual shrinking process helps to accelerate the convergence speed of the algorithm. As the search space shrinks, the algorithm can search for the optimal solution more finely, thereby improving the convergence speed.
[0073] Generate random numbers when randomly generating new harmonies from the harmony memory r 2. Determine the random number r 2 is less than the pitch fine-tuning probability. If so, generate a new harmony through pitch fine-tuning. Otherwise, keep the harmony unchanged.
[0074] Optionally, generating a new harmony by fine-tuning the pitch is specifically as follows: in, Indicates the first chord in the new chord after the new chord is fine-tuned. j Quantity, x new,j Indicates the first j Quantity, BW Indicates fine-tuning bandwidth, r 3 represents a random number between -1 and 1, x best,j Indicates the harmony with the highest current fitness value. j Quantity, x worst,j Indicates the harmony with the lowest current fitness value. j A quantity.
[0075] It should be noted that by fine-tuning the original components, a fine search can be performed near the existing solution. This method can capture the possible better solutions near the original solution, which helps to improve the quality of the solution in the local scope. Tune fine-tuning combines local search with appropriate mutation mechanisms to achieve a balance between global exploration and local development. This balance helps to maintain a certain exploration capability in the global scope while performing in-depth optimization in the local scope.
[0076] The generated new harmony is compared with the harmony with the lowest fitness value in the harmony memory library to determine whether the fitness value of the new harmony is greater than the fitness value of the harmony with the lowest fitness value in the harmony memory library. If so, the harmony with the lowest fitness value in the harmony memory library is replaced with the new harmony to update the harmony memory library. Otherwise, the harmony memory library remains unchanged.
[0077] Determine whether the current number of iterations has reached the maximum number of iterations. If so, output the weight set of the harmony representative with the highest fitness. Otherwise, return to continue iterating.
[0078] In the present invention, randomly initialized weights may lead to a poor initial convergence direction of the neural network, which is easy to fall into a local optimal solution. However, the harmony search algorithm can effectively find a set of better initial weights through the exploration and development mechanism. These weights provide a good starting point for subsequent training and help improve the convergence quality of the network.
[0079] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least: In the present invention, the sightseeing car is controlled by a PID neural network based on the theoretical hydrogen flow rate and the current hydrogen flow rate. When there are slight changes in system parameters such as valve diameter and pipeline volume of the automobile system, the PID neural network can adjust the PID control parameters in real time according to actual conditions to improve the control effect. There is no need to spend a lot of time to adjust and modify the PID control model again, which saves time and effort.
[0080] Reference Manual Attached Figure 2 , showing a structural schematic diagram of a solid-state hydrogen storage fuel cell sightseeing vehicle control system provided by the present invention.
[0081] The present invention also provides a solid-state hydrogen storage fuel cell sightseeing vehicle control system 20, which is applied to the above-mentioned solid-state hydrogen storage fuel cell sightseeing vehicle control method, comprising: Processor 201; The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the solid-state hydrogen storage fuel cell sightseeing vehicle control method described in the method embodiment is implemented.
[0082] The solid-state hydrogen storage fuel cell sightseeing vehicle control system 20 provided by the present invention can execute the above-mentioned solid-state hydrogen storage fuel cell sightseeing vehicle control method and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0083] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least: In the present invention, the sightseeing car is controlled by a PID neural network according to the theoretical hydrogen flow rate and the current hydrogen flow rate. When the system parameters of the automobile system, such as the valve diameter and pipeline volume, undergo slight changes, the PID neural network can adjust the PID control parameters in real time according to the actual situation to improve the control effect. There is no need to spend a lot of time to adjust and modify the PID control model again, which saves time and effort.
[0084] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0085] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0086] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0087] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0088] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0089] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0090] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0091] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0092] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0094] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0095] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0096] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the solid-state hydrogen storage fuel cell sightseeing vehicle control method as described in the method embodiment.
[0097] A computer-readable storage medium provided by the present invention can implement the steps and effects of the solid-state hydrogen storage fuel cell sightseeing vehicle control method of the above method embodiment. To avoid repetition, the present invention will not go into details.
[0098] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least: In the present invention, the sightseeing car is controlled by a PID neural network according to the theoretical hydrogen flow rate and the current hydrogen flow rate. When the system parameters of the automobile system, such as the valve diameter and pipeline volume, undergo slight changes, the PID neural network can adjust the PID control parameters in real time according to the actual situation to improve the control effect. There is no need to spend a lot of time to adjust and modify the PID control model again, which saves time and effort.
[0099] In the present invention, the sightseeing car is controlled by a PID neural network according to the theoretical hydrogen flow rate and the current hydrogen flow rate. When the system parameters of the automobile system, such as the valve diameter and pipeline volume, undergo slight changes, the PID neural network can adjust the PID control parameters in real time according to the actual situation to improve the control effect. There is no need to spend a lot of time to adjust and modify the PID control model again, which saves time and effort.
[0100] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0101] There are a few points to note: (1) The drawings of the embodiments of the present invention only involve structures related to the embodiments of the present invention. Other structures may refer to conventional designs.
[0102] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the film or region is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a film, a region or a substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0103] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0104] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A solid-state hydrogen storage fuel cell sightseeing vehicle control method, It is characterized in that include: S1: Construct the dynamic model of sightseeing car; S2: Construct energy storage battery model; S3: Construct a solid-state hydrogen storage fuel cell model; S4: determining the total power currently required by the sightseeing vehicle according to the sightseeing vehicle dynamics model; S5: Determine the maximum output power of the energy storage battery according to the energy storage battery model and on the condition that the battery temperature is lower than the safety temperature threshold; S6: Determine whether the total power currently required by the sightseeing vehicle is greater than the maximum output power of the energy storage battery or whether the remaining power of the energy storage battery is less than the power threshold; if so, calculate the output power required by the solid-state hydrogen storage fuel cell and start the solid-state hydrogen storage fuel cell to supplement energy supply; otherwise, the energy storage battery is used to supply energy completely; S7: Substituting the required output power of the solid-state hydrogen storage fuel cell into the solid-state hydrogen storage fuel cell model to calculate the theoretical hydrogen flow rate; S8: Obtain the current hydrogen flow rate; S9: According to the theoretical hydrogen flow rate and the current hydrogen flow rate, the sightseeing car is controlled through a PID neural network.
2. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 1, It is characterized in that The sightseeing car dynamics model is specifically: in, P req Indicates the total power required by the sightseeing car, f represents the drag coefficient, m Indicates the quality of the sightseeing car. g represents the acceleration due to gravity, v Indicates the speed of the sightseeing bus. ρ air represents the air density, C w represents the air resistance coefficient, A represents the front projection area of the sightseeing car, tan represents the tangent function, α Indicates the road slope angle, m a represents the equivalent inertial mass of the sightseeing car, d represents the differential operation, t Indicates time.
3. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 1, It is characterized in that The energy storage battery model is specifically: in, P bat Indicates the output power of the energy storage battery, V C represents the terminal voltage, V OCV represents the open circuit voltage, R 0 Represents the internal resistance of the battery, i L represents the load current, V RC Indicates the dynamic voltage drop of the battery. R 1 represents the dynamic resistance, C 1 represents the dynamic capacitance, d represents the differential operation, t Indicates time, SOC indicates the remaining battery power, Ah nom Indicates the nominal capacity of the battery. Ah used Indicates that the battery has been used. η C is the Coulomb efficiency, i L ( t )express t The load current at the moment, t 0 Indicates the starting time, t 1 Indicates the end time, m batt Indicates the battery quality. c p represents the specific heat capacity of the battery, T cell Indicates the battery temperature. h represents the heat transfer coefficient, A represents the heat exchange area, T air Indicates the ambient air temperature.
4. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 1, It is characterized in that The solid-state hydrogen storage fuel cell model is specifically: in, P FC Represents the output power of solid-state hydrogen storage fuel cell, η FC represents the efficiency of solid-state hydrogen storage fuel cells, m react represents the amount of hydrogen reaction, is the enthalpy change of hydrogen reaction, M H2 represents the molar mass of hydrogen, m pv represents the mass flow injected by the proportional valve, m pug,H2 Indicates the exhaust hydrogen flow rate, represents the mass flow rate injected by the proportional valve, c pv represents the non-uniform flow coefficient, p u represents the upstream pressure, A pv represents the nozzle opening area, k represents the hydrogen adiabatic coefficient, R is the gas constant, T u represents the upstream gas temperature, m pug represents the mass flow rate injected by the purge valve, represents the mass flow rate injected by the purge valve, k pug represents the purge flow coefficient, p an represents the anode pressure, p env Indicates environmental pressure, represents the exhaust hydrogen flow rate, m pug,vap Indicates the exhaust steam flow rate, represents the exhaust steam flow rate, p H2 represents the hydrogen flow rate, represents the hydrogen flow rate change rate, R H2 is the hydrogen gas constant, T an represents the anode temperature, V an represents the equivalent volume of the anode, u pv Indicates the duty cycle of the proportional valve control signal, u pug Indicates the duty cycle of the purge valve control signal, m current represents the oxygen flow rate consumed by the reaction, represents the oxygen flow rate consumed by the reaction, p vap represents the steam pressure, represents the rate of change of steam pressure, R vap is the steam gas constant, m vap,men represents the net steam flow rate in the membrane, represents the net vapor flow rate within the membrane, x H2 represents the hydrogen molar ratio, x vap represents the steam molar ratio, p H2 represents the hydrogen partial pressure in the anode, p vap Represents the steam partial pressure in the anode.
5. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 1, It is characterized in that The calculation of the output power required by the solid-state hydrogen storage fuel cell in S6 is specifically: According to the following formula, calculate the required output power of the solid-state hydrogen storage fuel cell: in, P FC represents the output power required by the solid-state hydrogen storage fuel cell, P req Indicates the total power required by the sightseeing car, P bat Indicates the current output power of the energy storage battery.
6. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 1, It is characterized in that The S9 specifically includes: S901: In the input layer of the PID neural network, input the theoretical hydrogen flow rate and the current hydrogen flow rate; S902: Determine a proportional gain coefficient, an integral gain coefficient, and a differential gain coefficient in a hidden layer of the PID neural network; S903: Outputting the sightseeing car control signal at the output layer of the PID neural network.
7. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 6, It is characterized in that The input of the input layer is specifically: in, N s1 ( k ) indicates the s Subnetwork k The target signal is input at any time. N s2 ( k ) indicates the s Subnetwork k The actual output signal input at any moment, r s ( k ) indicates the s Subnetwork k The theoretical hydrogen flow rate input at any time, y s ( k ) indicates the s Subnetwork k The current hydrogen flow rate input at all times; The state value of the input layer neuron is specifically: in, v si ( k ) indicates the s In the subnetwork i Input layer neurons k The state value at the moment, N si ( k ) indicates the s Sub-network i Input layer neurons k The input value at the time, i =1 or 2; The output of the input layer is specifically: in, x si ( k ) indicates the s In the subnetwork i Input layer neurons k The output value at that moment.
8. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 7, It is characterized in that The input of the hidden layer is specifically: in, Indicates s In the subnetwork j Hidden layer neurons k The input value at the time, ω sij ( k ) indicates the s In the sub-network k Moment i The input layer neurons are j The connection weights between the neurons in the hidden layer are as well as Respectively represent s In the sub-network k Moment i The proportional gain coefficient, integral gain coefficient and differential gain coefficient between the input layer neurons and the hidden layer neurons, j =1, 2, or 3; The state value of the hidden layer neuron is specifically: in, Indicates s Proportional neurons in the subnetwork k The state value at the moment, Indicates s Proportional neurons in the subnetwork k The input value at the time, Indicates s Integrating neurons in the subnetwork k The state value at the moment, Indicates s Integrating neurons in the subnetwork k The input value at the time, Indicates s Integrating neurons in the subnetwork k -1 input value at time, Indicates s Differentiable neurons in subnetworks k The state value at the moment, Indicates s Differentiable neurons in subnetworks k The input value at the time, Indicates s Differentiable neurons in subnetworks k -1 input value at time; The output of the hidden layer is specifically: in, Indicates s In the subnetwork j Hidden layer neurons k The output value at time, Indicates s In the subnetwork j Hidden layer neurons k The state value at the moment.
9. The solid-state hydrogen storage fuel cell sightseeing vehicle control method according to claim 8, It is characterized in that The input of the output layer is specifically: in, Represents the output layer k The input value at the time, ω sjo ( k ) indicates the s In the sub-network k Moment j The connection weights between the hidden layer neurons and the output layer neurons; The state value of the output layer neuron is specifically: in, Represents the output layer neurons k The state value at the moment; The output of the output layer is specifically: in, Represents the output layer neurons k The output value at the moment also represents the sightseeing car control signal. Represents the output layer neurons k The state value at the moment.
10. A solid-state hydrogen storage fuel cell sightseeing vehicle control system, It is characterized in that include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the solid-state hydrogen storage fuel cell sightseeing vehicle control method as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Solid hydrogen storage and desorption capacity correction method, system, equipment and medium
CN117613320A
Energy management method for fuel cell system of two-wheeled vehicle using solid hydrogen storage
CN117774783A
Fuel cell system and method for controlling the same
US20130189598A1
Fuel cell system and method for controlling the same
US20200153010A1
Cited By
Solid hydrogen storage device and energy flow control method of fuel cell
CN121460626A
Method and system for judging maximum power of flow battery according to flow coefficient
CN121507014A
A method and system for determining maximum power of a flow battery according to flow coefficient
CN121507014B
