Power control method, device and system of micro-grid system and storage medium

By using large language models and power load prediction models in the microgrid system, combining historical and meteorological data to generate description text, predict power loads and formulate scheduling plans, the line transmission loss problem in the microgrid system during power surplus is solved, and the power is realized Balance and prediction accuracy.

CN119093502AActive Publication Date: 2024-12-06广州市哲明惠科技有限责任公司

Patent Information

Application Number
CN202411572535.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2024-12-06
Estimated Expiration
2044-11-06

AI Technical Summary

Technical Problem

When the power surplus is the microgrid system, the power waste problem is caused by line transmission loss.

Method used

By obtaining historical power load data, generating power load description text based on large language models and meteorological data, combining time series models and neural network models to predict power loads, and formulating a power scheduling plan to schedule the operation of power generation nodes to achieve power balance.

Benefits of technology

The line transmission loss caused by power surplus grid connection is avoided, the accuracy and reliability of power load prediction is improved, and the power balance is achieved, so that there is no need to grid connection and reduce power waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119093502A_ABST
    Figure CN119093502A_ABST
Patent Text Reader

Abstract

The invention discloses a power control method, device and system of a micro-grid system and a storage medium, and relates to the technical field of micro-grid systems, and the power control method of the micro-grid system comprises the steps: obtaining the power load data of the micro-grid system in a historical power generation period, and determining the power state of the micro-grid system according to the power load data; when the power state is a power surplus state, generating a power load description text based on the large language model, the power load data and the meteorological data of the historical power generation period; predicting a target power load prediction result of the microgrid system based on the power load prediction model and the power load description text; a power dispatching scheme is determined according to the target power load prediction result and the target meteorological data, and the corresponding power generation nodes are dispatched to operate based on the power dispatching scheme, so that a power balance state is achieved, power control can be carried out fundamentally, power balance is achieved, surplus power does not need to be connected to a grid, and power consumption is reduced. And electric power waste caused by line transmission loss is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of microgrid systems, and in particular to power control methods, devices, systems and storage media for microgrid systems. Background Art

[0002] A microgrid system, also known as a microgrid or microgrid, is a small power generation and distribution system that combines distributed power sources, energy storage devices, energy conversion devices, and user equipment. The distributed power sources include multiple different types of power generation nodes, such as wind power generation nodes, photovoltaic power generation nodes, fuel cells and other renewable energy power generation nodes, which provide the main power supply for the microgrid system. In related technologies, if there is a surplus of electricity in the microgrid system, the surplus electricity is connected to the grid at a low price and transmitted to the city power grid. However, due to line transmission losses during the process of connecting the surplus electricity to the grid, power is wasted. Summary of the invention

[0003] The main purpose of this application is to provide a power control method, device, system and storage medium for a microgrid system, aiming to solve the problem of power waste caused by line transmission loss during the process of surplus power grid connection.

[0004] To achieve the above objectives, the present application proposes a power control method for a microgrid system, the method comprising: Acquire power load data of the microgrid system in a historical power generation period, and determine the power state of the microgrid system according to the power load data; When the power state is a power surplus state, generating a power load description text based on a large language model, the power load data and the meteorological data of the historical power generation period; Based on the power load prediction model and the power load description text, predicting the target power load prediction result of the microgrid system; A power dispatching plan is determined according to the target power load forecast result and the target meteorological data, and the corresponding power generation nodes are dispatched to operate based on the power dispatching plan to achieve a power balance state.

[0005] In one embodiment, the power load data includes a load value, and generating a power load description text based on a large language model, the power load data, and the meteorological data of the historical power generation period includes: Inputting the load value and the meteorological data into the large language model, performing feature extraction on the load value and the meteorological data respectively, to obtain load value features and meteorological data features; Determine a target prompt template associated with the load value feature and the meteorological data feature according to similarities between the load value feature, the meteorological data feature and each preset prompt template; The load value feature and the meteorological data feature are embedded in the target prompt template to obtain the power load description text.

[0006] In one embodiment, the power load prediction model includes a time series model and a neural network model, and the step of predicting the target power load prediction result of the microgrid system based on the power load prediction model and the power load description text includes: Extracting features from the power load description text to obtain power load impact features of the microgrid system; Determine a first prediction result of the time series model based on the power load impact feature, and determine a second prediction result of the neural network model based on the power load impact feature; A target power load prediction result of the microgrid system is determined according to the first prediction result and the second prediction result.

[0007] In one embodiment, determining the target power load prediction result of the microgrid system according to the first prediction result and the second prediction result includes: Obtaining the weight of the time series model and the weight of the neural network model; The target power load prediction result of the microgrid system is determined based on the product of the first prediction result and the weight of the time series model, and based on the sum of the products of the second prediction result and the weight of the neural network model.

[0008] In one embodiment, before the step of obtaining the weight of the time series model and the weight of the neural network model, the step further includes: Obtain historical power load data samples; Dividing the historical power load data samples into a first training data set and a first test data set based on the training data length corresponding to the time series model, training an initial time series model based on the first training data set, and testing the initial time series model based on the first test data set to obtain a weight of the time series model; and The historical power load data samples are divided into a second training data set and a second test data set based on the training data length corresponding to the neural network model, an initial neural network model is trained based on the second training data set, and the initial neural network model is tested based on the second test data set to obtain the weight of the neural network model.

[0009] In one embodiment, the target power load forecast result includes a target net load, and determining a power dispatching scheme according to the target power load forecast result and target meteorological data, and dispatching the corresponding power generation node to operate based on the power dispatching scheme includes: Determine the power dispatching plan according to the target meteorological data, the target net load, and the corresponding relationship between the preset meteorological data, the preset load value and the preset dispatching plan; According to the power dispatching plan, the power generation of each power generation node is determined, and the power generation power of each power generation node is determined according to the power generation of each power generation node; Control each of the power generation nodes to operate according to the corresponding power generation power.

[0010] In one embodiment, the microgrid system includes a plurality of power generation nodes and a plurality of power consumption nodes, and the step of obtaining power load data of the microgrid system in a historical power generation period and determining the power state of the microgrid system according to the power load data includes: Determine the total power generation according to the power generation of each power generation node of the microgrid system during the historical power generation period, and determine the total power consumption according to the power consumption of each power consumption node of the microgrid system during the historical power generation period; Determine the net load of the microgrid system in the historical power generation period according to the total power consumption and the total power generation, wherein the power load data also includes the net load; When the net load is less than a preset value, the power state is determined to be a power surplus state.

[0011] In addition, to achieve the above-mentioned purpose, the present application also proposes a power control device for a microgrid system, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the power control method for the microgrid system as described above.

[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a microgrid system, which includes multiple power generation nodes, multiple power consumption nodes and a power control device of the microgrid system, and each of the power generation nodes and each of the power consumption nodes are connected to the power control device of the microgrid system.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the power control method of the microgrid system as described above are implemented.

[0014] Compared with the related art, the present application obtains the power load data of the microgrid system in the historical power generation period, determines the power state of the microgrid system according to the power load data; when the power state is a power surplus state, generates a power load description text based on the large language model, the power load data and the meteorological data of the historical power generation period; predicts the target power load prediction result of the microgrid system based on the power load prediction model and the power load description text; determines the power dispatching scheme according to the target power load prediction result and the target meteorological data, and dispatches the corresponding power generation node to operate based on the power dispatching scheme to achieve a power balance state. Since it is possible to predict the future power load and formulate a power dispatching scheme when a power surplus is detected, power control is performed from the root by executing the power dispatching scheme to achieve power balance, so that there is no need to connect the surplus power to the grid, and avoid power waste caused by line transmission loss. And by combining the power load description text of the large language model with the power load prediction model, the respective advantages can be fully utilized to improve the accuracy and reliability of the target power load prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0017] Figure 1 A schematic diagram of a flow chart of a first embodiment of a power control method for a microgrid system of the present application; Figure 2 A flow chart of a second embodiment of a power control method for a microgrid system of the present application; Figure 3 A flowchart of a third embodiment of a power control method for a microgrid system of the present application; Figure 4 A flowchart of a fourth embodiment of a power control method for a microgrid system of the present application; Figure 5 A flowchart of a fifth embodiment of a power control method for a microgrid system of the present application; Figure 6 This is a schematic diagram of the structure of the power control equipment of the microgrid system of this application.

[0018] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0019] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0020] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0021] In the related art, if there is surplus electricity in the microgrid system, the surplus electricity is connected to the grid and transmitted to the city power at a low price. However, due to line transmission loss during the process of connecting the surplus electricity to the grid, electricity is wasted.

[0022] In order to solve the above problems, the power load data of the microgrid system in the historical power generation period is obtained, and the power state of the microgrid system is determined according to the power load data; when the power state is a power surplus state, a power load description text is generated based on a large language model, the power load data and the meteorological data of the historical power generation period; based on the power load prediction model and the power load description text, a target power load prediction result of the microgrid system is predicted; according to the target power load prediction result and the target meteorological data, a power dispatching plan is determined, and the corresponding power generation nodes are dispatched to operate based on the power dispatching plan to achieve a power balance state.

[0023] Since it is possible to predict future power loads and formulate power dispatching plans when power surplus is detected, power control is performed from the source by executing the power dispatching plan to achieve power balance, so that there is no need to connect the surplus power to the grid, and power waste caused by line transmission loss is avoided. In order to improve the accuracy of the target power load prediction results, a power load description text is first generated based on the large language model, the power load data and the meteorological data of the historical power generation period, and then the target power load prediction results of the microgrid system are predicted based on the power load prediction model and the power load description text. By combining the power load description text of the large language model with the power load prediction model, their respective advantages can be fully utilized to improve the accuracy and reliability of the target power load prediction results.

