CN118657067A - A low-carbon operation optimization method and management system for a household energy system based on PVT photovoltaic thermal energy - Google Patents
A low-carbon operation optimization method and management system for a household energy system based on PVT photovoltaic thermal energy Download PDFInfo
- Publication number
- CN118657067A CN118657067A CN202411141441.3A CN202411141441A CN118657067A CN 118657067 A CN118657067 A CN 118657067A CN 202411141441 A CN202411141441 A CN 202411141441A CN 118657067 A CN118657067 A CN 118657067A
- Authority
- CN
- China
- Prior art keywords
- pvt
- storage tank
- heat
- household
- water storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
- G06N3/0442—Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/0985—Hyperparameter optimisation; Meta-learning; Learning-to-learn
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/26—Government or public services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/04—Constraint-based CAD
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/06—Multi-objective optimisation, e.g. Pareto optimisation using simulated annealing [SA], ant colony algorithms or genetic algorithms [GA]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/08—Thermal analysis or thermal optimisation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- Biomedical Technology (AREA)
- Tourism & Hospitality (AREA)
- Life Sciences & Earth Sciences (AREA)
- Economics (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Water Supply & Treatment (AREA)
- Public Health (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Geometry (AREA)
Abstract
本发明公开了一种基于PVT光伏光热的家庭能源系统低碳运行优化方法及管理系统,优化方法包括步骤:选取系统的运行成本和碳排放量为优化目标;以PVT的实际发电量、PVT的实际供热量、蓄电池传输功率、电网传输功率、储热水箱传输热量和天然气网传输热量为决策变量,对蓄电池和储热水箱进行数学建模;以功率平衡约束、主网传输功率约束、PVT功率约束、蓄电池约束和储热水箱约束为约束条件,建立以运行成本和碳排放量为优化目标的多目标规划模型;采用改进的粒子群算法,对多目标规划模型进行优化,得到最优解集;对最优解集采用优劣解距离法进行处理,得到最优的运行方案。本发明能精确地调整能源供给,提高能源利用效率。
The present invention discloses a low-carbon operation optimization method and management system for a household energy system based on PVT photovoltaic and thermal energy. The optimization method comprises the following steps: selecting the operation cost and carbon emission of the system as optimization targets; taking the actual power generation of PVT, the actual heat supply of PVT, the transmission power of the battery, the transmission power of the power grid, the heat transmission of the heat storage tank and the heat transmission of the natural gas grid as decision variables, mathematically modeling the battery and the heat storage tank; taking the power balance constraint, the transmission power constraint of the main grid, the PVT power constraint, the battery constraint and the heat storage tank constraint as constraint conditions, establishing a multi-objective planning model with the operation cost and carbon emission as optimization targets; using an improved particle swarm algorithm to optimize the multi-objective planning model and obtain the optimal solution set; using the superior and inferior solution distance method to process the optimal solution set and obtain the optimal operation plan. The present invention can accurately adjust the energy supply and improve the energy utilization efficiency.
Description
技术领域Technical Field
本发明涉及能碳管理系统技术领域,尤其涉及一种基于PVT光伏光热的家庭能源系统低碳运行优化方法及管理系统。The present invention relates to the technical field of energy-carbon management systems, and in particular to a low-carbon operation optimization method and management system for a household energy system based on PVT photovoltaic thermal energy.
背景技术Background Art
家庭能源系统相较于传统发电系统具备环境污染小、运营投资成本低的特点,能够提升电网的灵活性与可靠性。太阳能光伏光热(PVT)是将发电和制热结合在一个组件中,不仅提高光伏发电效率,还可以提供采暖和生活热水,是一个通过提高效率增加价值的产品。其核心是在太阳能光伏发电的同时回收多余热能并加以利用,这不仅对电池有冷却作用,可以提高发电效率和寿命,大大提高太阳能综合利用效率,同时还降低了电热分别供应的成本。另外,太阳能光伏光热PVT产生的热能和电能是相同面积光伏发电的至少三倍,作为适合近零能耗建筑的解决方案而越来越受关注。但是目前配备有PVT系统的新农村住宅能源系统存在如下问题:(1)建筑能源电/热负荷和光伏光热出力波动较大,且缺少负荷和光伏光热的预测模型,造成较大的能源损失。(2)大多数用户仅凭经验对“源、储、网”进行控制,往往不能做出最佳的决策以获得最小的碳排放量和运行费用,并且会造成能源的浪费,违背了用户的初衷。Compared with traditional power generation systems, home energy systems have the characteristics of less environmental pollution and low operating investment costs, and can improve the flexibility and reliability of the power grid. Solar photovoltaic thermal (PVT) combines power generation and heating in one component, which not only improves the efficiency of photovoltaic power generation, but also provides heating and domestic hot water. It is a product that increases value by improving efficiency. Its core is to recover and utilize excess heat energy while generating solar photovoltaic power. This not only has a cooling effect on the battery, but also can improve the power generation efficiency and life, greatly improve the comprehensive utilization efficiency of solar energy, and reduce the cost of separate power and heat supply. In addition, the heat and electricity generated by solar photovoltaic thermal PVT are at least three times that of photovoltaic power generation of the same area. As a solution suitable for near-zero energy buildings, it is gaining more and more attention. However, the new rural residential energy system equipped with PVT system currently has the following problems: (1) The building energy electricity/heat load and photovoltaic thermal output fluctuate greatly, and there is a lack of load and photovoltaic thermal prediction model, resulting in large energy loss. (2) Most users control “source, storage, and network” based on experience alone, and often fail to make the best decisions to minimize carbon emissions and operating costs. This also results in energy waste, which goes against the user’s original intention.
发明内容Summary of the invention
发明目的:本发明的目的是提供一种基于PVT光伏光热的家庭能源系统低碳运行优化方法及管理系统,实现减少住宅对传统能源的消耗和增加整体效益,最终达到节能减排的目的。Purpose of the invention: The purpose of the present invention is to provide a low-carbon operation optimization method and management system for a home energy system based on PVT photovoltaic thermal energy, so as to reduce the consumption of traditional energy in the residence and increase the overall benefits, and ultimately achieve the purpose of energy conservation and emission reduction.
技术方案:一种基于PVT光伏光热的家庭能源系统低碳运行优化方法,包括步骤如下:Technical solution: A low-carbon operation optimization method for a household energy system based on PVT photovoltaic thermal energy, comprising the following steps:
S1,选取系统的运行成本和碳排放量为优化目标;S1, select the system's operating cost and carbon emissions as optimization targets;
S2,以PVT的实际发电量、PVT的实际供热量、蓄电池传输功率、电网传输功率、储热水箱传输热量和天然气网传输热量为决策变量,对蓄电池和储热水箱进行数学建模;S2, with the actual power generation of PVT, the actual heat supply of PVT, the battery transmission power, the grid transmission power, the heat transmitted by the hot water storage tank and the heat transmitted by the natural gas grid as decision variables, mathematical modeling of the battery and the hot water storage tank is carried out;
S3,以功率平衡约束、主网传输功率约束、PVT功率约束、蓄电池约束和储热水箱约束为约束条件,建立以运行成本和碳排放量为优化目标的多目标规划模型;S3, with power balance constraint, main grid transmission power constraint, PVT power constraint, battery constraint and hot water storage tank constraint as constraint conditions, establish a multi-objective planning model with operation cost and carbon emission as optimization objectives;
S4,采用改进的粒子群算法,对多目标规划模型进行优化,得到最优解集;S4, using the improved particle swarm algorithm to optimize the multi-objective programming model and obtain the optimal solution set;
S5,对得到的最优解集采用优劣解距离法进行处理,得到最优的运行方案。S5, the obtained optimal solution set is processed by using the superior and inferior solution distance method to obtain the optimal operation plan.
进一步,步骤S2中,对蓄电池和储热水箱进行数学建模:Further, in step S2, mathematical modeling is performed on the battery and the hot water storage tank:
,,式中,表示t时刻家庭蓄电池内的电能总量;、分别表示家庭蓄电池的充电和放电效率;表示蓄电池的充电或放电功率,当代表充电,当代表放电;表示t时刻家庭储热水箱内的热能总量;、分别表示家庭储热水箱的储热和放热效率;表示t时刻储热水箱的储热或放热功率,当代表储热,代表放热;表示t时刻家庭储热水箱的散热损失;其中,储热水箱的散热损失计算公式如下:,式中,表示第j个储热水箱的表面积;表示储热水箱箱体的热损失系数,单位为;表示该时刻储热水箱中工质的温度,表示该时刻的环境温度,单位为℃;m表示水箱的总数量。 , , where represents the total amount of electrical energy in the household battery at time t; , Respectively represent the charging and discharging efficiency of household batteries; Indicates the charging or discharging power of the battery. Represents charging, when Represents discharge; represents the total amount of heat energy in the household water storage tank at time t; , They represent the heat storage and heat release efficiencies of the household water storage tank respectively; It represents the heat storage or heat release power of the hot water storage tank at time t. represents heat storage, represents heat release; represents the heat dissipation loss of the household water storage tank at time t; where the heat dissipation loss of the water storage tank is The calculation formula is as follows: , where represents the surface area of the jth hot water storage tank; Indicates the heat loss coefficient of the hot water storage tank, in units of ; It indicates the temperature of the working fluid in the hot water storage tank at that moment. It indicates the ambient temperature at that moment, in °C; m indicates the total number of water tanks.
步骤S3中,所述功率平衡约束、主网传输功率约束、PVT功率约束、蓄电池约束和储热水箱约束的数学模型如下:In step S3, the mathematical models of the power balance constraint, main network transmission power constraint, PVT power constraint, battery constraint and hot water storage tank constraint are as follows:
A1,功率平衡约束: ,A1, power balance constraint: ,
A2,主网传输功率约束: ,A2, main network transmission power constraints: ,
A3,PVT功率约束:,,A3, PVT power constraints: , ,
A4,蓄电池约束: ,,A4, Battery constraints: , ,
A5,储热水箱约束: ,,式中,表示光伏电池实际发电量,表示向主网的购电量,表示蓄电池的充放电量,表示家庭电负荷的预测值,表示循环水泵的耗电量,表示燃气热水器的耗电量,表示集热板实际供热量,表示向主网的购气的热值,表示蓄热水箱的充放热量,表示家庭热负荷的预测值,单位分别为kWh;、分别表示电网传输功率的上限和下限;、分别表示天然气管道流量的上限和下限;q表示天然气的热值;表示t时刻光伏电池预测发电量,kWh;表示t时刻集热器预测供热量;表示在t时刻蓄电池的荷电状态;表示t时刻家庭蓄电池内的电能总量;表示蓄电池的额定容量;、分别表示蓄电池储电能力的上限和下限;、分别表示蓄电池传输功率的上限和下限;表示在t时刻储热水箱的储热状态;表示t时刻家庭储热水箱内的热能总量;表示储热水箱的额定容量;、分别表示储热水箱储热能力的上限和下限;、分别表示储热水箱传输功率的上限和下限。A5, hot water storage tank constraints: , , where Indicates the actual power generation of photovoltaic cells, Indicates the amount of electricity purchased from the main network. Indicates the charge and discharge capacity of the battery. represents the predicted value of household electricity load, Indicates the power consumption of the circulating water pump. Indicates the power consumption of the gas water heater. Indicates the actual heat supply of the collector plate. Indicates the calorific value of gas purchased from the main grid, Indicates the charging and discharging heat of the hot water storage tank. It represents the predicted value of household heat load in kWh; , They represent the upper and lower limits of the power transmission of the power grid respectively; , They represent the upper and lower limits of the natural gas pipeline flow respectively; q represents the calorific value of natural gas; represents the predicted power generation of the photovoltaic cell at time t, kWh; It represents the predicted heating supply of the collector at time t; Indicates the state of charge of the battery at time t; represents the total amount of electrical energy in the household battery at time t; Indicates the rated capacity of the battery; , Respectively represent the upper and lower limits of the battery's storage capacity; , Respectively represent the upper and lower limits of the battery transmission power; Indicates the heat storage state of the hot water storage tank at time t; represents the total amount of heat energy in the household water storage tank at time t; Indicates the rated capacity of the hot water storage tank; , They represent the upper and lower limits of the heat storage capacity of the hot water storage tank respectively; , They represent the upper and lower limits of the power transmitted by the hot water storage tank respectively.
步骤S3中,多目标规划模型F为:,其中,为运行成本,为碳排放量;In step S3, the multi-objective programming model F is: ,in, For operating costs, for carbon emissions;
,式中,表示t时刻的购电价格,表示t时刻蓄电池的运维成本,表示t时刻的购电量,表示t时刻蓄电池的充放电量,单位分别为kWh;表示t时刻的购天然气价格,表示t时刻储热水箱的运维成本,表示t时刻循环水泵的运维成本,单位分别为元/m3;表示t时刻的向热网的购热量,表示t时刻储热水箱的充放热量,表示t时刻PVT系统的实际供热量,单位分别为kWh; , where represents the electricity purchase price at time t, represents the operation and maintenance cost of the battery at time t, represents the amount of electricity purchased at time t, Indicates the charge and discharge amount of the battery at time t, in kWh; represents the natural gas purchase price at time t, represents the operation and maintenance cost of the hot water storage tank at time t, represents the operation and maintenance cost of the circulating water pump at time t, in units of yuan/m 3 ; represents the amount of heat purchased from the heating network at time t, represents the heat charge and discharge of the hot water storage tank at time t, represents the actual heat supply of the PVT system at time t, in kWh;
,式中,表示电力的碳排放转换系数;表示天然气的碳排放转换系数;表示可再生能源的碳排放转换系数。 , where represents the carbon emission conversion factor of electricity; represents the carbon emission conversion factor of natural gas; Represents the carbon emission conversion factor of renewable energy.
步骤S4中,改进的粒子群算法实现步骤如下:In step S4, the improved particle swarm algorithm is implemented as follows:
S51,设置粒子总个数M、粒子的维度d、惯性权重、个体学习因子、社会学习因子,最大迭代次数ST;S51, set the total number of particles M, the particle dimension d, the inertia weight, the individual learning factor, the social learning factor, and the maximum number of iterations ST;
S52,以决策变量、、、、和的上下限随机生成粒子,初始化种群位置;S52, with decision variables , , , , and The upper and lower limits of random particles are generated and the population positions are initialized;
S53,根据运行成本和碳排放量最小,评价每个粒子的适应度值F,求得个体最优解和全局最优解,将个体最优解和全局最优解存储在存档库里;S53, based on running costs and carbon emissions Minimum, evaluate the fitness value F of each particle, obtain the individual optimal solution and the global optimal solution, and store the individual optimal solution and the global optimal solution in the archive library;
S54,设置蓄电池充放电上下限、储热水箱储放热上下限,由个体最优解判断蓄电池在t时刻是否到达充放电上下限和储热水箱在t时刻是否达到储放热上下限;S54, setting upper and lower limits of battery charge and discharge, and upper and lower limits of heat storage and release of the hot water storage tank, and judging whether the battery reaches the upper and lower limits of charge and discharge, and whether the hot water storage tank reaches the upper and lower limits of heat storage and release at time t by the individual optimal solution;
S55,如达到最大迭代数SI,则输出Pareto前沿;如果未达到最大迭代数SI,则更新惯性权重和学习因子,继续执行步骤S53、S54。S55, if the maximum number of iterations SI is reached, the Pareto frontier is output; if the maximum number of iterations SI is not reached, the inertia weight and the learning factor are updated, and steps S53 and S54 are continued.
采用优劣解距离法对Pareto前沿提供的一系列非劣解进行处理,选出最优的运行方案,具体实现步骤如下:The superior and inferior solution distance method is used to process a series of non-inferior solutions provided by the Pareto frontier and select the optimal operation plan. The specific implementation steps are as follows:
S61,设输出的Pareto解集里一共有p个解,将获得p个解的Pareto解集作为原始数据输入,每个解代表1个运行方案,每个运行方案有两个指标数据,分别为运行成本和碳排放量;S61, assuming that there are p solutions in the output Pareto solution set, the Pareto solution set of p solutions is used as the original data input, each solution represents an operation plan, and each operation plan has two indicator data, namely, operation cost and carbon emission;
将输入变量表示为一个决策矩阵 𝐷 ,其维度为 p×2,矩阵 𝐷 中的每个元素代表第 l个方案在第 q 个指标上的值:The input variables are represented as a decision matrix 𝐷 with a dimension of p×2. Each element in the matrix 𝐷 Represents the value of the lth solution on the qth indicator:
,式中,l=1,2,...,p;q=1,2;表示第 l个方案的运行成本,表示第 l个方案的碳排放量; , where l=1,2,...,p; q=1,2; represents the operating cost of the lth solution, represents the carbon emission of the lth option;
S62,采用向量规范法对决策矩阵D每一列进行数据预处理,得到标准化后的决策矩阵;S62, use the vector normalization method to preprocess the data of each column of the decision matrix D to obtain the standardized decision matrix ;
S63,设置指标权向量,并对决策矩阵进行加权处理,公式如下:S63, set the index weight vector , and the decision matrix The weighted processing is as follows:
,式中,表示标准化决策矩阵加权处理之后的决策矩阵; , where Represents the standardized decision matrix Decision matrix after weighting;
S64,求正理想解和负理想解,公式如下所示:S64, find the positive ideal solution and the negative ideal solution, the formula is as follows:
,式中,表示标准化决策矩阵第q列的正理想解;表示标准化决策矩阵第q列的负理想解;表示标准化决策矩阵中的元素; , where Represents the standardized decision matrix The positive ideal solution of the qth column; Represents the standardized decision matrix Negative ideal solution of the qth column; Represents the standardized decision matrix Elements in
S65,计算各个运行方案的综合评价指数,公式如下:S65, calculate the comprehensive evaluation index of each operation plan, the formula is as follows:
,式中,表示第l个方案的综合评价指数; , where represents the comprehensive evaluation index of the lth scheme;
S66,将各个方案的综合评价指标数从大到小进行排序,指标数最大对应的方案为所求最优方案。S66, the comprehensive evaluation index of each scheme Sort from large to small, and the solution corresponding to the largest number of indicators is the optimal solution.
一种基于PVT光伏光热的家庭能源系统低碳运行的管理系统,用于实现上述的任一种优化方法,包括监测模块、预测模块和优化控制模块;A management system for low-carbon operation of a household energy system based on PVT photovoltaic thermal energy, used to implement any of the above-mentioned optimization methods, including a monitoring module, a prediction module and an optimization control module;
所述监测模块通过智能信息采集设备和互联网对住宅建筑中的所有能效设备和住宅建筑外的环境状况进行监测、收集并储存信息;The monitoring module monitors, collects and stores information on all energy efficiency equipment in the residential building and the environmental conditions outside the residential building through intelligent information collection equipment and the Internet;
所述预测模块用于对用户电热负荷以及光伏光热实际出力值进行预测,包括PVT出力预测模块和电热负荷预测模块;所述PVT出力预测模块包括第一数据接收单元、第一数据处理单元、第一模型参数调整单元和PVT出力预测单元;所述电热负荷预测模块包括第二数据接收单元、第二数据处理单元、第二模型参数调整单元和电热负荷预测单元;The prediction module is used to predict the user's electric heat load and the actual output value of photovoltaic thermal energy, including a PVT output prediction module and an electric heat load prediction module; the PVT output prediction module includes a first data receiving unit, a first data processing unit, a first model parameter adjustment unit and a PVT output prediction unit; the electric heat load prediction module includes a second data receiving unit, a second data processing unit, a second model parameter adjustment unit and an electric heat load prediction unit;
第一数据接收单元、第二数据接收单元分别用于从监测模块中接收预测所需要的训练数据;第一数据处理单元、第二数据处理单元分别用于预测的数据处理和预处理;第一模型参数调整单元、第二模型参数调整单元分别用于调节LSTM模型的参数以获得不同参数下预测模块的评价指标,并选择预测效果最好的LSTM模型用于后续预测;PVT出力预测单元、电热负荷预测单元分别通过建立的多特征输入LSTM模型来预测未来一天的数据;The first data receiving unit and the second data receiving unit are respectively used to receive the training data required for prediction from the monitoring module; the first data processing unit and the second data processing unit are respectively used for data processing and preprocessing of prediction; the first model parameter adjustment unit and the second model parameter adjustment unit are respectively used to adjust the parameters of the LSTM model to obtain the evaluation index of the prediction module under different parameters, and select the LSTM model with the best prediction effect for subsequent prediction; the PVT output prediction unit and the electric heat load prediction unit respectively predict the data of the next day through the established multi-feature input LSTM model;
所述优化控制模块以运行时储能机组的总运行成本和整个系统的碳排放量为优化目标,以储能机组受负荷特性、运维成本、峰谷电价为约束,并辅以粒子群算法通过PVT控制器对未来一天24h的“源、储、网”进行优化控制。The optimization control module takes the total operating cost of the energy storage unit and the carbon emissions of the entire system as the optimization targets, and takes the load characteristics, operation and maintenance costs, and peak and valley electricity prices of the energy storage unit as constraints, and uses the particle swarm algorithm to optimize the "source, storage, and network" for the next 24 hours through the PVT controller.
进一步,所述优化控制模块包括数据输入单元、优化单元和控制单元;Further, the optimization control module includes a data input unit, an optimization unit and a control unit;
所述数据输入单元用于从预测模块中接收所需数据;The data input unit is used to receive required data from the prediction module;
优化单元通过采用改进的粒子群算法对未来24h整点的电热“源、储、网”进行优化,得到24h整点最优方案的PVT的实际发电量、PVT的实际供热量、蓄电池传输功率、电网传输功率、储热水箱传输功率和天然气网传输功率,以及运行成本和碳排放量值;The optimization unit uses an improved particle swarm algorithm to optimize the electric and thermal "source, storage, and network" for the next 24 hours, and obtains the actual power generation of PVT, the actual heating supply of PVT, the battery transmission power, the grid transmission power, the hot water storage tank transmission power, and the natural gas network transmission power of the optimal solution for the next 24 hours, as well as the operating cost and carbon emission values;
所述控制单元用于接收优化单元的优化结果并通过PVT控制器和互联网对未来24h整点电热的“源、储、网”进行控制。The control unit is used to receive the optimization result of the optimization unit and control the "source, storage and network" of the electric heating at the hour of 24 hours in the future through the PVT controller and the Internet.
进一步,所述PVT出力预测单元通过LSTM模型基于过去一月PVT出力值进行预测未来24h每个时段的PVT出力值;其中,LSTM模型的输入变量为前30天的整点PVT出力值和对应30天的当地太阳辐射值,输出变量为第31天的整点PVT供电值和整点的PVT供热值;Furthermore, the PVT output prediction unit predicts the PVT output value of each period of the next 24 hours based on the PVT output value of the past month through the LSTM model; wherein the input variables of the LSTM model are the PVT output value at the hour of the previous 30 days and the local solar radiation value of the corresponding 30 days, and the output variables are the PVT power supply value at the hour of the 31st day and the PVT heating value at the hour;
所述电热负荷预测单元通过LSTM模型基于过去一月家庭电热负荷值、对应的日平均温度和日类型进行预测未来24h每个时段的电热负荷;其中,LSTM模型的输入变量为前30天的整点家庭电负荷值、家庭热负荷值、对应的日平均温度和日类型,输出变量为第31天的整点家庭电负荷和热负荷。The electric heating load prediction unit predicts the electric heating load for each period of the next 24 hours based on the household electric heating load value, the corresponding daily average temperature and the day type in the past month through the LSTM model; wherein the input variables of the LSTM model are the household electric load value, the household heat load value, the corresponding daily average temperature and the day type at the hour of the previous 30 days, and the output variables are the household electric load and heat load at the hour of the 31st day.
本发明与现有技术相比,其显著效果如下:1、本发明的系统基于LSTM预测模型,一方面以太阳辐射强度、PVT的发电量和PVT的供热量作为输入变量,预测输出未来24个时间点的PVT的发电量和PVT的供热量;另一方面以电热负荷值、该日平均温度和该日类型等数据作为输入变量,预测输出未来24个时间点的家庭电热负荷值。通过对家庭用电、用热等能源需求和PVT发电量和供热量等能源供给的预测,可以更精确地调整能源供给,避免能源浪费,提高能源利用效率;2、本发明的优化方法中,以运行成本和碳排放量为优化目标,采用粒子群算法和TOPSIS算法,求解出最优方案,实现最大程度地消纳PVT光伏光热的出力、利用“峰谷”电价差减少运行费用和降低运行时二氧化碳的排放,从而减少住宅对传统能源的消耗和增加整体效益,最终达到节能减排的目的。Compared with the prior art, the present invention has the following significant effects: 1. The system of the present invention is based on the LSTM prediction model. On the one hand, it uses the solar radiation intensity, PVT power generation and PVT heat supply as input variables to predict and output the PVT power generation at the next 24 time points. and PVT heating ; On the other hand, the electric heat load value, the average temperature of the day and the type of the day are used as input variables to predict and output the household electric heat load value at 24 time points in the future. By predicting the energy demand for household electricity and heat consumption and the energy supply such as PVT power generation and heat supply, the energy supply can be adjusted more accurately, energy waste can be avoided, and energy utilization efficiency can be improved; 2. In the optimization method of the present invention, the operating cost and carbon emissions are used as optimization targets, and the particle swarm algorithm and TOPSIS algorithm are used to solve the optimal solution, so as to maximize the output of PVT photovoltaic thermal energy, use the "peak and valley" electricity price difference to reduce operating costs and reduce carbon dioxide emissions during operation, thereby reducing the consumption of traditional energy in residential areas and increasing overall benefits, and ultimately achieving the purpose of energy conservation and emission reduction.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明的管理系统框图;FIG1 is a block diagram of a management system of the present invention;
图2为神经网络模型-长短期记忆网络模模型构建示意图;FIG2 is a schematic diagram of the construction of a neural network model-a long short-term memory network model;
图3为能源系统策略执行过程;Figure 3 shows the energy system strategy execution process;
图4为MOPSO算法流程图;Figure 4 is a flow chart of the MOPSO algorithm;
图5为家庭能源系统硬件装置示意图;FIG5 is a schematic diagram of a home energy system hardware device;
图6为PVT出力预测模块预测值和真实值的对比图;FIG6 is a comparison diagram of the predicted value and the actual value of the PVT output prediction module;
图7为电热负荷预测模块预测值和真实值的对比图;FIG7 is a comparison diagram of the predicted value and the actual value of the electric heat load prediction module;
图8中的(a)、(b)、(c)、(d)分别为家庭电负荷、家庭热负荷、PVT发电量和PVT供热量预测值示意图;(a), (b), (c), and (d) in Figure 8 are schematic diagrams of predicted values of household electric load, household heat load, PVT power generation, and PVT heat supply, respectively;
图9为家庭电热负荷模型训练曲线示意图;FIG9 is a schematic diagram of a household electric heating load model training curve;
图10为PVT出力模型训练曲线示意图;FIG10 is a schematic diagram of a PVT output model training curve;
图11为Pareto前沿解集示意图;Figure 11 is a schematic diagram of the Pareto frontier solution set;
图12中的(a)、(b)、(c)分别为家庭能源系统优化之后PVT发电量、PVT供热量和储能系统运行的结果示意图;(a), (b), and (c) in Figure 12 are schematic diagrams of the results of PVT power generation, PVT heating, and energy storage system operation after the optimization of the household energy system;
图13中(a)、(b)分别为家庭能源系统运行优化之后家庭电负荷、家庭热负荷的结果示意图;Figure 13 (a) and (b) are schematic diagrams of household electrical load and household thermal load results after the optimization of household energy system operation;
图14为运行优化之后的家庭能源系统向电网的购电量示意图。FIG14 is a schematic diagram showing the amount of electricity purchased from the grid by the household energy system after operation optimization.
具体实施方式DETAILED DESCRIPTION
下面结合说明书附图和具体实施方式对本发明做进一步详细描述。The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
图1为本发明提出的能源系统框图,包括:监测模块100、预测模块200和优化控制模块300。FIG1 is a block diagram of an energy system proposed in the present invention, which includes: a monitoring module 100 , a prediction module 200 and an optimization control module 300 .
监测模块100主要通过智能信息采集设备和互联网对住宅建筑中的所有能效设备和住宅建筑外的环境状况进行监测、收集并储存信息;预测模块200主要用于对用户电热负荷以及光伏光热功率等不确定因素进行预测,为优化控制模块300能更好地优化“源、储、网”做准备;优化控制模块300通过控制器对未来一天24h的“源-储-网”进行优化控制,能够使家庭最大程度地消纳可再生资源、降低运行成本和完成未来一天的碳减排规划。The monitoring module 100 mainly monitors, collects and stores information on all energy-efficient equipment in residential buildings and environmental conditions outside residential buildings through intelligent information collection equipment and the Internet; the prediction module 200 is mainly used to predict uncertain factors such as user electric and thermal loads and photovoltaic thermal power, so as to prepare for the optimization control module 300 to better optimize the "source, storage, and network"; the optimization control module 300 optimizes and controls the "source-storage-network" for 24 hours in the next day through the controller, which can enable the household to maximize the absorption of renewable resources, reduce operating costs and complete the carbon emission reduction plan for the next day.
预测模块200中的PVT出力预测模块210主要用于对未来一天24h整点的PVT出力情况进行预测,包括第一数据接收单元211、第一数据处理单元212、第一模型参数调整单元213和PVT出力预测单元214。The PVT output prediction module 210 in the prediction module 200 is mainly used to predict the PVT output situation at 24 hours in the future day, and includes a first data receiving unit 211, a first data processing unit 212, a first model parameter adjustment unit 213 and a PVT output prediction unit 214.
第一数据接收单元211、第二数据接收单元221分别用于从监测模块100中接收预测所需要的训练数据;第一数据处理单元212、第二数据处理单元222分别用于预测的数据处理和预处理;第一模型参数调整单元213、第二模型参数调整单元223分别用于调节LSTM模型的参数以获得不同参数下预测模块200的评价指标,并选择预测效果最好的LSTM模型用于后续预测;PVT出力预测单元214、电热负荷预测单元224分别通过建立的多特征输入LSTM模型来预测未来一天的数据;The first data receiving unit 211 and the second data receiving unit 221 are respectively used to receive the training data required for prediction from the monitoring module 100; the first data processing unit 212 and the second data processing unit 222 are respectively used for data processing and preprocessing for prediction; the first model parameter adjustment unit 213 and the second model parameter adjustment unit 223 are respectively used to adjust the parameters of the LSTM model to obtain the evaluation index of the prediction module 200 under different parameters, and select the LSTM model with the best prediction effect for subsequent prediction; the PVT output prediction unit 214 and the electric heat load prediction unit 224 respectively predict the data of the next day through the established multi-feature input LSTM model;
优选的,第一模型参数调整单元213使用网格搜索算法,找到学习率集合和隐藏单元的数量集合的笛卡尔积的所有组合的最优解,以此在PVT出力预测单元214中得到最精确的预测值。其中,监测模块100中的智能信息采集设备主要包括智能计量表和PVT控制器,电热负荷预测模块220的训练数据主要通过按时间段和日期从智能计量表和PVT控制器收集过去一月每天24h家庭用电/热负荷数据,并储存在监测模块100中;PVT出力预测模块210的训练数据主要通过按时间和日期从PVT控制器和互联网收集过去一月每天24h的PVT出力情况和其对应的当地气象情况,并储存在PVT出力预测模块210中。Preferably, the first model parameter adjustment unit 213 uses a grid search algorithm to find the optimal solution of all combinations of the Cartesian product of the learning rate set and the number of hidden units, so as to obtain the most accurate prediction value in the PVT output prediction unit 214. Among them, the intelligent information collection equipment in the monitoring module 100 mainly includes intelligent meters and PVT controllers. The training data of the electric and thermal load prediction module 220 is mainly collected from the intelligent meters and PVT controllers by time period and date for 24 hours of household electricity/heat load data every day in the past month, and stored in the monitoring module 100; the training data of the PVT output prediction module 210 is mainly collected from the PVT controller and the Internet by time and date for 24 hours of PVT output conditions and their corresponding local meteorological conditions every day in the past month, and stored in the PVT output prediction module 210.
在实施例中,提出一种基于Spearman相关性分析法和LSTM的光伏光热出力组合预测模型。Spearman相关性分析是统计学中的一种方法,用于评估两个变量之间的关联程度。在运用Spearman相关性分析法确定影响光伏光热的主要气象因素基础上,利用关联度为正相关(接近1)的气象因素和对应的PVT出力预测未来一天的PVT出力,这样可以很大程度上提高模型的精准度。根据Spearman相关性分析法判定的相关性由高到低依次是太阳辐射强度、降雨量、总云量、相对湿度和温度。其中,PVT出力与太阳辐射强度的Spearman关联系数绝对值接近1,而其余关联系数绝对值都接近0,所以太阳辐射强度对光伏光热出力的影响较大,选择将其作为后续PVT出力预测单元214的关键输入变量。In an embodiment, a photovoltaic thermal output combined prediction model based on Spearman correlation analysis and LSTM is proposed. Spearman correlation analysis is a method in statistics for evaluating the degree of correlation between two variables. Based on the determination of the main meteorological factors affecting photovoltaic thermal by using the Spearman correlation analysis method, the PVT output of the next day is predicted using meteorological factors with a positive correlation (close to 1) and the corresponding PVT output, which can greatly improve the accuracy of the model. The correlations determined by the Spearman correlation analysis method are solar radiation intensity, rainfall, total cloud cover, relative humidity and temperature from high to low. Among them, the absolute value of the Spearman correlation coefficient between PVT output and solar radiation intensity is close to 1, while the absolute values of the other correlation coefficients are close to 0, so the solar radiation intensity has a greater impact on the photovoltaic thermal output, and it is selected as the key input variable of the subsequent PVT output prediction unit 214.
第一数据接收单元211从监测模块100中接收PVT出力预测单元214所需要的过去一月每天24h整点PVT出力和当地太阳辐射强度值等数据来预测或调参。但当由于外部环境原因或智能信息采集设备故障等问题导致从监测模块100中接收到数据出现部分缺失值时,本发明采取线性插值的方法,用于在已知数据点之间估计新数据点的值。The first data receiving unit 211 receives the PVT output and local solar radiation intensity values required by the PVT output prediction unit 214 for the past month from the monitoring module 100 for prediction or parameter adjustment. However, when some missing values appear in the data received from the monitoring module 100 due to external environmental reasons or intelligent information collection equipment failure, the present invention adopts a linear interpolation method to estimate the value of the new data point between the known data points.
第一数据处理单元212用于PVT出力预测数据的处理和预处理。首先,数据处理。为了方便后续第一模型参数调整单元213调优模型超参数,将接收的数据前90%划分为训练集,剩余的10%数据划分为测试集。训练集的目标是让LSTM模型能够学习数据中的模式,以便能够做出准确的预测。而LSTM模型在测试集上的表现可以帮助评估模型的准确性、精确度和泛化能力。在本发明的实施例中,第一数据接收单元211从监测模块100中共接收了720个序列数为3的数据组,前648个数据组划分为训练集,后72个数据组划分为测试集。其次,数据的预处理。由于PVT出力数据尺度差异较大,可能会导致PVT出力预测单元214预测效果不理想。因此为了提高模型的精度和泛化能力,需要对PVT出力数据进行统一量纲处理,即归一化处理。对于归一化处理的方法,一般采用标准差和均值的归一化处理(Z-scoreNormalization)和最大值、最小值的归一化处理(Min-Max Scaling)。为了加速梯度下降和避免模型过拟合,本发明选择了标准差和均值的归一化处理的方法。The first data processing unit 212 is used for processing and preprocessing the PVT output prediction data. First, data processing. In order to facilitate the subsequent tuning of the model hyperparameters by the first model parameter adjustment unit 213, the first 90% of the received data is divided into a training set, and the remaining 10% of the data is divided into a test set. The goal of the training set is to enable the LSTM model to learn the patterns in the data so that it can make accurate predictions. The performance of the LSTM model on the test set can help evaluate the accuracy, precision and generalization ability of the model. In an embodiment of the present invention, the first data receiving unit 211 receives a total of 720 data groups with a sequence number of 3 from the monitoring module 100, the first 648 data groups are divided into training sets, and the last 72 data groups are divided into test sets. Secondly, data preprocessing. Due to the large differences in the scale of PVT output data, the prediction effect of the PVT output prediction unit 214 may be unsatisfactory. Therefore, in order to improve the accuracy and generalization ability of the model, it is necessary to perform unified dimension processing on the PVT output data, that is, normalization processing. For the normalization method, the normalization of standard deviation and mean (Z-scoreNormalization) and the normalization of maximum and minimum values (Min-Max Scaling) are generally used. In order to accelerate gradient descent and avoid model overfitting, the present invention selects the normalization method of standard deviation and mean.
如图2所示,搭建神经网络模型-长短期记忆网络模型(LSTM模型):序列输入层(sequence input Layer)、LSTM神经网络层(lstm Layer)、丢弃层(dropout Layer)、全连接层(fully Connected Layer)和回归层(regression Layer),具体模型构建示意图见图2;选择均方根误差(RMSE)作为LSTM模型的损失函数;优化器选择随机梯度下降法Adam算法并对其进行参数调优来寻找模型最优解。与RNN循环神经网络相比,LSTM模型可以缓解梯度消失和梯度爆炸的问题,并且LSTM模型独特的门控机制允许网络自适应地学习数据中的模式和规律,从而使其在各种任务和数据类型上表现出更好的性能。As shown in Figure 2, a neural network model - a long short-term memory network model (LSTM model) is built: sequence input layer, LSTM neural network layer, dropout layer, fully connected layer and regression layer. The specific model construction diagram is shown in Figure 2; the root mean square error (RMSE) is selected as the loss function of the LSTM model; the optimizer selects the stochastic gradient descent method Adam algorithm and tunes its parameters to find the optimal solution of the model. Compared with the RNN recurrent neural network, the LSTM model can alleviate the problems of gradient disappearance and gradient explosion, and the unique gating mechanism of the LSTM model allows the network to adaptively learn patterns and regularities in the data, so that it can perform better on various tasks and data types.
本实施例中,选择的Adam算法参数的具体配置:初始的学习率为0.001,一阶矩估计的指数衰减率为0.9,二阶据估计的指数衰减率为0.999,并采用分段学习。In this embodiment, the specific configuration of the selected Adam algorithm parameters is: the initial learning rate is 0.001, the exponential decay rate of the first-order moment estimate is is 0.9, and the second-order estimated exponential decay rate is 0.999, and segmented learning is adopted.
上述LSTM模型中,选择太阳辐射强度、PVT的发电量和PVT的供热量作为输入层的输入值,并输出未来24个时间点的PVT的发电量和PVT的供热量。具体的,选择30天24h整点(共720个时间测点)的太阳辐射强度 (W/m²)、PVT的发电量 (kW)和PVT的供热量 (kW)作为LSTM模型预测输入层的输入值,即作为PVT出力预测单元214输入值。PVT出力预测单元214输出值为预测未来24个时间点的PVT的发电量和PVT的供热量,向量表示形式为。In the above LSTM model, solar radiation intensity, PVT power generation and PVT heat supply are selected as the input values of the input layer, and the PVT power generation at the next 24 time points is output. and PVT heating Specifically, the solar radiation intensity at 24h every hour for 30 days (720 time measurement points in total) is selected. (W/m²), PVT power generation (kW) and PVT heating (kW) is used as the input value of the LSTM model prediction input layer, that is, The output value of the PVT output prediction unit 214 is the predicted PVT power generation at the next 24 time points. and PVT heating , the vector representation is .
LSTM模型超参数决定了预测模型性能。因此,在模型训练之前,第一模型参数调整单元213先将数据集分为训练集和验证集,并选择网格搜索算法(Grid Search)对模型超参数进行选择。算法通过遍历学习率和隐藏单元数量的参数组合,并交叉验证以评价函数的结果确定最佳参数组合,评价指标是均方根误差函数RMSE。在本实施例中,在第一模型参数调整单元213中,给定的参数组合是学习率和隐藏单元数量,基于第一数据处理单元212处理好的训练集和测试集,运用网格搜索技术找到这两个参数集合的笛卡尔积的所有组合中RMSE值最小的,以此来建立预测效果最好的预测模型。LSTM model hyperparameters determine the performance of the prediction model. Therefore, before model training, the first model parameter adjustment unit 213 first divides the data set into a training set and a validation set, and selects a grid search algorithm (Grid Search) to select the model hyperparameters. The algorithm traverses the parameter combination of the learning rate and the number of hidden units, and cross-validates to determine the best parameter combination with the result of the evaluation function, and the evaluation index is the root mean square error function RMSE. In this embodiment, in the first model parameter adjustment unit 213, the given parameter combination is the learning rate and the number of hidden units. Based on the training set and the test set processed by the first data processing unit 212, the grid search technology is used to find the smallest RMSE value among all combinations of the Cartesian product of these two parameter sets, so as to establish a prediction model with the best prediction effect.
PVT出力预测单元214通过建立的多特征输入LSTM模型辅以优化器Adam神经网络优化算法,基于过去一月PVT出力值进行预测未来一天24h每个时段的PVT出力值,即电热负荷预测单元224的输入变量为前30天的整点PVT出力值和对应30天的当地太阳辐射值,输出变量为第31天的整点PVT供电值和整点的PVT供热值。The PVT output prediction unit 214 uses the established multi-feature input LSTM model assisted by the optimizer Adam neural network optimization algorithm to predict the PVT output value for each period of 24 hours in the next day based on the PVT output value of the past month. That is, the input variables of the electric and thermal load prediction unit 224 are the PVT output values at the hour of the previous 30 days and the local solar radiation values of the corresponding 30 days, and the output variables are the PVT power supply value and the PVT heating value at the hour of the 31st day.
在实施例中,根据生活常识和观察法可知负荷与日平均温度和日类型有关。在第二数据接收单元221接收日类型数据时,用0表示工作日,用1表示休息日。In the embodiment, it can be known from common sense and observation that the load is related to the daily average temperature and the day type. When the second data receiving unit 221 receives the day type data, 0 is used to represent a working day and 1 is used to represent a rest day.
第二数据接收单元221从监测模块中接收电热负荷预测所需要的过去一月每天24h整点电热负荷值、该日平均温度和该日类型等数据来预测或调参,并用线性插值法来补缺空缺的数据。The second data receiving unit 221 receives the electric heat load value at 24h every day of the past month, the average temperature of the day and the day type data required for electric heat load prediction from the monitoring module for prediction or parameter adjustment, and uses linear interpolation to fill in the missing data.
第二数据处理单元222用于电热负荷预测数据的处理和预处理。详细步骤见第一数据处理单元212。第二数据处理单元222与第一数据处理单元212步骤相似,唯一不同的在于模型选择的输入值和输出值。具体的,选择30天24h整点(共720个时间测点)的家庭电负荷值(kW)、热负荷值(kW)、该日平均温度(℃)和日类型作为LSTM模型输入层的输入值,即作为电热负荷预测单元224输入值。电热负荷预测单元224输出值为预测未来24个时间点的家庭电负荷值和热负荷值,向量的表示形式为。The second data processing unit 222 is used for processing and preprocessing the electric and thermal load forecasting data. The detailed steps are shown in the first data processing unit 212. The second data processing unit 222 is similar to the first data processing unit 212, except that the input value of the model selection is and output value Specifically, select the household electricity load value at 24h every hour for 30 days (720 time measurement points in total) (kW), heat load value (kW), average temperature of the day (℃) and day type As the input value of the LSTM model input layer, that is The output value of the electric heat load prediction unit 224 is the household electric load value predicted at 24 time points in the future. and heat load value , the vector representation is .
电热负荷的第二模型参数调整单元223与PVT出力预测的第一模型参数调整单元213类似。The second model parameter adjustment unit 223 for the electric and thermal load is similar to the first model parameter adjustment unit 213 for the PVT output prediction.
电热负荷预测单元224通过建立的多特征输入LSTM模型辅以优化器Adam神经网络优化算法基于过去一月家庭电热负荷值、对应的日平均温度和日类型进行预测未来一天24h每个时段的电热负荷,即PVT出力预测单元214的输入变量为前30天的整点家庭电负荷值、家庭热负荷值、对应的日平均温度和日类型,输出变量为第31天的整点家庭电负荷和热负荷。The electric and thermal load prediction unit 224 predicts the electric and thermal load for each period of the next 24 hours based on the household electric and thermal load values, the corresponding daily average temperature and the day type in the past month through the established multi-feature input LSTM model assisted by the optimizer Adam neural network optimization algorithm. That is, the input variables of the PVT output prediction unit 214 are the household electric load values, household thermal load values, the corresponding daily average temperature and the day type at the hour of the previous 30 days, and the output variables are the household electric load and thermal load at the hour of the 31st day.
优化控制模块300建立多目标规划模型,以运行时储能机组的运维费、购电费用等总运行成本和整个系统的碳排放量为优化目标,以储能机组受负荷特性、运维成本、峰谷电价等条件为约束,并辅以粒子群算法通过控制器对未来一天24h的“源、储、网”进行优化控制,能够使家庭最大程度地消纳可再生资源、降低运行成本和实现建筑低碳运行。能源系统策略执行过程见图3。The optimization control module 300 establishes a multi-objective planning model, taking the total operating costs such as the operation and maintenance costs of the energy storage unit and the electricity purchase costs during operation and the carbon emissions of the entire system as the optimization targets, and taking the load characteristics, operation and maintenance costs, peak and valley electricity prices of the energy storage unit as constraints, and using the particle swarm algorithm to optimize the "source, storage, and network" of the next 24 hours through the controller, so that the family can consume renewable resources to the greatest extent, reduce operating costs, and achieve low-carbon operation of the building. The energy system strategy execution process is shown in Figure 3.
其中,优化控制模块300包括数据输入单元310、优化单元320和控制单元330。The optimization control module 300 includes a data input unit 310 , an optimization unit 320 and a control unit 330 .
数据输入单元310主要用于从预测模块200和监测模块100中接收24h整点的PVT供电值、24h整点的PVT供热值、24h整点的家庭电负荷和24h整点的家庭热负荷,这些向量均为优化单元320建立模型的输入值。The data input unit 310 is mainly used to receive the 24-hour PVT power supply value, the 24-hour PVT heating value, the 24-hour household power load and the 24-hour household heat load from the prediction module 200 and the monitoring module 100. These vectors are input values for the optimization unit 320 to establish a model.
优选的,优化单元320中使用的改良粒子群算法改进了惯性因子和学习因子,使得改良的粒子群算法相较于传统的粒子群算法不易于陷入局部最优解,能够更快、更好地找到全局最优解。Preferably, the improved particle swarm algorithm used in the optimization unit 320 improves the inertia factor and the learning factor, so that the improved particle swarm algorithm is less likely to fall into a local optimal solution than the traditional particle swarm algorithm, and can find the global optimal solution faster and better.
优化单元320利用选定的求解方法改进粒子群算法对建立的多目标规划模型进行求解,得到24h整点最优方案的PVT的实际发电量、PVT的实际供热量、蓄电池传输功率、电网传输功率、储热水箱传输功率和天然气网传输功率,以及该方案对应目标函数的运行成本和碳排放量值。The optimization unit 320 uses the selected solution method to improve the particle swarm algorithm to solve the established multi-objective planning model and obtain the actual power generation of the PVT of the optimal solution for 24 hours. 、The actual heat supply of PVT , battery transmission power , Grid transmission power , Heat storage tank transmission power and natural gas grid transmission power , as well as the operating cost and carbon emission values of the scheme corresponding to the objective function.
控制单元330主要用于接收优化单元320的优化结果并通过控制器DDC和5G物联网技术对未来一天24h整点电热的“源、储、网”进行控制。在实施例中,所述优化单元320中的建模阶段,将家庭能源系统优化问题建模为多目标规划模型,具体步骤包括:The control unit 330 is mainly used to receive the optimization results of the optimization unit 320 and control the "source, storage, and network" of electric heating 24 hours a day in the future through the controller DDC and 5G Internet of Things technology. In the embodiment, the modeling stage in the optimization unit 320 models the home energy system optimization problem as a multi-objective planning model, and the specific steps include:
步骤一,确定优化目标。经过社会调查,用户对家庭能源管理系统首要考虑的是整个系统的碳排放量,其次考虑的即是整个系统的运行成本。本发明选择的优化目标分别为运行成本和碳排放量。Step 1: Determine the optimization target. According to social surveys, users' primary consideration for home energy management systems is the carbon emissions of the entire system, followed by the operating cost of the entire system. The optimization targets selected by the present invention are operating cost and carbon emissions.
步骤二,确定决策变量。确定影响目标函数的决策变量,这些变量是模型中需要优化的参数或变量。本发明选择的决策变量分别是PVT的实际发电量、PVT的实际供热量、蓄电池传输功率、电网传输功率、储热水箱传输热量和天然气网传输热量,并对蓄电池和储热水箱进行数学建模:Step 2: Determine the decision variables. Determine the decision variables that affect the objective function. These variables are the parameters or variables that need to be optimized in the model. The decision variables selected by the present invention are the actual power generation of PVT. 、The actual heat supply of PVT , battery transmission power , Grid transmission power , Heat storage tank transfers heat Heat transfer to the natural gas grid , and mathematically model the battery and hot water storage tank:
(1) (1)
(2) (2)
式中:表示t时刻家庭蓄电池内的电能总量;、分别表示家庭蓄电池的充电和放电效率;表示蓄电池的充电或放电功率,当大于零时代表充电;表示t时刻家庭储热水箱内的热能总量;、分别表示家庭储热水箱的储热和放热效率;表示t时刻储热水箱的储热或放热功率,当大于零代表储热;表示t时刻家庭储热水箱的散热损失。Where: represents the total amount of electrical energy in the household battery at time t; , Respectively represent the charging and discharging efficiency of household batteries; Indicates the charging or discharging power of the battery. When it is greater than zero, it means charging; represents the total amount of heat energy in the household water storage tank at time t; , They represent the heat storage and heat release efficiencies of the household water storage tank respectively; It represents the heat storage or heat release power of the hot water storage tank at time t. Greater than zero indicates heat storage; Represents the heat dissipation loss of the household water storage tank at time t.
其中,储热水箱的散热损失可由下式计算:Among them, the heat loss of the hot water storage tank It can be calculated by the following formula:
(3) (3)
式中:表示第j个储热水箱的表面积;表示储热水箱箱体的热损失系数[];表示该时刻储热水箱中工质的温度(℃);表示该时刻的环境温度(℃);m表示储热水箱的总数量。Where: represents the surface area of the jth hot water storage tank; Indicates the heat loss coefficient of the hot water storage tank [ ]; Indicates the temperature of the working fluid in the hot water storage tank at that moment (℃); represents the ambient temperature at that moment (°C); m represents the total number of hot water storage tanks.
步骤三,建立约束条件。约束条件可以是关于决策变量的线性或非线性方程,也可以关于决策变量取值范围的限制。在实施例中,建立了三个约束条件:功率平衡约束条件、主网传输功率约束和储能机组约束。具体的数学模型如下:Step three, establish constraints. Constraints can be linear or nonlinear equations about decision variables, or they can be restrictions on the value range of decision variables. In the embodiment, three constraints are established: power balance constraints, main network transmission power constraints, and energy storage unit constraints. The specific mathematical model is as follows:
(A1)功率平衡约束(A1) Power balance constraints
电平衡:(4)Electrical balance: (4)
热平衡:(5)Thermal balance: (5)
(A2)主网传输功率约束(A2) Main network transmission power constraints
(6) (6)
(7) (7)
(A3)PVT功率约束(A3) PVT power constraints
(8) (8)
(9) (9)
(A4)蓄电池约束(A4) Battery restraint
(10) (10)
(11) (11)
(12) (12)
(A5)储热水箱约束(A5) Hot water storage tank constraints
(13) (13)
(14) (14)
(15) (15)
式中,表示光伏电池实际发电量(kWh);表示向主网的购电量(kWh);表示蓄电池的充放电量(kWh);表示家庭电负荷的预测值(kWh);表示循环水泵的耗电量;表示燃气热水器的耗电量;表示集热板实际供热量(kWh);表示向主网的购气的热值(kWh);表示蓄热水箱的充放热量(kWh);表示家庭热负荷的预测值(kWh);和表示电网传输功率的上下限;和表示天然气管道流量的上下限;q表示天然气的热值,一般取35×10³( );表示t时刻光伏电池预测发电量(kWh);表示t时刻集热器预测供热量;表示在t时刻蓄电池的荷电状态;表示t时刻家庭蓄电池内的电能总量;表示蓄电池的额定容量;和表示蓄电池储电能力的上下限;和表示蓄电池传输功率的上下限;表示在t时刻储热水箱的储热状态;表示t时刻家庭储热水箱内的热能总量;表示储热水箱的额定容量。和表示储热水箱储热能力的上下限;和表示储热水箱传输功率的上下限。In the formula, Indicates the actual power generation of the photovoltaic cell (kWh); Indicates the amount of electricity purchased from the main grid (kWh); Indicates the charge and discharge capacity of the battery (kWh); It represents the predicted value of household electricity load (kWh); Indicates the power consumption of the circulating water pump; Indicates the power consumption of the gas water heater; Indicates the actual heat supply of the collector (kWh); Indicates the calorific value of gas purchased from the main grid (kWh); Indicates the charging and discharging heat of the hot water storage tank (kWh); represents the predicted value of household heating load (kWh); and Indicates the upper and lower limits of the power transmission of the power grid; and Indicates the upper and lower limits of the natural gas pipeline flow; q indicates the calorific value of natural gas, which is generally 35×10³( ); represents the predicted power generation of the photovoltaic cell at time t (kWh); It represents the predicted heating supply of the collector at time t; Indicates the state of charge of the battery at time t; represents the total amount of electrical energy in the household battery at time t; Indicates the rated capacity of the battery; and Indicates the upper and lower limits of the battery's power storage capacity; and Indicates the upper and lower limits of the battery transmission power; Indicates the heat storage state of the hot water storage tank at time t; represents the total amount of heat energy in the household water storage tank at time t; Indicates the rated capacity of the hot water storage tank. and Indicates the upper and lower limits of the heat storage capacity of the hot water storage tank; and Indicates the upper and lower limits of the power transmitted by the hot water storage tank.
步骤四,制定目标函数。将确定的优化目标转化为数学形式,建立多目标规划模型的目标函数。在本实施例中,制定了目标函数F:运行成本和碳排放量,它的向量形式为,具体的数学模型如下:Step 4: Formulate the objective function. Convert the determined optimization goal into mathematical form and establish the objective function of the multi-objective programming model. In this embodiment, the objective function F is formulated: operating cost and carbon emissions , its vector form is , the specific mathematical model is as follows:
目标一:运行成本Objective 1: Operating costs
(16) (16)
式中,表示t时刻的购电价格[元/(kWh)];表示t时刻蓄电池的运维成本[元/(kWh)];表示t时刻的购电量(kWh);表示t时刻蓄电池的充放电量(kWh);表示t时刻的购天然气价格(元/m3);表示t时刻储热水箱的运维成本(元/m3);表示t时刻循环水泵的运维成本(元/m3);表示t时刻的向热网的购热量(kWh);表示t时刻储热水箱的充放热量(kWh);表示t时刻PVT系统的实际供热量(kWh)。In the formula, represents the electricity purchase price at time t [yuan/(kWh)]; represents the operation and maintenance cost of the battery at time t [yuan/(kWh)]; represents the amount of electricity purchased at time t (kWh); Indicates the charge and discharge amount of the battery at time t (kWh); represents the natural gas purchase price at time t (yuan/m3); represents the operation and maintenance cost of the hot water storage tank at time t (yuan/m3); represents the operation and maintenance cost of the circulating water pump at time t (yuan/m3); Indicates the heat purchased from the heating network at time t (kWh); Indicates the heat charge and discharge of the hot water storage tank at time t (kWh); Represents the actual heating capacity of the PVT system at time t (kWh).
目标二:碳排放量Target 2: Carbon Emissions
由于目前的主电网还主要采用煤炭和甲烷发电供热,所以整个系统只有主电网会产生二氧化碳,于是在碳排放的目标二中只去考虑主网的碳排放量,根据IPCC提供的碳核算方法,列出目标二的目标函数:Since the current main power grid still mainly uses coal and methane for power generation and heating, only the main power grid in the entire system will produce carbon dioxide. Therefore, in the second carbon emission target, only the carbon emissions of the main grid are considered. According to the carbon accounting method provided by the IPCC, the objective function of target 2 is listed as follows:
(17) (17)
式中:表示电力的碳排放转换系数,取0.830;表示天然气的碳排放转换系数,取0.191;表示可再生能源的碳排放转换系数,取0。Where: represents the carbon emission conversion coefficient of electricity, which is taken as 0.830; represents the carbon emission conversion coefficient of natural gas, which is 0.191; Represents the carbon emission conversion coefficient of renewable energy, which is set to 0.
步骤五,选择解决方法。选择合适的多目标规划求解方法进行求解。常见的方法包括加权求和法、Pareto最优解法、多目标进化算法,考虑到家庭能源系统优化问题具有高维数、非连续、多约束等特点,本设计采用改进的粒子群算法(MOPSO),收敛效率和速度优于一般优化算法,能够得到较好的结果。Step 5: Select a solution. Select a suitable multi-objective planning solution method to solve the problem. Common methods include weighted summation method, Pareto optimal solution method, and multi-objective evolutionary algorithm. Considering that the optimization problem of home energy system has the characteristics of high dimension, discontinuity, and multiple constraints, this design adopts the improved particle swarm algorithm (MOPSO), which has better convergence efficiency and speed than general optimization algorithms and can obtain better results.
在传统的粒子群算法(PSO)中,假设决策变量维度为d,初始化粒子群总数为M,其中第n个粒子的位置和速度向量形式分别为和。第n个粒子通过追踪自己之前的个体最优解和全局最优解来调整自己的位置和速度,这两个最优解的向量形式分别为和。更新粒子n下一迭代的速度和位置的公式:In the traditional particle swarm optimization (PSO), assuming that the dimension of the decision variable is d, the total number of initialized particle swarms is M, where the position and velocity vectors of the nth particle are respectively and The nth particle tracks its previous individual optimal solution and the global optimal solution To adjust its position and speed, the vector forms of the two optimal solutions are and . Update the velocity of particle n in the next iteration and location The formula is:
(18) (18)
式中,、为均匀分布在[0,1]之间的随机数;、分别为个体学习因子和社会学习因子;为惯性权重。In the formula, , is a random number uniformly distributed between [0,1]; , They are individual learning factor and social learning factor; is the inertia weight.
传统粒子群在解决优化问题时易于陷入局部最优解,并且缺乏全局探索能力,导致在实际应用中出现收敛速度慢、搜索精度低和不易于得到全局最优解等问题。为了解决这些问题,对传统粒子群中的自适应参数做出改进,采用非线性动态调整惯性权重值和非线性动态调整学习因子两种方法,形成改进的粒子群算法。具体改进如下:Traditional particle swarms are prone to falling into local optimal solutions when solving optimization problems, and lack global exploration capabilities, resulting in slow convergence, low search accuracy, and difficulty in obtaining global optimal solutions in practical applications. In order to solve these problems, the adaptive parameters in traditional particle swarms are improved, and two methods, nonlinear dynamic adjustment of inertia weight value and nonlinear dynamic adjustment of learning factor, are used to form an improved particle swarm algorithm. The specific improvements are as follows:
在算法优化前期,粒子移动速度较慢会影响算法搜索速度,这时需要增大惯性权重值和社会学习因子以便于全局搜索;而到了优化后期,粒子移动速度较快可能会略过最优解,这时便需要减少惯性权重值和个体学习因子以便于局部搜索。综上所述,动态更新惯性权重值的公式如下所示:In the early stage of algorithm optimization, the slow movement of particles will affect the algorithm search speed. At this time, it is necessary to increase the inertia weight value. and social learning factors In order to facilitate global search; in the later stage of optimization, the particles may skip the optimal solution due to their fast movement speed, so it is necessary to reduce the inertia weight value and individual learning factors To facilitate local search. In summary, dynamically update the inertia weight value The formula is as follows:
(19) (19)
动态更新学习因子、的公式如下所示:Dynamically update learning factors , The formula is as follows:
(20) (20)
式中:表示惯性权重值;和表示个体学习因子和社会学习因子;IT表示当前迭代数;ST表示最大迭代数;角标s表示该值的初始值,角标e表示该值的终止值。Where: Indicates the inertia weight value; and Represents individual learning factor and social learning factor; IT represents the current iteration number; ST represents the maximum iteration number; the superscript s represents the initial value of the value, and the superscript e represents the final value of the value.
在实施例中,改进的粒子群算法在优化单元320中的应用,MOPSO算法流程图见图4:In the embodiment, the improved particle swarm algorithm is applied in the optimization unit 320, and the MOPSO algorithm flow chart is shown in FIG4 :
步骤51,算法参数设定。设置粒子总个数M=100,粒子的维度d=96,惯性权重、分别为0.5、0.001,个体学习因子、分别为2.5、0.5,社会学习因子、分别为0.5、2.5,最大迭代次数ST为100。Step 51, algorithm parameter setting. Set the total number of particles M = 100, the particle dimension d = 96, and the inertia weight , They are 0.5 and 0.001 respectively, and the individual learning factor , They are 2.5 and 0.5 respectively, and the social learning factor , They are 0.5 and 2.5 respectively, and the maximum number of iterations ST is 100.
步骤52,在满足约束条件式(4)-(15)的情况下,以决策变量、、、、和的功率上下限随机生成粒子,初始化种群位置。其中,决策变量的上下限分别设置为[0,5]、[0,5]、[0,4]和[0,4]。Step 52: Under the condition that the constraint conditions (4)-(15) are satisfied, the decision variables , , , , and The upper and lower limits of the power are randomly generated to initialize the population position. The upper and lower limits of the decision variables are set to [0,5], [0,5], [0,4] and [0,4] respectively.
步骤53,按照式(16)和式(17)评价每个粒子的适应度值F,即运行成本和碳排放量,以确定其在Pareto解集中的位置。求得个体最优解和全局最优解,将个体最优解和全局最优解存储在存档库里。Step 53, evaluate the fitness value F of each particle according to equations (16) and (17), that is, the operating cost and carbon emissions , to determine its position in the Pareto solution set. Obtain the individual optimal solution and the global optimal solution , the individual optimal solution and the global optimal solution Stored in the archive.
步骤54,进行边界处理,设置蓄电池和分别为0.1和0.9,储热水箱和分别为0.1和0.9。由个体最优解判断蓄电池在t时刻是否到达充放电上下限和储热水箱在t时刻是否达到储放热上下限。Step 54, perform boundary processing and set the battery and 0.1 and 0.9 respectively, hot water storage tank and are 0.1 and 0.9 respectively. Determine whether the battery has reached the upper and lower limits of charge and discharge at time t and whether the hot water storage tank has reached the upper and lower limits of heat storage and release at time t.
步骤55,判断是否达到最大迭代数SI。如果不满足该判断,则利用公式(19)和(20)更新惯性权重w和学习因子和,继续执行步骤53、步骤54;如果满足,则输出Pareto前沿。Step 55: determine whether the maximum number of iterations SI is reached. If the determination is not satisfied, the inertia weight w and the learning factor are updated using formulas (19) and (20). and , continue to execute step 53 and step 54; if satisfied, output the Pareto frontier.
步骤六,最优解的选择。Pareto前沿提供的是在两个相互冲突的目标之间进行权衡的解决方案集合,它为决策者提供了一系列非劣解,但最终的选择需要结合实际情况和决策者的判断。因此,本实施例中,采用基于TOPSIS(Technique for Order Preference bySimilarity to an Ideal Solution, 优劣解距离法)算法对一系列非劣解进行处理,以选出最优的运行方案。TOPSIS算法求解过程:Step 6: Selection of the optimal solution. The Pareto front provides a set of solutions that balance two conflicting objectives. It provides decision makers with a series of non-inferior solutions, but the final choice needs to be based on the actual situation and the decision maker's judgment. Therefore, in this embodiment, a series of non-inferior solutions are processed based on the TOPSIS (Technique for Order Preference by Similarity to an Ideal Solution) algorithm to select the optimal operation plan. TOPSIS algorithm solution process:
步骤61,输入原始数据。假设输出的Pareto解集里一共有p个解。将获得p个解的Pareto解集作为原始数据输入,即输入p个运行方案,每个运行方案有两个指标数据,分别为运行成本(C)和碳排放量(E)。Step 61, inputting original data. Assume that there are p solutions in the output Pareto solution set. The Pareto solution set with p solutions is input as original data, that is, p operation plans are input, and each operation plan has two indicator data, namely, operation cost (C) and carbon emission (E).
输入变量可以表示为一个决策矩阵 D ,其维度为 p×2。矩阵D 中的每个元素(l=1,2,...,p;q=1,2)代表第 l个方案在第 q 个指标上的值。具体地,矩阵D 可以表示如下:The input variables can be represented as a decision matrix D with dimension p × 2. Each element in the matrix D (l=1,2,...,p; q=1,2) represents the value of the l-th solution on the q-th indicator. Specifically, the matrix D can be expressed as follows:
(21) (twenty one)
式中:表示第 l个方案的运行成本,也可以表示为;表示第 l个方案的碳排放量,也可以表示为;p是优化方案的数量。Where: represents the operating cost of the lth solution, which can also be expressed as ; represents the carbon emissions of the lth option, which can also be expressed as ; p is the number of optimization solutions.
步骤62,数据预处理。为了将决策矩阵D 适用于TOPSIS算法,需要对决策矩阵 𝐷每一列进行标准化处理。使用向量规范法对决策矩阵D每一列进行数据预处理,标准化后的决策矩阵可以表示为:Step 62, data preprocessing. In order to apply the decision matrix D to the TOPSIS algorithm, it is necessary to standardize each column of the decision matrix 𝐷. Use the vector normalization method to preprocess each column of the decision matrix D. The standardized decision matrix It can be expressed as:
(22) (twenty two)
式中:表示运行成本向量的2范数;表示碳排放量向量的2范数。Where: represents the running cost vector The 2-norm of ; Represents the carbon emission vector The 2-norm of .
步骤63,加权处理。权重代表每个指标的重要性。由于这两个指标同等重要,所以这两个指标的权重为0.5,设置指标权向量,并对决策矩阵进行加权处理,公式如下:Step 63: Weighted processing. The weight represents the importance of each indicator. Since these two indicators are equally important, the weights of these two indicators are Set the indicator weight vector to 0.5 , and the decision matrix The weighted processing is as follows:
(23) (twenty three)
式中:表示标准化决策矩阵加权处理之后的决策矩阵。Where: Represents the standardized decision matrix Decision matrix after weighting.
步骤64,求正理想解和负理想解。由于这两个数据都是成本型属性,求正理想解时,每个指标对应其所有方案中最小值;而求负理想解时,每个指标对应其所有方案中最大值。公式如下所示:Step 64, find the positive ideal solution and the negative ideal solution. Since both data are cost-type attributes, when finding the positive ideal solution, each indicator corresponds to the minimum value among all its solutions; and when finding the negative ideal solution, each indicator corresponds to the maximum value among all its solutions. The formula is as follows:
(24) (twenty four)
式中:表示标准化决策矩阵第q列的正理想解;表示标准化决策矩阵第q列的负理想解;表示标准化决策矩阵中的元素。Where: Represents the standardized decision matrix The positive ideal solution of the qth column; Represents the standardized decision matrix Negative ideal solution of the qth column; Represents the standardized decision matrix The elements in .
步骤65,得出各方案的综合评价指标。各个运行方案的综合评价指数公式如下所示:Step 65, obtain the comprehensive evaluation index of each scheme. The comprehensive evaluation index formula of each operation scheme is as follows:
(25) (25)
式中:表示第l个方案的综合评价指数。Where: Represents the comprehensive evaluation index of the lth option.
步骤66,将各个方案的综合评价指标数从大到小进行排序,指标数最大对应的方案即为所求最优方案。Step 66: The comprehensive evaluation index of each scheme is Sort from large to small, and the solution corresponding to the largest number of indicators is the optimal solution.
为了检验所提出的家庭能源系统的可行性和有效性,选择位于江苏省镇江市的一栋小型独栋住宅建筑中,搭建基于PVT系统的家庭能源系统硬件装置,家庭能源系统硬件装置示意图见图5,搭建步骤如下:In order to test the feasibility and effectiveness of the proposed home energy system, a small single-family residential building in Zhenjiang City, Jiangsu Province was selected to build a home energy system hardware device based on the PVT system. The schematic diagram of the home energy system hardware device is shown in Figure 5. The construction steps are as follows:
步骤D1,根据建筑屋顶的面积进行PVT系统的安装,确保能够获得充足的阳光照射和适合的安装条件。PVT太阳能板的型号选择NES72-6-330P,共安装十二台,同时安装支架结构以及光伏组件和集热板。热泵集热板型号选择AL-FC-GV2.0。支架结构的安装需符合相关安全标准和建筑规范。循环泵型号选择TYT-1,安装两台。储热水箱型号选择ZYSUN-150A,共安装三台。并安装一台8L的燃气热水器。最后连接集热板、水泵、燃气热水器和储热水箱之间的管道,确保热能传输顺畅。Step D1, install the PVT system according to the area of the building roof to ensure sufficient sunlight and suitable installation conditions. Select NES72-6-330P as the model of PVT solar panel, install a total of twelve units, and install the support structure, photovoltaic components and collectors at the same time. Select AL-FC-GV2.0 as the model of heat pump collector. The installation of the support structure must comply with relevant safety standards and building specifications. Select TYT-1 as the model of circulation pump, install two units. Select ZYSUN-150A as the model of heat storage tank, install a total of three units. And install an 8L gas water heater. Finally, connect the pipes between the collector, water pump, gas water heater and heat storage tank to ensure smooth heat energy transmission.
步骤D2,安装PVT管理系统,控制器的型号选择XL-21,用于监测PVT系统运行状态,保证系统的正常运行。光伏逆变器型号选择SUN2000-36KTL,蓄电池型号选择6-CNJ-200,共安装六台。连接光伏板、光伏逆变器、蓄电池、智能电表、控制器和家庭负荷等设备,智能电表的型号选择DDSZ6,电表监测到的信息上传至软件系统中。Step D2, install the PVT management system. The controller model is XL-21, which is used to monitor the operating status of the PVT system and ensure the normal operation of the system. The photovoltaic inverter model is SUN2000-36KTL, and the battery model is 6-CNJ-200. A total of six units are installed. Connect the photovoltaic panels, photovoltaic inverters, batteries, smart meters, controllers, and household loads. The model of the smart meter is DDSZ6. The information monitored by the meter is uploaded to the software system.
步骤D3,完成PVT系统的安装后,进行系统的联调和测试,确保各部件正常工作,系统运行稳定。并且与构建的软件系统相结合,利用控制器和5G物联网技术实现对家庭能源和碳排放的监测与优化。Step D3: After the installation of the PVT system is completed, the system is debugged and tested to ensure that all components are working properly and the system is running stably. In addition, it is combined with the constructed software system to use the controller and 5G Internet of Things technology to monitor and optimize household energy and carbon emissions.
该建筑的PVT系统装机容量约为5KW,家庭储电总容量为20kWh,蓄电池充放电效率和为0.89,家庭储热总容量为20kWh,储热水箱储放热效率和为0.89,储热水箱箱体的热损失系数K为0.5 ,箱体表面积A为2.1㎡。监测模块100收集了该建筑以60分钟为间隔从2022年8月1日到8月30日的PVT出力数据、当地的环境情况和家庭电热负荷,并使用30天的数据来输入到预测模块200中来训练LSTM模型,模型的详细求解过程见预测模块200,第一模型参数调整单元213使用网格搜索算法,找到学习率集合和隐藏单元分别为0.2和500;第二模型参数调整单元223使用网格搜索算法,找到学习率集合和隐藏单元分别为0.2和1000;PVT出力预测模块210的误差函数RMSE值分别为0.1425和0.1132,电热负荷预测模块220的误差函数RMSE值分别为0.116和0.1663。PVT出力预测模块210的预测值和真实值的对比见图6,电热负荷预测模块220的预测值和真实值的对比见图7。最后输出第31天24h的家庭电负荷PL、家庭热负荷PH、PVT发电量P和PVT供热量H,见图8中的(a)、(b)、(c)、(d)。家庭电热负荷模型训练曲线见图9,PVT出力模型训练曲线见图10。The PVT system installed capacity of the building is about 5KW, and the total household power storage capacity is The battery charge and discharge efficiency is 20kWh. and is 0.89, the total household heat storage capacity The heat storage efficiency of the hot water storage tank is 20kWh. and is 0.89, and the heat loss coefficient K of the hot water storage tank is 0.5 , the surface area A of the box is 2.1㎡. The monitoring module 100 collects the PVT output data, local environmental conditions and household electric and heating load of the building at intervals of 60 minutes from August 1 to August 30, 2022, and uses 30 days of data to input into the prediction module 200 to train the LSTM model. The detailed solution process of the model is shown in the prediction module 200. The first model parameter adjustment unit 213 uses a grid search algorithm to find the learning rate set and hidden unit are 0.2 and 500 respectively; the second model parameter adjustment unit 223 uses a grid search algorithm to find the learning rate set and hidden unit are 0.2 and 1000 respectively; the error function RMSE values of the PVT output prediction module 210 are 0.1425 and 0.1132 respectively, and the error function RMSE values of the electric and heating load prediction module 220 are 0.116 and 0.1663 respectively. The comparison between the predicted value and the true value of the PVT output prediction module 210 is shown in Figure 6, and the comparison between the predicted value and the true value of the electric and thermal load prediction module 220 is shown in Figure 7. Finally, the household electric load PL, household thermal load PH, PVT power generation P and PVT heating H for 24 hours on the 31st day are output, as shown in (a), (b), (c) and (d) in Figure 8. The training curve of the household electric and thermal load model is shown in Figure 9, and the training curve of the PVT output model is shown in Figure 10.
再将预测模块200的输出结果传输到优化控制模块300,以该建筑的夏季典型工况日为例,该模型的求解优化过程见优化控制模块300。Pareto前沿见图11。最后的优化结果得到了66个非劣解,基于TOPSIS算法选取了第44个非劣解为最优运行方案,该方案的运行成本为3.53元,碳排放量为2.08kg,PVT系统和储能系统在运行优化之后的结果见图12,从图12中的(a)-(b)中可看出家庭能源系统尽最大可能地消纳了PVT系统出力,而从图12中的(c)中可以看出该套运行方案储能系统的SOC值都在上下限范围之内,符合系统设定。整个家庭能源系统运行优化之后的结果见图13中的(a)-(b)。相比于普通住宅建筑,夏季每日可省14.4度电和0.28m³的天然气,相当于减少碳排放量14.11kg,全年预估可减碳2000kg左右,而在节能减排的同时系统运行费每天仅需花费3.54元,图14为运行优化之后的家庭能源系统向电网的购电量,可以看出系统大部分时间都避免在“峰”时间段购入电,这可有效减少系统运行成本,进一步验证家庭能源系统的可靠性。The output result of the prediction module 200 is then transmitted to the optimization control module 300. Taking the typical summer working condition day of the building as an example, the solution optimization process of the model is shown in the optimization control module 300. The Pareto frontier is shown in Figure 11. The final optimization result obtained 66 non-inferior solutions. Based on the TOPSIS algorithm, the 44th non-inferior solution was selected as the optimal operation plan. The operation cost of this plan is 3.53 yuan, and the carbon emissions are 2.08 kg. The results of the PVT system and the energy storage system after operation optimization are shown in Figure 12. From (a)-(b) in Figure 12, it can be seen that the home energy system has absorbed the output of the PVT system as much as possible, and from (c) in Figure 12, it can be seen that the SOC values of the energy storage system of this operation plan are within the upper and lower limits, which meets the system settings. The results of the entire home energy system after operation optimization are shown in (a)-(b) in Figure 13. Compared with ordinary residential buildings, 14.4 kWh of electricity and 0.28 m³ of natural gas can be saved every day in summer, which is equivalent to reducing carbon emissions by 14.11 kg. It is estimated that carbon emissions can be reduced by about 2,000 kg throughout the year. While saving energy and reducing emissions, the system operating fee only costs 3.54 yuan per day. Figure 14 shows the amount of electricity purchased from the grid by the household energy system after operation optimization. It can be seen that the system avoids purchasing electricity during the "peak" time period most of the time, which can effectively reduce the system operating costs and further verify the reliability of the household energy system.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411141441.3A CN118657067B (en) | 2024-08-20 | 2024-08-20 | Household energy system low-carbon operation optimization method and management system based on PVT photovoltaic photo-thermal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411141441.3A CN118657067B (en) | 2024-08-20 | 2024-08-20 | Household energy system low-carbon operation optimization method and management system based on PVT photovoltaic photo-thermal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118657067A true CN118657067A (en) | 2024-09-17 |
| CN118657067B CN118657067B (en) | 2024-11-26 |
Family
ID=92699567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411141441.3A Active CN118657067B (en) | 2024-08-20 | 2024-08-20 | Household energy system low-carbon operation optimization method and management system based on PVT photovoltaic photo-thermal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118657067B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119647672A (en) * | 2024-11-26 | 2025-03-18 | 国网山东省电力公司济南市章丘区供电公司 | A near-zero energy building energy supply method and system based on multi-objective optimization |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113378100A (en) * | 2021-05-25 | 2021-09-10 | 国网福建省电力有限公司 | Power distribution network source and network load and storage cooperative optimization scheduling model and method considering carbon emission |
| WO2021208342A1 (en) * | 2020-04-14 | 2021-10-21 | 广东卓维网络有限公司 | Power system based on cooperative interaction between diverse users and power grid |
| CN113822706A (en) * | 2021-09-07 | 2021-12-21 | 昆明理工大学 | Multi-park comprehensive energy system optimized operation method considering green certificate transaction under low-carbon background |
| CN114462308A (en) * | 2022-01-18 | 2022-05-10 | 三峡大学 | Heat accumulating type electric heating optimal configuration method considering power flow balance of power distribution network |
-
2024
- 2024-08-20 CN CN202411141441.3A patent/CN118657067B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2021208342A1 (en) * | 2020-04-14 | 2021-10-21 | 广东卓维网络有限公司 | Power system based on cooperative interaction between diverse users and power grid |
| CN113378100A (en) * | 2021-05-25 | 2021-09-10 | 国网福建省电力有限公司 | Power distribution network source and network load and storage cooperative optimization scheduling model and method considering carbon emission |
| CN113822706A (en) * | 2021-09-07 | 2021-12-21 | 昆明理工大学 | Multi-park comprehensive energy system optimized operation method considering green certificate transaction under low-carbon background |
| CN114462308A (en) * | 2022-01-18 | 2022-05-10 | 三峡大学 | Heat accumulating type electric heating optimal configuration method considering power flow balance of power distribution network |
Non-Patent Citations (3)
| Title |
|---|
| 张军;张新源;吴俊兴;黄墀志;戴勇;马刚;: "考虑户用光伏发电的家庭能量管理方法研究", 电网与清洁能源, no. 02, 25 February 2020 (2020-02-25), pages 121 - 127 * |
| 窦晓波;孙帅;陆斌;吴在军;刘晶;袁晓冬;: "基于空调自适应修正模型的户用微电网能量优化", 电力系统自动化, no. 15, 10 August 2017 (2017-08-10), pages 48 - 56 * |
| 管霖;陈鹏;唐宗顺;陈肖灿;江泽涛;: "考虑冷热电存储的区域综合能源站优化设计方法", 电网技术, no. 10, 31 December 2016 (2016-12-31), pages 24 - 33 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119647672A (en) * | 2024-11-26 | 2025-03-18 | 国网山东省电力公司济南市章丘区供电公司 | A near-zero energy building energy supply method and system based on multi-objective optimization |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118657067B (en) | 2024-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108206543B (en) | An energy router based on energy cascade utilization and its operation optimization method | |
| CN111008748B (en) | Optimization method for economic dispatch of microgrid including electric vehicle charging load | |
| CN109859071B (en) | Optimal Allocation Method of Source-Load-Storage in Multi-Energy Complementary for Virtual Power Plant | |
| CN110807588B (en) | An optimal scheduling method for a multi-energy coupled integrated energy system | |
| CN111340274A (en) | Virtual power plant participation-based comprehensive energy system optimization method and system | |
| CN106936147A (en) | A kind of optimization operation management method of micro-capacitance sensor based on dual-layer optimization towards electric heat storage boiler | |
| CN107546781B (en) | Multi-objective operation optimization method of microgrid based on improved PSO algorithm | |
| CN112580897A (en) | Multi-energy power system optimal scheduling method based on parrot algorithm | |
| Ren et al. | Multi-objective optimization of a hybrid distributed energy system using NSGA-II algorithm | |
| CN116187173A (en) | Double-layer optimization method and system for regional comprehensive energy system | |
| CN112418488A (en) | Comprehensive energy system scheduling method and device based on two-stage energy optimization | |
| Kang et al. | Feed-forward active operation optimization for CCHP system considering thermal load forecasting | |
| CN118657067B (en) | Household energy system low-carbon operation optimization method and management system based on PVT photovoltaic photo-thermal | |
| CN112734451B (en) | Green house multi-energy system based on non-cooperative game and optimization method | |
| CN112883630A (en) | Day-ahead optimized economic dispatching method for multi-microgrid system for wind power consumption | |
| CN117748514A (en) | Micro-grid energy management real-time scheduling method based on interactive imitation learning | |
| CN119382251B (en) | Cooperative optimization method of multiple types of power sources based on complementary characteristics | |
| CN115115145A (en) | Demand response scheduling method and system for distributed photovoltaic intelligent residence | |
| Wang | Improved electrical coupling integrated energy system based on particle swarm optimization | |
| CN117744894B (en) | An Active Learning Agent Optimization Method for Integrated Energy Systems | |
| Singh et al. | Reinforced learning for demand side management of smart microgrid based forecasted hybrid renewable energy scenarios | |
| CN118112980A (en) | A multi-type smart building energy system scheduling method considering FDI attack detection | |
| CN118523418A (en) | Distributed photovoltaic system control method based on power grid load prediction | |
| CN117291337A (en) | IGDT-based comprehensive energy system optimization operation method and system | |
| CN116227200A (en) | Photovoltaic system multi-time scale energy management method considering hybrid fast and slow dynamics |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |