Comprehensive optimization method and device for renewable energy system, equipment and medium

By building a comprehensive renewable energy system in large-scale intelligent communities and industrial parks, combining optimization methods and models, the problem of insufficient energy system optimization capabilities in the existing technology is solved, and efficient energy management and system stability are achieved.

CN119026747APending Publication Date: 2024-11-26SHANGHAI INVESTIGATION DESIGN & RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411137881.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The existing technology has limited optimization capabilities for integrated energy systems in large-scale intelligent communities and industrial parks, making it difficult to quickly adapt to dynamically changing energy demand and supply, affecting the stability and reliability of the system.

Method used

Provide a comprehensive optimization method for renewable energy systems, based on installation costs and operation and maintenance costs by building preset areas of solar power generation systems, wind power generation systems, battery energy storage systems, heating systems, rainwater treatment systems and seawater desalination systems. The minimization objective function of the system is determined by combining power balance, water balance and charge and discharge constraints, and the Bayesian regularization neural network model is used for demand prediction and optimization scheduling.

Benefits of technology

It improves energy utilization efficiency and system integrity, ensures the balance of supply and demand and reliability of the system, realizes dynamic adjustment and management of renewable energy systems, and improves economic and sustainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026747A_ABST
    Figure CN119026747A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of renewable energy management and optimization, in particular to a comprehensive optimization method and device for a renewable energy system, equipment and a medium. The method comprises the following steps: constructing a renewable energy system of a preset area, and constructing a target function based on the minimization of the installation cost and the operation maintenance cost of the renewable energy system; constructing constraint conditions based on the load demand, the water purification demand and the heat energy demand of the preset area and the water supply amount and the power supply amount of the renewable energy system, wherein the constraint conditions comprise an electric power balance constraint, a water balance constraint and a charging and discharging constraint; and solving the target function under the constraint of the constraint condition, and determining the capacity of the renewable energy system corresponding to the minimum target function. According to the embodiment, the solar power generation system, the wind power generation system, the battery energy storage system, the heat supply system, the rainwater treatment system and the seawater desalination system are effectively integrated and optimized based on the actual energy demand of the preset area, and the energy utilization efficiency and the integrity of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of renewable energy management and optimization technology, and in particular to a comprehensive optimization method, device, equipment and medium for a renewable energy system. Background Art

[0002] In the field of renewable energy optimization management, existing technologies mainly focus on optimizing a single type of energy system. The following are some typical existing technologies:

[0003] 1. Solar photovoltaic system optimization:

[0004] In the prior art, the optimization of solar photovoltaic systems is mainly achieved through the maximum power point tracking (MPPT) technology. MPPT technology adjusts the working voltage of the photovoltaic array to maximize its output power. Common methods include the perturbation observation method, the incremental conductance method and the constant voltage method.

[0005] 2. Wind energy system optimization:

[0006] Wind energy system optimization technology mainly includes layout optimization of wind turbines and wind energy prediction models. Layout optimization usually uses intelligent optimization algorithms such as genetic algorithms and particle swarm algorithms to maximize wind power generation under given wind field conditions. Wind energy prediction models use historical wind speed data and weather forecast data and time series analysis methods to make short-term and medium-term wind energy forecasts.

[0007] 3. Battery energy storage system optimization:

[0008] The optimization technology of battery energy storage system mainly focuses on the charge and discharge management strategy. Existing optimization methods include state-based dynamic programming method, model predictive control method and heuristic algorithm. These methods extend battery life and improve the overall efficiency of the system by optimizing the battery charge and discharge process.

[0009] 4. Hydrogen energy storage system optimization:

[0010] The optimization technology of hydrogen energy storage system includes optimization of water electrolysis hydrogen production and hydrogen energy storage management. The optimization of water electrolysis hydrogen production mainly achieves efficient hydrogen production by optimizing the operating parameters of the electrolyzer. Hydrogen energy storage management ensures the safety and efficiency of system operation by optimizing the compression, storage and release process of hydrogen.

[0011] As for the way to achieve integrated energy system optimization, the existing technology usually adopts integrated energy system optimization tools such as HOMER (Hybrid Optimization of Multiple Energy Resources). HOMER can simulate and optimize the combination of multiple energy systems, including solar energy, wind energy, battery energy storage and diesel power generation. The principle is to simulate the operation of different energy systems, evaluate the economy and technical feasibility of the system, and provide the optimal system configuration plan. However, this tool is mainly suitable for off-grid systems, and has limited optimization capabilities for large-scale smart communities and industrial parks. At the same time, when dealing with dynamically changing energy demand and supply in actual operation, the response capability is insufficient, and there is a lack of support for efficient processing of real-time data and optimization algorithms. It is difficult to quickly adapt to changes in actual operation, affecting the stability and reliability of the system. Summary of the invention

[0012] In view of this, the present invention provides a comprehensive optimization method, device, equipment and medium for a renewable energy system to solve the problem of limited optimization capability of the comprehensive energy system optimization system in the prior art for large-scale smart communities and industrial parks.

[0013] In a first aspect, the present invention provides a comprehensive optimization method for a renewable energy system, the method comprising:

[0014] Construct a renewable energy system in a preset area. The renewable energy system includes a solar power generation system, a wind power generation system, a battery energy storage system, a heating system, a rainwater treatment system and a seawater desalination system. The heating system is a hydrogen heating system or a solar heating system. The solar power generation system and the wind energy discovery system are used to meet the load demand of the preset area and provide electricity for the hydrogen heating system, the rainwater treatment system and the seawater desalination system. The battery energy storage system is used to store excess electricity or discharge it when electricity is insufficient. The heating system is used to provide heat energy for the preset area. The rainwater treatment system and the seawater desalination system are used to provide clean water for the preset area and the hydrogen heating system.

[0015] Constructing the objective function based on minimizing the installation cost and operation and maintenance cost of the renewable energy system;

[0016] Construct constraints based on the load demand, clean water demand and thermal energy demand of the preset area and the water supply and power supply of the renewable energy system. The constraints include power balance constraints, water balance constraints and charging and discharging constraints.

[0017] The objective function is solved under the constraints and the capacity of the renewable energy system corresponding to the minimum objective function is determined.

[0018] The comprehensive optimization method for the renewable energy system provided in this embodiment is based on the actual energy demand of the preset area, effectively integrates the solar power generation system, wind power generation system, battery energy storage system, heating system, rainwater treatment system and seawater desalination system for optimization, thereby improving the energy utilization efficiency and the integrity of the system.

[0019] In an optional embodiment, the solar power generation system includes an onshore solar power generation system and an offshore solar power generation system, the wind power generation system includes an onshore wind power generation system and an offshore wind power generation system, the hydrogen heating system generates hydrogen and oxygen by electrolyzing water in an electrolyzer, the hydrogen is used for heating, and the oxygen is sold to generate income, the hydrogen heating system includes a hydrogen storage tank, which is used to store hydrogen in excess of the thermal energy demand, the solar heating system includes a heat storage tank, which is used to store heat in excess of the thermal energy demand, the rainwater treatment system includes a water storage tank, which is used to store clean water in excess of the clean water demand, and the seawater desalination system is used to desalinate seawater to provide clean water when the clean water provided by the rainwater treatment system cannot meet the clean water demand.

[0020] In this embodiment, by further defining the working process of each system in the renewable energy system, a data basis is provided for the comprehensive optimization of the renewable energy system.

[0021] In an optional implementation, the constraint conditions also include: capacity constraints of the solar power generation system and capacity constraints of the wind power generation system.

[0022] In this embodiment, the capacity constraints of the solar power generation system and the wind power generation system are further limited in the power balance constraints, water balance constraints, and charge and discharge constraints, thereby ensuring the reality of the optimization results.

[0023] In an optional embodiment, the load demand, clean water demand and thermal energy demand of a preset area are obtained, including: obtaining historical meteorological data and historical seasonal data, the historical seasonal data including historical load demand, clean water demand and thermal energy demand; using the historical meteorological data and historical seasonal data to train a Bayesian regularized neural network model to obtain a demand forecasting model; using actual demand data to evaluate the demand forecasting model to determine whether the demand forecasting model meets preset requirements; when the preset requirements are met, using the demand forecasting model to predict the load demand, clean water demand and thermal energy demand of the preset area.

[0024] In this embodiment, a demand forecasting model is obtained by training a Bayesian regularized neural network model, and the demand forecasting model is used to perform demand forecasting, thereby providing a basis for determining demand.

[0025] In an optional embodiment, the method also includes: calculating a first cost of adopting a fossil fuel system in a preset area, the first cost including a present value cost and a levelized energy cost; calculating a second cost of adopting a renewable energy system in the preset area, the second cost including a present value cost and a levelized energy cost; and determining a system for configuring the preset area based on the first cost and the second cost.

[0026] In this embodiment, by calculating the present value cost and the levelized cost of energy of the fossil fuel system and the renewable energy system, the two systems are economically evaluated using the two costs, thereby ensuring that the final system configuration is economical and sustainable.

[0027] In an optional implementation, the method further includes: optimizing the scheduling of the renewable energy system.

[0028] In an optional embodiment, the renewable energy system is optimized and scheduled, including: obtaining the power generation of the renewable energy system at the current moment; judging whether the power generation meets the power demand, the power demand includes the sum of load demand, system loss and rotating reserve; when the power demand is not met, controlling the battery energy storage system to discharge; when the power demand is met, charging the battery energy storage system with excess power; when the battery energy storage system is fully charged, controlling the hydrogen heating system to generate hydrogen based on the excess power; when the hydrogen generated is greater than the hydrogen demand, storing the excess hydrogen; when the water purification demand is not met, starting the seawater desalination system to meet the water purification demand.

[0029] In this embodiment, by optimizing the scheduling of the renewable energy system, it is possible to optimize the use of renewable energy power generation while ensuring load demand, and dynamically adjust the use of the battery energy storage system and resources, thereby achieving dynamic adjustment and management of the renewable energy system.

[0030] In a second aspect, the present invention provides a comprehensive optimization device for a renewable energy system, the device comprising:

[0031] A system building module, used to build a renewable energy system in a preset area. The renewable energy system includes a solar power generation system, a wind power generation system, a battery energy storage system, a heating system, a rainwater treatment system and a seawater desalination system. The heating system is a hydrogen heating system or a solar heating system. The solar power generation system and the wind energy discovery system are used to meet the load demand of the preset area and provide electrical energy for the hydrogen heating system, the rainwater treatment system and the seawater desalination system. The battery energy storage system is used to store excess electrical energy or discharge it when the electrical energy is insufficient. The heating system is used to provide thermal energy for the preset area. The rainwater treatment system and the seawater desalination system are used to provide clean water for the preset area and the hydrogen heating system.

[0032] A function building module for building an objective function based on minimization of the installation cost and operation and maintenance cost of the renewable energy system;

[0033] A constraint building module, used to build constraint conditions based on load demand, clean water demand and thermal energy demand of a preset area and water supply and power supply of a renewable energy system, the constraint conditions including power balance constraint, water balance constraint and charge and discharge constraint;

[0034] The solution module is used to solve the objective function under the constraints and determine the capacity of the renewable energy system corresponding to the minimum objective function.

[0035] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the comprehensive optimization method for a renewable energy system according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0036] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the comprehensive optimization method for a renewable energy system of the above-mentioned first aspect or any corresponding embodiment thereof.

[0037] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the comprehensive optimization method for a renewable energy system according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 is a flow chart of a comprehensive optimization method for a renewable energy system according to an embodiment of the present invention;

[0040] Figure 2 is a flow chart of another comprehensive optimization method for a renewable energy system according to an embodiment of the present invention;

[0041] Figure 3 is a structural block diagram of a comprehensive optimization device for a renewable energy system according to an embodiment of the present invention;

[0042] Figure 4It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] As mentioned in the background technology, the existing technology has certain deficiencies in the field of renewable energy optimization management. Most technologies and tools only optimize a single type of renewable energy system in isolation, such as optimizing a photovoltaic system or a wind power system alone. This method cannot fully consider the synergy between various energy systems, resulting in low overall energy utilization efficiency. At the same time, the existing technology generally lacks comprehensive optimization methods for different types of renewable energy systems (such as solar energy, wind energy, battery energy storage, hydrogen energy storage, etc.), and cannot integrate and optimize multiple types of energy systems on a unified platform, resulting in the overall performance and economic benefits of the system failing to achieve the best.

[0044] Although some existing optimization software (such as HOMER) can simulate and optimize a variety of energy systems, their models are highly complex and require a high level of technical skills from users. They are mainly suitable for off-grid systems and have limited optimization capabilities for large-scale smart communities and industrial parks. At the same time, when dealing with dynamically changing energy demand and supply in actual operation, they are not responsive enough and lack support for efficient processing of real-time data and optimization algorithms. They are difficult to quickly adapt to changes in actual operation, affecting the stability and reliability of the system.

[0045] In view of this, the present embodiment provides a comprehensive optimization method for a renewable energy system, which effectively integrates the solar power generation system, wind power generation system, battery energy storage system, heating system, rainwater treatment system and seawater desalination system for optimization based on the actual energy demand of a preset area, thereby improving energy utilization efficiency and the integrity of the system.

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0047] According to an embodiment of the present invention, an embodiment of a comprehensive optimization method for a renewable energy system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0048] In this embodiment, a comprehensive optimization method for a renewable energy system is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 1 is a flow chart of a comprehensive optimization method for a renewable energy system according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0049] Step S101, constructing a renewable energy system in a preset area, the renewable energy system including a solar power generation system, a wind power generation system, a battery energy storage system, a heating system, a rainwater treatment system and a seawater desalination system, the heating system is a hydrogen heating system or a solar power heating system, the solar power generation system and the wind energy discovery system are used to meet the load demand of the preset area and provide electrical energy for the hydrogen heating system, the rainwater treatment system and the seawater desalination system, the battery energy storage system is used to store excess electrical energy or discharge it when the electrical energy is insufficient, the heating system is used to provide thermal energy for the preset area, the rainwater treatment system and the seawater desalination system are used to provide clean water for the preset area and the hydrogen heating system.

[0050] Among them, the solar power generation system includes an onshore solar power generation system and an offshore solar power generation system, the wind power generation system includes an onshore wind power generation system and an offshore wind power generation system, the hydrogen heating system generates hydrogen and oxygen by electrolyzing water in an electrolyzer, the hydrogen is used for heating, and the oxygen is sold to generate income, the hydrogen heating system includes a hydrogen storage tank, which is used to store hydrogen that exceeds the thermal energy demand, the solar heating system includes a heat storage tank, which is used to store heat that exceeds the thermal energy demand, the rainwater treatment system includes a water storage tank, which is used to store clean water that exceeds the clean water demand, and the seawater desalination system is used to desalinate seawater to provide clean water when the clean water provided by the rainwater treatment system cannot meet the clean water demand. The preset area can be determined according to the actual situation, which can be a smart community, an industrial park, or an area of ​​a certain range.

[0051] For the system constructed as above, when calculating the power generation, it is necessary to obtain relevant meteorological data in the preset area, and the meteorological data includes data such as wind speed, solar radiation intensity and temperature. In addition, in order to achieve comprehensive optimization of the system, it is also necessary to obtain data such as load demand, clean water demand and thermal energy demand. When determining the thermal energy demand, it is also necessary to further confirm the demand data of hydrogen that provides thermal energy. In this embodiment, all data will be stored in an Excel file as required to facilitate subsequent processing and analysis.

[0052] Specifically, the load demand data includes the first column: days, marked as Day, indicating the days of a year; the second column: hours, marked as Hour, indicating the hours of a day; the third column: power load, in kW, marked as Average ofIlha, indicating the average power load of the time period.

[0053] The radiation intensity data includes the first column: time, marked as time, in the format of yyyyMMdd:hhmm, indicating the time when the data was recorded; the second column: radiation intensity, in units of W / m 2 , marked as G(i), indicating the solar radiation intensity in this time period; the third column: the solar altitude angle, in degrees, marked as H_sun, indicating the position of the sun in the sky; the fourth column: the temperature, in °C, marked as T2m, indicating the ambient temperature in this time period; the fifth column: the wind speed, in m / s, marked as WS10m, indicating the wind speed at a height of 10 meters; the sixth column: the solar radiation intensity, in W / m 2 , marked as Int, indicating another measurement of solar radiation intensity; the 9th column: hour, marked as HORA, indicating the hour of the day; the 10th column: day, marked as DIA, indicating the day of the year.

[0054] The wind speed data includes the first column: the weather station number, marked as ESTACAO; the second column: the year, marked as ANO, indicating the year of data recording; the third column: the month, marked as MS, indicating the month of data recording; the fourth column: the date, marked as DI, indicating the date of data recording; the fifth column: the average wind direction, in degrees, marked as DD_MED; the sixth column: the maximum wind direction, in degrees, marked as DD_FFX; the seventh column: the average wind speed, in m / s, marked as VENTO_MED; the eighth column: the maximum wind speed, in m / s, marked as VENTO_MAX.

[0055] The hydrogen demand data includes the first column: hour, marked as Hour; the second column: annual hour number, marked as Hour of year; the third column: hydrogen demand, in kg, marked as Hydrogen (kg). The rainfall data includes the first column: hour, marked as Hour; the second column: annual hour number, marked as Hour of year; the third column: rainfall, in mm, marked as Rainfall (mm). The water demand data includes the first column: hour, marked as Hour; the second column: annual hour number, marked as Hour of year; the third column: water demand, in m 3 , no mark.

[0056] It should be noted that these data need to be stored in the corresponding Excel file according to the format requirements, so as to provide the necessary basic information for subsequent optimization calculations.

[0057] The data obtained above can be preprocessed through steps such as data cleaning, format conversion and variable definition. Then the data is read. When reading the data, the first 300 data are stored in the corresponding variables, and the data are adjusted as needed. The read files include load data file (Load2019.xlsx), radiation intensity data file (IrradiationNew.xlsx), wind speed data file (Wind.xlsx), hydrogen demand data file (Hydrogen2019.xlsx), rainfall data file (Rainfall.xlsx) and water demand data file (Waterdemand.xlsx).

[0058] Specifically, when reading load data, the data in Load2019.xlsx is read into the variable Load and multiplied by the adjustment coefficient (which can be determined according to actual conditions, 0.55 is used in this embodiment) to reflect the actual load demand. When reading radiation intensity data, the data is stored in variables Temperature and Irradiation to represent temperature and radiation intensity, respectively. When reading wind speed data, the data in Wind.xlsx is stored in the variable WindSpeed. When reading hydrogen demand data, the data in Hydrogen2019.xlsx is stored in the variable Hydrogen0 and multiplied by the adjustment coefficient 0.55. When reading rainfall data, the data in Rainfall.xlsx is stored in the variable Rain. When reading water demand data, the data in Waterdemand.xlsx is stored in the variable Water_demand.

[0059] Specifically, the above processed data can be used to analyze the operation of the renewable energy system. The renewable energy system uses solar energy and wind energy to provide electricity. The theoretical power generation of the two can be calculated as follows. The calculation formula for the power generation of the onshore solar power generation system is as follows:

[0060]

[0061] Where GHI t represents the global horizontal radiation intensity, Indicates the ambient temperature, L PV Represents the loss coefficient of the onshore solar power generation system.

[0062] The power generation of offshore solar power generation systems is improved due to the cooling effect of water bodies. The calculation formula is as follows:

[0063]

[0064] In the formula, 1.13 is the average efficiency improvement coefficient, which reflects the efficiency improvement of offshore floating photovoltaic systems compared with traditional onshore photovoltaic systems.

[0065] The calculation formula for the power generation of an onshore wind power generation system is as follows:

[0066]

[0067] In the formula, CP t represents the power coefficient of the wind turbine, Ar represents the area of ​​the rotor, ρ represents the air density, Indicates the average wind speed over land.

[0068] The power generation of offshore wind power generation system is calculated as follows:

[0069]

[0070] In the formula, Rp off and Rp represent the rated power capacity ratio of offshore and onshore wind energy, respectively, reflecting the higher efficiency of offshore wind power generation.

[0071] In this renewable energy system, the battery energy storage system is used to manage the fluctuations between power supply and power demand. When the total amount of electricity generated by solar and wind power exceeds the total demand (including load demand (when the preset area is a smart community, the load demand is the household load ), distribution loss Loss t , the hydrogen heating system uses an electrolyzer to electrolyze water to produce hydrogen load Water Treatment Power Requirements for Stormwater Treatment Systems and the desalination power demand of the seawater desalination system The excess power is stored in the battery energy storage system. It is expressed as:

[0072]

[0073] In the calculation When considering wind power as a potential spinning reserve source, a portion of its production is allocated to spinning reserve, denoted as SPIN t . and Respectively represent the power generation capacity of the onshore solar power generation system and the offshore solar power generation system installed in the preset area, in kilowatts (kW). Similarly, and They respectively represent the power generation capacity of the onshore wind power generation system and the offshore wind power generation system installed in the preset area, in kilowatts (kW).

[0074] Therefore, based on the remaining storable power, the power stored by the battery energy storage system at time t is calculated by the following formula:

[0075]

[0076] In the formula, δ represents the self-discharge rate of the battery energy storage system, η C Indicates the efficiency of the battery energy storage system during the charging process.

[0077] Based on the amount of electricity stored at time t, the state of charge (SOC) of the battery energy storage system is calculated using the following formula:

[0078]

[0079] In the formula, BES cap is the total capacity of the battery energy storage system in kilowatts (kW). The amount of electricity stored is limited by the capacity of the battery, which defines the range of SOC. min To SOC max , the specific formula is as follows:

[0080] SOC min ≤SOC t ≤SOC max , t∈{1,8760}

[0081] If the amount of energy stored in the battery energy storage system is within the operating limits, the amount of energy curtailment is zero and the amount of charge in the battery energy storage system is and discharge capacity They can be calculated by the following formulas:

[0082]

[0083] Where η D Indicates the efficiency of the battery energy storage system during discharge. When the battery energy storage system reaches its maximum state of charge, any renewable energy generation beyond this point will be curtailed, and the curtailed electricity is calculated using the following formula:

[0084]

[0085] When a hydrogen heating system is used, an electrolyzer is used to electrolyze water to produce hydrogen, and hydrogen is used as a heat carrier. When hydrogen heating is used, the calorific value of one kilogram of hydrogen is estimated to be 39.4 kilowatt-hours (kWh). At the same time, the production of one kilogram of hydrogen will generate eight kilograms of oxygen as a by-product, and requires 9 kilograms of water (HO) and 50 kWh of energy input from the power grid. The hourly hydrogen demand (in kilograms (kg)) can be expressed by the following formula:

[0086]

[0087] In the formula, represents the heating demand in kilowatt-hour heat (kWhth). The amount of hydrogen generated by the electrolyzer per hour in kilograms (kg) is the decision variable, and its mathematical expression is:

[0088]

[0089] The water consumption of the electrolytic cell per hour (in cubic meters (m 3 )) is calculated using the following formula:

[0090]

[0091] Here, the factor 0.001 corresponds to the conversion from kilograms to cubic meters of water.

[0092] The capacity of the electrolyzer (in kilowatts (kW)) is calculated using the following formula:

[0093]

[0094] The amount of oxygen generated during the production of hydrogen is calculated using the following formula:

[0095]

[0096] In the process of hydrogen heating system producing hydrogen through electrolyzer, if the amount of hydrogen produced exceeds the heat energy demand, the excess hydrogen will be stored in the hydrogen storage tank. It is expressed by the following formula:

[0097]

[0098] Based on the amount of hydrogen that can be stored at each moment, the amount of hydrogen stored in the hydrogen storage tank at each moment can be obtained, which is expressed by the following formula:

[0099]

[0100] The storage capacity of hydrogen is limited by the tank capacity, and its storage range is between the minimum capacity (SOH min ) and maximum capacity (SOH max ), the specific formula is as follows:

[0101]

[0102] If the amount of hydrogen stored in the hydrogen storage tank is within the operating limits, the amount of hydrogen to be stored can be calculated and the amount of hydrogen released The specific formula is as follows:

[0103]

[0104] When a solar heating system is used for heating, this embodiment uses a standard solar collector to achieve heat output. The heat output (in joules) of the collector is calculated using the following formula:

[0105]

[0106] Where A is the surface area of ​​the collector in square meters; F is the heat removal coefficient of the collector, which takes into account heat losses due to convection and radiation (usually in the range of 0.75 to 0.95); GHI is t is the global horizontal irradiance in the area and μ represents the efficiency of the collector, which usually ranges from 0.5 to 0.8.

[0107] The heat output of a standard solar thermal collector is converted to the ratio of kWhth / kWth using the following formula:

[0108]

[0109] Where RS represents the installed capacity of the standard solar thermal collector, in kilowatt-thermal per square meter. According to relevant research, it is usually 0.7 kilowatt-thermal per square meter.

[0110] When the preset area is a smart community, if a solar heating system is used for heating, it is usually distributed in households, and a solar heating system is set up in each household for heating. Among them, similar to the hydrogen heating system, when the heat provided by the solar heating system exceeds the thermal energy demand, the excess heat is stored in a heat storage tank. Specifically, in practical applications, it is necessary to first evaluate the overall capacity of available heat storage, and then determine the required number of heat storage tanks based on the standard capacity of a typical heat storage tank. Optionally, the heat storage tank can store heat by storing hot water.

[0111] Therefore, the solar heat that can be stored at each moment Indicates the heat generated Exceeds heat demand The amount of solar heat that can be stored at each moment is calculated using the following formula:

[0112]

[0113] Where, NSolarTh cap The capacity of a standard solar thermal collector installed in a given area, expressed in kilowatt-thermal.

[0114] Based on the amount of solar heat that can be stored at each moment, the amount of heat stored in the heat storage tank at each moment can be calculated using the following formula:

[0115]

[0116] The amount of hot water that can be stored in a thermal storage tank is limited by the size of the tank, which ranges from a minimum (SOW min ) and maximum (SOW max ) storage capacity, the specific formula is as follows:

[0117]

[0118] In the formula, SOW min and SOW max They represent the minimum and maximum storage capacity of each heat storage tank, and ST represents the total number of installed heat storage tanks. They can be defined by the following formula:

[0119]

[0120] Ultimately, the stored heat and the heat released It can be calculated by the following formula:

[0121]

[0122] For the demand for clean water, this embodiment uses the electricity generated by the renewable energy system to drive the rainwater treatment system to treat rainwater and the seawater desalination system to desalinate seawater to meet the demand for clean water. Specifically, when the preset area is a smart community, rainwater can be collected from the roofs of community buildings and purified and chlorinated through a chemical treatment process. The purified water is used to meet the water needs of households and hydrogen production. The water used for hydrogen production needs to undergo an additional deionization process to remove ionizable substances. Any water that exceeds immediate needs will be stored in a water storage tank for future use.

[0123] Among them, the clean water demand is expressed by the following formula:

[0124]

[0125] In the formula, and Represents the water consumption of the electrolyzer and the household, respectively, in cubic meters.

[0126] The amount of clean water obtained from rainwater in a smart community is calculated using the following formula:

[0127]

[0128] In the formula, R trepresents the rainfall per hour, in meters; AR represents the area used to collect rainwater in the region, in square meters; σ is the effective rainwater collection coefficient; η H2O Indicates the efficiency of the treatment plant.

[0129] The electricity demand associated with rainwater purification is defined by the following formula:

[0130]

[0131] In the formula, Treat_water t Indicates the electricity consumption required for treating one cubic meter of rainwater, in kilowatt-hours.

[0132] The total installed capacity of the stormwater treatment system is converted using the following formula:

[0133]

[0134] If the amount of water processed by the rainwater treatment system exceeds the total demand of the electrolyzer and the household, the excess water will be stored in the water storage tank. If the water demand of the electrolyzer and the household exceeds the amount of water processed by the rainwater treatment system, the water in the water storage tank will be released to meet the immediate demand. The amount of water that can be stored in the water storage tank at each moment is then expressed by the following formula:

[0135]

[0136] Based on the amount of water that can be stored at each moment, the amount of water in the water storage tank at each moment is calculated using the following formula:

[0137]

[0138] The amount of water stored and released is expressed by the following formula:

[0139]

[0140] In the event that the water in the storage tank is depleted, the desalination system will be activated to meet the water demand. The amount of water required in the desalination process is calculated using the following formula:

[0141]

[0142] After the seawater is processed in the desalination system, it is directly distributed to the water distribution network. This embodiment uses an electric-based desalination process, which uses electric pumps to push seawater through the reverse osmosis membrane. On this basis, electricity is the only source of power for the process. The total power consumption of the desalination process is calculated by the following formula:

[0143]

[0144] Where, DS_water t Indicates the electricity demand per cubic meter of water in the desalination system.

[0145] The capacity of the desalination system is expressed by the following formula:

[0146]

[0147] Step S102: constructing an objective function based on minimizing the installation cost and operation and maintenance cost of the renewable energy system.

[0148] Based on the renewable energy system constructed above, the installation cost can be determined by the unit installation cost and installation capacity of each system. The unit installation cost can be determined in advance, and the installation capacity specifically includes the capacity of each system, such as the power generation capacity of onshore solar power generation systems and offshore solar power generation systems, onshore wind power generation systems and offshore wind power generation systems, the capacity of battery energy storage systems, the capacity of electrolyzers, the capacity of hydrogen storage tanks, the capacity of solar heating systems, the installed capacity of rainwater treatment systems, etc. As for the operation and maintenance cost, it is determined based on the amount of electricity, hydrogen, heat or water generated during the actual operation of each system and the corresponding unit operation and maintenance cost.

[0149] Therefore, when the hydrogen heating system is used for heating, the objective function is expressed by the following formula:

[0150]

[0151] In the formula, Represents the unit installation cost of onshore solar power generation system, offshore solar power generation system, offshore wind power generation system and onshore wind power generation system, in € / kW. BES Cost represents the cost of the battery energy storage system. H2 Cost represents the electrolyzer installation cost. DES It represents the cost of the desalination system in € / kW. H2 storage Indicates the hydrogen storage cost in € / kg. water_storage ,Cost water_treatment and Rev O2 Represents the construction cost of water storage tanks (in € / m 3 ), rainwater treatment system costs (in € / m 3 ) and the revenue from the sale of oxygen (in € / kg). water_deionization represents the cost of water deionization in € / m 3 The operation and maintenance costs of the technology include the operation and maintenance costs of onshore solar power generation systems. Operation and maintenance costs of offshore solar power generation systems Operation and maintenance costs of offshore wind power generation systems Operation and maintenance costs of onshore wind power generation systems and the operation and maintenance costs of the electrolyzer H2 OM .

[0152] Therefore, when the solar heating system is used for heating, the objective function is expressed by the following formula:

[0153]

[0154] In the formula, Cost solar_thermal Corresponds to the cost of installing a solar thermal collector in € / kWth, SolarTh OM Corresponds to the collector operation and maintenance costs in € / kWhth.

[0155] Step S103, constructing constraint conditions based on the load demand, clean water demand and thermal energy demand of the preset area and the water supply and power supply of the renewable energy system, wherein the constraint conditions include power balance constraint, water balance constraint and charge and discharge constraint.

[0156] Among them, the power balance constraint ensures that the power generation of the system at every moment can meet the load demand and the charging and discharging requirements of the battery energy storage equipment. Specifically, the power balance formula is as follows:

[0157]

[0158] In the formula, represents the power generation of the onshore solar power generation system and the offshore solar power generation system at the tth hour, Represents the installed capacity of onshore solar power generation systems and offshore solar power generation systems; represents the power generation of the onshore wind power generation system and the offshore wind power generation system at the tth hour, It represents the installed capacity of onshore wind power generation systems and offshore wind power generation systems; represents the discharge amount of the battery energy storage system in the tth hour, Indicates the charge amount of the battery energy storage system in the tth hour; SPIN t represents the spinning reserve power in the system at hour t, represents the electricity demand of household users, represents the power demand of the electrolyser, represents the power demand of the stormwater treatment system, represents the power demand of the desalination system, Loss t Represents the losses during the transmission and distribution of electric power.

[0159] The water balance constraint ensures that the system's water supply and demand are balanced at every moment. Specifically, the water balance formula is as follows:

[0160]

[0161] In the formula, represents the water demand of the electrolyzer at hour t, represents the water demand of household users at hour t, represents the amount of water stored in the water storage tank at hour t; represents the amount of water obtained by the desalination system in the tth hour, represents the amount of water collected by the rainwater treatment system at hour t, It represents the amount of water released from the storage tank to meet the demand at hour t.

[0162] The charging and discharging state constraints of the battery energy storage system ensure that the charging and discharging process of the battery energy storage system and the hydrogen heating system is within a reasonable range, including the charging and discharging efficiency of the battery energy storage system, the minimum storage value and the maximum storage capacity of the battery energy storage system. Therefore, the charging and discharging constraints include the following constraints:

[0163] The battery charging constraint is expressed by the following formula:

[0164] Battery_charge≤Battery_max_charge

[0165] In the formula, Battery_charge represents the charge capacity of the battery energy storage system, and Battery_max_charge represents the maximum charge capacity of the battery energy storage system.

[0166] The battery discharge constraint is expressed by the following formula:

[0167] Battery_discharge≤Battery_max_discharge

[0168] In the formula, Battery_discharge represents the discharge capacity of the battery energy storage system, and Battery_max_discharge represents the maximum discharge capacity of the battery energy storage system.

[0169] The battery storage capacity constraint is expressed by the following formula:

[0170] Battery_storage_min≤Battery_storage≤Battery_storage_max

[0171] In the formula, Battery_storage_min represents the minimum storage capacity of the battery energy storage system, Battery_storage represents the storage capacity of the battery energy storage system, and Battery_storage_max represents the maximum storage capacity of the battery energy storage system.

[0172] The hydrogen charging constraint is expressed by the following formula:

[0173] Hydrogen_charge≤Hydrogen_max_charge

[0174] In the formula, Hydrogen_charge represents the hydrogen charge, and Hydrogen_max_charge represents the maximum hydrogen charge. The hydrogen charge can be understood as the process of hydrogen being generated and stored in a hydrogen storage tank through an electrolysis process. That is, the amount of hydrogen generated and stored when water is decomposed into hydrogen and oxygen in an electrolyzer by using electricity. This process is similar to battery charging, except that the "charging" medium here is hydrogen, not electrical energy. Therefore, Hydrogen_max_charge can also be understood as the maximum amount of hydrogen that the hydrogen storage tank can store.

[0175] The hydrogen discharge constraint is expressed by the following formula:

[0176] Hydrogen_discharge≤Hydrogen_max_discharge

[0177] In the formula, Hydrogen_discharge represents the amount of hydrogen discharged, and Hydrogen_max_discharge represents the maximum amount of hydrogen discharged. The hydrogen discharge process can also be understood as the process of releasing hydrogen from the hydrogen storage tank to meet heating needs or other energy needs. At this time, "discharge" is equivalent to releasing the stored hydrogen for use. Therefore, Hydrogen_max_discharge represents the maximum amount of hydrogen that can be released by the hydrogen storage tank per unit time.

[0178] In this embodiment, the hydrogen heating system is not used directly for heating, and the system is generally used to manage the supply and demand of intermittent renewable energy. For example, when there is excess electricity generated by solar or wind power, the electricity can be used to generate hydrogen by electrolysis of water and stored (ie, "hydrogen charging"). When energy demand increases or renewable energy supply is insufficient, the stored hydrogen can be released and used for heating or power generation (ie, "hydrogen discharge"). Therefore, the hydrogen heating system does not directly heat the process but includes hydrogen charging and hydrogen discharging. Among them, "hydrogen charging" refers to the process of storing hydrogen in a storage tank, and "hydrogen discharging" is the process of releasing hydrogen from the storage tank when heating is needed.

[0179] The hydrogen storage capacity constraint is expressed by the following formula:

[0180] Hydrogen_storage_min≤Hydrogen_storage≤Hydrogen_storage_max

[0181] Wherein, Hydrogen_storage_min represents the minimum storage capacity of hydrogen, Hydrogen_storage represents the storage capacity of hydrogen, and Hydrogen_storage_max represents the maximum storage capacity of hydrogen.

[0182] In addition to the above constraints, the constraints constructed in this embodiment also include photovoltaic capacity constraints of the solar power generation system and capacity constraints of the wind power generation system.

[0183] The capacity constraint of the solar power generation system is expressed by the following formula:

[0184] 0≤Solar_capacity≤Solar_capacity_max

[0185] Wherein, Solar_capacity represents the capacity of the solar power generation system, and Solar_capacity_max represents the maximum capacity of the solar power generation system.

[0186] The capacity constraint of the wind power generation system is expressed by the following formula:

[0187] 0≤Wind_capacity≤Wind_capacity_max

[0188] Wherein, Wind_capacity represents the capacity of the wind power generation system, and Wind_capacity_max represents the maximum capacity of the wind power generation system.

[0189] Step S104, solving the objective function under the constraints of the constraint conditions, and determining the capacity of the renewable energy system corresponding to the minimum objective function.

[0190] Specifically, before solving, the initial capacity and upper and lower limits of the system need to be defined. The initial capacity can be determined based on the scale and demand of the actual system, and the upper and lower limits can be determined based on the physical limitations and economic feasibility of each system. For example, the initial capacity x0 can be set to [1000, 1000, 1000, 1000, 1000], indicating that the initial capacity of each system is 1000 units; the lower limit vector lb is set to [0, 0, 0, 0, 0], indicating that the minimum capacity of each system is 0.

[0191] When solving, this embodiment is implemented using an interior point algorithm. Specifically, the fmincon function is used for solving. First, set the optimization options of the fmincon function, including enabling the feasibility mode, iterative display, and drawing functions of the constraint function to ensure the effectiveness and feasibility of the optimization process. The setting of the optimization options can help monitor the optimization status and the satisfaction of the constraints in real time during the solution process. Call the fmincon function for optimization and solution. During the optimization process, the fmincon function will iteratively calculate through the interior point algorithm according to the defined objective function and constraints, and gradually approach the optimal solution. Each iteration will update the current solution and check whether all constraints are met to ensure that the optimization process is carried out within the constraints. After the optimization solution is completed, the returned solution is the optimal solution vector, and objectiveValue is the objective function value corresponding to the optimal solution.

[0192] In this embodiment, a comprehensive optimization method for a renewable energy system is provided. Figure 2 As shown, the process includes the following steps:

[0193] Step S201: construct a renewable energy system in a preset area. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0194] Step S202: construct an objective function based on minimizing the installation cost and operation and maintenance cost of the renewable energy system. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0195] Step S203, constructing constraint conditions based on the load demand, clean water demand and thermal energy demand of the preset area and the water supply and power supply of the renewable energy system, wherein the constraint conditions include power balance constraint, water balance constraint and charge and discharge constraint.