[0024] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a power control device of a microgrid system, etc. The power control device of a microgrid system is taken as an example to illustrate this embodiment and the following embodiments.

[0025] Based on this, the present application embodiment provides a power control method for a microgrid system, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of a power control method for a microgrid system of the present application. In this embodiment, the power control method for a microgrid system includes steps S10 to S40: Step S10, acquiring power load data of the microgrid system in a historical power generation period, and determining the power state of the microgrid system according to the power load data; It should be noted that power load data refers to information related to the load of power nodes or power consumption nodes, which reflects the power demand of a specific user at a certain moment or over a period of time. Specifically, power load data includes but is not limited to: active power, reactive power, power factor, voltage, current, load curve, peak load and load rate, etc.

[0026] The above-mentioned active power represents the actual power demand for work, and is one of the core indicators in the power load data. It is usually measured in kilowatts (kW) or megawatts (MW), reflecting the active power consumed by the electrical equipment. Reactive power is related to the electromagnetic field and parameters such as capacitance and inductance of the microgrid system. Although it does not directly work, it has an important impact on the stability and voltage regulation of the system. It is usually measured in kilovars (kVar) or megavars (MVar). The power factor is the ratio of active power to apparent power. It is an important parameter for evaluating the properties of the load (such as resistance, inductance or capacitance). Improving the power factor helps to reduce reactive power losses in the power grid and improve energy efficiency. Voltage and current are the voltage and current levels at the load point. They are very important for evaluating the operating status and load characteristics of the system. Their changes can reflect the power supply quality of the power grid and the operating status of the electrical equipment. The load curve represents the curve of the load change over time during the historical power generation period (such as one day, one week or one month). The load curve can help understand the volatility and periodicity of the load and provide a basis for the scheduling and planning of the microgrid system. Peak load is the maximum load value that occurs in a specific time period. It is an important reference indicator in the design and operation of microgrid systems. The size of peak load determines the maximum power supply capacity that the microgrid system needs to meet. Load rate represents the ratio of average load to peak load. It is used to evaluate the stability or volatility of load. The higher the load rate, the more stable the load; otherwise, it means that the load fluctuates greatly.

[0027] In a feasible implementation, the method of obtaining the power load data of the microgrid system during the historical power generation period includes: usually collecting through measuring equipment such as smart meters and sensors installed at key nodes of the power grid, and transmitting to the central control system or data center for analysis and processing. By obtaining the above data, a strong guarantee is provided for the safe, stable and efficient operation of the microgrid system.

[0028] It should be noted that the power status includes power surplus status, power balance status and power shortage status, etc.

[0029] In a feasible implementation, the total power generation is determined according to the power generation of each power generation node of the microgrid system during the historical power generation period, and the total power consumption is determined according to the power consumption of each power consumption node of the microgrid system during the historical power generation period; when the total power generation is greater than the total power consumption, the microgrid system is in a power surplus state, and the surplus power can be used for energy storage, output to an external power grid, or used in other forms. When the total power generation is equal to the total power consumption, the system is in a power balance state. When the total power generation is less than the total power consumption, the system is in a power shortage state. At this time, it is necessary to purchase electricity from the external power grid, call the energy storage system, or take other measures to meet the power demand.

[0030] However, if the microgrid system has a surplus of electricity, the surplus electricity is connected to the grid and transmitted to the mains at a low price. However, due to the line transmission loss in the process of connecting the surplus electricity to the grid, electricity is wasted. Therefore, step S20 is executed to generate a power load description text based on the large language model, the power load data and the meteorological data of the historical power generation period when the power state is a power surplus state; When the power state is in a power surplus state, in order to avoid the problem of line transmission loss in the process of connecting the surplus power to the mains at a low price, resulting in power waste. When the power surplus is detected, the application can predict the future power load and formulate a power dispatching plan. By executing the power dispatching plan, power control is carried out from the source to achieve power balance, so that there is no need to connect the surplus power to the grid, avoiding power waste caused by line transmission loss.

[0031] In order to improve the accuracy and reliability of the target power load forecast results and make the acquisition of the target power load forecast results more intelligent, this application combines the power load description text of the large language model with the power load forecast model to make full use of their respective advantages and improve the accuracy and reliability of the target power load forecast results.

[0032] It should be noted that the large language model is used to generate power load description text, which can be input into the subsequent power load forecasting model as an additional feature to facilitate the understanding of the power load forecasting model. For example, the large language model can generate descriptions about weather conditions, power load, etc. These descriptions may be related to changes in power load and meteorological data during historical power generation periods. Subsequent analysis of these data can improve the accuracy of the forecast results.

[0033] It should be noted that in the process of using the large language model, some prompt information needs to be added to improve the accuracy of the power load description text.

[0034] In a feasible implementation, the corresponding prompt information, power load data, meteorological data, etc. can be input into the large language model together, and the power load description text can be generated by the large language model. For example, assuming that the power load data is "Current time: 2023-04-01 14:00, meteorological data: sunny, load value: 5000MW, an increase of 5% compared to the previous hour", the following input information can be designed: The description should include the meteorological data, load value, and load value change compared to the previous hour for the historical preset period. The output power load description text can be: The current power load data shows that at 14:00 on April 1, 2023, the weather was sunny and the power load value was 5000MW, an increase of 5% compared to the previous hour, showing a certain upward trend.

[0035] Step S30, predicting a target power load prediction result of the microgrid system based on the power load prediction model and the power load description text; After obtaining the power load description text, the power load description text can be input into the power load prediction model to obtain the target power load prediction result of the microgrid system.

[0036] It should be noted that the power load forecasting model is used to predict the future power load forecasting results based on the power load data in the historical power generation period. The power load forecasting model here can be a time series model, a deep learning model, a machine learning model, etc. The corresponding power load forecasting model can be selected according to actual needs.

[0037] In order to meet the power load forecasting in different scenarios, multiple different power load forecasting models can be set up at the same time to meet the power load forecasting needs in different scenarios. The more power load forecasting models are selected, the more applicable scenarios are. And by setting different power load forecasting models, it is possible to verify whether the target power load forecasting results output by a single forecasting model are accurate, thereby improving the accuracy of the power load forecasting results.

[0038] In a feasible implementation manner, when the power load forecasting models adopted are a time series model and a deep learning model, the power load description text can be input into the time series model to obtain the power load forecasting result of the time series model, and at the same time, the power load description text can be input into the deep learning model to obtain the power load forecasting result of the deep learning model. Finally, the target power load forecasting result of the microgrid system is jointly determined based on the power load forecasting result of the time series model and the power load forecasting result of the deep learning model.

[0039] Step S40, determining a power dispatching plan according to the target power load forecast result and the target meteorological data, and dispatching the corresponding power generation nodes to operate based on the power dispatching plan to achieve a power balance state.

[0040] After determining the power generation of each power generation node, determine the power generation power required for each power generation node to reach the power generation, and control each power generation node to operate according to the corresponding power generation, so that when each power generation node operates according to the corresponding power generation, the microgrid system achieves a power balance state.

[0041] In this embodiment, since it is possible to predict future power loads and formulate a power dispatching plan when power surplus is detected, power control is performed from the source by executing the power dispatching plan to achieve power balance, so that there is no need to connect the surplus power to the grid, and power waste caused by line transmission loss is avoided. In order to improve the accuracy of the target power load prediction result, a power load description text is first generated based on the large language model, the power load data and the meteorological data of the historical power generation period, and then the target power load prediction result of the microgrid system is predicted based on the power load prediction model and the power load description text. By combining the power load description text of the large language model with the power load prediction model, their respective advantages can be fully utilized to improve the accuracy and reliability of the target power load prediction result.

[0042] Based on the above embodiment, in the second embodiment of the present application, refer to Figure 2 The power load data includes a load value, where the load value may be a net load. The step S20 of generating a power load description text based on a large language model, the power load data and the meteorological data of the historical power generation period includes steps S21 to S23: Step S21, inputting the load value and the meteorological data into the large language model, performing feature extraction on the load value and the meteorological data respectively, to obtain load value features and meteorological data features; In a feasible implementation, since the dimensions and ranges of load values ​​and meteorological data may be different, they need to be standardized or normalized so that all features are in the same numerical range, and then the preprocessed load values ​​and meteorological data are input into the large language model, which helps the large language model converge faster and improve performance. Check the missing values ​​in the data and take appropriate measures to fill them, such as using the mean, median, interpolation or model-based prediction. If the meteorological data contains categorical variables such as weather type, these categorical variables need to be converted into numerical features. Common methods include one-hot encoding or label encoding.

[0043] In a feasible implementation, after the preprocessed load values ​​and meteorological data are input into the large language model, the preprocessed load values ​​and meteorological data can be feature extracted through the Transformer structure of the large language model to obtain load value features and meteorological data features, such as the rate of change of the load, the moving average of the meteorological data, etc. These features may help the model better understand the relationship between the data.

[0044] Step S22, determining a target prompt template associated with the load value feature and the meteorological data feature according to the similarity between the load value feature, the meteorological data feature and each preset prompt template; It should be noted that multiple prompt templates can be pre-set and stored.

[0045] In a feasible implementation, the preset slot value characteristics of each slot corresponding to each preset prompt template can be obtained; the similarity between the load value characteristics, the meteorological data characteristics and the preset slot value characteristics of each preset prompt template is determined, and the preset prompt template corresponding to the maximum similarity is determined as the target prompt template.

