Micro-grid economic dispatching method and related device
Through the microgrid economic dispatch method, we use the recognition cost optimization and the decision tree algorithm to optimize the distributed energy operation of the microgrid, solve the problem of failure to comprehensively consider the load characteristics, and achieve the dispatching effect with the lowest cost and maximum information gain.
Patent Information
- Application Number
- CN202410701580.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-29
AI Technical Summary
Existing microgrid optimal economic methods fail to comprehensively consider different types of loads and their characteristics, and cannot meet the needs of mutual improvement of supply and demand.
A microgrid economic dispatch method is proposed. By obtaining the operation characteristic parameters and comprehensive operation cost parameters of microgrid distributed energy, and using the cost-sensitive reinforcement learning algorithm and decision tree algorithm of the recognition cost optimization, a mathematical model is constructed for dispatching and the system is optimized. Comprehensive operating costs and information gain.
It achieves the dispatching result with the lowest comprehensive operation cost and the largest information gain, improves the classification accuracy, avoids the over-fitting phenomenon of the decision tree, and is suitable for the planning of economic operation plans of microgrids in different applications.
Smart Images

Figure CN118868005A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a dispatching method, and specifically to a microgrid economic dispatching method and related devices. Background Art
[0002] With the progress of power market innovation and the increasing demand for versatility from users, participation in demand-side response is an important means to achieve coordinated operation of "source-grid-load-storage". However, with the continuous expansion of the scale of renewable energy systems (RES), problems such as insufficient peak-reduction capacity of the power grid and limited unit output have become increasingly prominent.
[0003] The dynamic economic dispatch problem (DED) can not only find the lowest operating cost in the dispatch cycle, but also meet the system's operating costs, and also consider the real-time operating requirements of different distributed generators (DG) in multiple cycles. In existing research, various methods have been proposed for the optimal economic optimization of microgrids. In the latest research, some scholars have used compressed air energy storage as one of the important energy storage technologies to assist wind farms in peak regulation and provide other grid auxiliary services. This method reduces the overall dispatch cost and efficiency in smoothing unit output. In addition, in addition to the demand-side load adjustment strategy, the user-side response under the time-of-use electricity price model can reduce the amount of electricity purchased by users while increasing the comprehensive operating income of the system, achieving a win-win situation for supply and demand. However, how to comprehensively consider different types of loads and their characteristics, reasonably use incentive policies, and achieve mutual improvement of supply and demand is still a long-term challenge facing the economic optimization problem of CCHP (Combined Cooling, Heating, Power) microgrids. Summary of the invention
[0004] This application aims to solve the technical problem that the existing microgrid optimal economic method does not comprehensively consider different types of loads and their characteristics and cannot meet the mutual improvement of supply and demand, and provides a microgrid economic scheduling method and related devices.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application proposes a microgrid economic dispatch method, comprising:
[0007] Obtain the microgrid distributed energy operation characteristic parameters and the microgrid comprehensive operation cost parameters to obtain a parameter combination;
[0008] The parameter combination is input into the economic operation model to obtain a scheduling result with the lowest comprehensive operation cost and the maximum information gain;
[0009] The economic operation model includes a cost-sensitive reinforcement learning algorithm and a decision tree algorithm for rejection cost optimization;
[0010] The operation method of the economic operation model includes:
[0011] Construct a mathematical model associated with the operating characteristics of distributed energy in the microgrid, pre-process the unbalanced data of the equipment parameters, load parameters and natural condition parameters of the mathematical model, and obtain pre-processed data;
[0012] Inputting the preprocessed data into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, which is recorded as a first scheduling classification result;
[0013] The first scheduling classification result is input into the decision tree to obtain the second scheduling classification result, which is the scheduling result with the lowest comprehensive operating cost and the maximum information gain.
[0014] Furthermore, the mathematical model includes:
[0015] Wind power output model, photovoltaic panel output power model, micro gas turbine fuel consumption and natural gas consumption model, cogeneration system cooling power, heating power and output power model, energy storage system model.
[0016] Furthermore, the wind power output model includes:
[0017]
[0018] Among them, P WT (t) is the wind power output power in period t, ρ is the current air density, A is the rotor swept area, v(t) is the wind speed in period t, C p is the power factor, N b is the gearbox bearing efficiency, N g is the generator efficiency;
[0019] The photovoltaic panel output power model includes:
[0020]
[0021] Among them, P pv (t) is the output power of the photovoltaic cell during period t, I pv is the light intensity received by the photovoltaic panel during period t, P STC and I STC are the light output power and current under standard test conditions, k is the power coefficient at a specific temperature, T e (t) is the temperature during time period t, T refis the reference temperature value during period t;
[0022] The micro gas turbine fuel consumption and natural gas consumption model includes:
[0023]
[0024] Among them, U MT (t) is the fuel consumption of the micro gas turbine during period t, P MT (t) is the output power of the micro gas turbine during period t, η MT (t) is the output efficiency of the micro gas turbine during period t, L NG is the natural gas with calorific value lower than the preset requirement, and Δt is the unit scheduling time;
[0025] The cooling power, heating power and output power models of the cogeneration system include:
[0026]
[0027] T CMT (t) = η rec R MTC T MT (t)
[0028] T HMT (t) = η rec R MTH T MT (t)
[0029] Among them, T MT (t) is the total output power of the cogeneration system during period t, η L is the heat loss coefficient, T CMT (t) is the cooling power of the cogeneration system during period t, η rec is the gas flow coefficient, R MTC is the refrigeration coefficient of the absorption chiller and waste heat recovery unit, η OMT is the heat rejection of the micro-turbine, T HMT (t) is the thermal power of the cogeneration system during period t, R MTH is the heating coefficient of the absorption chiller and waste heat recovery unit;
[0030] The energy storage system model includes:
[0031]
[0032] Among them, P B (t) is the power of the energy storage unit during period t, -P B,ch (t) is the charging power of the energy storage unit during period t, +P B,dis (t) is the discharge power of the energy storage unit during period t.
[0033] Furthermore, the preprocessed data is input into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, recorded as the first scheduling classification result, including:
[0034] Calculate the misclassification cost:
[0035]
[0036] Among them, R(x,i) is the misclassification cost of sample x being classified into class i, P(j|x) is the posterior probability of sample x, N is the number of classification categories, and C ij is the cost of misclassifying the i-th class sample as the j-th class,
[0037] Select the category with the smallest R(x,i) as the final classification category:
[0038] y opt =arg min{∑P(j|x)·C ij},i,j∈{0,n,p}
[0039] C ij ={C ij (p,n),C ij (n,p),C ij (0,n),C ij (0,p)}
[0040] Among them, y opt is the first scheduling classification result, n means that the samples are classified into n categories, p means that the samples are classified into p categories, and 0 means that the samples are not classified.
[0041] Furthermore, the first scheduling classification result is input into a decision tree to obtain a second scheduling classification result, including:
[0042] Furthermore, the objective function of the economic operation model includes:
[0043]
[0044] Among them, F G is the comprehensive operating cost of the system, C F (t) is the fuel cost, C D (t) is the demand cost, C M (t) is the maintenance cost, C CH (t) is the sum of the cooling and / or heating profits of the CHP system at each time period t;
[0045] C D (t) = [K ps PP,ch (t)+K pe P P,dis (t)]+[K cs Q C,ch (t)+K ce Q C,dis (t)]+[K hs Q H,ch (t)+K he Q H,dis (t)]C CH (t) = K c [Q c (t)-Q C,ch (t)]+K h [Q h (t)-Q H,ch (t)]
[0046] Among them, K ps , K cs , K hs are the unit power shortage loss costs corresponding to electric energy, cold energy and heat energy respectively, P P,ch (t) is the power shortage rate in period t, K pe , K ce , K he are the unit discharge costs corresponding to electric energy, cold energy, and heat energy, respectively, P P,dis (t) is the electric energy discharge power in period t, Q C,ch (t) is the cooling power shortage rate during period t, Q C,dis (t) is the electric cooling discharge power in period t, Q H,ch (t) is the thermal power shortage rate during period t, Q H,dis (t) is the thermal energy discharge power in period t, K c is the unit cooling profit of the combined heat and power system in each cycle t, Q c (t) is the cooling load in period t, K h is the unit heat profit of the combined cooling, heating and power system in each cycle t, Q h (t) is the heat load during period t.
[0047] Furthermore, the constraints of the economic operation model include:
[0048]
[0049] Q CMT (t)+Q CPH (t)+[Q IS,dis (t)-Q IS,ch (t)]+[Q C,ch (t)-Q C,dis (t)]-Q c (t)≥Zβ
[0050] Q HMT (t)+Q CPH (t)+[Q TS,dis (t)-Q TS,ch (t)]+[Q H,ch (t)-Q H,dis (t)]-Q h (t)≥Zγ
[0051] Among them, P i CG (t) is the conventional generator power during period t, is the power of the renewable generator during period t, P B,dis (t) is the discharge power of the battery energy storage unit during period t, P B,ch (t) is the charge and discharge power of the BS unit during the period t, P P,dis (t) is the electric energy discharge power in period t, P HP (t) is the total power of combined cooling, heating and power supply in period t, P load (t) is the load power in period t, M is the total number of renewable generators, Q CMT (t) is the gas turbine cooling load during period t, Q CPH (t) is the gas turbine cooling load during period t, Q IS,dis (t) is the discharge power of the stored cold energy in period t, Q IS,ch (t) is the power shortage of the stored cold energy in period t, Q C,dis (t) is the electric cooling discharge power in period t, Q c (t) is the cooling load during period t, Q HMT (t) is the heat load of the gas turbine during period t, Q TS,dis (t) is the discharge power of the stored thermal energy in period t, Q TS,ch (t) is the power shortage of the stored thermal energy in period t, Q h (t) is the heat load during period t, Z α (t), Z β , Zγ represent the normal distribution of the corresponding prediction error.
[0052] In a second aspect, the present application proposes a microgrid economic dispatching system, comprising:
[0053] An acquisition module is used to acquire the operating characteristic parameters of the distributed energy of the microgrid and the comprehensive operating cost parameters of the microgrid to obtain a parameter combination;
[0054] A scheduling module is used to input the parameter combination into the economic operation model to obtain a scheduling result with the lowest comprehensive operation cost and the maximum information gain;
[0055] The economic operation model includes a cost-sensitive reinforcement learning algorithm and a decision tree algorithm for rejection cost optimization;
[0056] The operation method of the economic operation model includes:
[0057] Construct a mathematical model associated with the operating characteristics of distributed energy in the microgrid, pre-process the unbalanced data of the equipment parameters, load parameters and natural condition parameters of the mathematical model, and obtain pre-processed data;
[0058] Inputting the preprocessed data into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, which is recorded as a first scheduling classification result;
[0059] The first scheduling classification result is input into the decision tree to obtain the second scheduling classification result, which is the scheduling result with the lowest comprehensive operating cost and the maximum information gain.
[0060] In a third aspect, the present application provides an electronic device, comprising:
[0061] Memory for storing computer programs;
[0062] A processor is used to implement the steps of the above-mentioned microgrid economic dispatch method when executing the computer program.
[0063] In a fourth aspect, the present application proposes a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned microgrid economic dispatching method are implemented.
[0064] Compared with the prior art, this application has the following beneficial effects:
[0065] The present application proposes a microgrid economic dispatch method, which obtains the dispatch result with the lowest comprehensive operation cost and the maximum information gain by inputting the microgrid distributed energy operation characteristic parameters and the microgrid comprehensive operation cost parameters into the economic operation model. The economic operation model proposed in the present application includes a cost-sensitive reinforcement learning algorithm and a decision tree algorithm optimized by rejection cost, and establishes a decision tree algorithm optimized by cost-sensitive learning. The cost function of the node can be used as the standard for selecting the split attribute, and a decision tree with both misclassification cost and test cost can be constructed to improve the classification accuracy and effectively avoid the overfitting phenomenon of the decision tree. In summary, the dispatch method of the present application has a simple operation process, is easy for engineering personnel to learn and use, has good versatility, can be widely used in the planning of microgrid economic operation plans in different application scenarios, and has excellent market promotion and application value.
[0066] The present application also proposes a microgrid economic dispatching system, an electronic device and a computer-readable storage medium, which have all the advantages of the above-mentioned microgrid economic dispatching method. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0068] Figure 1 This is a schematic diagram of the first process of the microgrid economic dispatch method of this application;
[0069] Figure 2 A flowchart of an operation method of the economic operation model of this application;
[0070] Figure 3 It is a schematic diagram of microgrid structure and energy flow process;
[0071] Figure 4 This is a flowchart of the cost-sensitive decision tree algorithm;
[0072] Figure 5 A schematic diagram of the construction of a proton conducting fuel cell;
[0073] Figure 6 A connection diagram of the microgrid economic dispatching system of this application;
[0074] Figure 7 This is a schematic diagram of the binary confusion matrix. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0076] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0077] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0078] In the description of the embodiments of the present application, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invented product is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0079] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0080] In the description of the embodiments of the present application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0081] A microgrid is a small power generation and distribution system consisting of distributed power sources, energy storage devices, energy conversion devices, loads, monitoring and protection devices, etc. With the advancement of innovation in the power market and the increasing demand for versatility among users, participating in demand-side response is an important means to achieve coordinated operation of "source-grid-load-storage". However, with the continuous expansion of the scale of renewable energy systems, problems such as insufficient peak-reduction capacity of the power grid and limited unit output have become increasingly prominent. How to further coordinate random factors, the internal micro-source and energy storage scheduling of microgrids are issues worthy of attention. Strengthening the use and price management of various energy loads on the demand side can not only improve the matching degree of multi-energy supply and demand, but also encourage users to change their energy consumption habits, which is conducive to the energy-saving, efficient and intelligent development of microgrids.
[0082] In view of the technical problem that the existing microgrid optimal economic method does not comprehensively consider different types of loads and their characteristics and cannot meet the mutual improvement of supply and demand, this application proposes a microgrid economic dispatching method and related devices.
[0083] like Figure 1 As shown, it is a first flow chart of the microgrid economic dispatching method of the present application, which may include:
[0084] S101, obtaining microgrid distributed energy operation characteristic parameters and microgrid comprehensive operation cost parameters to obtain a parameter combination.
[0085] In practical applications, the selection of specific microgrid distributed energy operation characteristic parameters and microgrid comprehensive operation cost parameters can be adjusted and selected according to actual needs.
[0086] S102, inputting the parameter combination into the economic operation model to obtain a scheduling result with the lowest comprehensive operation cost and the largest information gain.
[0087] Among them, the economic operation model includes cost-sensitive reinforcement learning algorithm and decision tree algorithm for rejection cost optimization;
[0088] The operation method of the economic operation model includes:
[0089] Construct a mathematical model associated with the operating characteristics of distributed energy in the microgrid, pre-process the unbalanced data of the equipment parameters, load parameters and natural condition parameters of the mathematical model, and obtain pre-processed data;
[0090] The preprocessed data is input into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, which is recorded as the first scheduling classification result;
[0091] The first scheduling classification result is input into the decision tree to obtain the second scheduling classification result, which is the scheduling result with the lowest comprehensive operating cost and the maximum information gain.
[0092] It should be noted that the cost-sensitive reinforcement learning algorithm for rejection cost optimization is a reinforcement learning algorithm that takes into account classification errors and rejection recognition (rejection) costs. This algorithm aims to improve the performance of the classifier by optimizing the rejection cost, and is particularly suitable for application scenarios where misclassification may have serious consequences. The decision tree algorithm is a commonly used supervised learning algorithm, which is mainly used for classification and regression tasks, and predicts and makes decisions on data through a tree structure. Among them, the decision tree is a tree structure, in which each internal node represents a judgment condition on an attribute, each branch represents the output of a judgment result, and each leaf node represents a classification result. The root node contains the entire set of samples, and the internal nodes represent a test condition on a feature attribute. The branch represents the result of a test condition. The leaf node represents a category label or a specific value (in the regression tree). Purity indicates the degree of singleness of the data category in the node. The higher the purity, the better the classification effect.
[0093] like Figure 2 As shown, it is a schematic diagram of an operation method of the economic operation model of this application, which may include:
[0094] S201, analyzing the operating characteristics of the distributed energy in the microgrid and constructing a mathematical model, and preprocessing the unbalanced data of the equipment parameters, load parameters and natural condition parameters (wind speed, temperature, etc.).
[0095] (1) Establish a microgrid system model, microgrid structure and energy flow process such as Figure 3 The control switch between the microgrid and the grid is closed, and the load demand is fully supplied by the system.
[0096] The primary task of the microgrid system is to maintain real-time energy balance and ensure the stability of the operation process. When the energy supply is insufficient or excessive, the load can be cut off or part of the energy can be discarded through appropriate controllable energy storage to maintain the real-time balance of system energy supply and demand. Therefore, the demand response cost needs to be considered in the island mode. Traditional controllable loads only consider electrical loads. The types of microgrid imbalance data that need to be considered are divided into input and output. The energy input of the microgrid system includes wind energy, geothermal energy, solar energy and natural gas, and the energy output includes three types of electricity, cooling energy and thermal energy.
[0097] Wind power output (PWT) is mainly determined by wind speed and utilization rate, which can be calculated as:
[0098]
[0099] In the formula, P WT (t) is the wind power output power in period t, ρ is the current air density, A is the rotor swept area, v(t) is the wind speed in period t, C p The power coefficient is in the range of 0.32-0.45, N b is the gearbox bearing efficiency, N g is the generator efficiency.
[0100] The output power of photovoltaic panels varies with the external temperature and light intensity, and is obtained by using the power value of standard test conditions as a reference. The expression of output power is:
[0101]
[0102] Where P pv (t) is the output power of the photovoltaic cell during period t, I pv is the light intensity received by the photovoltaic panel during period t, P STC and I STC are the light output power and current under standard test conditions, k is the power coefficient at a specific temperature, T e (t) is the temperature during time period t, Tref is the reference temperature value during period t.
[0103] The mathematical model of the micro gas turbine's fuel consumption and natural gas consumption is expressed as
[0104]
[0105] Where U MT (t) is the fuel consumption of the micro gas turbine during period t, P MT (t) is the output power of the micro gas turbine during period t, η MT (t) is the output efficiency of the micro gas turbine during period t, L NG is the natural gas with calorific value lower than the preset requirement, and Δt is the unit scheduling time.
[0106] (2) The cogeneration system can organically combine heating, cooling and power supply to achieve cascaded energy utilization, which helps to reduce pollutant gas emissions and improve energy utilization. The coupling equipment of the cogeneration system uses waste heat and gas boilers (GB). The recovery device and absorption refrigerator recover the waste heat gas discharged by the micro-turbine; the thermoelectric coupling equipment is a ground source heat pump (GSHP). Cooling and heating can be achieved under the drive of electric energy; the energy storage unit includes electric energy storage, cooling energy storage and thermal energy storage. The relationship between the cooling and heating power and the output power of the cogeneration system is:
[0107]
[0108]
[0109] T CMT (t) = η rec R MTC T MT (t) (7)
[0110] T HMT (t) = η rec R MTH T MT (t) (8)
[0111] Where T MT (t) is the total output power of the cogeneration system during period t, η L is the heat loss coefficient, T CMT (t) is the cooling power of the cogeneration system during period t, η rec is the gas flow coefficient, R MTC is the refrigeration coefficient of the absorption chiller and waste heat recovery unit, η OMT is the heat rejection of the micro-turbine, T HMT (t) is the thermal power of the cogeneration system during period t, R MTHis the heating coefficient of the absorption chiller and waste heat recovery unit.
[0112] like Figure 5 As shown, to generate electricity using methane in natural gas as fuel, it is first converted into hydrogen through processes such as catalytic hydrogen production and impurity removal. The produced hydrogen then enters the anode through the fuel port, where it undergoes an oxidation reaction to ionize hydrogen ions.
[0113] The energy efficiency of fuel cells is typically between 40% and 60%. However, if waste heat is captured in a combined heat and power scheme, the efficiency can be increased to 85%, which is higher than some other power generation systems. Fuel cell efficiency and output power can be expressed as:
[0114] η FC =0.6744(P FC / I FC ) (9)
[0115] Where FC is the fuel cell, η FC is the fuel cell efficiency, P FC is the fuel cell power (W), I FC is the current of the fuel cell (A).
[0116] (3) The energy in the system is collected and distributed through three energy storage collectors, coolers, and collectors, and then transmitted to the computer dispatching system to achieve the management and control of various energy sources. The energy storage system meets the energy charging and discharging constraints, energy storage capacity constraints and other conditions during operation, and has a mathematical model with relatively similar operating characteristics can be expressed as:
[0117]
[0118]
[0119] Where P B (t) is the power of the energy storage unit during period t, -P B,ch (t) is the charging power of the energy storage unit during period t, +P B,dis (t) is the discharge power of the energy storage unit during period t.
[0120] (4) From the above analysis, it can be concluded that the types of microgrid imbalance data that need to be considered are divided into input and output. The energy input of the microgrid system usually includes wind energy, geothermal energy, solar energy and natural gas, and the energy output usually includes three types: electrical energy, cooling energy and thermal energy.
[0121] S202, introduce the rejection cost optimization cost-sensitive reinforcement learning algorithm, after inputting the unbalanced data, give a larger misclassification cost to the minority classes in it, and classify them with the goal of obtaining the maximum information gain.
[0122] (1) In cost-sensitive learning, for a microgrid parameter classification problem, <x i ,y i > represents the input system parameter sample, x i Represents sample attributes, y i ∈{1,2,…,N} represents the class label, P(j|x) is the posterior probability of sample x, C ij It represents the cost of misclassifying the i-th class sample into the j-th class. R(x,i) represents the misclassification cost of classifying the sample x into class i, which can be calculated by formula (12):
[0123]
[0124] Through calculation, the category with the smallest R(x,i) is selected as the final classification category:
[0125]
[0126] For the classification problem of balanced data, it is equivalent to setting the cost of misclassification of different categories to 1. The classification cost at this time becomes:
[0127]
[0128] This application uses the rejection cost optimization cost-sensitive reinforcement learning algorithm:
[0129] Cost-sensitive learning (CSL) can make up for the one-sidedness of classifiers that only focus on improving classification accuracy. Its rationality lies in seeking the minimum overall cost by introducing cost sensitivity, rather than simply the highest accuracy. The classification cost of cost-sensitive learning (CSL) can be mainly divided into three types: misclassification cost, test cost and rejection cost. Among them, rejection cost has a better effect on precision optimization. When the probability of a sample belonging to multiple categories is very small, the probability of sample misclassification will increase. At this time, refusing to identify the sample is an effective way to reduce misclassification.
[0130] When classifying, a threshold δ is set. If the probability difference between samples belonging to multiple categories is less than this threshold, the sample is rejected for classification. For any given sample t, the following expression is satisfied:
[0131] P(s|t)>max{P(i|t)} (15)
[0132] where i∈[c1,…c n ] and i≠s. Define the behavior function:
[0133] f(t)=P(s∣t)-max{P(i∣t)},i∈[c1,…c n ],i≠s (16)
[0134] If f(t)>δ, the sample is classified normally; if f(t)<δ, a rejection strategy is adopted and the sample is not classified.
[0135] like Figure 7 , is a schematic diagram of the binary confusion matrix. Taking the binary classification problem as an example, for the sample <x i ,y i >, the final classification result is shown in formula (17):
[0136]
[0137] y in formula (17) opt Represents the final class label of the sample, n means that the sample is divided into n categories, p means that the sample is divided into p categories, and 0 means that the sample is not classified.
[0138] For samples <x i ,y i >, given a mixed cost matrix update is:
[0139] C ij ={C ij (p,n),C ij (n,p),C ij (0,n),C ij (0,p)} (18)
[0140] Among them C ij (0,n) and C ij (0,p) represents the rejection cost. The final new class label calculation formula is:
[0141] y opt =arg min{R(i|t)}=arg min{∑P(j|x)·C(i,j)},i,j∈{0,n,p} (19)
[0142] Use formula (19) instead of formula (13) to complete the classification.
[0143] (2) Using array x i represents the i-th group of known conditions, y i It represents the corresponding maximum information gain (Information Gain, IG), with the maximum information gain feature X as the correct classification, represented by a classification array, and using 1 and 0 to represent true and false respectively.
[0144] S203, to increase accuracy, embed the cost-sensitive idea into the decision tree algorithm and perform classification.
[0145] like Figure 4The figure shows the flow chart of the cost-sensitive decision tree algorithm. After the cost-sensitive function classification optimization, the decision tree is set, assuming that the sample t distribution is P(s|t)>max{P(i|t)}, and its most critical parameter entropy is defined as:
[0146]
[0147] The larger the entropy H(X), the worse the classification effect. In order to obtain the minimum H(X), both information gain and rejection cost are considered. The information gain is the difference between the entropy of set t and the conditional entropy H(t|X) of t under the condition of given feature X, which can be calculated according to formula (21):
[0148] g(t,X)=H(t)-H(t|X) (21)
[0149] Information gain expresses the specificity of sample data after classification, and is used as an indicator to select the current optimal economic operation characteristics. Combining the classification calculation formula updated by rejection cost, as well as the optimal economic operation objective function and constraint function, new classification conditions can be obtained.
[0150] The economic operation model is constructed in combination with the mathematical model of the microgrid to obtain the comprehensive operation cost and constraint function, and combined with the corresponding parts in the cost-sensitive decision tree to complete the construction of the microgrid economic dispatch method.
[0151] (1) The microgrid system model and energy flow process constructed according to the architecture analyzed by the energy storage model. Considering the time series expressions of the electric, cold and hot loads after controllable energy storage in the microgrid system, they are as follows:
[0152]
[0153] Among them, P load (t), Q c (t) and Q h (t) are electric load, cooling load and heating load respectively, * represents the corresponding parameter after t cycle; V p,ch (t), V C,ch (t) and V H,ch (t) are the state variables of electricity, cooling and heat energy shortage respectively; P p,ch (t), Q C,ch (t) and Q H,ch (t) are the power shortage rates of electricity, cooling and heating energy in time period t; V P,dis (t), V C,dis (t), V H,dis (t) is the state variable of excess energy of electricity, cold and heat; P P,dis (t), Q C,dis (t), Q H,dis(t) is the discharge power of electric refrigeration and thermal energy.
[0154] (2) The comprehensive cost function of a microgrid system usually includes unit power generation cost (unit fuel cost, operation and maintenance cost, unit startup cost), demand response cost, and cooling (heating) benefits of the cogeneration system.
[0155] The comprehensive operating cost function of the system is:
[0156]
[0157] in,
[0158]
[0159] C CH (t) = K c [Q c (t)-Q C,ch (t)]+K h [Q he (t)-Q H,ch (t)] (27)
[0160] In the formula, F G is the comprehensive operating cost of the system; C F is the fuel cost, C D (t) is the demand cost; C M is the maintenance cost, C CH (t) is the sum of the cooling (heating) profits of the cogeneration system in each period t. K ps , K cs , K hs are the unit power shortage loss costs corresponding to electric energy, cold energy and heat energy respectively, P P,ch (t) is the power shortage rate in period t, K pe , K ce , K he are the unit discharge costs corresponding to electric energy, cold energy, and heat energy, respectively, P P,dis (t) is, Q C,ch (t) is the cooling power shortage rate during period t, Q C,dis (t) is the electric cooling discharge power in period t, Q H,ch (t) is the thermal power shortage rate during period t, Q H,dis (t) is the thermal energy discharge power in period t, K c is the unit cooling profit of the combined heat and power system in each cycle t, Q c (t) is the cooling load in period t, K h is the unit heat profit of the combined cooling, heating and power system in each cycle t, Q h (t) is the heat load during period t.
[0161] (3) During the operation of the microgrid, energy balance constraints, controllable unit constraints, energy storage device constraints and other conditions must meet the requirements. When the load fluctuates within a certain range, the energy supply can be guaranteed to meet the requirements. In actual operation, the probability of certain extreme situations occurring is relatively low.
[0162] If all possible situations are met, the operating cost of the system will be very high. Therefore, by setting an appropriate utilization rate, both operational safety and economy can be taken into account. Assuming that the prediction errors of wind power, photovoltaic power, electricity, cooling and heat follow a normal distribution, the microgrid probability constraint is expressed as:
[0163]
[0164] Among them, P i CG (t) is the conventional generator power during period t, is the power of the renewable generator during period t, P B,dis (t) is the discharge power of the battery energy storage unit during period t, P B,ch (t) is the charge and discharge power of the BS unit during the period t, P P,dis (t) is the electric energy discharge power in period t, P HP (t) is the total power of combined cooling, heating and power supply in period t, P load (t) is the load power in period t, M is the total number of renewable generators, Q CMT (t) is the gas turbine cooling load during period t, Q CPH (t) is the gas turbine cooling load during period t, Q IS,dis (t) is the discharge power of the stored cold energy in period t, Q IS,ch (t) is the power shortage of the stored cold energy in period t, Q C,dis (t) is the electric cooling discharge power in period t, Q c (t) is the cooling load during period t, Q HMT (t) is the heat load of the gas turbine during period t, Q TS,dis (t) is the discharge power of the stored thermal energy in period t, Q TS,ch (t) is the power shortage of the stored thermal energy in period t, Q h (t) is the heat load during period t, Z α (t), Z β , Zγ represent the normal distribution of the corresponding prediction error.
[0165] By combining formulas (21), (25) and (28-30), that is, combining the comprehensive operating cost and constraint function with the information gain of the cost-sensitive decision tree in S203, the optimal economic operation plan of the microgrid of this application is obtained.
[0166] In practical applications, the economic operation optimization model repeats the above steps to obtain a new comprehensive operating cost minF Gi , assuming the operating cost at the optimal economic operation is mF i ,but:
[0167]
[0168] The confusion matrix is a specific table layout in which each row represents the actual category and each column represents the predicted category. Each cell of the matrix contains the number of samples under the actual category and the predicted category. The four basic components of the confusion matrix are: True Positives (TP), True Negatives (TN), False Positives (FP), and False Negatives (FN). The actual schematic diagram is as follows Figure 5 As shown. TP means that the latest predicted cost is the same as the actual minimum cost, that is, mF i =mF i-1 , the solution with the largest TP is the optimal economic operation method required.
[0169] The basic idea of cost sensitivity is to change the internal structure of the classifier by introducing a cost-sensitive factor to minimize the misclassification cost, while ensemble learning integrates several base classifiers and obtains better model performance by combining the classification results of multiple classifiers. The traditional classification algorithm is based on the assumption that the misclassification cost is equal, and takes the highest overall classification accuracy as the model goal. It ignores the particularity of minority class samples in imbalanced data and has almost no recognition ability for them. Even if the overall classification accuracy is high, the classification accuracy of distressed enterprises is very low. In practical applications, the poor economic status of microgrid operation will have a more serious impact on society, so it is necessary to focus on the model's recognition ability of minority class samples. The principle of using cost-sensitive learning to deal with data imbalance problems is to give the minority class a larger misclassification cost, the majority class a smaller misclassification cost, and take the lowest overall misclassification cost as the model goal, so that the model focuses on minority class samples in order to reduce the overall misclassification cost during the construction process, thereby effectively improving the learning bias problem of traditional models.
[0170] The scheduling method provided in this application uses the energy storage system architecture for mathematical modeling, analyzes the optimization model from the perspectives of energy supply and demand, and explores the feasibility of improving the economic operation of the micro-energy system. The cost-sensitive decision tree algorithm proposed in this application optimizes economic scheduling, first focusing on the basic structure of the microgrid, by analyzing the main sources of economic consumption and the mathematical models of the devices, and pre-processing the unbalanced data. Then, these unbalanced data are input into the pre-built cost-sensitive learning model, and the decision tree algorithm is introduced. In this process, the cost function is used to select the splitting attributes of the decision tree to enhance the accuracy of classification. Subsequently, the optimal economic objective function and conditional constraints are updated in combination with the initially constructed microgrid mathematical model and the actual consumption data. Finally, the optimal economic operation plan is obtained by comparison with other schemes.
[0171] Based on the above microgrid economic dispatch method, Figure 6 As shown, the present application also proposes a microgrid economic dispatch system, which may include:
[0172] An acquisition module is used to acquire the operating characteristic parameters of the distributed energy of the microgrid and the comprehensive operating cost parameters of the microgrid to obtain a parameter combination;
[0173] A scheduling module is used to input the parameter combination into the economic operation model to obtain a scheduling result with the lowest comprehensive operation cost and the maximum information gain;
[0174] The economic operation model includes a cost-sensitive reinforcement learning algorithm and a decision tree algorithm for rejection cost optimization;
[0175] The operation method of the economic operation model includes:
[0176] Construct a mathematical model associated with the operating characteristics of distributed energy in the microgrid, pre-process the unbalanced data of the equipment parameters, load parameters and natural condition parameters of the mathematical model, and obtain pre-processed data;
[0177] Inputting the preprocessed data into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, which is recorded as a first scheduling classification result;
[0178] The first scheduling classification result is input into the decision tree to obtain the second scheduling classification result, which is the scheduling result with the lowest comprehensive operating cost and the maximum information gain.
[0179] It should be noted that in other embodiments of the microgrid economic dispatching system of the present application, the specific functions in each module can also adopt the embodiments of the aforementioned microgrid economic dispatching method, which will not be repeated here.
[0180] It should be noted that in several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of each module is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another device, or some features can be ignored or not executed. The module described as a separate component may or may not be physically separated. The component displayed as a module may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0181] In addition, each module in each embodiment of the present invention may be integrated into a processing unit, each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0182] An electronic device provided in an embodiment of the present application includes a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps of the microgrid economic dispatching method described in any of the above embodiments are implemented.
[0183] Another electronic device provided in the embodiment of the present application may also include: an input port connected to the processor, used to transmit multimodal data collected by an external acquisition device to the processor; and a display unit connected to the processor, used to display the processing results of the processor to the outside world; a communication module connected to the processor, used to realize communication between the electronic device and the outside world. The display unit can be a display panel, a laser scanning display, etc.; the communication mode adopted by the communication module includes but is not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.
[0184] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the microgrid economic dispatching method described in any of the above embodiments are implemented.
[0185] The computer-readable storage medium involved in the present application includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field.
[0186] For the description of the relevant parts of the microgrid economic dispatch, electronic device and computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in the distribution network operation optimization method based on optimization acceleration provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.
[0187] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A microgrid economic dispatching method, characterized in that: include: Obtain the microgrid distributed energy operation characteristic parameters and the microgrid comprehensive operation cost parameters to obtain a parameter combination; The parameter combination is input into the economic operation model to obtain a scheduling result with the lowest comprehensive operation cost and the maximum information gain; The economic operation model includes a cost-sensitive reinforcement learning algorithm and a decision tree algorithm for rejection cost optimization; The operation method of the economic operation model includes: Construct a mathematical model associated with the operating characteristics of distributed energy in the microgrid, pre-process the unbalanced data of the equipment parameters, load parameters and natural condition parameters of the mathematical model, and obtain pre-processed data; Inputting the preprocessed data into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, which is recorded as a first scheduling classification result; The first scheduling classification result is input into the decision tree to obtain the second scheduling classification result, which is the scheduling result with the lowest comprehensive operating cost and the maximum information gain.
2. The microgrid economic dispatching method according to claim 1, characterized in that: The mathematical model includes: Wind power output model, photovoltaic panel output power model, micro gas turbine fuel consumption and natural gas consumption model, cogeneration system cooling power, heating power and output power model, energy storage system model.
3. The microgrid economic dispatching method according to claim 2, characterized in that: The wind power output model comprises: in, for The wind power output during the period, is the current air density, is the rotor swept area, for The wind speed during the period, is the power coefficient, is the gearbox bearing efficiency, is the generator efficiency; The photovoltaic panel output power model includes: in, for The output power of the photovoltaic cell during the period, for The light intensity received by the photovoltaic panel during the period, and They are the light output power and current under standard test conditions, is the power coefficient at a specific temperature, for The temperature of the time period, for Reference temperature value for the time period; The micro gas turbine fuel consumption and natural gas consumption model includes: in, for The fuel consumption of micro gas turbine in the period, for The output power of the micro gas turbine during the period is for The output efficiency of the micro gas turbine during the period, For natural gas with calorific value lower than the preset requirement, Scheduling time for crews; The cooling power, heating power and output power models of the cogeneration system include: in, for The total output power of the combined heat and power system during the period, is the heat loss coefficient, for Cooling power of the combined heat and power system during the period, is the gas flow coefficient, is the refrigeration coefficient of the absorption chiller and waste heat recovery unit, For the heat removal of the micro turbine, for Thermal power of the combined heat and power system during the period, is the heating coefficient of the absorption chiller and waste heat recovery unit; The energy storage system model includes: in, for The power of the energy storage unit during the period, for The charging power of the energy storage unit during the time period, for The energy storage unit discharge power during the period.
4. The microgrid economic dispatching method according to claim 3, characterized in that: The preprocessed data is input into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, which is recorded as the first scheduling classification result, including: Calculate the misclassification cost: in, For sample Divided into The misclassification cost of the class, For sample The posterior probability of is the number of classification categories, To be the first Class samples are incorrectly classified as The cost of class time, choose The smallest category is used as the final classification category: in, is the first scheduling classification result, Indicates that the samples are divided into kind, Indicates that the samples are divided into Class, 0 means not to classify the sample.
5. The microgrid economic dispatching method according to claim 4, characterized in that: The objective function of the economic operation model includes: in, is the comprehensive operating cost of the system, For fuel costs, is the demand cost, For maintenance costs, For the combined heat and power system at each time The sum of cold and / or hot profits; in, , , The unit power shortage loss costs corresponding to electric energy, cold energy and heat energy are respectively: for The power shortage rate of the time period, , , are the unit discharge costs corresponding to electric energy, cold energy and thermal energy respectively, for The electric energy discharge power of the time period, for The cooling power shortage rate during the period, for The electric cooling discharge power of the time period, for Thermal power shortage rate during the period, for Thermal energy discharge power of the time period, is the unit cooling profit of the combined heating, cooling and power system in each cycle t, for Cooling load of the period, is the unit heat profit of the combined heating, cooling and power system in each cycle t, for Heat load for the time period.
6. The microgrid economic dispatching method according to claim 5, characterized in that: The constraints of the economic operation model include: in, for Conventional generator power for the period, for The power of renewable generators during the period, for The discharge power of the battery energy storage unit during the period, for The charging and discharging power of the BS unit during the period, for The electric energy discharge power of the time period, for Total power of combined cooling, heating and power supply during the period, for The load power of the time period, is the total number of renewable generators, for The gas turbine cooling load during the period, for The gas turbine cooling load during the period, for The discharge power of the stored cold energy in the period, for The power shortage of stored cold energy during the period, for The electric cooling discharge power of the time period, for Cooling load of the period, for The gas turbine heat load during the period, for The discharge power of the stored thermal energy in the time period, for The power shortage of stored thermal energy during the period, for Heat load during the period, , , They respectively represent the normal distribution obeyed by the corresponding prediction errors.
7. A microgrid economic dispatching system, characterized in that: include: An acquisition module is used to acquire the operating characteristic parameters of the distributed energy of the microgrid and the comprehensive operating cost parameters of the microgrid to obtain a parameter combination; A scheduling module is used to input the parameter combination into the economic operation model to obtain a scheduling result with the lowest comprehensive operation cost and the maximum information gain; The economic operation model includes a cost-sensitive reinforcement learning algorithm and a decision tree algorithm for rejection cost optimization; The operation method of the economic operation model includes: Construct a mathematical model associated with the operating characteristics of distributed energy in the microgrid, pre-process the unbalanced data of the equipment parameters, load parameters and natural condition parameters of the mathematical model, and obtain pre-processed data; Inputting the preprocessed data into a cost-sensitive reinforcement learning algorithm using rejection cost optimization to obtain a scheduling classification result with maximum information gain as the goal, recorded as a first scheduling classification result; The first scheduling classification result is input into the decision tree to obtain the second scheduling classification result, which is the scheduling result with the lowest comprehensive operating cost and the maximum information gain.
8. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the microgrid economic dispatch method as claimed in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the microgrid economic dispatch method according to any one of claims 1 to 6 are implemented.