[0196] Specifically, the load demand, clean water demand and thermal energy demand are determined using the following steps:

[0197] Step S2031, obtain historical meteorological data and historical seasonal data, the historical seasonal data includes historical load demand, water purification demand and thermal energy demand. The historical meteorological data includes multiple meteorological factors, such as average temperature ( Unit is Celsius), relative humidity (H r ), precipitation (R t )、Dew point temperature (T dew ) and dry bulb temperature (T bulb ). These meteorological parameters have a direct impact on water demand, heating demand and load demand as they determine changes in household energy demand and consumption patterns.

[0198] Step S2032, using historical meteorological data and historical seasonal data to train the Bayesian regularized neural network model to obtain a demand forecasting model. Specifically, the model training can be implemented using the Matlab platform. During the training process, the network weights and biases can be adjusted until the model can accurately reflect the actual patterns of load, water demand, and heating demand.

[0199] Step S2033, using actual demand data to evaluate the demand forecasting model, to determine whether the demand forecasting model meets the preset requirements. Specifically, in order to evaluate the performance of the demand forecasting model, this embodiment compares the predicted value of demand with the actual demand data obtained in the case study. The mean absolute error (MAE) is used as an indicator to measure the accuracy of the model prediction. The MAE formula is as follows:

[0200]

[0201] Step S2034, when the preset requirements are met, the demand forecasting model is used to predict the load demand, clean water demand and thermal energy demand of the preset area.