[0046] Step S23, embedding the load value feature and the meteorological data feature into the target prompt template to obtain the power load description text.

[0047] The load value feature and the meteorological data feature are used to update the slot value of the slot corresponding to the target prompt template to obtain the power load description text.

[0048] For example, when given the input of load value, meteorological data and prompt information, the large language model first analyzes the input to understand its meaning and context. The model extracts features from the input text, which may include vocabulary, part of speech, syntactic structure, semantic relations, etc. Probabilistic prediction: Based on the extracted features and the knowledge learned by the model, the large language model assigns a probability to each possible output word or sentence. This probability reflects the possibility of the word or sentence appearing in the current context. The model selects the most appropriate word or sentence to generate the description text based on the probability distribution. This process may be word-by-word generation, such as an autoregressive text generation model, or it may generate the entire text at once, such as an autoencoding text generation model, to generate a power load description text.

[0049] In this embodiment, the load value and the meteorological data are processed by a large language model to obtain a power load description text. The large language model can generate descriptions of weather conditions, power load, etc. These descriptions may be related to changes in power load and meteorological data during historical power generation periods. Subsequent analysis of these data can improve the accuracy of the prediction results.

[0050] Based on the above embodiments, in the third embodiment of the present application, referring to Figure 3 The power load forecasting model includes a time series model and a neural network model. The time series model here can be one of an ARMA model, an ARIMA model, and a Holt-Winters model. The neural network model here can be one of a feedforward neural network model, a convolutional neural network model, and a recursive neural network model. Step S30 includes steps S31 to S33: Step S31, extracting features from the power load description text to obtain power load impact features of the microgrid system; It should be noted that keywords can be extracted from the power load description text, and the power load impact characteristics of the microgrid system can be constructed based on the extracted keywords. The power load impact characteristics can be meteorological characteristics, load characteristics, etc., and the load characteristics here can be peak load, load rate, load change, etc.

[0051] Step S32, determining a first prediction result of the time series model based on the power load impact feature, and determining a second prediction result of the neural network model based on the power load impact feature; It should be noted that the first prediction result is obtained by the time series model prediction, and the second prediction result is obtained by the neural network model prediction.

[0052] In a feasible implementation, determining the first prediction result of the time series model based on the power load impact characteristics includes: selecting a suitable time series model according to the characteristics of the data, the accuracy requirements of the prediction, and the limitations of computing resources, for example: the ARIMA model is suitable for short-term predictions, and the data is relatively stable. The LSTM model is good at dealing with long-term dependency problems and is suitable for power load predictions with complex time series characteristics. The power load impact characteristics are input into the time series model to obtain a first prediction result; after obtaining the first prediction result, the prediction result can be evaluated using appropriate evaluation indicators, such as mean square error, root mean square error, mean absolute percentage error, etc. At the same time, the prediction results can also be compared with the actual values, and the weights of the model can be adjusted to improve the prediction accuracy of the model.

[0053] Through the above steps, the first prediction result of the time series model based on the power load impact characteristics can be determined, and the second prediction result of the neural network model based on the power load impact characteristics can be determined at the same time. Predictions are made through different models to meet the needs of different scenarios.

[0054] Step S33: determining a target power load prediction result of the microgrid system according to the first prediction result and the second prediction result.

[0055] In a feasible implementation, when the power load prediction result of the time series model and the power load prediction result of the deep learning model are the same, any one of the power load prediction results is determined as the target power load prediction result. Alternatively, one of them is selected as the target power load prediction result according to the actual situation.

[0056] In another feasible implementation, the weight of the time series model and the weight of the neural network model can be obtained; the target power load prediction result of the microgrid system can be determined based on the product of the first prediction result and the weight of the time series model, and based on the sum of the product of the second prediction result and the weight of the neural network model.

[0057] Among them, each power load forecasting model has a corresponding weight, and the weight indicates the importance of the prediction result of the power load forecasting model to the target power load forecasting result. The power load forecasting model with more accurate prediction has a larger weight coefficient in the prediction stage. The weight coefficient corresponding to each power load forecasting model can be determined in the training stage, and can be determined based on the mean square error calculated based on the historical power load data. For example, the mean square error corresponding to each power load forecasting model is calculated using a test data set; the mean square error corresponding to each of the power load forecasting models is normalized to obtain the weight corresponding to each of the power load forecasting models.

[0058] In this embodiment, multiple different power load prediction models are set up simultaneously to perform predictions, so as to meet the power load prediction requirements in different scenarios.

