Probability-optimized optimal configuration method for optical hydrogen storage direct current system
By using probabilistic optimization methods and combining the error sequences of photovoltaic power generation and hydrogen production load, an optimal configuration model for photovoltaic-hydrogen storage DC system was established. This solved the problem of inaccurate optimal configuration of photovoltaic-hydrogen storage DC microgrid caused by the uncertainty of photovoltaic power generation, and realized a more accurate and reliable power distribution and storage scheme.
Patent Information
- Application Number
- CN202410793254.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-11-01
AI Technical Summary
Existing technologies struggle to effectively address the uncertainties of distributed photovoltaic (PV) power generation, leading to inaccurate optimization of the configuration of PV-hydrogen-storage DC microgrids and an inability to effectively absorb distributed PV power generation.
By employing a probabilistic optimization method, an optimal configuration model for a photovoltaic-hydrogen storage DC system is established by simulating the error sequences of photovoltaic power generation and hydrogen production load, combined with real-time monitoring and optimized allocation of the energy storage system. This model considers the uncertainties of photovoltaic output and hydrogen production load, and optimizes the power allocation and storage scheme.
This effectively reduces the error between actual and predicted data, improves the accuracy and reliability of the optimized configuration of the photovoltaic-hydrogen storage DC system, and ensures the stability and economy of power supply.
Smart Images