[0202] Step S204, solve the objective function under the constraints of the constraints, and determine the capacity of the renewable energy system corresponding to the minimum objective function. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0203] Step S205, economic evaluation of renewable energy systems and fossil fuel systems, including calculating the first cost of using fossil fuel systems in the preset area, the first cost includes the present value cost and the energy levelization cost; calculating the second cost of using renewable energy systems in the preset area, the second cost includes the present value cost and the energy levelization cost; determining the system configured in the preset area based on the first cost and the second cost.

[0204] Specifically, after determining the minimum cost of the renewable energy system, it can also be compared with the cost of the energy system using traditional fossil fuels to evaluate the investment cost and economic feasibility of different energy systems, ensuring that the final system configuration is sustainable and economical. When conducting the economic evaluation, this embodiment compares the present value cost and the levelized cost of energy of the two systems.

[0205] For the fossil fuel system, electricity is mainly produced by diesel power plants with fuel shipped from nearby islands, while heating needs are supplied through LPG. However, due to the lack of electrolyzers, there is no additional water demand within the community. Instead, water demand is assumed to be met by two existing reservoirs in the area.

[0206] The cost of the fossil fuel system (FS) and its objective function are given by:

[0207]

[0208] In the formula, Cost Dieselpower Denotes the installation cost of a diesel power plant in € / kW, Diesel cap Indicates the installed capacity of the diesel power plant, in kW, Diesel OM Represents the operation and maintenance costs of the power plant in € / kWh. represents the power generation of diesel power plants in the region, in kWh, η Diesel represents the efficiency of diesel power generation. The cost of transporting diesel and propane to the island is represented by Diesel Shipping and Propane Shipping Energy costs are determined by Cost Propane gas Cost Dlesel It is expressed in € / kWh. propane Indicates the efficiency with which heat is produced by burning propane gas.

[0209] To evaluate the investment cost of each system, this embodiment uses two key variables: present value cost and levelized cost of energy (LCOE). The reference LCOE based on fossil fuel system is determined by the following formula:

[0210]

[0211] In the formula, AC power plant represents the annualized cost associated with commissioning a diesel power plant, while AC diesel represents the costs associated with diesel consumed by the power plant, including operation and maintenance costs. butane and AC propane They correspond to the cost of using liquid butane and liquid propane for heating respectively.