[0059] Furthermore, before step S331, steps S110 to S130 are also included: Step S110, obtaining historical power load data samples; Step S120, dividing the historical power load data samples into a first training data set and a first test data set based on the training data length corresponding to the time series model, training an initial time series model based on the first training data set, and testing the initial time series model based on the first test data set to obtain the weight of the time series model; and Step S130, dividing the historical power load data samples into a second training data set and a second test data set based on the training data length corresponding to the neural network model, training the initial neural network model based on the second training data set, and testing the initial neural network model based on the second test data set to obtain the weight of the neural network model.

[0060] It should be noted that the training data lengths of the time series model and the neural network model are different, so the training data set and the test data set of the time series model and the neural network model are different. The time series model and the neural network model are trained separately.

[0061] It should be noted that during the training process, you can also set the number of training times, learning rate, etc.

[0062] In a feasible implementation, appropriate evaluation indicators can be used to evaluate the prediction results, such as mean square error, root mean square error, mean absolute percentage error, etc. The prediction accuracy of the model is analyzed by these indicators to determine the weight of each prediction model.

[0063] In another feasible implementation, the time series model and the neural network model may be jointly trained, and the bias and variance of a single model may be reduced by combining multiple models, thereby improving the overall prediction accuracy.

[0064] In this embodiment, the accuracy of each prediction model is improved by training different prediction models using different training data and test data.

[0065] Based on the third embodiment of the present application, in the fourth embodiment of the present application, refer to Figure 4 , the target power load prediction result includes the target net load, step S40 includes S41~S43: Step S41, determining the power dispatching scheme according to the target meteorological data, the target net load, and the corresponding relationship between the preset meteorological data, the preset load value and the preset dispatching scheme; The correspondence between meteorological data, preset load values ​​and preset dispatching schemes can be pre-constructed, and the corresponding power dispatching scheme can be determined based on the correspondence.

[0066] In a feasible implementation, based on the power load prediction model and the power load description text, the total power consumption and total power generation of the microgrid system in the future time period are predicted, and the target power load prediction result is determined according to the difference between the total power consumption and the total power generation in the future time period, that is, the target power load prediction result can be the target net load value.

[0067] Step S42, determining the power generation of each power generation node according to the power dispatching plan, and determining the power generation power of each power generation node according to the power generation of each power generation node; Step S43, controlling each of the power generation nodes to operate according to the corresponding power generation power.

[0068] The power dispatching plan includes but is not limited to the type of power generation nodes that need to be started, the number of power generation nodes, the power generation power of each power generation node, the power generation time of each power generation node, etc. Different meteorological data and load values ​​correspond to different power dispatching plans. The power generation of each power generation node can be obtained by analyzing the power dispatching plan.

[0069] After determining the power generation of each power generation node, determine the power generation power required for each power generation node to reach the power generation, and control each power generation node to operate according to the corresponding power generation, so that when each power generation node operates according to the corresponding power generation, the microgrid system achieves a power balance state.

[0070] Based on the above embodiments of the present application, in the fifth embodiment of the present application, refer to Figure 5 The microgrid system includes multiple power generation nodes and multiple power consumption nodes. The power generation nodes are responsible for generating electricity, and may include coal-fired power plants, nuclear power plants, wind turbines, solar panels, etc. Power consumption nodes are the final users of electricity, such as households, commercial facilities, and industrial users. These devices and facilities consume electricity to meet various needs. Since the power generation nodes and power consumption nodes each have important tasks and responsibilities in the microgrid system, they cooperate and work together to jointly ensure the stable operation and efficient energy utilization of the microgrid system, which can ensure the safety, reliability and economy of the microgrid system.

[0071] Specifically, step S10 includes S11 to S13: Step S11, determining the total power generation according to the power generation of each power generation node of the microgrid system in the historical power generation period, and determining the total power consumption according to the power consumption of each power consumption node of the microgrid system in the historical power generation period; It should be noted that the historical power generation period is a period of power generation time in the history of the microgrid system, such as 3 hours, 4 hours, etc., and this embodiment does not impose any limitation on this.

[0072] Acquisition of power generation: For solar and wind power generation, there is usually special monitoring equipment to record the power generation, and wind turbines and solar photovoltaic systems also have relevant real-time data.

[0073] Regarding the acquisition of electricity consumption: distribution companies usually install monitoring equipment to track the power load of the distribution system in real time. These data can usually be obtained through data acquisition and monitoring systems. Distribution companies will regularly generate load reports to record the total power consumption in the area. For large-scale industrial or commercial users, they usually have a dedicated energy management system to record their actual power consumption. Home and small commercial users can obtain electricity consumption through smart meters, which can provide detailed electricity consumption statistics.

[0074] In a feasible implementation, a power generation collection device and a power consumption collection device are set for the microgrid system. One end of the power generation collection device is connected to each power generation node, and the other end is connected to each power consumption node. The power generation collection device can count the power generation of each power generation node to obtain the total power generation, and can count the power consumption of each power consumption node to obtain the total power consumption.

