Transaction volume determination method and device of electric power resources, storage medium and program product
By combining medium- and long-term and short-term transaction price prediction methods, using the maximum correlation and minimum redundancy algorithm and time series decomposition technology, the problem of cross-time transaction price prediction in the power market is solved, and optimal decision-making and cost reduction of power transaction volume are achieved.
Patent Information
- Application Number
- CN202411162456.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology is difficult to accurately predict transaction prices across time in the electricity market, resulting in an inability to fully grasp market dynamics and affecting the decision-making optimization of electricity production, consumption, and investors.
By combining medium- and long-term and short-term transaction price prediction methods, the maximum correlation and minimum redundancy algorithm is used to screen price influencing factors, and the prediction accuracy is improved through the SVR model and time series decomposition technology to achieve transaction price prediction across time lengths.
It achieves comprehensive consideration of mid- to long-term and short-term market prices in power trading decisions, optimizes transaction volume decisions, reduces energy use costs, and improves forecast accuracy.
Smart Images

Figure CN118674486A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence (AI) technology, and in particular to a method for determining the trading volume of electric power resources, an electronic device, a computer-readable storage medium, and a computer program product, which can be applied to the field of electric power market trading and provide an artificial intelligence energy consumption solution. Background Art
[0002] The issue of AI energy consumption has attracted much attention. Electricity is not only the main component of energy consumption in AI digital infrastructure, but also an important energy source for the development of modern economy and society. Its price not only affects the economic interests of electricity producers and consumers, but also affects the development layout of the industry, thus having a profound impact on the development of the entire society. The current electricity market includes the spot market and the medium- and long-term market. The electricity price in the market is affected by many factors, including supply and demand, fuel prices, policy changes, weather conditions, and technological progress. Therefore, it is necessary to accurately predict electricity prices in order to more comprehensively grasp market dynamics, reduce energy use costs, and assist electricity producers, consumers, and investors in optimizing decisions. Summary of the invention
[0003] The embodiments of the present application provide a method for determining the transaction volume of electric power resources, an electronic device, a computer-readable storage medium, and a computer program product to alleviate or solve one or more technical problems existing in the prior art.
[0004] In a first aspect, an embodiment of the present application provides a method for determining the trading volume of electric power resources, including: determining a first trading price of the first electric power resource within the first prediction time period based on the assignment data of the price influencing factors of the first electric power resource within the first prediction time period; determining a second trading price of the second electric power resource within the second prediction time period based on the historical trading data of the second electric power resource before the second prediction time period, wherein the time length of the second prediction time period is less than the time length of the first prediction time period; and determining the trading volume of the first electric power resource within the first prediction time period by using the first trading price and the second trading price.
[0005] In a second aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, and the processor implements any method of the embodiment of the present application when executing the computer program.
[0006] In a third aspect, 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 method of any one of the embodiments of the present application is implemented.
[0007] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method of the embodiments of the present application when executed by a processor.
[0008] According to the technical solution of the embodiment of the present application, by predicting the transaction price (first transaction price) of medium- and long-term transactions and the transaction price (second transaction price) of short-term transactions, the transaction price prediction across time length is realized, so that when deciding the medium- and long-term transaction volume, the transaction price of the medium- and long-term market and the transaction price of the short-term market can be fully considered, and then the market dynamics can be fully grasped, the decision on the transaction volume can be optimized, and the energy use cost can be reduced. Taking into account the price fluctuation characteristics of medium- and long-term transaction prices and short-term transaction prices, the prediction is based on the assigned data of price influencing factors when predicting medium- and long-term transaction prices, and the prediction is based on short-term historical transaction data when predicting short-term transaction prices, which can improve the prediction accuracy.
[0009] Optionally, when predicting the medium- and long-term transaction price, the medium- and long-term transaction price is predicted based on a hybrid model. In the hybrid model, the maximum relevance minimum redundancy algorithm is used to screen key price influencing factors, reduce feature redundancy, and select the most relevant price influencing factors, and use a search algorithm to optimize the model hyperparameters, thereby avoiding artificial setting of model hyperparameters and overcoming the influence of feature redundancy on prediction accuracy. At the same time, the model base network adopts an SVR model, which can have a good fitting ability for small samples and nonlinear data, and can achieve good results in medium- and long-term transaction price prediction.
[0010] Optionally, when predicting short-term transaction prices, the complex short-term historical price series is first decomposed into several modal signals (historical price subsequences) with different frequency characteristics (price volatility characteristics), effectively separating the signal and noise, reducing the impact of noise on the prediction results and reducing the complexity of the electricity price series; finally, by integrating the prediction results of different subsequences, a high-precision prediction of short-term transaction prices can be achieved.
[0011] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.
[0013] Figure 1A schematic diagram showing an application scenario of the method for determining the transaction volume of electric power resources provided in an embodiment of the present application is shown; Figure 2 A flow chart showing a method for determining a transaction volume of electric power resources according to an embodiment of the present application is shown; Figure 3 A flow chart showing a method for determining a transaction volume of electric power resources according to an embodiment of the present application is shown; Figure 4 A block diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0014] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the concept or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary in nature and not restrictive.
[0015] To facilitate understanding of the technical solutions of the embodiments of the present application, the following describes the related technologies of the embodiments of the present application. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.
[0016] The following terms will be used in the following text : Energy: In the embodiments of the present application, it refers to various forms of energy that can be used for power generation, such as coal, natural gas, hydropower, wind power, solar energy, etc. It covers all raw energy that can be converted into electrical energy.
[0017] Power resources: The power energy provided by the power generation side to the user side based on power stations, energy storage facilities, transmission lines, etc. In the embodiment of this application, power resources can be traded in the power market. The types of power resource transactions include medium- and long-term transactions and short-term transactions.
[0018] Medium- and long-term transactions: a form of transaction for power resources. Medium- and long-term transactions are mainly power contracts with a transaction cycle of more than one day, such as monthly, quarterly, annual or even multi-year transactions. They are mainly used for long-term planning by both power supply and demand parties. The contract period is relatively long and the transaction price is usually determined when the contract is signed.
[0019] Medium- and long-term market: a market where medium- and long-term transactions of electricity resources can be conducted.
[0020] Short-term trading: a form of trading for power resources. Short-term trading refers to trading types with a trading cycle of one day or less, such as the day-ahead market, intraday market, real-time (such as every 15 minutes) market, etc. It is mainly used to cope with fluctuations in power supply and demand in the short term, improve market response speed, and fill the gap in resource allocation for medium- and long-term transactions. The contract period is short, and the transaction price is usually determined in real time based on market supply and demand conditions.
[0021] Short-term market: A market where short-term transactions of electricity resources can be carried out.
[0022] Time length: It can also be called time span or time scale. It is a concept that describes the time range and is used to define the beginning and end of a process, event or time period. According to the time length from small to large, the types of time length can include instantaneous, short-term, medium-term and long-term. In the power market, time length is used to distinguish different types of power transactions, such as short-term transactions and medium- and long-term transactions.
[0023] A mature electricity market is composed of short-term markets and medium- and long-term markets, and the transaction prices in the market are affected by many factors, including supply and demand, fuel prices, policy changes, weather conditions, and technological advances. Due to the different degrees of influence of these factors at different time lengths, the transaction prices in the short-term market and the medium- and long-term market show different change characteristics. However, in the transaction price prediction technology for the electricity trading market, the prediction of transaction prices either only focuses on the transaction prices in the short-term market or only focuses on the prices in the medium- and long-term market. Focusing only on the price prediction of a single market is not enough to accurately grasp the trend of future prices. Therefore, it is necessary to predict transaction prices across time lengths in order to more comprehensively and accurately predict price change trends and assist power producers, consumers, and investors in optimizing their decisions.
[0024] Application Scenario Figure 1 The following is a schematic diagram showing an application scenario of the method for determining the transaction volume of electric power resources provided in an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a transaction volume determination system, including a client 110 and a server 120 , wherein the server 120 includes a first transaction price prediction module 121 , a second transaction price prediction module 122 and a transaction volume determination module 123 .
[0025] In an application example, based on the first transaction price prediction module 121, the user can predict the transaction price of the medium- and long-term market. Specifically, the first transaction price prediction module 121 is used to determine the first transaction price of the first power resource in the first prediction time period according to the value data of the price influencing factor of the first power resource in the first prediction time period. Among them, the first power resource example is the power resource in the medium- and long-term market; the first prediction time period example is the medium- and long-term, such as a certain year in the future, a certain few years in the future, a certain month in the future, a certain few months in the future, a certain quarter in the future, or a certain quarter in the future; the first transaction price is the predicted price for the power resource in the medium- and long-term market. Exemplarily, the information of the first power resource and the information of the first prediction time period can be provided by the user through the interactive interface provided by the client 110. There are many price influencing factors of power resources in the medium- and long-term market, such as the geopolitical policy, weather conditions, power energy type, seasonal factors, power supply facilities, population size, gross domestic product (GDP), power demand, etc. in the power consumption area. Exemplarily, the value data of the price influencing factor can be provided by the user through the interactive interface of the client 110, or can be obtained from a database or network by the first transaction price prediction module 121.
[0026] In another application example, based on the second transaction price prediction module 122, the user can predict the transaction price of the short-term market. Specifically, the second transaction price prediction module 122 is used to determine the second transaction price of the second power resource in the second prediction time period based on the historical transaction data of the second power resource before the second prediction time period. Among them, the second power resource example is the power resource in the short-term market; the second prediction time period example is short-term, such as a certain day in the future, a certain few days in the future, a certain hour in the future, and a certain few hours in the future; the second transaction price is the predicted price for the power resource in the short-term market. Exemplarily, the information of the second power resource and the information of the second prediction time period can be provided by the user through the interactive interface provided by the client 110. The historical transaction data before the second prediction time period is mainly historical transaction price data, such as day-ahead transaction data, intraday historical transaction data, etc. Exemplarily, the historical transaction data can be provided by the user through the interactive interface of the client 110, or it can be obtained from a database or network by the second transaction price prediction module 122.
[0027] In another application example, the user can determine the transaction volume in the short-term market and the transaction volume in the medium- and long-term market in the medium- and long-term plan. Specifically, the transaction volume determination module 123 is used to determine the transaction volume of the first power resource in the first prediction time period using the first transaction price output by the first transaction price prediction module 121 and the second transaction price output by the second transaction price prediction module 122. Exemplarily, based on the predicted transaction price for the medium- and long-term market and the predicted transaction price for the short-term market, the transaction volume determination module 123 can calculate the transaction volume in the medium- and long-term market in the medium- and long-term (such as next year) based on the cost minimization principle or other measurement principles.
[0028] Based on this, by predicting the transaction prices of medium- and long-term transactions and short-term transactions, we can achieve transaction price prediction across time lengths, so that when making decisions on medium- and long-term electricity purchase plans, we can comprehensively consider the transaction prices of the medium- and long-term markets and the short-term markets, thereby optimizing decisions on transaction volumes.
[0029] Exemplarily, the client 110 can be hardware, such as mobile phones, personal computers, tablet computers, wearable devices and other electronic devices; the client 110 can also be an application (Application, APP) or software module deployed on the electronic device. The first transaction price prediction module 121, the second transaction price prediction module 122 and the transaction volume determination module 123 can be deployed on the same subject or multiple subjects, which can be an application, service, instance, software-based functional module, virtual machine, container or cloud server, or a hardware device or hardware chip with data processing function. The server 120 can be deployed on a local computing device or a cloud computing platform that provides computing power, storage and network resources. The specific application architecture can be built according to service requirements.
[0030] It should be noted that the above application scenarios or application examples provided in the embodiments of the present application are for ease of understanding, and the embodiments of the present application do not specifically limit the application of the technical solution. In addition, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The several specific embodiments listed can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0032] Embodiment 1 Figure 2 A flow chart of a method for determining the transaction volume of electric power resources according to an embodiment of the present application is shown. Figure 2 As shown, the method may include step S201, step S202 and step S203.
[0033] Step S201: determining a first transaction price of the first power resource within the first prediction time period according to the value data of the price influencing factor of the first power resource within the first prediction time period.
[0034] In the embodiment of the present application, the first power resource is a power resource in the medium- and long-term market, that is, the transaction form of the first power resource is a medium- and long-term transaction. Accordingly, the length of the first prediction time period is medium- and long-term. The transaction price of the medium- and long-term transaction is usually determined when the contract is signed, for example, the transaction price for the next year or the next few years is determined at the end of this year.
[0035] Price influencing factors can be understood as factors that affect the transaction price of electricity resources in the medium and long-term market, including but not limited to the geopolitical policies of the electricity consumption area (such as restrictive or encouraging policies, taxes, etc.), weather conditions (such as temperature, wind power, etc.), power energy types (such as coal, natural gas, hydropower, wind power, solar energy, etc.), seasonal factors, power supply facilities (including equipment depreciation, maintenance costs, operating costs, transmission and distribution costs, etc.), population size, GDP, market demand, etc.
[0036] The assigned data is the actual data corresponding to the price influencing factors. In different time ranges, the assigned data of each price influencing factor may be different. In the embodiment of the present application, it is necessary to determine the assigned data corresponding to the price influencing factors in a certain forecast time. In one example, the medium- and long-term assigned data of price influencing factors can be accurately and directly obtained, such as geopolitical policies, types of electric power energy, power supply facilities, and population size, which usually do not change in the medium- and long-term time range. In another example, the medium- and long-term assigned data of price influencing factors can be accurately predicted, such as weather conditions, motivation factors, GDP and market demand, etc., and accurate forecast data can be obtained through mature prediction algorithms.
[0037] Since price influencing factors directly or indirectly affect the transaction price of the medium and long-term market, the transaction price of the medium and long-term market can be predicted through the value data of each price influencing factor within the medium and long-term time range. For example, machine learning methods can be used for prediction, such as predicting the transaction price of the medium and long-term market by training an artificial neural network (ANN) model or a support vector regression (SVR) model to obtain the first transaction price.
[0038] Step S202: Determine a second transaction price of the second power resource within the second prediction time period based on historical transaction data of the second power resource before the second prediction time period, wherein the second prediction time period is shorter than the first prediction time period.
[0039] In the embodiment of the present application, the second power resource is a power resource in the short-term market, that is, the transaction form of the second power resource is a short-term transaction. Accordingly, the length of the second prediction time period is short-term. The historical transaction data can be the transaction price at a certain time point in the past, or can be the transaction prices at multiple time points in the past and their corresponding prices.
[0040] The transaction price of short-term transactions is usually in units of minutes, hours or days, reflecting the price fluctuations in the electricity market in a very short period of time. Therefore, the price influencing factors of short-term transactions also fluctuate greatly, and the prediction of short-term transaction prices through the assignment data of price influencing factors is less accurate. In the embodiment of the present application, the transaction price of the future short-term time period is predicted through the historical transaction data before the future short-term time period, and the transaction price can be accurately predicted when the time length is short. For example, the transaction price of a certain forecast day in the future is predicted through the historical transaction price of the day before, or the real-time transaction price of a certain hour period in the past (such as 20:00 to 22:00) is used to predict the real-time transaction price of a certain hour period in the future.
[0041] Exemplarily, in step S202, the second transaction price may be predicted by performing statistical analysis on historical transaction data, or by training a Long Short-Term Memory (LSTM) model.
[0042] Step S203: Determine the transaction volume of the first power resource during the first prediction time period by using the first transaction price and the second transaction price.
[0043] In the embodiment of the present application, when determining the medium- and long-term transaction volume, the predicted medium- and long-term transaction price and the short-term transaction price can be considered at the same time, and the calculation can be performed based on the cost minimization principle or other calculation principles. For example, when determining the transaction volume for the next year or the next few years at the end of this year, not only the transaction price for the next year or the next few years is considered, but also the short-term transaction price is counted and converted to obtain the corresponding transaction price for the next year or the next few years, and then the distribution ratio of the medium- and long-term transaction volume and the short-term transaction volume is determined while taking into account the two transaction prices.
[0044] The current electricity market includes short-term and medium- and long-term markets, and the transaction price is affected by many factors, and the degree of influence of these factors varies over different time periods, resulting in different change characteristics in the short-term and medium- and long-term markets. Therefore, in the electricity price forecast, if we only focus on short-term transaction price forecasts, or only focus on medium- and long-term electricity price forecasts, we cannot fully grasp the market dynamics and reasonably allocate the transaction volume.
[0045] In the technical solution of the embodiment of the present application, the transaction price prediction across time lengths is achieved by predicting the transaction price of medium- and long-term transactions and the transaction price prediction of short-term transactions. Therefore, when making decisions on medium- and long-term trading volumes or determining the allocation ratio of medium- and long-term trading volumes and short-term trading volumes, the transaction prices of the medium- and long-term markets and the short-term markets can be fully considered, thereby fully grasping the market dynamics and optimizing the decision on trading volume.
[0046] In one embodiment, the historical transaction data is a historical price sequence, and the historical price sequence includes multiple time points and transaction prices corresponding to each time point. In step S202, based on the historical transaction data of the second power resource before the second prediction time period, determining the second transaction price of the second power resource in the second prediction time period can include: decomposing the historical price sequence into multiple historical price sub-sequences with different price fluctuation characteristics; obtaining multiple predicted price sub-sequences output by multiple second price prediction models, wherein a second price prediction model is used to predict a predicted price sub-sequence of the second power resource in the second prediction time period based on an input historical price sub-sequence; and merging multiple predicted price sub-sequences to obtain a second transaction price.
[0047] The historical transaction data can be obtained from the public data of the power market institution or provided by the user. The historical price series is the short-term transaction price data, including multiple time points and the transaction prices corresponding to each time point. These time points are specifically the time before the second forecast time period. In other words, the historical price series is the historical transaction data before the second forecast time period.
[0048] First, the historical price sequence is decomposed into multiple historical price subsequences with different price volatility characteristics, that is, the original short-term transaction price data is decomposed into simple sub-modes with different change characteristics, and each historical price subsequence is a sub-mode, which is used to characterize the corresponding price volatility characteristics. Among them, the price volatility characteristics can be understood as the changing trend or change characteristics of the transaction price over time. Further, the sub-mode sequences (historical price sub-sequences) with different characteristics after decomposition are predicted using the second price prediction model to obtain the predicted value of each sub-mode sequence (predicted price sub-sequence). Then, the obtained multiple predicted price sub-sequences are merged, for example, the transaction price is fitted or counted according to the time characteristics, and then the predicted price sequence, that is, the second transaction price, is obtained.
[0049] Based on this, the complexity of the electricity price series can be reduced by decomposing the price series. In addition, short-term transaction prices are time-varying, uncertain, and highly complex. By decomposing the price series, the volatility characteristics of short-term transaction prices can be better captured, thereby improving the accuracy of prediction.
[0050] Among them, decomposing the historical price series into multiple historical price sub-sequences with different price volatility characteristics can adopt the method of Experience Mode Decomposition (EMD) or Variational Mode Decomposition (VMD).
[0051] EMD is an adaptive time series analysis method that can decompose complex time series into a series of basic modes. VMD is a signal processing technology that decomposes complex signals into several sub-signals (modes) with spectra concentrated in a specific frequency range through variational methods.
[0052] The VMD method is introduced in detail below. Specifically, the historical price sequence is decomposed into multiple historical price subsequences with different price fluctuation characteristics, including: based on each historical price subsequence and the center frequency of each historical price subsequence, an augmented Lagrangian function with Lagrangian multipliers is constructed, wherein the Lagrangian multipliers are used to characterize the constraints that each historical price subsequence and its center frequency need to meet; the historical price subsequences, the center frequencies of the historical price subsequences and the Lagrangian multipliers are iteratively updated through an alternating direction algorithm until each historical price subsequence meets a preset threshold condition.
[0053] For example, the VMD process is to construct and solve a variational problem, that is, given a historical price series , decompose it into K sub-modal sequences by solving the following constrained variational problem : 。
[0054] Where t is the time, is the differential at time t, is the unit impulse (Dirac) function, * indicates the convolution operation, is the sub-mode obtained after decomposition, that is, the historical price sub-sequence, is the central frequency of the historical price subsequence.
[0055] In order to solve the above optimization problem, the constrained variational problem is transformed into an unconstrained variational problem. The advantages of the quadratic penalty term and the Lagrange multiplier method can be utilized, the augmented Lagrangian function is introduced, and the Lagrange multiplier method and the alternating direction method of multipliers (ADMM) are used.
[0056] First, construct the augmented Lagrangian function with Lagrangian multipliers:
[0057] in, is the equilibrium parameter, is the Lagrange multiplier, yes and The inner product term is used to introduce the Lagrange multiplier to deal with the constraints of signal reconstruction. Then the center frequency of each historical price subsequence is iteratively updated by optimizing the alternating direction multiplier method. , each historical price subsequence and the Lagrange multiplier
[0058]
[0059]
[0060]
[0061] Preset judgment threshold Repeat the above iterative update steps until the following threshold conditions are met to obtain the final center frequency of each historical price subsequence And each historical price subsequence .
[0062]
[0063] Based on this, not only can the constrained variation problem in the price series decomposition process be transformed into an unconstrained variation problem, simplifying the calculation, but also greatly reducing the difficulty of predicting the transaction price series.
[0064] Among them, the second price prediction model can predict the output of the price subsequence based on a time series analysis algorithm, a regression analysis algorithm, or a neural network learning algorithm, which is not limited in the embodiments of the present application.
[0065] In one embodiment, the second price prediction model includes a convolutional neural network (CNN) and a long short-term memory network (LSTM). The convolutional neural network CNN is used to extract features from historical price subsequences to obtain feature subsequences, and the long short-term memory network LSTM is used to model the time dependency in the feature subsequences to output the corresponding predicted price subsequences.
[0066] For example, for the historical price subsequence obtained by the VMD algorithm, the convolutional neural network CNN is first used to perform convolution and pooling operations to extract features. Since the CNN convolution layer has a weight sharing structure, it can greatly reduce the training parameters and reduce the complexity of training. Then the pooling layer is used to refine the extracted intrinsic features to obtain the internal patterns and information of the data. The convolution process is as follows:
[0067] in, is the convolution kernel, is the input vector, i.e. the historical price subsequence, is the feature vector of the convolution kernel. In the convolutional neural network CNN, after the convolution operation, pooling will be performed to reduce the data dimension and improve the nonlinear ability of the network. Pooling includes maximum pooling, average pooling, etc. The embodiment of the present application adopts average pooling, and the pooling process is as follows:
[0068] The feature subsequence obtained after feature extraction by CNN will be sent to the long short-term memory neural network LSTM for data modeling. LSTM includes three gating mechanisms: forget gate, input gate, and output gate. It overcomes the long-term data dependency of the previous recurrent neural network model and avoids the problems of gradient vanishing and gradient exploding to a great extent. The specific calculation process of the LSTM unit is as follows:
[0069] in, for The state of the forget gate is always determined by processing data through a Sigmoid function. The retention or forgetting of information. express The state of the input gate at time, express The temporary state of the moment memory unit, for The constant updating of cell status determines what information is stored in the memory cell . express Input the state of the door at all times, Represents the output of the storage unit. After passing through the LSTM network, the long-term dependencies in the feature subsequences are further captured, and each historical price subsequence is modeled, so that the corresponding predicted price subsequence can be output.
[0070] According to the technical solution of the embodiment of the present application, the variational mode decomposition VMD can decompose the complex short-term historical price series into several modal signals (historical price subsequences) with different frequency characteristics (price volatility characteristics), effectively separate the signal and noise, reduce the impact of noise on the prediction results and reduce the complexity of the electricity price series; the convolutional neural network CNN can extract useful spatiotemporal features from the original data, revealing the local patterns and changing laws of prices; the long short-term memory neural network LSTM inputs the extracted feature subsequences for time dependency modeling and prediction; finally, by integrating the prediction results of different subsequences, a high-precision prediction of the short-term transaction price (the second transaction price) is achieved.
[0071] Embodiment 2 Figure 3 A flow chart of a method for determining the transaction volume of electric power resources according to an embodiment of the present application is shown. Figure 3 As shown, the method may include steps S301 to S303.
[0072] Step S301: inputting the value data of the price influencing factors within the first prediction time period into a first price prediction model to predict the first transaction price, wherein the first price prediction model is obtained by training a support vector regression model; Step S302: Determine a second transaction price of the second power resource within the second prediction time period based on historical transaction data of the second power resource before the second prediction time period, wherein the second prediction time period is shorter than the first prediction time period.
[0073] Step S303: Determine the transaction volume of the first power resource during the first prediction time period by using the first transaction price and the second transaction price.
[0074] The support vector regression (SVR) model used in step S301 is an application of the support vector machine to the regression problem, which predicts the continuous numerical target variable by finding the optimal hyperplane in the data set. The data set of the SVR model includes a training set and a test set, and both the training set and the test set include the historical value data of the price influencing factors and their corresponding historical transaction prices. Exemplarily, the SVR function can be expressed as: .
[0075] in, represents the input vector, i.e., the vectorized representation of the value data of the price influencing factors in the first forecast period. represents the weight vector, Indicates the offset. and The estimation is performed by minimizing the structural risk, and the expression is as follows: .
[0076] in, is the penalty factor, is the number of training samples, is the loss function, which can be expressed as: .
[0077] This loss function can be understood as and the true value The error between them exceeds the tolerance threshold The loss is calculated only when
[0078] The SVR model has a good fitting ability for small sample and nonlinear training sets. Therefore, by training SVR, we can obtain a good first price prediction model for the small sample and nonlinear characteristics of the assignment data of price influencing factors, thereby predicting the medium and long-term transaction prices.
[0079] Among them, step S302 can adopt the same or similar implementation as step S202, and step S303 can adopt the same or similar implementation as step S203, which will not be repeated here.
[0080] In one embodiment, before step S301, the following may be included: multiple rounds of iterative updates of candidate hyperparameter combinations until a preset number of iterations is reached, wherein in each iterative update, for each candidate hyperparameter combination, the current candidate hyperparameter combination is adjusted according to the distance between the current candidate hyperparameter combination and the preferred hyperparameter combination in the previous round and the distance between the current candidate hyperparameter combination and the difference hyperparameter combination in the previous round, and whether to update the current candidate hyperparameter combination to the adjusted candidate hyperparameter combination is confirmed according to the model effect; the preferred hyperparameter combination is determined from the candidate hyperparameter combinations after the iteration as the target hyperparameter combination; and the target hyperparameter combination is used to train the SVR model to obtain the first price prediction model.
[0081] Hyperparameters are parameters that need to be set before training begins in a machine learning model to control the learning ability of the model. In this embodiment of the application, hyperparameters may include is the penalty factor and tolerance threshold , kernel function parameters, algorithm parameters (such as step size, number of iterations, etc.), etc. The hyperparameter combination is the combination of multiple hyperparameters, and the target hyperparameter combination is the hyperparameter finally used to train the SVR model.
[0082] Exemplarily, the method for finding a target hyperparameter combination may include: (1) Initialization: Preset the number of hyperparameter combinations and the number of iterations to be selected, for example, to 20 and 50 respectively; Randomly generate a preset number of candidate hyperparameter combinations.
[0083] (2) Update the selected hyperparameter combination in multiple rounds of iterations until the preset number of iterations is reached: In the first round of iteration, each candidate hyperparameter combination is substituted into the SVR model, and the model effect of the SVR model is evaluated with the training set to obtain the optimal hyperparameter combination and the poorly selected hyperparameter combination. Among them, the model effect can be evaluated by 5-fold cross-validation to prevent overfitting. That is, the candidate hyperparameter combination corresponding to the minimum fitness function value (MAPE mean of 5-fold cross-validation) is selected as the preferred hyperparameter combination, and the candidate hyperparameter combination corresponding to the maximum fitness function value is selected as the poorly selected hyperparameter combination, where the fitness function is the mean absolute percentage error (MAPE).
[0084] In each subsequent iteration, each candidate hyperparameter combination is traversed, and the current candidate hyperparameter combination is adjusted according to the distance between the current candidate hyperparameter combination and the previous round of preferred hyperparameter combination and the previous round of difference hyperparameter combination. Specifically, the adjustment function of the hyperparameter combination can be expressed as: .
[0085] in, represents the j-th variable value of the hyperparameter combination k to be selected in the i-th iteration; and represents two random variables with values ranging from [0,1]; yes Adjusted value; represents the jth variable value of the preferred hyperparameter combination in the i-th iteration; Represents the j-th variable value of the differential hyperparameter combination in the i-th iteration.
[0086] According to the model effect, it is confirmed whether to update the current candidate hyperparameter combination to the adjusted candidate hyperparameter combination. For example, if the adjusted model effect is better than before the adjustment, the current candidate hyperparameter combination is replaced with the adjusted candidate hyperparameter combination, otherwise, it is not replaced. After the traversal is completed, the preferred hyperparameter combination and the poorly selected hyperparameter combination are determined from all the candidate hyperparameter combinations of the current round, and the determination method is the same as the first round of iteration.
[0087] As the number of iterations increases, the candidate hyperparameter combination gets closer to the optimal hyperparameter combination and further away from the poorly selected hyperparameter combination, thus achieving the goal of optimization.
[0088] (3) Determine the optimal hyperparameter combination from the candidate hyperparameter combinations after the iteration as the target hyperparameter combination.
[0089] When optimizing the hyperparameters of the SVR model, there may be problems such as difficulty in determining the hyperparameters. In the embodiments of the present application, the problem of difficulty in determining the hyperparameters of the SVR model can be solved through multiple iterative updates, while avoiding the poor accuracy and uncertainty problems caused by the method of manually setting the hyperparameters.
[0090] In addition, the optimization algorithm in the related art has the problem that its own parameters are difficult to determine, while the optimization algorithm adopted in the embodiment of the present application only needs to adjust the random variables of the iterative process for a specific problem, reducing the testing trouble caused by the difficulty in determining the parameters of the algorithm itself, thereby improving the efficiency and accuracy of solving the hyperparameters.
[0091] In one embodiment, before step S201, the following may be included: according to the historical transaction price of the first power resource in the historical time period, and the assignment data of multiple price influencing factors to be selected that match the historical time period, determining the correlation between each price influencing factor to be selected and the historical transaction price; determining the first N price influencing factors to be selected with the greatest correlation as key price influencing factors, where N is an integer greater than or equal to 1. Accordingly, in step S201, the following may be included: according to the assignment data of at least one key price influencing factor of the first power resource in the first prediction time period, determining the first transaction price of the first power resource in the first prediction time period. Alternatively, before step S301, the following may be included: according to the historical transaction price of the first power resource in the historical time period, and the assignment data of multiple price influencing factors to be selected that match the historical time period, determining the correlation between each price influencing factor to be selected and the historical transaction price; determining the first N price influencing factors to be selected with the greatest correlation as key price influencing factors, where N is an integer greater than or equal to 1. Accordingly, in step S301, it may include: obtaining the prediction result output by the first price prediction model to determine the first transaction price, wherein the first price prediction model is obtained by training a support vector regression model, and is used to predict the first transaction price based on the assignment data of at least one key price influencing factor within the first prediction time period, and the input of the first price prediction model includes the assignment data of at least one key price influencing factor within the first prediction time period.
[0092] That is to say, the correlation between the key price influencing factors and the historical transaction prices meets the maximization condition. The maximization condition can be understood as that each candidate price factor has a correlation with the historical transaction price, and the first N candidate price factors with the greatest correlation are the key price influencing factors, where N is an integer greater than or equal to 1, that is, the key price influencing factors can be one or more.
[0093] Exemplarily, the historical transaction prices in a certain historical time period and the assignment data of each candidate price influencing factor in the historical time period can be obtained, and then the correlation between the assignment data of each candidate price influencing factor and the historical transaction price can be determined, and the multiple correlations obtained can be sorted in order from large to small, and the top N candidate price factors can be used as key price influencing factors.
[0094] Based on this, since the correlation between key price influencing factors and historical transaction prices meets the maximization condition, that is, only the factors that have the most critical impact on transaction prices are selected for prediction during prediction, it is possible to achieve feature dimensionality reduction and reduce the computational complexity of the prediction algorithm while ensuring prediction accuracy.
[0095] In one embodiment, the correlation between key price influencing factors satisfies a minimization condition. The minimization condition can be understood as the mean correlation between key price influencing factors being less than the mean correlation between the remaining price factors to be selected. Exemplarily, after obtaining a plurality of key price influencing factors, it is ensured that the mean correlation between key price influencing factors is less than the mean correlation between the price factors to be selected. In other words, the selected key price influencing factors satisfy the Maximum Relevance Minimum Redundancy (MRMR) condition.
[0096] Since there may be multicollinearity (redundancy) and other problems between the price influencing factors selected according to the correlation maximization condition, the embodiment of the present application introduces the correlation minimization condition, that is, the minimum redundancy constraint is introduced on the basis of maximum correlation, thereby reducing redundant features and improving prediction accuracy.
[0097] The method for calculating the correlation is not limited in the embodiment of the present application. For example, a Euclidean distance algorithm, a cosine similarity algorithm, or a mutual information algorithm may be used.
[0098] In one implementation, a mutual information algorithm may be used to calculate the correlation. Mutual information is a method for measuring the correlation between two random variables. Mathematically, it can be understood as a random variable For another random variable The degree of reduction in uncertainty. Assume that the joint probability density function of these two random variables is known and the marginal probability density function , the mutual information can be expressed as: .
[0099] By extracting the features of the assigned data of a candidate price influencing factor, the corresponding candidate features can be obtained. The target features are selected from the candidate features and correspond to the assigned data of the target price influencing factor. Assume that the target feature set is the set of target features, is the number of target features in the target feature set, then the maximization condition of the correlation can be expressed as: .
[0100] in, represents the features to be selected, represents the target variable, i.e., the vectorized representation of the historical transaction price, Represents the selected target feature set The target features in With the target variable The mean mutual information between them is the largest.
[0101] The minimization condition of the correlation can be expressed as: .
[0102] in, Represents the target feature set The mean mutual information between the target features in is minimized.
[0103] The formula and The combination of the two forms the maximum related minimum redundancy (MRMR) condition, and defines the operator , maximizing this operator can simultaneously optimize and , which can be expressed as: .
[0104] In one embodiment, according to the historical transaction price of the first power resource in the historical time period and the assignment data of multiple candidate price influencing factors matching the historical time period, determining the key price influencing factor from the multiple candidate price influencing factors may include: (1) From the initial candidate feature set, the candidate feature with the largest mutual information with the historical transaction price is selected as the target feature and transferred to the target feature set, where a candidate feature is obtained by extracting the assigned data of a candidate price influencing factor; (2) Select the candidate features that meet the maximum correlation and minimum redundancy conditions from the current candidate feature set as the target features multiple times, and transfer them to the target feature set until the preset selection stop condition is reached; (3) The candidate price influencing factors corresponding to the target characteristics are taken as the key price influencing factors.
[0105] The first mutual information is the mutual information between the currently selected feature and the historical transaction price, that is, feature With the target variable The second mutual information is the mean mutual information between the currently selected candidate feature and each target feature in the current target feature set, that is, the feature and The maximum correlation and minimum redundancy conditions include the maximum first mutual information and the minimum second mutual information, that is, The stopping condition is selected when the first mutual information is greater than the second mutual information, i.e. .
[0106] Based on this, the embodiment of the present application adopts an incremental search method to determine the key price influencing factors, that is, to determine the target features. Specifically, assuming that the feature set to be selected is is the set of features to be selected, the target feature set Include features, the goal of the search algorithm in step (2) is to select Select target features, and need to meet the maximum correlation and minimum redundancy conditions. The specific expression is as follows: .
[0107] Based on this, the maximum relevance minimum redundancy MRMR algorithm and the incremental search algorithm can be used to screen out the key factors affecting the medium and long-term market transaction prices, and their assigned data can be used as the input variables of the SVR model. The MRMR algorithm can achieve feature dimensionality reduction and reduce the impact of redundant features on prediction accuracy. The incremental search method can improve the screening efficiency.
[0108] According to the technical solution of the embodiment of the present application, the medium- and long-term transaction prices can be predicted based on the MRMR-intelligent optimization-SVR hybrid model. Among them, the maximum relevance minimum redundancy algorithm MRMR screens key price influencing factors, reduces feature redundancy while selecting the most relevant price influencing factors, and uses the intelligent optimization algorithm to optimize the hyperparameters of the support vector regression SVR model, avoiding the artificial setting of model hyperparameters, overcoming the influence of feature redundancy on prediction accuracy and the problem of uncertainty in the control parameters of the intelligent optimization algorithm when optimizing the support vector regression hyperparameters. At the same time, the SVR model has a good fitting ability for small samples and nonlinear data, and can achieve good results in medium- and long-term transaction price prediction.
[0109] Embodiment 3 Corresponding to the application scenario provided by the embodiment of the present application, the embodiment of the present application provides a method for predicting a transaction price, including: determining a first transaction price of the first power resource within the first prediction time period based on the assignment data of the price influencing factors of the first power resource within the first prediction time period.
[0110] The method can be implemented by the first transaction price prediction module 121 to predict the transaction price in the medium and long term market. This step can adopt the same or similar implementation method as step S201 or step S301. The specific implementation method and technical effect can refer to the relevant description in embodiment 1 and embodiment 2, which will not be repeated here.
[0111] Embodiment 4 Corresponding to the application scenario provided by the embodiment of the present application, the embodiment of the present application provides a method for predicting a transaction price, including: determining a second transaction price of the second power resource within the second prediction time period based on historical transaction data of the second power resource before the second prediction time period.
[0112] The method can be implemented by the second transaction price prediction module 122 to predict the transaction price of the short-term market. This step can adopt the same or similar implementation as step S202 or step S302. The specific implementation method and technical effects can be found in the relevant descriptions of embodiment 1 and embodiment 2, which will not be repeated here.
[0113] Embodiment 5 Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a device for determining the trading volume of electric power resources, including: a first trading price prediction module, used to determine a first trading price of the first electric power resource within the first prediction time period based on the assignment data of the price influencing factors of the first electric power resource within the first prediction time period; a second trading price prediction module, used to determine the second trading price of the second electric power resource within the second prediction time period based on the historical trading data of the second electric power resource before the second prediction time period, wherein the time length of the second prediction time period is less than the time length of the first prediction time period; a trading volume determination module, used to use the first trading price and the second trading price to determine the trading volume of the first electric power resource within the first prediction time period.
[0114] In one embodiment, the first transaction price prediction module is specifically used to: input the assignment data of the price influencing factors within the first prediction time period into a first price prediction model to predict the first transaction price, wherein the first price prediction model is obtained by training a support vector regression model.
[0115] In one embodiment, the device also includes a first price prediction model training module, which is used for: before determining the first transaction price of the first power resource within the first prediction time period based on the assigned data of the price influencing factors of the first power resource within the first prediction time period: multiple rounds of iterative updates of the candidate hyperparameter combination until a preset number of iterations is reached, wherein in each iterative update, for each candidate hyperparameter combination, the current candidate hyperparameter combination is adjusted according to the distance between the current candidate hyperparameter combination and the preferred hyperparameter combination in the previous round and the distance from the difference hyperparameter combination in the previous round, and whether to update the current candidate hyperparameter combination to the adjusted candidate hyperparameter combination is confirmed according to the model effect; the preferred hyperparameter combination is determined from each candidate hyperparameter combination after the iteration as the target hyperparameter combination; and the support vector regression model is trained using the target hyperparameter combination to obtain the first price prediction model.
[0116] In one embodiment, the price influencing factors include at least one key price influencing factor, and the device also includes a key price influencing factor determination module, which is used to determine the correlation between each of the candidate price influencing factors and the historical transaction price according to the historical transaction price of the first power resource in the historical time period, and the assignment data of multiple candidate price influencing factors matching the historical time period, before determining the first transaction price of the first power resource in the first prediction time period according to the assignment data of the price influencing factors of the first power resource in the first prediction time period; and determine the first N candidate price factors with the largest correlation as the key price influencing factors, where N is an integer greater than or equal to 1.
[0117] In one implementation, the average correlation between the key price influencing factors is smaller than the average correlation between the remaining price factors to be selected.
[0118] In one embodiment, the key price influencing factor determination module is specifically used to: select a candidate feature with the largest mutual information with the historical transaction price from an initial candidate feature set as a target feature, and transfer it to the target feature set, wherein a candidate feature is obtained by performing feature extraction on the assigned data of a candidate price influencing factor; select candidate features that meet the maximum relevance and minimum redundancy conditions from the current candidate feature set as target features for multiple times, and transfer them to the target feature set until a preset selection stop condition is reached, wherein the maximum relevance and minimum redundancy conditions include a maximum first mutual information and a minimum second mutual information, and the selection stop condition includes that the first mutual information is greater than the second mutual information, the first mutual information is the mutual information between the currently selected candidate feature and the historical transaction price, and the second mutual information is the mutual information average between the currently selected candidate feature and each target feature in the current target feature set; and use the candidate price influencing factor corresponding to the target feature as the key price influencing factor.
[0119] In one embodiment, the historical transaction data is a historical price sequence, which includes multiple time points and transaction prices corresponding to each time point. The second transaction price prediction module is specifically used to: decompose the historical price sequence into multiple historical price sub-sequences with different price fluctuation characteristics; obtain multiple predicted price sub-sequences output by multiple second price prediction models, wherein a second price prediction model is used to predict a predicted price sub-sequence of the second power resource within the second prediction time period based on an input historical price sub-sequence; merge the multiple predicted price sub-sequences to obtain the second transaction price.
[0120] In one embodiment, the second transaction price prediction module is also used to: construct an augmented Lagrangian function with Lagrangian multipliers based on each historical price subsequence and the center frequency of each historical price subsequence, wherein the Lagrangian multipliers are used to characterize the constraints that each historical price subsequence and its center frequency need to satisfy; iteratively update the historical price subsequences, the center frequencies of the historical price subsequences, and the Lagrangian multipliers through an alternating direction algorithm until each of the historical price subsequences meets a preset threshold condition.
[0121] In one embodiment, the second price prediction model includes a convolutional neural network and a long short-term memory network, the convolutional neural network is used to extract features from the historical price subsequence to obtain a feature subsequence, and the long short-term memory network is used to model the time dependency in the feature subsequence to output a corresponding predicted price subsequence. The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0122] Figure 4 FIG. 1 is a block diagram of an electronic device used to implement an embodiment of the present application. Figure 4 As shown, the electronic device includes: a memory 401 and a processor 402, and the memory 401 stores a computer program that can be run on the processor 402. When the processor 402 executes the computer program, the method in the above embodiment is implemented. The number of the memory 401 and the processor 402 can be one or more. In a specific implementation, the electronic device may also include a communication interface 403 for communicating with external devices and performing data exchange transmission.
[0123] In specific implementation, if the memory 401, the processor 402 and the communication interface 403 are implemented independently, the memory 401, the processor 402 and the communication interface 403 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0124] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.
[0125] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.
[0126] An embodiment of the present application provides a computer program product, including a computer program, which implements the method provided in the embodiment of the present application when executed by a processor.
[0127] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0128] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0129] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.
[0130] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of exemplary but not limiting description, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0131] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0132] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0133] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0134] Any process or method described in the flow chart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0135] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0136] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0137] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0138] The above is only an exemplary embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope recorded in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for determining the transaction volume of electric power resources, comprising: Determining a first transaction price of the first power resource within the first forecast time period according to the value data of the price influencing factor of the first power resource within the first forecast time period; Determining a second transaction price of the second power resource within the second prediction time period based on historical transaction data of the second power resource before the second prediction time period, wherein the length of the second prediction time period is shorter than the length of the first prediction time period; The first transaction price and the second transaction price are used to determine a transaction volume for the first electric power resource during the first prediction time period.
2. The method according to claim 1, wherein: The determining, according to the value data of the price influencing factor of the first power resource in the first prediction time period, a first transaction price of the first power resource in the first prediction time period comprises: The value data of the price influencing factors within the first prediction time period are input into a first price prediction model to predict the first transaction price, wherein the first price prediction model is obtained by training a support vector regression model.
3. The method according to claim 2, wherein: Before determining the first transaction price of the first power resource in the first prediction time period according to the value data of the price influencing factor of the first power resource in the first prediction time period, the method further includes: Iterate and update the candidate hyperparameter combination for multiple rounds until the preset number of iterations is reached, wherein in each iterative update, for each candidate hyperparameter combination, adjust the current candidate hyperparameter combination according to the distance between the current candidate hyperparameter combination and the previous round of preferred hyperparameter combination and the previous round of difference hyperparameter combination, and confirm whether to update the current candidate hyperparameter combination to the adjusted candidate hyperparameter combination according to the model effect; Determine the optimal hyperparameter combination from the candidate hyperparameter combinations after the iteration as the target hyperparameter combination; The support vector regression model is trained using the target hyperparameter combination to obtain the first price prediction model.
4. The method according to any one of claims 1 to 3, wherein: The price influencing factor includes at least one key price influencing factor, and before determining the first transaction price of the first power resource in the first forecast time period according to the value data of the price influencing factor of the first power resource in the first forecast time period, the method further includes: Determine the correlation between each of the candidate price influencing factors and the historical transaction price according to the historical transaction price of the first power resource in the historical time period and the assignment data of multiple candidate price influencing factors matching the historical time period; The first N candidate price factors with the greatest relevance are determined as the key price influencing factors, where N is an integer greater than or equal to 1.
5. The method according to claim 4, wherein: The average value of the correlation between the key price influencing factors is less than the average value of the correlation between the remaining price factors to be selected.
6. The method according to claim 5, wherein: The determining the key price influencing factor from the multiple candidate price influencing factors according to the historical transaction price of the first power resource in the historical time period and the assignment data of the multiple candidate price influencing factors matching the historical time period includes: From the initial candidate feature set, a candidate feature with the largest mutual information with the historical transaction price is selected as a target feature, and transferred to the target feature set, wherein one candidate feature is obtained by performing feature extraction on the assigned data of one candidate price influencing factor; Selecting the candidate features that meet the maximum correlation and minimum redundancy conditions as target features from the current candidate feature set for multiple times, and transferring them to the target feature set until a preset selection stop condition is reached, wherein the maximum correlation and minimum redundancy conditions include that the first mutual information is maximum and the second mutual information is minimum, and the selection stop condition includes that the first mutual information is greater than the second mutual information, the first mutual information is the mutual information between the currently selected candidate feature and the historical transaction price, and the second mutual information is the mean of the mutual information between the currently selected candidate feature and each target feature in the current target feature set; The selected price influencing factor corresponding to the target feature is used as the key price influencing factor.
7. The method according to any one of claims 1 to 3, wherein: The historical transaction data is a historical price sequence, the historical price sequence includes multiple time points and transaction prices corresponding to each time point, and determining the second transaction price of the second power resource in the second prediction time period based on the historical transaction data of the second power resource before the second prediction time period includes: Decomposing the historical price sequence into a plurality of historical price subsequences with different price fluctuation characteristics; Acquire multiple predicted price subsequences output by multiple second price prediction models, wherein one second price prediction model is used to predict a predicted price subsequence of the second power resource within the second prediction time period based on an input historical price subsequence; The multiple predicted price subsequences are combined to obtain the second transaction price.
8. The method according to claim 7, wherein: Decomposing the historical price sequence into multiple historical price subsequences with different price fluctuation characteristics, including: Based on each historical price subsequence and the central frequency of each historical price subsequence, an augmented Lagrangian function with Lagrangian multipliers is constructed, wherein the Lagrangian multipliers are used to characterize the constraints that each historical price subsequence and its central frequency need to satisfy; The historical price subsequences, the central frequencies of the historical price subsequences and the Lagrange multipliers are iteratively updated through an alternating direction algorithm until each of the historical price subsequences meets a preset threshold condition.
9. The method according to claim 7, wherein: The second price prediction model includes a convolutional neural network and a long short-term memory network. The convolutional neural network is used to extract features from the historical price subsequence to obtain a feature subsequence. The long short-term memory network is used to model the time dependency in the feature subsequence to output a corresponding predicted price subsequence.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 9 when executing the computer program.
11. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
12. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.
Citation Information
Cited By
Virtual power plant power transaction optimization method and system based on data driving
CN119417510A