Figure CN118889359A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power grid operation and control technology, and in particular relates to a probability-optimized photovoltaic hydrogen storage DC system optimization configuration method. Background Art
[0002] Distributed photovoltaic power generation is different from traditional power sources. Its output is random and volatile, and its stability is poor. It is easily affected by many factors such as seasons and weather, and it cannot be fully accepted as a stable power source. Therefore, the distribution network's acceptance capacity for distributed photovoltaics, that is, the distributed photovoltaic limit grid-connected capacity, needs to be accurately evaluated and analyzed, which plays a very important role in promoting the safe and economic consumption of distributed photovoltaics.
[0003] The traditional deterministic distributed photovoltaic grid-connected capacity optimization model does not take into account the volatility of distributed photovoltaic output and is difficult to apply to the distributed photovoltaic grid-connected capacity assessment. For this reason, random programming models, robust programming models, and probabilistic optimization planning models are introduced into the distributed photovoltaic grid-connected capacity assessment. The random scale of distributed photovoltaic grid-connected capacity requires the establishment of a probabilistic model of photovoltaic output, which requires high accuracy in the actual photovoltaic output modeling. The robust scale of distributed photovoltaic grid-connected capacity does not require the establishment of an accurate probabilistic model, but only requires the acquisition of an interval set of photovoltaic output. However, the robust planning results are relatively conservative, which is not conducive to maximizing the consumption of distributed photovoltaics. The probabilistic optimization planning model refers to allowing the distributed photovoltaic grid-connected capacity to not meet certain inequality constraints of the distribution network, but the probability of meeting the distribution network constraints must be no less than the pre-set confidence level. Similar to most microgrid capacity planning problems, the difficulty of the grid-connected photovoltaic storage microgrid capacity planning problem lies in the uncertainty of photovoltaic power generation on its supply side. To solve this type of decision-making problem with uncertainty, most existing studies use stochastic optimization methods. Specifically, they assume that the uncertain parameters satisfy a certain probability distribution, such as photovoltaic power generation, and then solve the corresponding capacity planning problem with the goal of minimizing the expected value of the investment cost and operating cost of the microgrid. Summary of the invention
[0004] In view of the shortcomings of the above-mentioned prior art, there are few studies specifically targeting photovoltaic hydrogen storage DC microgrids, and most DC microgrid planning has failed to consider the impact of uncertain factors. The present invention provides a probability-optimized photovoltaic hydrogen storage DC system optimization configuration method. The purpose is to effectively avoid the error between actual data and predicted data, to more effectively and reliably optimize the photovoltaic hydrogen storage DC system configuration, and to provide a technical basis and practical method for the optimal operation and control of the photovoltaic hydrogen storage DC system.
[0005] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:
[0006] The probability-optimized optimization configuration method of the photovoltaic hydrogen storage DC system includes the following steps:
[0007] Formulate an initial power distribution plan based on a single set of photovoltaic power generation data parameters to distribute the electricity generated by photovoltaic power generation to storage energy and hydrogen production energy;
[0008] Input the parameters of possible influencing factors into statistical data, perform data processing, and obtain forecast data;
[0009] Monitor real-time power consumption data and upload it to the power station's system for monitoring daily power consumption;
[0010] Power load forecasting: judging whether the initial allocation plan needs to be adjusted based on uploaded real-time power consumption data;
[0011] Simulate the optimal distribution of electricity. When the real-time electricity consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy to supply electricity.
[0012] Based on the loss value during the energy conversion process, determine whether the allocation result is reasonable.
[0013] Furthermore, the possible influencing factor parameters are input into the statistical data, and data processing is performed to obtain the prediction data, including:
[0014] s(i s ) is the error value of photovoltaic output;
[0015] ev(i ev ) is the hydrogen production load error value;
[0016] a(i) is the probability sequence of the combination of the two, and the calculation formula is:
[0017]
[0018] Where: s(i s ) is the specific value of the photovoltaic output prediction error; ev(i ev ) is the corresponding value of the hydrogen production load prediction error; a(i) is the overall probabilistic sequence formed by combining the photovoltaic output error and the hydrogen production load error after specific calculation processing;
[0019] On this basis, the sequence operation algorithm is introduced, while satisfying the constraints:
[0020]
[0021] In the above formula: Pr is the meaning of probability in mathematics, which can be left unexplained; ε s , ε ev are the error coefficients generated by the prediction of photovoltaic output and hydrogen production load of hydrogen production unit; Pel (t) is the charging power of the energy storage unit at time t; P e2 (t) is the discharge power of the energy storage unit at time t; P ev (t) is the hydrogen production power of the hydrogen production unit; σ is a smaller constant; α is the confidence level of the above formula; P g(t) P g Power purchased for the grid; P s(t) The rated output power of the photovoltaic power generation system is defined as P s .
[0022] Furthermore, the real-time electricity consumption data is monitored and uploaded to the power station's system for monitoring daily electricity consumption, wherein the real-time electricity consumption is monitored by the municipal background to monitor residents' electricity consumption in real time, determine the peak of residents' electricity consumption, and re-formulate the optimized distribution plan based on the peak electricity consumption.
[0023] Furthermore, the power load forecasting, based on the uploaded real-time power consumption data, determines whether the initial allocation plan needs to be adjusted, includes:
[0024] S41. Under the normal system operation mode, the constraints are established as follows:
[0025] |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ
[0026] In the above formula, P e2 (t) and P e1 (t) are the discharge and charge powers of the energy storage system at time t; σ is a small constant; α is the confidence level of the formula, a -1 is the reverse sequence of a; N is N groups of data samples, a is the joint probability sequence of photovoltaic output and charging load, when P e2 (t)>P e1 (t), using hydrogen production energy to obtain electrical energy;
[0027] S42. According to P e2 (t)-P e1 (t), obtain hydrogen consumption data, the hydrogen output of the electrolyzer at time t E el (t) is:
[0028]
[0029] In the above formula, P el (t) is the charging power of the electrolyzer at time t, in kW; η el is the efficiency of hydrogen production by electrolysis; σ is the conversion coefficient between calorific value and electrical energy, is the lower calorific value of hydrogen, in kJ / m 3 ;
[0030] S43. Calculate whether the hydrogen storage capacity has reached the critical value based on the value of the required hydrogen, and the hydrogen storage capacity E of the hydrogen storage tank at time t hs (t) is:
[0031] E hs (t) = (1-τ)E hs (t-1)+E el (t)ξ hel -E fc (t) / ξ hfc -E hfev (t) / ξ hhfev
[0032] Where: τ is the loss coefficient; ξ hel E is the input conversion coefficient of hydrogen produced by the electrolyzer; fc (t) is the amount of hydrogen provided by the hydrogen storage system to the fuel cell at time t, m 3 ξ hfc is the output conversion factor E supplied to the fuel cell hfev (t) is the electricity consumption and hydrogenation demand at time t, m 3 ξ hhfev E is the output conversion factor for supplying electricity consumption; hs (t-1) is the hydrogen storage capacity at time (t-1);
[0033] S44. Perform a deterministic equivalent transformation on the probability optimization and obtain the following formula:
[0034] |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ
[0035] In the above formula, P e2 (t) is the discharge power of the energy storage system at time t; P e1 (t) Charging power of the energy storage system at time t;
[0036] σ is a small constant; α is the confidence level of the formula. -1 is the reverse sequence of a, a is the joint probability sequence of photovoltaic output and charging load, and s(i s ) and ev(i ev ) is brought into the probability sequence calculation formula in step S2, and whether to confirm the allocation of the scheme is determined according to the probability prediction result; N is N groups of data samples;
[0037] S45. If it is predicted that the continuous power generation of photovoltaic power generation is sufficient to supply electricity, the allocation plan is confirmed. If it is predicted that the continuous power generation of photovoltaic power generation is not sufficient to supply electricity, an alarm is issued and response measures are formulated.
[0038] Furthermore, in the simulated power optimization allocation, when the real-time power consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy to supply power, wherein: according to the optimized allocation plan, the historical power consumption data is simulated to detect whether the optimized allocation plan can meet the power supply requirements. If it is sufficient to complete the power supply, the energy is reallocated; if it is not sufficient to complete the power supply, the allocation plan is re-formulated;
[0039] In the process of simulating the power supply of the distribution plan, real-time prediction of solar irradiance, surrounding temperature data and historical residential electricity consumption trends are all important parameters that affect the prediction results.
[0040] Furthermore, a critical value is set for the hydrogen storage capacity of the hydrogen storage tank, and the critical value is used to determine whether the hydrogen storage tank is full. If the content in the hydrogen storage tank is too much, it means that the storage energy consumption of the solar cell is too low and there is abnormal power consumption. By setting a critical value for the storage content in the hydrogen storage tank, it is determined according to the hydrogen storage capacity in the hydrogen storage tank whether the power supply consumption of the storage energy increases or decreases, and further determines whether there is any abnormality in the allocation plan.
[0041] Furthermore, the hydrogen production load error value is subject to the operating power and ramp constraints of the electrolyzer, as shown in the following formula:
[0042] Right now
[0043]
[0044] In the above formula, is the maximum hydrogen production power of the electrolytic hydrogen production system, measured in kW; I ef (t) is a 0 / 1 variable to avoid simultaneous operation of the electrolyzer and the fuel cell at time t; are the maximum uphill and downhill speeds of the electrolytic cell, respectively, in kW / h; Δt is the time interval, in h;
[0045] The hydrogen storage capacity and storage and discharge rate constraints of the hydrogen storage tank during operation are as follows:
[0046]
[0047]
[0048] In the above formula, They are the minimum and maximum hydrogen storage capacity of the hydrogen storage tank, respectively, and the unit of measurement is m 3 ; They are the maximum storage rate and the minimum storage rate of the hydrogen storage tank, respectively, and the unit of measurement is m 3 / h; E hs (t) is the hydrogen storage capacity of the hydrogen storage tank at time t; E hs (t-1) is the hydrogen storage capacity at time (t-1);
[0049] The above optimization is used as model 1. The error coefficients of photovoltaic output and hydrogen production load are two independent random variables, which have different probability distributions. The sequence is a set of discrete values arranged in the same step length. The probabilistic sequence is described as follows:
[0050]
[0051] a(i)≥0
[0052] In the above formula: a is a probabilistic sequence; a(i) is the probability distribution when the sequence takes a value at discrete point i. When i is greater than N or less than 0, the value of a(i) is 0;
[0053] Probability density distribution of photovoltaic output and hydrogen production load:
[0054] After considering randomness, the power balance constraint under probabilistic optimization is introduced, and the formula is as follows:
[0055]
[0056] Where: s , ε ev are the error coefficients generated by the prediction of photovoltaic output and hydrogen production load; P e2 (t) and P e1 (t) are the discharge and charging power of the energy storage system at time t; σ is a small constant; α is the confidence level of the formula; P g P is the power purchased from the power grid; g Power purchased for the grid; P s(t) The rated output power of the photovoltaic power generation system is defined as P s ,P ev (t) is the hydrogen production power of the hydrogen production unit;
[0057] Performing a deterministic equivalent transformation on the probability optimization, we get the following formula:
[0058] |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ
[0059] In the above formula, P e2 (t) and Pe1 (t) are the discharge and charging power of the energy storage system at time t, σ is a small constant, α is the confidence level of the formula, and a -1 is the inverse sequence of a, and a is the joint probabilistic sequence of photovoltaic output and charging load.
[0060] The probability-optimized photovoltaic hydrogen storage DC system optimization configuration device includes:
[0061] The formulation module is used to formulate an initial power distribution plan based on a single set of photovoltaic power generation data parameters, and distribute the electricity generated by photovoltaic power generation to storage energy and hydrogen production energy.
[0062] The data processing module is used to input the parameters of possible influencing factors into the statistical data, perform data processing, and obtain the predicted data;
[0063] Monitoring module, used to monitor the real-time power consumption data and upload it to any power station's system for monitoring daily power consumption;
[0064] The prediction module is used for power load prediction, and determines whether the initial allocation plan needs to be adjusted based on the uploaded real-time power consumption data;
[0065] The optimization allocation module is used to simulate the optimization allocation of electricity. When the real-time power consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy to supply electricity.
[0066] A judgment module is used to judge whether the allocation result is reasonable according to the loss value in the energy conversion process;
[0067] The probability-optimized photovoltaic hydrogen storage DC system optimization configuration device is used to implement the steps of any of the probability-optimized photovoltaic hydrogen storage DC system optimization configuration methods described.
[0068] A computer device comprises a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the computer program, the steps of any one of the probability-optimized methods for optimizing configuration of a photovoltaic hydrogen storage DC system are implemented.
[0069] A computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any one of the probability-optimized methods for optimizing configuration of a photovoltaic hydrogen storage DC system are implemented.
[0070] The present invention has the following beneficial effects and advantages:
[0071] This paper considers the volatility of photovoltaic micro-source output power and the uncertainty of load changes in photovoltaic hydrogen storage DC microgrids, and proposes an optimal configuration scheme for photovoltaic hydrogen storage DC microgrids based on chance constraints. Based on chance constraint planning, an optimal planning model for photovoltaic hydrogen storage DC microgrids with the goal of minimizing construction and operation costs is constructed, and the constraints containing random variables in the model are deterministically transformed through sequence operations.
[0072] The present invention preliminarily calculates the required power supply based on the difference between the real-time power consumption and the storage energy supply data in the initial allocation plan, and then further reversely infers the power supply data based on the irradiance, temperature environment, the loss generated during the storage and charging and discharging process, and the loss data in the hydrogen storage tank, and finally obtains the actual power demand data. The actual power supply data is input into the formula in step S2 to obtain the required hydrogen content, and then the allocation plan is formulated, with s(i s ) and ev(i ev ) as variables, by calculating the probability a(i) of the combination of the two, adopting the probability optimization method, and taking the uncertainty factors as the consideration for program formulation, it can effectively avoid the error between actual data and predicted data, and can more effectively and reliably optimize the configuration of the photovoltaic hydrogen storage DC system, providing a technical basis and practical methods for the optimal operation and control of the photovoltaic hydrogen storage DC system. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0074] Figure 1 It is a schematic flow chart of the method of the present invention;
[0075] Figure 2 It is a schematic diagram of the power load prediction process in the present invention. DETAILED DESCRIPTION
[0076] In order to more clearly understand the above-mentioned objectives, features and advantages of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0077] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0078] Refer to the following Figure 1 and Figure 2 The technical solutions of some embodiments of the present invention are described.
[0079] Example 1
[0080] The present invention provides an embodiment, which is a probability-optimized method for optimizing the configuration of a photovoltaic hydrogen storage DC system, such as Figure 1 As shown, Figure 1 It is a schematic flow chart of the method of the present invention.
[0081] The key to solving the existing problems of the present invention is that the present invention is based on the following assumptions: First, in reality, photovoltaic power generation and energy storage battery charging and discharging are both direct current, and the power exchange with the external power grid and the power load in the microgrid are generally alternating current. However, since energy conversion devices such as inverters are not considered separately, AC and DC are no longer distinguished, and the energy loss during the conversion between AC and DC is ignored. Second, the replacement cost of the energy storage battery is not considered separately, but included in the operation and maintenance cost; the power exchange cost between the microgrid and the external power grid is assumed to be settled once at the end of each cycle; the discount rate used for the periodized cost is assumed to remain unchanged between cycles. Third, with a probability of 1, power shortage is not allowed to occur, and it is assumed that the external power grid can accept and absorb the power of the microgrid at any time. In addition, the "assessment" of the power distribution company on the microgrid's purchase of electricity from the external power grid and sales of electricity to the external power grid is not considered; the demand response on the demand side is not considered; the loss of battery capacity each time the energy storage battery is discharged is ignored, but the replacement cost required due to capacity attenuation after a certain period of battery operation still needs to be included in the operation and maintenance cost and considered; the power loss on the line when transmitting electricity between the microgrid and the external power grid is ignored.
[0082] The probability-optimized photovoltaic hydrogen storage DC system optimization configuration method of the present invention specifically comprises the following steps:
[0083] S1. Development of initial allocation plan.
[0084] The initial power distribution plan is customized according to a single set of photovoltaic power generation data parameters, and the electricity generated by photovoltaic power generation is distributed to storage energy and hydrogen production energy.
[0085] S2. Real-time power consumption detection.
[0086] Input the possible influencing factor parameters into the statistical data to obtain the predicted data.
[0087] S3. Data processing
[0088] A system for monitoring real-time power consumption data and uploading it to any power station to monitor daily power consumption;
[0089] S4. Power load forecast.
[0090] Determine whether the initial allocation plan needs to be adjusted based on the uploaded real-time electricity consumption data.
[0091] S5. Simulate optimal power distribution.
[0092] When the real-time electricity consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy for electricity supply.
[0093] S6. Check the allocation results.
[0094] The rationality of the allocation result can be judged based on the loss value during the energy conversion process.
[0095] Among them, in step S1, the energy stored in the initial allocation plan is used for municipal power supply, and the hydrogen energy is to use the excess electricity to produce hydrogen energy through the electrolyzer, and then centrally store it in the hydrogen storage tank.
[0096] Among them, in step S2, data processing, inputting the possible influencing factor parameters into the statistical data to obtain the predicted data, includes:
[0097] s(i s ) is the error value of photovoltaic output;
[0098] ev(i ev ) is the hydrogen production load error value;
[0099] a(i) is the probability sequence of the combination of the two, and the calculation formula is:
[0100]
[0101] Where: s(i s ) is the specific value of the photovoltaic output prediction error; ev(i ev ) is the corresponding value of the hydrogen production load prediction error; a(i) is the overall probabilistic sequence formed by combining the photovoltaic output error and the hydrogen production load error after specific calculation processing.
[0102] On this basis, the sequence operation algorithm is introduced to meet the constraints.
[0103]
[0104] In the above formula: Pr is the probability in mathematics; ε s , ε ev are the error coefficients generated by the prediction of photovoltaic output and hydrogen production load of hydrogen production unit; P el (t) is the charging power of the electrolyzer at time t, which is the input power; P e2 (t) is the discharge power of the energy storage unit at time t; P ev (t) is the hydrogen production power of the hydrogen production unit; σ is a smaller constant; α is the confidence level of the above formula; PP g(t) Pg Power purchased for the grid; P s The rated output power of the photovoltaic power generation system is defined as. In step S3, the real-time power consumption is monitored, that is, the power consumption of residents is monitored in real time through the municipal background, and the peak of the power consumption of residents is determined, so as to re-formulate the optimization allocation plan according to the peak power consumption.
[0105] like Figure 2 As shown, Figure 2 The specific steps of power load prediction in step S4 are as follows:
[0106] S41. Under the normal system operation mode, establish constraints, which are as follows:
[0107] |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ
[0108] In the above formula, P e2 (t) and P e1 (t) are the discharge and charge powers of the energy storage system at time t; σ is a small constant; α is the confidence level of the formula, a -1 is the reverse sequence of a; N is N groups of data samples, a is the joint probability sequence of photovoltaic output and charging load, when P e2 (t)>P e1 (t), that is, the photovoltaic output cannot meet the power supply demand, that is, it is necessary to use hydrogen production energy to obtain electricity;
[0109] S42. According to P e2 (t)-P e1 (t), obtain hydrogen consumption data, the hydrogen output of the electrolyzer at time t E el (t) is:
[0110]
[0111] In the above formula, P el (t) is the charging power of the electrolyzer at time t, which is the input power, in kW; η el is the efficiency of hydrogen production by electrolysis; σ is the conversion coefficient between calorific value and electrical energy, is the lower calorific value of hydrogen, in kJ / m 3 ;
[0112] S43. According to the value of the required hydrogen calculated in the above step, calculate whether the hydrogen storage capacity has reached the critical value. The calculation formula is as follows: The hydrogen storage capacity of the hydrogen storage tank at time t E hs (t) is:
[0113] E hs (t) = (1-τ)E hs (t-1)+E el (t)ξ hel -E fc (t) / ξ hfc -E hfev (t) / ξ hhfev
[0114] Where: τ is the loss coefficient; ξ hel E is the input conversion coefficient of hydrogen produced by the electrolyzer; fc (t) is the amount of hydrogen provided by the hydrogen storage system to the fuel cell at time t, m 3 ξ hfc is the output conversion factor E supplied to the fuel cell hfev (t) is the electricity consumption and hydrogenation demand at time t, m 3 ξ hhfev Output conversion factor for supply electricity consumption.
[0115] S44. According to step S2, the probability optimization is subjected to a deterministic equivalent transformation, and the formula obtained is as follows:
[0116] |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ
[0117] In the above formula, P e2 (t) is the discharge power of the energy storage system at time t; P e1 (t) Charging power of the energy storage system at time t.
[0118] σ is a small constant; α is the confidence level of the formula. -1 is the reverse sequence of a, a is the joint probability sequence of photovoltaic output and charging load, and s(i s ) and ev(i ev ) is brought into the probability sequence calculation formula in step S2, and whether to confirm the allocation of the plan is determined according to the probability prediction result; N is N groups of data samples.
[0119] S45. If the forecasted photovoltaic power generation is sufficient to supply electricity, the allocation plan is confirmed. If the forecasted photovoltaic power generation is not sufficient to supply electricity, an alarm is sounded and the staff formulates response measures.
[0120] Among them, step S5 is specifically: according to the optimized allocation plan formulated in step S4, the historical electricity consumption data is used to simulate and detect whether the optimized allocation plan can meet the electricity supply. If it is sufficient to complete the power supply, the plan is confirmed and the energy is reallocated. If it is not sufficient to complete the power supply, the allocation plan is re-formulated. By simulating the optimized allocation plan, it is possible to avoid the situation where unreasonable allocation occurs after the plan is directly used and cannot be modified, thereby effectively avoiding power supply errors caused by unreasonable allocation.
[0121] Among them, in step S5, during the power supply simulation of the allocation scheme, the real-time prediction of solar irradiance, surrounding temperature data and historical residential electricity consumption trends are all important parameters that affect the prediction results. By taking into account the influencing factors that may appear in the allocation scheme, it is possible to avoid the simulated allocation scheme not being consistent with the actual environment, resulting in serious errors in the prediction results, and causing the allocation scheme to be unable to better complete energy allocation. For example, when simulating the allocation scheme, if it is close to night, it is necessary to consider the reduction in photovoltaic output at this time. At this time, it is necessary to increase the proportion of hydrogen-converted electricity accordingly. If it is close to noon, it is necessary to reduce the proportion of hydrogen-converted electricity accordingly. This makes the allocation scheme more reasonable and the prediction results more accurate.
[0122] Among them, in step S2, the hydrogen storage capacity of the hydrogen storage tank is set to a critical value, and the critical value is used to determine whether the hydrogen storage tank is full. If the content in the hydrogen storage tank is too much, it means that the storage energy consumption of the solar cell is too low, and there is abnormal power consumption. By setting the critical value of the storage content in the hydrogen storage tank, according to whether the hydrogen storage capacity in the hydrogen storage tank is too much or too little, it is judged that the power supply consumption of the storage energy increases or decreases, and further judges whether the allocation plan is abnormal.
[0123] In the above-mentioned optimization configuration process of the solar hydrogen storage DC system, the present invention realizes the prediction of the hydrogen production load in the solar hydrogen storage DC system based on the distributed blue rod optimization method. By predicting the results, predicting the actual influencing factors and considering the uncertain factors, the error of the prediction results can be greatly reduced, thereby making the optimized configuration plan more accurate.
[0124] Among them, the hydrogen production load error value is subject to the operating power and ramp constraints of the electrolyzer, as shown in the following formula:
[0125] Right now
[0126]
[0127] In the above formula, is the maximum hydrogen production power of the electrolytic hydrogen production system, measured in kW; I ef (t) is a 0 / 1 variable to avoid simultaneous operation of the electrolyzer and the fuel cell at time t; They are the maximum uphill and downhill speeds of the electrolytic cell, respectively, and the unit of measurement is kW / h; Δt is the time interval, and the unit of measurement is h.
[0128] The hydrogen storage capacity and storage and discharge rate constraints of the hydrogen storage tank during operation are as follows:
[0129]
[0130]
[0131] In the above formula, They are the minimum and maximum hydrogen storage capacity of the hydrogen storage tank, respectively, and the unit of measurement is m 3 ; They are the maximum storage rate and the minimum storage rate of the hydrogen storage tank, respectively, and the unit of measurement is m 3 / h; E hs (t) is the hydrogen storage capacity of the hydrogen storage tank at time t; E hs (t-1) is the hydrogen storage amount at time (t-1).
[0132] In the above technical solution, since it does not include the probability optimization of the optimization variables, the above optimization is taken as model 1. The error coefficients of photovoltaic output and hydrogen production load are two independent random variables, and the two have different probability distributions. The sequence is a set of discrete values arranged in the same step length. The probabilistic sequence is described as follows:
[0133]
[0134] a(i)≥0
[0135] In the above formula: a is a probabilistic sequence; a(i) is the probability distribution when the sequence takes a value at discrete point i. When i is greater than N or less than 0, the value of a(i) is 0;
[0136] Probability density distribution of photovoltaic output and hydrogen production load:
[0137] After considering randomness, the power balance constraint under probabilistic optimization is introduced, and the formula is as follows:
[0138]
[0139] Where: s , ε ev are the error coefficients generated by the prediction of photovoltaic output and hydrogen production load; P e2 (t) and P e1 (t) are the discharge and charging power of the energy storage system at time t; σ is a small constant; α is the confidence level of the formula; P g P is the power purchased from the power grid; gPower purchased for the grid; P s is the rated output power of the photovoltaic power generation system, P ev (t) is the hydrogen production power of the hydrogen production unit.
[0140] The probability optimization is transformed into a deterministic equivalent, and the formula is as follows:
[0141] |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ
[0142] In the above formula, P e2 (t) and P e1 (t) are the discharge and charging power of the energy storage system at time t, σ is a small constant, α is the confidence level of the formula, and a -1 is the reverse sequence of a, a is the joint probabilistic sequence of photovoltaic output and charging load;
[0143] MATLAB is used to model and solve the optimization planning model of the photovoltaic hydrogen storage DC microgrid with the goal of minimizing construction and operation costs. The constraint steps are as follows:
[0144] (1) Iteratively generate decision random variables P during model solving pv , i.e. the rated power of photovoltaic output, calls the function that generates the joint probability distribution;
[0145] (2) According to the probability distribution of load errors of photovoltaic output and hydrogen production, a sampling simulation method is used to generate N sample values, where N is the number of sampling simulations, which is 3000 in the present invention;
[0146] (3) The generated predicted value samples are arranged according to their sizes, and the probability distribution is discretized using the spherical interpolation method. The two groups of data are sampled respectively with Ts as the sampling step length. The sampling step length of the present invention is 0.001;
[0147] (4) Perform convolution operation on the discretized data obtained by sampling to obtain the joint probability distribution;
[0148] (5) Return the power value corresponding to the probability of 1-α in the joint probability distribution. Set the ADMM-based optimization algorithm under the increased probability optimization as model 2;
[0149] In the power balance prediction of the model, σ is set to 1 and α is set to 0.95. The effectiveness of the model based on probability prediction is verified by comparing the traditional model with the model under probability prediction of the present invention through simulation analysis.
[0150] Model 1. Ignoring the prediction errors of photovoltaic output and hydrogen production load, the model adopts the deterministic equation power balance constraint, and in order to cope with uncertainty factors, the charging load is 1.1 times the predicted value.
[0151] Model 2. Considering the prediction errors of photovoltaic output and hydrogen production load, the model adopts the optimization configuration method based on probability prediction proposed in the present invention. In the process of deterministic equivalent transformation of power balance constraints using sequence operation theory, 100 random variable sample values are generated; when discretizing the probability distribution, the sampling period is set to 1.
[0152] Example 2
[0153] The present invention further provides an embodiment, which is a probability-optimized photovoltaic hydrogen storage DC system optimization configuration device, comprising:
[0154] The formulation module is used to formulate an initial power distribution plan based on a single set of photovoltaic power generation data parameters, and distribute the electricity generated by photovoltaic power generation to storage energy and hydrogen production energy.
[0155] The data processing module is used to input the parameters of possible influencing factors into the statistical data, perform data processing, and obtain the predicted data;
[0156] Monitoring module, used to monitor the real-time power consumption data and upload it to any power station's system for monitoring daily power consumption;
[0157] The prediction module is used for power load prediction, and determines whether the initial allocation plan needs to be adjusted based on the uploaded real-time power consumption data;
[0158] The optimization allocation module is used to simulate the optimization allocation of electricity. When the real-time power consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy to supply electricity.
[0159] The judgment module is used to judge whether the allocation result is reasonable according to the loss value in the energy conversion process.
[0160] The probability-optimized photovoltaic hydrogen storage DC system optimization configuration device is used to implement the steps of the probability-optimized photovoltaic hydrogen storage DC system optimization configuration method as described in Example 1.
[0161] Example 3
[0162] Based on the same inventive concept, an embodiment of the present invention further provides a computer device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor. When the processor executes the computer program, the steps of the probability-optimized photovoltaic hydrogen storage DC system optimization configuration method described in Embodiment 1 are implemented.
[0163] Example 4
[0164] Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the probability-optimized method for optimizing the configuration of a photovoltaic hydrogen storage DC system described in Example 1 are implemented.
[0165] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0166] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0167] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0169] 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 above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. The probability-optimized optimization configuration method of photovoltaic hydrogen storage DC system is characterized by: The following steps are involved: Formulate an initial power distribution plan based on a single set of photovoltaic power generation data parameters to distribute the electricity generated by photovoltaic power generation to storage energy and hydrogen production energy; Input the parameters of possible influencing factors into statistical data, perform data processing, and obtain forecast data; Monitor real-time power consumption data and upload it to the power station's system for monitoring daily power consumption; Power load forecasting: judging whether the initial allocation plan needs to be adjusted based on uploaded real-time power consumption data; Simulate the optimal distribution of electricity. When the real-time electricity consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy to supply electricity. Based on the loss value during the energy conversion process, determine whether the allocation result is reasonable.
2. The probability-optimized photovoltaic hydrogen storage DC system optimization configuration method according to claim 1 is characterized by: The method of inputting the possible influencing factor parameters into the statistical data, performing data processing, and obtaining the predicted data includes: s(i s ) is the error value of photovoltaic output; ev(i ev ) is the hydrogen production load error value; a(i) is the probability sequence of the combination of the two, and the calculation formula is: Where: s(i s ) is the specific value of the photovoltaic output prediction error; ev(i ev ) is the corresponding value of the hydrogen production load prediction error; a(i) is the overall probabilistic sequence formed by combining the photovoltaic output error and the hydrogen production load error after specific calculation processing; On this basis, the sequence operation algorithm is introduced, while satisfying the constraints: In the above formula: Pr is the meaning of probability in mathematics, which can be left unexplained; ε s , ε ev are the error coefficients generated by the prediction of photovoltaic output and hydrogen production load of hydrogen production unit; P el (t) is the charging power of the energy storage unit at time t; P e2 (t) is the discharge power of the energy storage unit at time t; P ev (t) is the hydrogen production power of the hydrogen production unit; σ is a smaller constant; α is the confidence level of the above formula; P g(t) P g Power purchased for the grid; P s(t) The rated output power of the photovoltaic power generation system is defined as P s .
3. The probability-optimized photovoltaic hydrogen storage DC system optimization configuration method according to claim 1 is characterized by: The real-time electricity consumption data is monitored and uploaded to the power station's system for monitoring daily electricity consumption. The real-time electricity consumption is monitored by the municipal background in real time to monitor the residents' electricity consumption, determine the peak of residents' electricity consumption, and re-formulate the optimized distribution plan based on the peak electricity consumption.
4. The probability-optimized photovoltaic hydrogen storage DC system optimization configuration method according to claim 1 is characterized by: The power load forecast determines whether the initial allocation plan needs to be adjusted based on the uploaded real-time power consumption data, including: S41. Under the normal system operation mode, the constraints are established as follows: |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ In the above formula, P e2 (t) and P e1 (t) are the discharge and charge powers of the energy storage system at time t; σ is a small constant; α is the confidence level of the formula, a -1 is the reverse sequence of a; N is N groups of data samples, a is the joint probability sequence of photovoltaic output and charging load, when P e2 (t)>P e1 (t), using hydrogen production energy to obtain electrical energy; S42. According to P e2 (t)-P e1 (t), obtain hydrogen consumption data, the hydrogen output of the electrolyzer at time t E el (t) is: In the above formula, P el (t) is the charging power of the electrolyzer at time t, in kW; η el is the efficiency of hydrogen production by electrolysis; σ is the conversion coefficient between calorific value and electrical energy, K H2 is the lower calorific value of hydrogen, in kJ / m 3 ; S43. Calculate whether the hydrogen storage capacity has reached the critical value based on the value of the required hydrogen, and the hydrogen storage capacity E of the hydrogen storage tank at time t hs (t) is: E hs (t)=(1-τ)E hs (t-1)+E el (t)ξ hel -E fc (t) / ξ hfc -E hfev (t) / ξ hhfev Where: τ is the loss coefficient; ξ hel E is the input conversion coefficient of hydrogen produced by the electrolyzer; fc (t) is the amount of hydrogen provided by the hydrogen storage system to the fuel cell at time t, m 3 ξ hfc is the output conversion factor E supplied to the fuel cell hfev (t) is the electricity consumption and hydrogenation demand at time t, m 3 ξ hhfev E is the output conversion factor for supplying electricity consumption; hs (t-1) is the hydrogen storage capacity at time (t-1); S44. Perform a deterministic equivalent transformation on the probability optimization and obtain the following formula: |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ In the above formula, P e2 (t) is the discharge power of the energy storage system at time t; P e1 (t) Charging power of the energy storage system at time t; σ is a small constant; α is the confidence level of the formula. -1 is the reverse sequence of a, a is the joint probability sequence of photovoltaic output and charging load, and s(i s ) and ev(i ev ) is brought into the probability sequence calculation formula in step S2, and whether to confirm the allocation of the scheme is determined according to the probability prediction result; N is N groups of data samples; S45. If it is predicted that the continuous power generation of photovoltaic power generation is sufficient to supply electricity, the allocation plan is confirmed. If it is predicted that the continuous power generation of photovoltaic power generation is not sufficient to supply electricity, an alarm is issued and response measures are formulated.
5. The probability-optimized photovoltaic hydrogen storage DC system optimization configuration method according to claim 1 is characterized by: The simulated power optimization allocation, when the real-time power consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy to supply electricity, wherein: according to the optimized allocation plan, the historical power consumption data is simulated to detect whether the optimized allocation plan can meet the power supply. If it is sufficient to complete the power supply, the energy is reallocated; if it is not sufficient to complete the power supply, the allocation plan is re-formulated; In the process of simulating the power supply of the distribution plan, real-time prediction of solar irradiance, surrounding temperature data and historical residential electricity consumption trends are all important parameters that affect the prediction results.
6. The probability-optimized photovoltaic hydrogen storage DC system optimization configuration method according to claim 4 is characterized by: A critical value is set for the hydrogen storage capacity of the hydrogen storage tank, and the critical value is used to determine whether the hydrogen storage tank is full. If the content in the hydrogen storage tank is too much, it means that the storage energy consumption of the solar cell is too low and there is abnormal power consumption. By setting a critical value for the storage content in the hydrogen storage tank, it is determined whether the power supply consumption of the storage energy increases or decreases according to the hydrogen storage capacity in the hydrogen storage tank, and further determines whether there is any abnormality in the allocation plan.
7. The probability-optimized photovoltaic hydrogen storage DC system optimization configuration method according to claim 2 is characterized by: The hydrogen production load error value is subject to the operating power and ramp constraints of the electrolyzer, as shown in the following formula: Right now In the above formula, is the maximum hydrogen production power of the electrolytic hydrogen production system, measured in kW; I ef (t) is a 0 / 1 variable to avoid simultaneous operation of the electrolyzer and the fuel cell at time t; are the maximum uphill and downhill speeds of the electrolytic cell, respectively, in kW / h; Δt is the time interval, in h; The hydrogen storage capacity and storage and discharge rate constraints of the hydrogen storage tank during operation are as follows: In the above formula, They are the minimum and maximum hydrogen storage capacity of the hydrogen storage tank, respectively, and the unit of measurement is m 3 ; They are the maximum storage rate and the minimum storage rate of the hydrogen storage tank, respectively, and the unit of measurement is m 3 / h; E hs (t) is the hydrogen storage capacity of the hydrogen storage tank at time t; E hs (t-1) is the hydrogen storage capacity at time (t-1); The above optimization is used as model 1. The error coefficients of photovoltaic output and hydrogen production load are two independent random variables, which have different probability distributions. The sequence is a set of discrete values arranged in the same step length. The probabilistic sequence is described as follows: a(i)≥0 In the above formula: a is a probabilistic sequence; a(i) is the probability distribution when the sequence takes a value at discrete point i. When i is greater than N or less than 0, the value of a(i) is 0; Probability density distribution of photovoltaic output and hydrogen production load: After considering randomness, the power balance constraint under probabilistic optimization is introduced, and the formula is as follows: Where: s , ε ev are the error coefficients generated by the prediction of photovoltaic output and hydrogen production load; P e2 (t) and P e1 (t) are the discharge and charging power of the energy storage system at time t; σ is a small constant; α is the confidence level of the formula; P g P is the power purchased from the power grid; g Power purchased for the grid; P s(t) The rated output power of the photovoltaic power generation system is defined as P s ,P ev (t) is the hydrogen production power of the hydrogen production unit; Performing a deterministic equivalent transformation on the probability optimization, we get the following formula: |P g (t)+P e2 (t)-P e1 (t)+a-1((1-α)·N)≤σ In the above formula, P e2 (t) and P e1 (t) are the discharge and charging power of the energy storage system at time t, σ is a small constant, α is the confidence level of the formula, and a -1 is the inverse sequence of a, and a is the joint probabilistic sequence of photovoltaic output and charging load.
8. A probability-optimized photovoltaic hydrogen storage DC system optimization configuration device, characterized by: include: A formulation module is used to formulate an initial power distribution plan based on a single set of photovoltaic power generation data parameters to distribute the electricity generated by photovoltaic power generation to storage energy and hydrogen production energy; The data processing module is used to input the parameters of possible influencing factors into the statistical data, perform data processing, and obtain the predicted data; Monitoring module, used to monitor the real-time power consumption data and upload it to any power station's system for monitoring daily power consumption; The prediction module is used for power load prediction, and determines whether the initial allocation plan needs to be adjusted based on the uploaded real-time power consumption data; The optimization allocation module is used to simulate the optimization allocation of electricity. When the real-time power consumption is greater than the total amount of stored energy initially allocated, the stored hydrogen production energy is converted into electrical energy to supply electricity. A judgment module is used to judge whether the allocation result is reasonable according to the loss value in the energy conversion process; The probability-optimized photovoltaic hydrogen storage DC system optimization configuration device is used to implement the steps of the probability-optimized photovoltaic hydrogen storage DC system optimization configuration method described in any one of claims 1 to 7.
9. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the probability-optimized method for optimizing configuration of a photovoltaic hydrogen storage DC system as described in any one of claims 1 to 7 are implemented.
10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, which, when executed by a processor, implements the steps of the probability-optimized method for optimizing configuration of a photovoltaic hydrogen storage DC system as described in any one of claims 1 to 7.