[0212] The annualized cost is determined by the following formula:

[0213]

[0214] In the formula, Cost Diesel power represents the installation cost of the diesel power plant, in Diesel cap represents the installed capacity cost of diesel power plants in kW. The variable ir represents the annual interest rate.

[0215] Present Cost (PC) represents the current value of all future cash inflows and outflows associated with a project, discounted at a specified interest rate. Specifically, the present cost of a fossil fuel system is calculated using the following formula:

[0216]

[0217] For renewable energy-based systems, the calculation methods for LCOE and PC are the same as those described for fossil fuel systems. I will not go into details here. After calculating the present value cost and levelized cost of energy of the two systems, they can be compared separately or by weighted sum to evaluate the economic feasibility of the two systems and select the final system configuration based on the evaluation results.

[0218] Step S206, optimize the scheduling of the renewable energy system. Specifically, through optimized scheduling, dynamic management and adjustment of system resources can be achieved. The main goal of scheduling is to optimize the use of renewable energy power generation and dynamically adjust the use of battery energy storage systems and resources based on the current operating status of the system while ensuring load demand.

[0219] In an optional embodiment, the optimization scheduling process includes the following steps: obtaining the power generation of the renewable energy system at the current moment; determining whether the power generation meets the power demand, the power demand includes the sum of load demand, system loss and rotating reserve; when the power demand is not met, controlling the battery energy storage system to discharge; when the power demand is met, using excess power to charge the battery energy storage system; when the battery energy storage system is fully charged, controlling the hydrogen heating system to generate hydrogen based on the excess power; when the hydrogen generated is greater than the hydrogen demand, storing the excess hydrogen; when the water purification demand is not met, starting the seawater desalination system to meet the water purification demand.

[0220] In this embodiment, the above optimization scheduling process specifically includes:

[0221] 1. Time step setting. This scheduling starts from time step t, which means the current time state is t. The system will perform subsequent operations based on the renewable energy supply situation at the current moment.

[0222] 2. Load supply judgment. The system judges whether the current renewable energy generation (RES) can meet the sum of load demand, system loss (Loss_t) and spinning reserve (SPIN_t) at time t. Specifically, if RES>Load_t+Loss_t+SPIN_t, the system will directly supply all loads from RES; otherwise, the system will rely on the battery energy storage system to discharge to meet the load demand.

[0223] 3. Battery energy storage system management. If the renewable energy generation is greater than the load demand and meets other system conditions, the system will use the excess RES to charge the battery energy storage system. When the battery energy storage system's state of energy storage (SOC_t) has not reached the maximum capacity (SOC_t max), the system will continue to charge until the battery energy storage system is fully charged. If the battery energy storage system is fully charged (SOC_t ≥ SOC_tmax) and there is still excess RES, the system will automatically use the excess energy for hydrogen production.

[0224] 4. Hydrogen production management. If excess renewable energy is used for hydrogen production, the system will monitor in real time whether the amount of hydrogen generated (H2_t generated) is greater than the demand (H2_t demand). If the amount of hydrogen generated exceeds the demand, the system will automatically store the excess hydrogen in the hydrogen storage tank; if the amount of hydrogen generated is not enough to meet the demand, the system will use the stored hydrogen to meet the current load demand.

[0225] 5. Demand supply and storage update. After the load demand is met, the system will update the storage status of the hydrogen and battery energy storage systems and prepare to enter the next time step (t=t+1). At this time, the system also needs to determine whether the desalination system load is met. If not, the system will start the desalination process and store the treated water in the tank for future use.

[0226] 6. Seawater desalination and water resource management. If the clean water demand is not met at time t, the system will start the seawater desalination process and store the treated water in the water tank. After all load demands are met, the system will update the water resource storage status and prepare to enter the next time step (t=t+1).

[0227] 7. Time stepping. After completing all operations in the current time step, the system time will advance to the next time step (t=t+1) and repeat the above scheduling operation process. By continuously iterating the time step, the system can dynamically adjust and optimize the operation of the renewable energy system to ensure that the energy utilization efficiency is maximized at different times and the load demand is met.

[0228] The comprehensive optimization method for the renewable energy system provided in this embodiment is based on the method for comprehensively optimizing the renewable energy system, and achieves the purpose of improving energy utilization efficiency and reducing system operating costs by comprehensively optimizing solar energy, wind energy, battery energy storage, hydrogen heating, solar energy heating, rainwater treatment and seawater desalination systems.

[0229] The comprehensive optimization method for the renewable energy system provided in this embodiment improves the overall performance and economic benefits of the system through comprehensive optimization management of various renewable energy sources. Specifically, by optimizing the capacity configuration of each system, the supply and demand balance of the system is ensured; by defining and satisfying nonlinear constraints, the reliability and stability of the system operation are ensured; through detailed result analysis and output, detailed data support and analysis basis are provided for the optimization configuration of the system, thereby achieving sustainable development of preset areas such as smart communities or industrial parks.

[0230] In this embodiment, a comprehensive optimization device for a renewable energy system is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0231] This embodiment provides a comprehensive optimization device for a renewable energy system, such as Figure 3 As shown, including:

[0232] System construction module 31, used to construct a renewable energy system in a preset area, the renewable energy system includes a solar power generation system, a wind power generation system, a battery energy storage system, a heating system, a rainwater treatment system and a seawater desalination system, the heating system is a hydrogen heating system or a solar power heating system, the solar power generation system and the wind energy discovery system are used to meet the load demand of the preset area and provide electric energy for the hydrogen heating system, the rainwater treatment system and the seawater desalination system, the battery energy storage system is used to store excess electric energy or discharge it when the electric energy is insufficient, the heating system is used to provide heat energy for the preset area, and the rainwater treatment system and the seawater desalination system are used to provide clean water for the preset area and the hydrogen heating system;

[0233] A function construction module 32, for constructing an objective function based on minimization of installation cost and operation and maintenance cost of the renewable energy system;

[0234] A constraint construction module 33, used to construct constraint conditions based on load demand, clean water demand and thermal energy demand of a preset area and water supply and power supply of a renewable energy system, wherein the constraint conditions include power balance constraint, water balance constraint and charge and discharge constraint;

[0235] The solution module 34 is used to solve the objective function under the constraints of the constraints and determine the capacity of the renewable energy system corresponding to the minimum objective function.

[0236] In an optional embodiment, the solar power generation system includes an onshore solar power generation system and an offshore solar power generation system, the wind power generation system includes an onshore wind power generation system and an offshore wind power generation system, the hydrogen heating system generates hydrogen and oxygen by electrolyzing water in an electrolyzer, the hydrogen is used for heating, and the oxygen is sold to generate income, the hydrogen heating system includes a hydrogen storage tank, which is used to store hydrogen in excess of thermal energy demand, the solar heating system includes a heat storage tank, which is used to store heat in excess of thermal energy demand, the rainwater treatment system includes a water storage tank, which is used to store clean water in excess of clean water demand, and the seawater desalination system is used to desalinate seawater to provide clean water when the clean water provided by the rainwater treatment system cannot meet the clean water demand.