[0075] Step S12, determining the net load of the microgrid system in the historical power generation period according to the total power consumption and the total power generation, wherein the power load data also includes the net load; It should be noted that the power load data includes net load, which is the amount of electricity that the system needs to supply or can output additionally during the historical power generation period.

[0076] In a feasible implementation manner, the net load of the microgrid system during the historical power generation period may be obtained according to the difference between the total power consumption and the total power generation.

[0077] Step S13: when the net load is less than a preset value, determining that the power state is a power surplus state.

[0078] It should be noted that net load can be positive or negative. If the net load is positive, it means that the system needs additional power to meet the power demand. At this time, the power state of the microgrid system should be in a shortage state; if the net load is negative, it means that the system has surplus power to be exported or stored. At this time, the power state of the microgrid system should be in a surplus state. Therefore, a preset value can be set. When the net load is less than the preset value, the power state is determined to be a power surplus state. When the net load is greater than the preset value, the power state is determined to be a power shortage state. The preset value can be set to 0.

[0079] In this embodiment, the power state of the microgrid system can be analyzed according to the value of the net load, so as to facilitate subsequent related control based on the power state of the microgrid system.

[0080] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the power control method of the microgrid system of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0081] The present application provides a power control device for a microgrid system, wherein the power control device 1 for the microgrid system includes: at least one processor 1001; and a memory 1002, etc., which is communicatively connected to the at least one processor 1001; wherein the memory 1002 stores instructions that can be executed by the at least one processor 1001, and the instructions are executed by the at least one processor 1001 so that the at least one processor 1001 can execute the power control method for the microgrid system in the following embodiments.

[0082] like Figure 6 As shown, the power control device 1 of the microgrid system may include a processor 1001, which can perform various appropriate actions and processes according to the program stored in the memory 1002, where the program in the memory 1002 may be a program in a read-only memory (ROM) or a program loaded from a storage device to a random access memory (RAM). In the RAM, various programs and data required for the operation of the power control device 1 of the microgrid system are also stored. The processor 1001 and the memory 1002 (ROM and RAM) are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus. Generally, the following systems can be connected to the I / O interface: input devices such as touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices such as liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices such as magnetic tapes, hard disks, etc.; and communication devices. The communication device can allow the power control device 1 of the microgrid system to communicate with other devices wirelessly or wired to exchange data. Although the figure shows the power control device 1 of the microgrid system having various hardwares, it should be understood that it is not required to implement or possess all the hardware shown, and more or less hardwares may be implemented or possessed instead.

[0083] The power control device of the microgrid system provided by the present application adopts the power control method of the microgrid system in the above embodiment, and can control power from the source to achieve power balance, so that there is no need to connect the surplus power to the grid, and avoid power waste caused by line transmission loss. Compared with the prior art, the beneficial effects of the power control device of the microgrid system provided by the present application are the same as the beneficial effects of the power control method of the microgrid system provided by the above embodiment, and other technical features in the power control device of the microgrid system are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0084] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0085] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0086] The present application provides a microgrid system, which includes multiple power generation nodes, multiple power consumption nodes and a power control device of the microgrid system, and each of the power generation nodes and each of the power consumption nodes are connected to the power control device of the microgrid system.

[0087] The microgrid system provided by the present application includes the power control device of the microgrid system in the above embodiment, which can control power from the source to achieve power balance, thereby eliminating the need to connect surplus power to the grid and avoiding power waste caused by line transmission loss. Compared with the prior art, the beneficial effects of the microgrid system provided by the present application are the same as the beneficial effects of the power control method of the microgrid system provided by the above embodiment, and other technical features of the microgrid system are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0088] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the power control method of the microgrid system in the above-mentioned embodiment.

[0089] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0090] The computer-readable storage medium may be included in the power control device of the microgrid system; or may exist independently without being installed in the power control device of the microgrid system.

[0091] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the power control device of the microgrid system, the power control device of the microgrid system: obtains the power load data of the microgrid system in the historical power generation period, and determines the power state of the microgrid system according to the power load data; when the power state is a power surplus state, generates a power load description text based on a large language model, the power load data and the meteorological data of the historical power generation period; predicts the target power load prediction result of the microgrid system based on the power load prediction model and the power load description text; determines the power dispatching plan according to the target power load prediction result and the target meteorological data, and dispatches the corresponding power generation nodes to operate based on the power dispatching plan to achieve a power balance state.

[0092] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0093] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0094] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0095] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the power control method of the microgrid system described above, and can perform power control from the source to achieve power balance, thereby eliminating the need to connect surplus power to the grid and avoiding power waste caused by line transmission losses. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the power control method of the microgrid system provided by the above-mentioned embodiment, and will not be elaborated here.

[0096] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A power control method for a microgrid system, characterized in that: The method comprises: Acquire power load data of the microgrid system in a historical power generation period, and determine the power state of the microgrid system according to the power load data; When the power state is a power surplus state, generating a power load description text based on a large language model, the power load data and the meteorological data of the historical power generation period; Based on the power load prediction model and the power load description text, predicting the target power load prediction result of the microgrid system; A power dispatching plan is determined according to the target power load forecast result and the target meteorological data, and the corresponding power generation nodes are dispatched to operate based on the power dispatching plan to achieve a power balance state.

2. The method according to claim 1, characterized in that The power load data includes a load value, and the generating of the power load description text based on the large language model, the power load data and the meteorological data of the historical power generation period includes: Inputting the load value and the meteorological data into the large language model, performing feature extraction on the load value and the meteorological data respectively, to obtain load value features and meteorological data features; Determine a target prompt template associated with the load value feature and the meteorological data feature according to similarities between the load value feature, the meteorological data feature and each preset prompt template; The load value feature and the meteorological data feature are embedded in the target prompt template to obtain the power load description text.

3. The method according to claim 1 or 2, characterized in that The electric load prediction model includes a time series model and a neural network model. The step of predicting the target electric load prediction result of the microgrid system based on the electric load prediction model and the electric load description text includes: Extracting features from the power load description text to obtain power load impact features of the microgrid system; Determine a first prediction result of the time series model based on the power load impact feature, and determine a second prediction result of the neural network model based on the power load impact feature; A target power load prediction result of the microgrid system is determined according to the first prediction result and the second prediction result.

4. The method according to claim 3, characterized in that Determining the target power load prediction result of the microgrid system according to the first prediction result and the second prediction result includes: Obtaining the weight of the time series model and the weight of the neural network model; The target power load prediction result of the microgrid system is determined based on the product of the first prediction result and the weight of the time series model, and based on the sum of the products of the second prediction result and the weight of the neural network model.

5. The method according to claim 4, characterized in that Before the step of obtaining the weight of the time series model and the weight of the neural network model, the method further includes: Obtain historical power load data samples; Dividing the historical power load data samples into a first training data set and a first test data set based on the training data length corresponding to the time series model, training an initial time series model based on the first training data set, and testing the initial time series model based on the first test data set to obtain a weight of the time series model; and The historical power load data samples are divided into a second training data set and a second test data set based on the training data length corresponding to the neural network model, an initial neural network model is trained based on the second training data set, and the initial neural network model is tested based on the second test data set to obtain the weight of the neural network model.

6. The method according to claim 3, characterized in that The target power load prediction result includes a target net load, and determining a power dispatching scheme according to the target power load prediction result and target meteorological data, and dispatching the corresponding power generation node to operate based on the power dispatching scheme includes: Determine the power dispatching plan according to the target meteorological data, the target net load, and the corresponding relationship between the preset meteorological data, the preset load value and the preset dispatching plan; According to the power dispatching plan, the power generation of each power generation node is determined, and the power generation power of each power generation node is determined according to the power generation of each power generation node; Control each of the power generation nodes to operate according to the corresponding power generation power.

7. The method according to claim 1, characterized in that The microgrid system includes a plurality of power generation nodes and a plurality of power consumption nodes. The step of obtaining power load data of the microgrid system in a historical power generation period and determining the power state of the microgrid system according to the power load data includes: Determine the total power generation according to the power generation of each power generation node of the microgrid system during the historical power generation period, and determine the total power consumption according to the power consumption of each power consumption node of the microgrid system during the historical power generation period; Determine the net load of the microgrid system in the historical power generation period according to the total power consumption and the total power generation, wherein the power load data also includes the net load; When the net load is less than a preset value, the power state is determined to be a power surplus state.

8. A power control device for a microgrid system, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the power control method for the microgrid system according to any one of claims 1 to 7.

9. A microgrid system, characterized in that: The microgrid system comprises a plurality of power generation nodes, a plurality of power consumption nodes and a power control device of the microgrid system as claimed in claim 8, and each of the power generation nodes and each of the power consumption nodes are connected to the power control device of the microgrid system.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the power control method of the microgrid system according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Variable weight combined forecasting method-based electric power load short-term forecasting method

    CN107590562A

  • Unit peak regulation method for coupling thermal system by utilizing surplus power of power grid

    CN117422282A

  • Micro-grid power dispatching method

    CN117791558A

  • Wind power prediction method and system for pre-training large language model based on space-time enhancement

    CN118313463A

Cited By

  • Green electricity energy storage scheduling method based on big data

    CN119853180A

  • Power dispatching method and device, electronic equipment and storage medium

    CN120016484A

  • Heat supply system multi-working-condition dispatching control method based on large model and multiple agents

    CN120450361A

  • A Multi-Condition Scheduling Control Method for Heating Systems Based on Large Models and Multi-Agents

    CN120450361B