[0237] In an optional implementation, the constraint conditions further include: capacity constraints of a solar power generation system and capacity constraints of a wind power generation system.

[0238] In an optional implementation, the load demand, clean water demand and thermal energy demand of a preset area are obtained, including: obtaining historical meteorological data and historical seasonal data, wherein the historical seasonal data includes historical load demand, clean water demand and thermal energy demand; using the historical meteorological data and historical seasonal data to train a Bayesian regularized neural network model to obtain a demand forecasting model; using actual demand data to evaluate the demand forecasting model to determine whether the demand forecasting model meets preset requirements; when the preset requirements are met, using the demand forecasting model to predict the load demand, clean water demand and thermal energy demand of the preset area.

[0239] In an optional embodiment, the device also includes: a cost analysis module, which is specifically used to calculate a first cost of adopting a fossil fuel system in a preset area, the first cost including a present value cost and a levelized energy cost; calculate a second cost of adopting a renewable energy system in a preset area, the second cost including a present value cost and a levelized energy cost; and determine a system for configuring a preset area based on the first cost and the second cost.

[0240] In an optional implementation, the device further includes: a scheduling module, configured to optimize the scheduling of the renewable energy system.

[0241] In an optional implementation, the scheduling module is specifically used to: obtain the power generation of the renewable energy system at the current moment; determine whether the power generation meets the power demand, and the power demand includes the sum of load demand, system loss and rotating reserve; when the power demand is not met, control the battery energy storage system to discharge; when the power demand is met, use the excess power to charge the battery energy storage system; when the battery energy storage system is fully charged, control the hydrogen heating system to generate hydrogen based on the excess power; when the hydrogen generated is greater than the hydrogen demand, store the excess hydrogen; when the water purification demand is not met, start the seawater desalination system to meet the water purification demand.

[0242] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0243] The embodiment of the present invention also provides a computer device having the above Figure 3 The comprehensive optimization device of the renewable energy system shown.

[0244] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0245] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0246] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0247] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0248] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0249] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0250] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0251] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0252] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A comprehensive optimization method for a renewable energy system, characterized in that: The method comprises: Constructing a renewable energy system in a preset area, the renewable energy system comprising a solar power generation system, a wind power generation system, a battery energy storage system, a heating system, a rainwater treatment system and a seawater desalination system, the heating system being a hydrogen heating system or a solar power heating system, the solar power generation system and the wind energy discovery system being used to meet the load demand of the preset area and to provide electric energy for the hydrogen heating system, the rainwater treatment system and the seawater desalination system, the battery energy storage system being used to store excess electric energy or to discharge it when electric energy is insufficient, the heating system being used to provide heat energy for the preset area, the rainwater treatment system and the seawater desalination system being used to provide clean water for the preset area and the hydrogen heating system; Constructing the objective function based on minimizing the installation cost and operation and maintenance cost of the renewable energy system; Constructing constraints based on load demand, clean water demand, and thermal energy demand in a preset area and water supply and power supply of a renewable energy system, wherein the constraints include power balance constraints, water balance constraints, and charge and discharge constraints; The objective function is solved under the constraint of the constraint condition to determine the capacity of the renewable energy system corresponding to the minimum objective function.

2. The method according to claim 1, characterized in that The solar power generation system includes an onshore solar power generation system and an offshore solar power generation system, the wind power generation system includes an onshore wind power generation system and an offshore wind power generation system, the hydrogen heating system generates hydrogen and oxygen by electrolyzing water in an electrolyzer, the hydrogen is used for heating, and the oxygen is sold to generate income, the hydrogen heating system includes a hydrogen storage tank, the hydrogen storage tank is used to store hydrogen that exceeds the thermal energy demand, the solar heating system includes a heat storage tank, the heat storage tank is used to store heat that exceeds the thermal energy demand, the rainwater treatment system includes a water storage tank, the water storage tank is used to store clean water that exceeds the clean water demand, and the seawater desalination system is used to desalinate seawater to provide clean water when the clean water provided by the rainwater treatment system cannot meet the clean water demand.

3. The method according to claim 1, characterized in that The constraint conditions also include: capacity constraints of the solar power generation system and capacity constraints of the wind power generation system.

4. The method according to claim 1, characterized in that: Obtain load demand, clean water demand, and heat demand for pre-set areas, including: Acquiring historical meteorological data and historical seasonal data, wherein the historical seasonal data includes historical load demand, clean water demand, and thermal energy demand; The Bayesian regularized neural network model is trained using historical meteorological data and historical seasonal data to obtain a demand forecasting model; Use actual demand data to evaluate the demand forecast model and determine whether the demand forecast model meets the preset requirements; When the preset requirements are met, the demand forecasting model is used to predict the load demand, clean water demand and thermal energy demand in the preset area.

5. The method according to claim 1, characterized in that The method further comprises: Calculating a first cost of adopting a fossil fuel system in a preset area, wherein the first cost includes a present value cost and a levelized cost of energy; Calculating a second cost of adopting a renewable energy system in a preset area, wherein the second cost includes a present value cost and a levelized cost of energy; A system for determining a preset area configuration based on the first cost and the second cost.

6. The method according to claim 1, characterized in that The method further comprises: Optimize the scheduling of renewable energy systems.

7. The method according to claim 6, characterized in that Optimize the dispatch of renewable energy systems, including: Get the power generation of the renewable energy system at the current moment; Determining whether the power generation meets the power demand, the power demand including the sum of load demand, system loss and spinning reserve; When the electricity demand is not met, the battery energy storage system is controlled to discharge; When electricity demand is met, the excess electricity is used to charge the battery energy storage system; When the battery energy storage system is fully charged, the hydrogen heating system is controlled to produce hydrogen based on the excess electricity; When the amount of hydrogen produced is greater than the amount of hydrogen demanded, the excess hydrogen is stored; When the demand for clean water is not met, the seawater desalination system is started to meet the demand for clean water.

8. A comprehensive optimization device for a renewable energy system, characterized in that: The device comprises: A system construction module, used to construct a renewable energy system in a preset area, wherein the renewable energy system includes a solar power generation system, a wind power generation system, a battery energy storage system, a heating system, a rainwater treatment system and a seawater desalination system, wherein the heating system is a hydrogen heating system or a solar power heating system, wherein the solar power generation system and the wind energy discovery system are used to meet the load demand of the preset area and provide electrical energy for the hydrogen heating system, the rainwater treatment system and the seawater desalination system, wherein the battery energy storage system is used to store excess electrical energy or discharge it when electrical energy is insufficient, wherein the heating system is used to provide thermal energy for the preset area, wherein the rainwater treatment system and the seawater desalination system are used to provide clean water for the preset area and the hydrogen heating system; A function building module for building an objective function based on minimization of the installation cost and operation and maintenance cost of the renewable energy system; A constraint building module, used to build constraint conditions based on load demand, clean water demand and thermal energy demand of a preset area and water supply and power supply of a renewable energy system, wherein the constraint conditions include power balance constraint, water balance constraint and charge and discharge constraint; The solution module is used to solve the objective function under the constraint of the constraint condition and determine the capacity of the renewable energy system corresponding to the minimum objective function.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the comprehensive optimization method for a renewable energy system according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the comprehensive optimization method for a renewable energy system according to any one of claims 1 to 7.