Park comprehensive energy system optimization scheduling method and device based on residual supply curve

By constructing a probabilistic prediction model for the marginal cost-power relationship based on a weighted quantile regression temporal convolutional network and a mixed integer linear programming model, the problem of dispatch strategy deviation in the integrated energy system of the park in the electricity spot market was solved, the power purchase plan and resource dispatch were optimized, and the adaptability and availability of the system were improved.

CN123144164APending Publication Date: 2026-11-20ECONOMIC TECH RES INST STATE GRID HUNAN ELECTRIC POWER +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611396330.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively construct probabilistic prediction methods for the remaining supply curve that strongly correlates with the net power purchased by the industrial park in the spot electricity market. This leads to deviations in the scheduling strategy of the park's integrated energy system from actual market operating conditions, resulting in risks such as power supply and demand imbalances and energy storage exceeding its operating limits.

Method used

By collecting multi-source historical time-series data of the park's integrated energy system, a weighted quantile regression temporal convolutional network is trained to construct a probabilistic prediction model of the marginal cost-power relationship. The discrete net power purchase range is defined by multiple threshold points. A set of weighted residual supply curve scenarios is constructed and embedded into a mixed integer linear programming model to optimize the scheduling scheme of the park's integrated energy system.

Benefits of technology

It has enabled the coordinated and optimized operation of the park's integrated energy system source, storage and load under the uncertainty of electricity spot market prices, improved the adaptability and availability of power purchase plans and internal resource scheduling, and reduced the deviation and error propagation problems caused by preset error distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144164A_ABST
    Figure CN123144164A_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of power spot market optimization scheduling, and provides a park integrated energy system optimization scheduling method and equipment based on a residual supply curve, comprising: training a weighted quantile regression time convolution network to obtain a marginal cost-power relationship probability prediction model; constructing a prediction feature sequence for each time of the prediction day and inputting the marginal cost-power relationship probability prediction model to obtain a plurality of marginal cost quantile prediction values corresponding to each power purchase threshold point; constructing a plurality of discrete residual supply curves corresponding to each time and giving each residual supply curve a probability weight to obtain a weighted residual supply curve scenario set; embedding the weighted residual supply curve scenario set into a mixed integer linear programming model of park integrated energy system optimization scheduling to obtain a day-ahead power purchase plan and a park integrated energy system scheduling scheme, and realizing collaborative optimization operation of the park integrated energy system source, storage and load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of power spot market optimization dispatch technology, and in particular relates to a method and equipment for optimizing the dispatch of a park's integrated energy system based on the surplus supply curve. Background Technology

[0002] With the gradual implementation of electricity market reforms and the electricity spot market system, integrated energy systems in commercial parks, as typical demand-side entities, are transforming from passive electricity consumers accepting fixed prices to active market participants who can adjust their internal power generation, storage, and output, and alter their interaction with the grid. Under the electricity spot market mechanism, the net power purchased by commercial parks from the grid is no longer solely determined by the park's load demand. The scale of power purchases by the park can, in turn, influence the market clearing price, forming a dynamic relationship where purchased power and market prices are coupled. Therefore, when formulating day-ahead dispatch plans, commercial parks need to simultaneously consider the operational constraints of distributed photovoltaic, energy storage, and flexible load electrical equipment within the park, the coupling relationship between the park's net power purchases and the market clearing price, and the random uncertainty of market prices caused by supply and demand fluctuations.

[0003] The Residual Supply Curve (RSC) characterizes the market-clearing electricity price at different net power purchase levels in a commercial park under given market conditions. Probabilistic prediction of the RSC allows the park to quantify electricity price levels and fluctuation ranges across different power purchase ranges, thereby enabling coordinated optimization of operational strategies for distributed photovoltaic power, energy storage, heating and cooling loads, transferable loads, and loads that can be reduced. Most existing park dispatching technologies employ machine learning models for single-point electricity price prediction, then rely on the statistical distribution of historical prediction errors to generate subsequent scenarios, without conducting integrated structured probabilistic modeling of the uncertainties in power purchase and electricity prices.

[0004] On the one hand, single-point electricity price prediction models cannot endogenously represent electricity price uncertainty, and subsequent uncertainty simulation requires artificially pre-setting the error distribution, which is prone to introducing distribution assumption bias. On the other hand, the two-stage processing mode of "point prediction + error sampling" will cause prediction errors to be propagated and amplified step by step. In addition, the electricity price scenarios generated by existing methods are mostly independent time-series electricity price sequences, without establishing an explicit mapping relationship between electricity price and net power purchased by the park. It is difficult to directly embed them into the mixed integer optimization scheduling model of the park's integrated energy system, and cannot support the coordinated regulation of park resources that takes into account the coupling characteristics of electricity price and power. This can easily lead to the obtained scheduling strategy deviating from the actual market operating conditions, causing operational risks such as power supply and demand imbalance in the park and energy storage exceeding its operating limits.

[0005] In summary, how to construct a probabilistic prediction method for the remaining supply curve that is strongly correlated with the net power purchased by the park in the electricity spot market, and how to effectively integrate the prediction results into the park's optimized dispatch framework to achieve coordinated and optimized operation of the park's integrated energy system is a technical problem that urgently needs to be solved. Summary of the Invention

[0006] To address at least one of the aforementioned technical issues, this application proposes a method and equipment for optimizing the scheduling of a park's integrated energy system based on the remaining supply curve. This method is designed to be used in the electricity spot market and is expected to be strongly correlated with the net power purchased by the park. The prediction results are then effectively integrated into the park's optimized scheduling framework to achieve coordinated and optimized operation of the park's integrated energy system.

[0007] Firstly, this application provides a method for optimizing the scheduling of a park's integrated energy system based on a residual supply curve, the method comprising: S1. Collect multi-source historical time-series data of the park's integrated energy system. Based on the multi-source historical time-series data and the corresponding actual node marginal cost, train a weighted quantile regression temporal convolutional network to obtain a probabilistic prediction model of the marginal cost-power relationship. S2, obtain the net power purchase range of the park's integrated energy system on the forecast day, discretize it into multiple power purchase threshold points, construct a prediction feature sequence for the multivariate prediction data corresponding to each moment on the forecast day and each power purchase threshold point, and input it into the marginal cost-power relationship probability prediction model to obtain multiple marginal cost quantile prediction values ​​corresponding to each power purchase threshold point; S3. Connect the marginal cost quantile prediction values ​​corresponding to different power purchase threshold points according to the same quantile level to construct multiple discrete residual supply curves corresponding to each time point; and assign probability weights to each residual supply curve based on the quantile interval between adjacent quantile levels to obtain a set of weighted residual supply curve scenarios. S4, embed the weighted residual supply curve scenario set into the mixed integer linear programming model for the optimal scheduling of the park's integrated energy system, and construct linear coupling constraints for the residual supply curve; through binary interval selection variables and interval power purchase variables, map the park's net power purchase to the interval marginal cost under the corresponding scenario, and construct an objective function with the goal of minimizing the park's total expected power purchase cost, while jointly setting the operational constraints of the park's integrated energy system; S5, solve the mixed integer linear programming model, output the day-ahead power purchase plan between the park and the power grid and the scheduling scheme of multiple resources within the integrated energy system, and regulate the output of multiple resources within the integrated energy system of the park according to the scheduling scheme.

[0008] In one possible implementation, step S1 includes: S11, collect multi-source historical time-series data of the park's integrated energy system. The multi-source historical time-series data includes the marginal cost of historical nodes corresponding to several historical moments, the park's historical net power purchase, regional total load, temperature, irradiance, intraday time period and week type. S12, perform minimum and maximum value normalization processing on the historical node marginal cost, park historical net power purchase, regional total load, temperature, irradiance and weekday type in the multi-source historical time series data, perform sine and cosine encoding on the intraday time period, and splice the data of the same moment into a single moment feature vector. S13, construct a training sample set based on the single-moment feature vectors and actual node marginal costs corresponding to each historical moment; each training sample takes any historical moment of any historical day as the label moment, and the input is a target historical feature sequence composed of the single-moment feature vectors corresponding to the 24 consecutive historical moments closest to the label moment, and a current conditional feature vector composed of temperature, irradiance, regional total load, intraday time period, week type, actual node marginal cost at the same moment of the previous day, and net power purchased by the park corresponding to the label moment; concatenate the target historical feature sequence with the current conditional feature vector to obtain the input feature sequence of the training sample, and the label is the actual node marginal cost of the label moment; S14. Based on the training sample set, using the input feature sequence as input and the actual node marginal cost at the label time as the true label, a weighted quantile regression temporal convolutional network is trained using the weighted quantile loss function to obtain the marginal cost-power relationship probability prediction model.

[0009] In one possible implementation, the marginal cost-power relationship probabilistic prediction model includes an input layer, a feature projection layer, a temporal convolution module, and a weighted quantile output layer arranged sequentially. The input layer is used to input the input feature sequence; The feature projection layer is used to perform dimension mapping on the feature vectors at each time step in the input feature sequence through a fully connected layer, and to complete the nonlinear transformation using the ELU activation function; The temporal convolution module includes several dilated causal convolution blocks connected in sequence. Each dilated causal convolution block performs causal convolution operation using an exponentially increasing dilation factor. After passing through weight normalization, ELU activation, and convolution channel adaptation, the output of the previous convolution layer is fused through residual connections to extract multi-temporal temporal dependency features. The weighted quantile output layer is used to extract the output of the last dilated causal convolutional block at the end of the input feature sequence, and then map it to a preset number of quantile dimensions through two fully connected network layers to output the node marginal cost prediction value corresponding to each preset quantile level at the target time.

[0010] In one possible implementation, the weighted quantile loss function is: ; in, Here, Q represents the weighted quantile loss value, where M is the total number of training samples and Q is the preset number of quantiles. Let m be the actual node marginal cost of the m-th training sample. Let be the predicted marginal cost of the node for the m-th training sample at the q-th quantile level. For the qth quantile level, The weight of the qth quantile and .

[0011] In one possible implementation, step S2 includes: S21, obtain the net power purchase range of the park's integrated energy system on the forecast day, and discretize the net power purchase range into multiple power purchase threshold points at equal intervals; S22, normalize and periodically encode the multi-source historical time series data of the 24 most recent consecutive moments before the prediction start time to obtain the target historical feature sequence; for each moment of the prediction day and each power purchase threshold point, normalize and periodically encode the predicted temperature, predicted irradiance, predicted regional total load, time period code, weekday type, actual node marginal cost at the same moment of the previous day and the corresponding power purchase threshold point, and then concatenate them to construct the current condition feature vector corresponding to each power purchase threshold point. Then, concatenate the target historical feature sequence with each of the current condition feature vectors to obtain the prediction feature sequence corresponding to each power purchase threshold point. S23, input the predicted feature sequence corresponding to each power purchase threshold point into the marginal cost-power relationship probability prediction model to obtain multiple marginal cost quantile prediction values ​​corresponding to each power purchase threshold point.

[0012] In one possible implementation, step S3 includes: S31, for each time step and each quantile level Construct the remaining supply curve ;in, For the first Each electricity purchase power threshold point, For a moment , No. The first power purchase threshold point, the first The predicted marginal cost of each node corresponding to each quantile; The remaining supply curve includes the number of segments representing the net power purchase range. Each power purchase threshold point; S32, based on all remaining supply curves at the same time, constructs a set of remaining supply curves. Where Q is the preset number of quantiles; S33, Calculate the residual supply curve The probability weights are ,in, , ; S34. Based on all remaining supply curves and their corresponding probability weights at time t, construct a set of weighted remaining supply curve scenarios at time t. .

[0013] In one possible implementation, the objective function of the mixed-integer linear programming model is: ; in, For a moment , No. The power range, the first The predicted marginal cost of nodes corresponding to each quantile scenario; For a moment In the The power purchase capacity within a power range; These are the probability weights corresponding to the remaining supply curve; The scheduling time interval; any two adjacent power purchase threshold points constitute a power interval; The linear coupling constraint of the remaining supply curve includes at least the following: ; ; ; in, Choose a variable for the binary interval, with 1 representing time. The park's net power purchase capacity ranks first. There are power intervals, with 0 representing time intervals. The park's net power purchase capacity is not ranked first One power range; and The first The, the The first power purchase threshold point constitutes the first... Power ranges; Power range index Take 0 to , This represents the number of segments within the net purchased power range.

[0014] In one possible implementation, the mixed-integer linear programming model includes at least the following decision variables: At any given moment, the park's integrated energy system includes the net power purchased from the power grid, the power purchased from each power range, the photovoltaic power generation, the energy storage charging power, the energy storage discharging power, the binary variable of energy storage status, the remaining energy storage capacity, the heating load power, the cooling load power, the indoor temperature, the transferable load power, the load that can be reduced, and the binary range selection variable indicating whether the park's net power purchased falls within any power range. The operational constraints of the park's integrated energy system include at least: power balance constraints, photovoltaic power generation constraints, energy storage charging and discharging constraints, energy storage status update constraints, energy storage cycle constraints, heating and cooling load constraints, transferable load constraints, and load reduction constraints.

[0015] In one possible implementation, step S5 includes: S51, the weighted residual supply curve scenario set, the parameters of each equipment in the park, and the predicted intraday weather and load data are substituted into the mixed integer linear programming model as input parameters; S52, call the commercial solver to iteratively solve the mixed integer linear programming model, and simultaneously satisfy the objective function, the linear coupling constraint of the residual supply curve and the operation constraint of the park's integrated energy system during the solution process; S53, after convergence, outputs the time series results of the optimal decision variables, extracts the day-ahead power purchase plan, distributed photovoltaic power output strategy, energy storage charging and discharging time series scheme, heating and cooling regulation power, and transferable / reducible flexible load dispatch scheme between the park and the power grid for each time period, and performs power output regulation of the internal multi-resources of the park's integrated energy system.

[0016] In a second aspect, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described in the first aspect or any of the implementations thereof.

[0017] Thirdly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method as described in the first aspect or any of the implementations thereof.

[0018] Fourthly, this application provides a computer program product comprising a computer program that, when executed by a processor, implements the steps of the method as described in the first aspect or any of the implementations thereof.

[0019] The advantages of this application compared to existing technologies are as follows: By collecting multi-source historical time-series data of the park's integrated energy system, and training a weighted quantile regression temporal convolutional network based on the multi-source historical time-series data and the corresponding actual node marginal costs, a probabilistic prediction model of the marginal cost-power relationship is obtained. This enables the marginal cost prediction process to simultaneously consider the relevant time-series characteristics of park operation, power purchase conditions, and the probability distribution of node marginal costs. The predicted daily net power purchase range is discretized into multiple power purchase threshold points, and a prediction feature sequence is constructed for the multivariate prediction data and each power purchase threshold point at each moment of the prediction day. This allows for the output of multiple marginal cost quantile prediction values ​​under different power purchase levels. By connecting the marginal cost quantile prediction values ​​corresponding to each power purchase threshold point according to the same quantile level, and performing probability weighting based on the quantile interval between adjacent quantile levels, a set of weighted residual supply curve scenarios explicitly associated with the park's power purchase decision can be constructed. The weighted residual supply curve scenario set is embedded into a mixed-integer linear programming model for the optimal scheduling of the park's integrated energy system. Linear coupling constraints on the residual supply curve are constructed, and binary interval selection variables and interval power purchase variables are used to map the park's net power purchase to the corresponding interval marginal cost. This transforms the coupling relationship between power purchase and market clearing price into a computable constraint in the optimal scheduling model. Compared to first predicting a single marginal cost point and then performing post-processing and scenario generation based on historical prediction errors, this approach reduces the distribution assumption bias caused by the preset error distribution and the error propagation problem caused by the two-stage processing. It avoids generating results that are merely isolated marginal cost time-series scenarios, making it difficult to correspond to the park's power purchase decisions. This improves the adaptability and availability of the park's integrated energy system's day-ahead power purchase plan and internal multi-resource scheduling scheme under the uncertainty of electricity spot market prices, achieving coordinated and optimized operation of the park's integrated energy system's source, storage, and load.

[0020] It is understood that the electronic equipment, computer-readable storage medium, and computer program products provided in this application have the same beneficial effects as the above-mentioned method for optimizing the scheduling of the integrated energy system of the park based on the residual supply curve, and will not be repeated here. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating an optimized scheduling method for a park's integrated energy system based on a residual supply curve, provided as an embodiment of this application; Figure 2 A schematic diagram of the architecture of an integrated energy system for a park is provided as an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a probabilistic prediction model for the marginal cost-power relationship provided in an embodiment of this application. Detailed Implementation

[0023] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0024] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0025] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0026] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0027] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0028] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0029] The residual supply curve involved in this application can be understood as the nodal marginal cost relationship corresponding to different net power purchase levels of the park's integrated energy system under given operating conditions. The nodal marginal cost referred to in this paper is a value obtained from historical operating results or their equivalent mapping data, used to characterize the cost per unit of electricity purchased by the park's access nodes, expressed in yuan / MWh. The park's integrated energy system may include distributed photovoltaic power, energy storage, heating loads, cooling loads, transferable loads, reduceable loads, and other non-adjustable baseloads.

[0030] For ease of understanding, the technical solution of this application will be described in detail below with reference to the accompanying drawings.

[0031] Figure 1 This is a flowchart illustrating an embodiment of an optimized scheduling method for a park's integrated energy system based on a residual supply curve. Figure 1 As shown, for ease of explanation, only the parts relevant to this embodiment are shown. The method provided in this embodiment includes the following steps: S1. Collect multi-source historical time-series data of the park's integrated energy system. Based on the multi-source historical time-series data and the corresponding actual node marginal costs, train a weighted quantile regression temporal convolutional network to obtain a probabilistic prediction model of the marginal cost-power relationship.

[0032] Specifically, this step is a probabilistic modeling process for the marginal cost-power relationship, used to map historical node marginal costs, net power purchased by the industrial park, meteorological data, regional load, and time-of-day information into node marginal cost prediction results at multiple quantile levels. Unlike methods that only output a single marginal cost point prediction, this step directly learns the conditional distribution of node marginal costs under different power purchase and operating conditions through a weighted quantile regression temporal convolutional network, outputting price uncertainty information from within the model.

[0033] As an example, such as Figure 2As shown, the integrated energy system of the park in this embodiment is connected to the external power grid through a public interconnection transformer. The park integrates distributed photovoltaic, cooling / heating loads, energy storage devices, and comprehensive electricity loads of a type that can be reduced or adjusted, forming an electric-thermal coupled integrated energy system. Among them, distributed photovoltaic, as the park's own power generation resource, can output electricity locally to supply various loads in the park; the energy storage device has bidirectional power regulation capabilities, and can perform charging and energy storage operations and discharging and energy supply operations, smoothing out photovoltaic output fluctuations and optimizing the power purchase strategy in conjunction with the marginal cost of the power grid; the cooling / heating load is a flexible building thermal resource, and the indoor temperature can be changed by adjusting the cooling and heating output, participating in dispatch within the human comfort temperature range; the remaining electricity loads include non-adjustable base loads, transferable loads, and reduceable loads, which belong to demand-side flexible control resources. The power interaction of all internal equipment in the park is aggregated to the park's common bus, which unifies the power interaction with the external power grid. The overall net power purchase of the park is the remaining power after deducting the internal photovoltaic and energy storage discharge supply from the park's total power demand. This net power purchase directly affects the clearing price of the electricity spot market node, and the two form a two-way coupling relationship, providing a physical architecture foundation for the construction of the remaining supply curve and the optimized scheduling of the park in this application.

[0034] In one possible implementation, step S1 includes: S11 collects multi-source historical time-series data of the park's integrated energy system. The multi-source historical time-series data includes the marginal cost of historical nodes corresponding to several historical moments, the park's historical net power purchase, regional total load, temperature, irradiance, intraday time period and week type.

[0035] Specifically, historical node marginal cost is used to characterize changes in spot market clearing prices; historical net power purchases in the park are used to characterize the power interaction level between the park and the market under different power consumption strategies; regional total load is used to characterize the supply and demand status on the market side; temperature and irradiance are used to characterize the impact of meteorological conditions on electricity demand and photovoltaic output; intraday time period and week type are used to characterize workdays, rest days, and intraday periodic patterns, for example, intraday time period is a certain hour within a day.

[0036] S12 performs minimum-maximum normalization on the historical node marginal cost, historical net power purchase of the park, total regional load, temperature, irradiance and weekday type in the multi-source historical time series data, performs sine and cosine coding on the intraday time period, and splices the data of the same moment into a single-moment feature vector.

[0037] Specifically, Min-Max normalization is used to eliminate the influence of different dimensions and numerical ranges on model training, so that node marginal cost, power, load, temperature, irradiance and week type participate in training on the same scale.

[0038] As an example, the Min-Max normalization calculation formula is: ; in, The original continuous feature sequence is a feature sequence composed of historical node marginal cost, historical net power purchase of the park, total regional load, temperature, irradiance, and weekday type. and These are the minimum and maximum value vectors for each feature in the multi-source historical time series data, respectively. For a normalized continuous feature sequence, the feature values ​​are mapped to the interval [0,1].

[0039] Optionally, intraday time periods are periodic, and hourly features are typically represented using integer codes from 0 to 23. This can easily introduce artificial distances between adjacent period boundaries. For example, 23:00 and 0:00 are temporally adjacent, but their integer codes differ significantly. Therefore, it is necessary to modify the hourly features... Sine and cosine encoding is performed to preserve periodic information.

[0040] As an example, the formula for calculating sine and cosine encoding is: Then the obtained sinusoidal coding features Sum and cosine coding features Composition of hourly feature sequences .

[0041] Optionally, the normalized continuous features and hourly features at the same time can be concatenated into a single-time feature vector. ,in, It represents the feature dimension at a single time step.

[0042] S13. Construct a training sample set based on the single-moment feature vectors and actual node marginal costs corresponding to each historical moment. Each training sample is labeled with any historical moment of any historical day. The input consists of the target historical feature sequence, which is composed of the single-moment feature vectors corresponding to the 24 consecutive historical moments closest to the label moment, and the current conditional feature vector, which is composed of the temperature, irradiance, regional total load, intraday time period, week type, actual node marginal cost at the same moment of the previous day, and net power purchased by the park corresponding to the label moment. The target historical feature sequence and the current conditional feature vector are concatenated to obtain the input feature sequence of the training sample, with the label being the actual node marginal cost at the label moment.

[0043] Specifically, this step is used to construct supervised training samples for the marginal cost-power relationship probabilistic prediction model, enabling the model to learn the joint input structure of "continuous historical time series information + current conditions at the target time" during the training phase, and to maintain consistency with the input format during the prediction phase. For any label time, a lookback window length K is preferably used. his=24, extract the 24 most recent consecutive historical moments before the labeled moment, and arrange the single-moment feature vectors of each moment processed in step S12 in chronological order to form the target historical feature sequence. This target historical feature sequence is used to characterize the continuous evolution of node marginal cost, net power purchase of the park, regional total load, and meteorological factors in the near future, thus providing an input basis for the temporal convolutional network to extract multi-time series dependent features.

[0044] Furthermore, for each labeled time, a current conditional feature vector is constructed corresponding to that time. This current conditional feature vector can be composed of the temperature, irradiance, total regional load, intraday time period, weekday type, actual node marginal cost at the same time on the previous day, and net purchased power of the park at that time. Specifically, the net purchased power of the park is calculated using the historical actual net purchased power corresponding to the labeled time during the training phase to reflect the correspondence between marginal cost and purchased power under real operating conditions. During the prediction phase, this input is replaced by various purchased power threshold points, thus ensuring that the training input structure and the prediction input structure are isomorphic, differing only in the source of the purchased power values.

[0045] Optionally, when constructing the training sample set, data records with severe missing information or abnormal jumps can be removed; for a small number of missing weather or load forecast-related features, interpolation of nearby times, daily averages of the same type, or correction values ​​provided by the scheduling system can be used to fill the gaps. The above data cleaning does not change the core processing chain of this application, and its purpose is to improve the stability of model training.

[0046] Step S13 allows the historical continuous time series information and the target time condition information to be incorporated into the training sample construction process. This enables the model to learn both the short-term continuous time series change patterns and the impact of the target time power purchase and external conditions on the node marginal cost, thereby improving the accuracy and consistency of subsequent marginal cost quantile predictions.

[0047] S14, based on the training sample set, takes the input feature sequence as input and the actual node marginal cost at the label time as the true label, and trains a weighted quantile regression temporal convolutional network using the weighted quantile loss function to obtain a probabilistic prediction model of the marginal cost-power relationship.

[0048] Specifically, the training objective of the weighted quantile regression temporal convolutional network is not to fit a single conditional mean, but to simultaneously fit multiple preset quantile levels. The predicted marginal cost of the nodes below Where Q is the preset number of quantiles. Different quantile levels correspond to marginal cost boundaries at different confidence levels, thus the trained model can be used as a probabilistic prediction model G for the marginal cost-power relationship.

[0049] In one possible implementation, a Temporal Convolutional Network (TCN) is used to process temporally dependent sequence features. By using dilated causal convolutions, the model can expand its receptive field while preserving the temporal order and preventing the leakage of future information, thereby extracting multi-temporal correlations between node marginal costs, load, temperature, irradiance, and park electricity purchasing behavior in day-ahead scheduling scenarios. For example... Figure 3 As shown, the marginal cost-power relationship probabilistic prediction model includes an input layer, a feature projection layer, a temporal convolution module, and a weighted quantile output layer arranged sequentially. The input layer is used to input the feature sequence. The feature projection layer is used to map the dimensions of the feature vectors at each time step in the input feature sequence through the fully connected layer, and uses the Exponential Linear Unit (ELU) activation function to complete the nonlinear transformation. The temporal convolution module includes several dilated causal convolution blocks connected in sequence. Each dilated causal convolution block performs causal convolution operations using an exponentially increasing dilation factor. After passing through weight normalization, ELU activation, and convolution channel adaptation, the output of the previous convolution layer is fused through residual connections to extract multi-temporal temporal dependency features. The weighted quantile output layer is used to extract the output of the last dilated causal convolutional block at the end of the input feature sequence, and then maps it to a preset number of quantile dimensions through two fully connected network layers, outputting the node marginal cost prediction value corresponding to each preset quantile level at the target time.

[0050] As an example, the feature projection layer performs the same fully connected mapping on the features at each time step in the input feature sequence. The calculation process is as follows: ; in, The input feature sequence; This is the projection weight matrix; It is the bias vector; For length is A column vector of all 1s; This is the projected low-dimensional temporal feature matrix. is the length of the input feature sequence, preferably 25; d is the compressed feature dimension after fully connected projection. ; Here, z is the input scalar of the activation function, corresponding to the value of a single neuron output from a layer in the network.

[0051] As an example, the temporal convolution module contains There are three identical dilated causal convolutional blocks, each including a dilated convolutional layer, a weight normalization layer, an ELU activation layer, and a residual connection layer arranged sequentially. A dilated causal convolutional block ( The processing procedure for ) is as follows: ; in, This is a weight normalization operation; The expansion factor is dilated causal convolution; A 1×1 convolution is used to adjust the number of channels; For the first The output features of a dilated causal convolution block.

[0052] As an example, the weighted quantile output layer processes the output of the last dilated causal convolutional block at the end of the input feature sequence: ; ; in, For the first After the Lth convolutional block (i.e., the last dilated causal convolutional block), the sample is processed in the Lth convolutional block. The output at the last time step (i.e., the final time step); and These are the weights and biases of the first fully connected layer, respectively. and These are the weights and biases of the second fully connected layer, respectively. For the sample of Quantile predicted values.

[0053] In one possible implementation, the weighted quantile loss function is: ; in, Here, Q represents the weighted quantile loss value, where M is the total number of training samples and Q is the preset number of quantiles. Let m be the actual node marginal cost of the m-th training sample. Let be the predicted marginal cost of the node for the m-th training sample at the q-th quantile level. For the qth quantile level, The weight of the qth quantile and . This is used to emphasize the prediction accuracy of the quantiles at both ends, enabling the model to better characterize both high-price risk and low-price boundaries.

[0054] Optionally, the Adam optimization algorithm is used to minimize the weighted quantile loss function, and training is stopped when the validation set loss no longer decreases. The trained marginal cost-power relationship probabilistic prediction model can receive a sequence of prediction features including the power purchase condition and output node marginal cost predictions at multiple quantile levels.

[0055] S2. Obtain the net power purchase range of the park's integrated energy system on the forecast date, discretize it into multiple power purchase threshold points, construct a prediction feature sequence for the multivariate prediction data corresponding to each moment on the forecast date and each power purchase threshold point, and input it into the marginal cost-power relationship probability prediction model to obtain multiple marginal cost quantile prediction values ​​corresponding to each power purchase threshold point.

[0056] Specifically, this step involves calculating the marginal cost-power conditional quantiles for the forecast day. Before day-ahead dispatch, this process discretizes the potential net power purchase range for the industrial park into multiple power tiers and evaluates the probability prediction results of the node marginal cost under different power levels for each tier. Consequently, subsequent steps can obtain a sequence of marginal cost quantiles explicitly bound to the purchased power based on the same forecast day's operating conditions.

[0057] In one possible implementation, step S2 includes: S21, obtain the net power purchase range of the park's integrated energy system on the forecast date, and discretize the net power purchase range into multiple power purchase threshold points at equal intervals.

[0058] Optionally, the park's integrated energy system is set to operate at any time. The net power purchased is ( The net power purchase range is determined based on the historical electricity consumption characteristics, contracted capacity, equipment operating boundaries, and day-ahead forecast base load of the park's integrated energy system. Dividing this range into B equal segments, we can obtain B+1 power purchase threshold points: ; in, Let B be the threshold point for the b-th power purchase, and B be the number of segments in the net power purchase range. This number of segments can be set according to the accuracy of the marginal cost-power relationship curve, the required solution speed, and the granularity of park scheduling. The larger the number of segments, the more refined the description of the remaining supply curve, but the number of binary variables in the subsequent mixed-integer linear programming model will also increase accordingly.

[0059] S22, normalize and periodically encode the multi-source historical time series data of the 24 most recent consecutive moments before the prediction start time to obtain the target historical feature sequence; for each moment of the prediction day and each power purchase threshold point, normalize and periodically encode the predicted temperature, predicted irradiance, predicted regional total load, time period code, weekday type, actual node marginal cost at the same moment of the previous day, and the corresponding power purchase threshold point, and then concatenate them to construct the current condition feature vector corresponding to each power purchase threshold point. Then, concatenate the target historical feature sequence with each current condition feature vector to obtain the prediction feature sequence corresponding to each power purchase threshold point.

[0060] Specifically, this step constructs model input data with the same input structure as the training phase during the prediction phase. This ensures that the marginal cost-power relationship probabilistic prediction model can output marginal cost quantile prediction results at each target time on the prediction day, based on a unified input format of "continuous historical time-series information + current conditions at the target time." Unlike the training phase, the historical part in this step uses data from the most recent 24 consecutive time periods observed before the prediction start time, while the target time part uses the prediction data at the corresponding time on the prediction day and the power purchase threshold point to be evaluated. This enables conditional prediction of the node marginal cost under different power purchase levels.

[0061] Optionally, the multi-source historical time-series data from the 24 most recent consecutive moments before the prediction start time can be normalized and periodically encoded according to the processing method in step S12, and arranged in chronological order to form a target historical feature sequence. This target historical feature sequence is used to characterize the continuous variation patterns of node marginal cost, net power purchase of the park, regional total load, and meteorological factors within the day before the prediction start time, providing basic input for the temporal convolutional network to extract multi-time series dependent features.

[0062] For any target time on the forecast date, while keeping the historical characteristic sequence of the target unchanged, a corresponding current condition feature vector is constructed for each power purchase threshold point. The current condition feature vector can be composed of the forecast temperature, forecast irradiance, forecast regional total load, time period code, weekday type, actual node marginal cost at the same time on the previous day, and the currently selected power purchase threshold point. Specifically, the forecast temperature, forecast irradiance, and forecast regional total load reflect the external operating environment and market supply and demand conditions at the target time; the time period code and weekday type reflect the periodicity of the target time; the actual node marginal cost at the same time on the previous day provides a price reference for the same time period on adjacent days; and the power purchase threshold point explicitly characterizes the net power purchase level that the park may adopt at the target time.

[0063] Through step S22, while maintaining the consistency of historical time series input, prediction feature sequences under different power purchase levels can be constructed by simply changing the power purchase threshold point in the current condition feature vector at the target time. This provides an input basis for subsequently outputting multiple marginal cost quantile prediction values ​​for each threshold point and constructing a discretized residual supply curve scenario.

[0064] S23, input the predicted feature sequence corresponding to each power purchase threshold point into the marginal cost-power relationship probability prediction model to obtain multiple marginal cost quantile prediction values ​​corresponding to each power purchase threshold point.

[0065] Specifically, the predicted feature sequence is input into the trained marginal cost-power relationship probability prediction model G to obtain a set of node marginal cost quantile prediction values ​​corresponding to the b-th power purchase threshold point at time t: ; The prediction results are indexed in three dimensions according to time t, power purchase threshold point b, and quantile level q; b ranges from 0 to B, corresponding to B+1 power purchase threshold points. To predict feature sequences.

[0066] The technical solution provided in this step can obtain the marginal cost quantile prediction value corresponding to each point of the net power purchase threshold in the park, providing a discrete point basis for the subsequent construction of the remaining supply curve, rather than generating an isolated marginal cost time series scenario that is detached from the power purchase decision.

[0067] S3. Connect the marginal cost quantile prediction values ​​corresponding to different power purchase threshold points according to the same quantile level to construct multiple discrete residual supply curves corresponding to each time point; and assign probability weights to each residual supply curve based on the quantile interval between adjacent quantile levels to obtain a set of weighted residual supply curve scenarios.

[0068] Specifically, this step is the process of generating probabilistic scenarios for the remaining supply curve, which is used to organize the discrete power threshold and marginal cost quantile prediction results into a set of scenarios that can be embedded in the optimization model. At the same quantile level, the marginal cost prediction points corresponding to different power purchase threshold points together constitute a discrete remaining supply curve; different quantile levels correspond to different confidence levels, thus forming multiple marginal cost-power relationship scenarios.

[0069] In one possible implementation, step S3 includes: S31, for each time step and each quantile level Construct the remaining supply curve ;in, For the first Each electricity purchase power threshold point, For a moment , No. The first power purchase threshold point, the first The predicted marginal cost of each node corresponding to each quantile; The remaining supply curve includes the number of segments representing the net power purchase range. Each power purchase threshold point.

[0070] Optional, for each time step and each quantile level ,Will Connecting the power purchase threshold points and their corresponding marginal cost quantile predictions yields a residual supply curve. The curve represents the first... The relationship between the marginal costs of nodes at different power purchase levels of the integrated energy system in the park at the quantile level.

[0071] S32, based on all remaining supply curves at the same time, constructs a set of remaining supply curves. , where Q is the preset number of quantiles.

[0072] Specifically, different quantile levels correspond to different confidence levels. For the same time t, the residual supply curves corresponding to the Q quantile levels are aggregated to form a set of residual supply curves. This set describes the possible forms of the marginal cost-power relationship at multiple confidence levels at the same prediction time. Since each curve is composed of the same batch of purchased power threshold points, the set has a unified power coordinate, which facilitates subsequent comparison, weighting, and optimized embedding between scenarios.

[0073] S33, Calculate the residual supply curve The probability weights are in, , .

[0074] Preferably, quantile level boundaries are set, and the probability weights of the remaining supply curve are determined based on the quantile intervals between adjacent quantile levels.

[0075] Optional, set And based on the probability quality between adjacent quantile levels, each residual supply curve is assigned a probability weight, calculated as follows: ; in, For the qth quantile level, Let be the probability weights for the scenario of the q-th remaining supply curve at time t. These probability weights reflect the probability quality corresponding to different quantile intervals, enabling multiple remaining supply curve scenarios to be used together for the calculation of expected electricity purchase costs.

[0076] S34. Based on all remaining supply curves and their corresponding probability weights at time t, construct a set of weighted remaining supply curve scenarios at time t. .

[0077] Specifically, a surplus supply curve and its corresponding probability weight constitute a surplus supply curve scenario. Each surplus supply curve... With corresponding probability weights Binding, obtaining a set of scenarios for the weighted residual supply curve For all T time points of the forecast day, a set of T weighted residual supply curve scenarios can be obtained, which can be used as the market price probability input for the optimized scheduling model.

[0078] The technical solution provided in this step transforms the probability prediction results into a set of residual supply curve scenarios that have an explicit mapping relationship with net purchased power, and retains the probability of occurrence corresponding to different confidence levels through probability weights, thereby providing structured input for comprehensive optimization of risk and cost.

[0079] S4 embeds the set of weighted residual supply curve scenarios into a mixed integer linear programming model for the optimal scheduling of the park's integrated energy system, and constructs linear coupling constraints for the residual supply curve. By using binary interval selection variables and interval power purchase variables, the net power purchase of the park is mapped to the interval marginal cost under the corresponding scenario, and an objective function is constructed with the goal of minimizing the total expected power purchase cost of the park. At the same time, the operation constraints of the park's integrated energy system are jointly set.

[0080] Specifically, this step involves the coupled optimization process of probabilistic operating boundaries and the coordinated scheduling of multiple resources within the park's integrated energy system. The model introduces a binary interval selection variable to determine the interval in which the park's net purchased power lies, and introduces an interval purchased power variable to decompose the net purchased power into the selected intervals. This allows the node marginal cost constant under each quantile scenario to be directly multiplied by the interval purchased power, thereby maintaining the linear form of the objective function and constraints.

[0081] In one possible implementation, the mixed-integer linear programming model aims to minimize the total expected electricity purchase cost of the industrial park, and the objective function is constructed as follows: ; in, For a moment , No. The power range, the first The predicted marginal cost of nodes corresponding to each quantile scenario; For a moment In the The power purchase capacity within a given power range; These are the probability weights corresponding to the remaining supply curve; The scheduling time interval; any two adjacent power purchase threshold points constitute a power interval; The linear coupling constraints of the residual supply curve include at least the following: ; ; ; in, Choose a variable for the binary interval, with 1 representing time. The park's net power purchase capacity ranks first. There are power intervals, with 0 representing time intervals. The park's net power purchase capacity is not ranked in the first place. One power range; and The first The, the The first power purchase threshold point constitutes the first... One power range; The value is 0 when this range is not selected, and equals the net power purchased by the park when this range is selected; Power Range Index Take 0 to , This represents the number of segments within the net purchased power range.

[0082] In some implementations, other equivalent mixed-integer linear expressions can also be used, as long as it can be guaranteed that only one power purchase range is selected at each time, the power purchase range of the unselected range is 0, and the power purchase range of the selected range is equal to the net power purchase range of the park, the same linear coupling purpose can be achieved.

[0083] In one possible implementation, the mixed-integer linear programming model includes at least the following decision variables: time The corresponding decision variables include at least the net power purchased by the park from the grid. Power purchased within the region Photovoltaic power generation Energy storage charging power Energy storage and discharge power Binary variables of energy storage status Remaining electricity from energy storage Heating load power Cooling load power Indoor temperature Transferable load power It can reduce load power. and binary range selection variables .in, Indicates time Net purchased power ranks in the first Power range.

[0084] The operational constraints of the park's integrated energy system include at least: power balance constraints, photovoltaic power generation constraints, energy storage charging and discharging constraints, energy storage status update constraints, energy storage cycle constraints, heating and cooling load constraints, transferable load constraints, and load reduction constraints.

[0085] As an example, power balance constraints can be expressed as: ; in, Let t be the base load power that is not adjustable at time t. This constraint ensures the supply and demand balance of the park at each scheduling time.

[0086] The constraints on photovoltaic power generation can be expressed as: ; in, Let be the predicted photovoltaic power at time t, and be a known quantity. This constraint ensures that the photovoltaic output does not exceed the predicted available output.

[0087] Energy storage charge and discharge constraints can be expressed as: ; ; in, , These are the maximum charging and discharging power, respectively.

[0088] The energy storage state update constraint can be expressed as: ; in, , These are the energy storage charging and discharging efficiencies, respectively. For time intervals.

[0089] Energy storage cycle constraints can be expressed as: ; in, , These represent the minimum and maximum energy storage capacities, respectively. and These represent the energy storage capacity at the beginning and end of the scheduling cycle, respectively. Setting them to be equal is used to achieve energy storage capacity circulation within the daytime scheduling cycle, preventing the false reduction of electricity purchase costs by consuming the energy storage capacity at the end of the period.

[0090] Heating and cooling load constraints can be expressed as: ; ; ; ; in, Outdoor temperature (a known quantity); The building heat loss coefficient; , These are the efficiency coefficients of the heating and cooling systems, respectively. , These are the lower and upper limits of the permissible indoor temperature range; , This represents the maximum power output for heating and cooling. This set of constraints is used to regulate the heating and cooling load while ensuring a comfortable indoor temperature range.

[0091] Transferable load constraints can be expressed as: ; ; in, The total amount of electricity transferred is a known constant. This represents the maximum power of the transferable load.

[0092] The load reduction constraint can be expressed as: ; ; in, For a moment The maximum power that can be reduced to the load; This represents the upper limit of the percentage of load that can be reduced at any given time.

[0093] Through the aforementioned transferable load constraints and reduceable load constraints, the mixed-integer linear programming model can adjust the timing of flexible loads while meeting the needs of production, office, or commercial operations.

[0094] The technical solution provided in this step transforms the set of scenarios for the weighted residual supply curve into a solvable linear constraint, so that the marginal cost is no longer a fixed exogenous sequence unrelated to the park's electricity purchase behavior, but is jointly determined by the net power purchase range and scenarios, thereby achieving unified optimization of the probabilistic market boundary and photovoltaic, energy storage, heating and cooling and flexible load scheduling.

[0095] S5 solves the mixed-integer linear programming model, outputs the day-ahead power purchase plan between the park and the power grid and the scheduling scheme of the multiple resources within the integrated energy system, and regulates the output of the multiple resources within the integrated energy system of the park according to the scheduling scheme.

[0096] Specifically, this step involves optimizing the model solution and outputting the scheduling scheme. Since the mixed-integer linear programming model includes continuous power variables, binary variables of energy storage state, and binary variables of purchased power ranges, and both the objective function and constraints can be linearly represented, this model can be submitted as a mixed-integer linear programming problem to a commercial solver. Mature commercial solvers such as CPLEX and Gurobi can be selected.

[0097] In one possible implementation, step S5 includes: S51 uses the weighted residual supply curve scenario set, the parameters of each equipment in the park, and the predicted intraday weather and load data as input parameters into the mixed integer linear programming model.

[0098] Specifically, the weighted residual supply curve scenario set provides marginal cost forecasts and probability weights for each time period, each quantile scenario, and each power purchase range; the parameters of each piece of equipment in the park include energy storage capacity, maximum charging and discharging power, charging and discharging efficiency, available photovoltaic output, upper limit of heating and cooling equipment power, building thermal parameters, upper and lower limits of indoor temperature, total transferable load power, and upper limit of load reduction; the predicted intraday meteorological and load data include predicted temperature, predicted irradiance, predicted base load, and predicted regional total load.

[0099] After substituting the above input parameters into the mixed-integer linear programming model, the objective function, the linear coupling constraint of the remaining supply curve, and the operational constraints of various equipment in the park are all specified, forming a mixed-integer linear programming example for the prediction day.

[0100] S52 calls a commercial solver to iteratively solve the mixed-integer linear programming model, simultaneously satisfying the objective function, the linear coupling constraint of the residual supply curve, and the operational constraints of the park's integrated energy system during the solution process.

[0101] Specifically, the commercial solver searches for feasible combinations of continuous and binary variables during the solution process. On the one hand, the solver determines the power range in which the net purchased power falls at each moment by using binary interval selection variables, and achieves linear coupling between the net purchased power and the marginal cost of each quantile scenario interval through interval purchased power variables. On the other hand, the solver simultaneously adjusts photovoltaic consumption, energy storage charging and discharging, heating and cooling power, and flexible loads to meet power balance, equipment operating boundaries, and comfort constraints.

[0102] When multiple feasible scheduling schemes exist, the solver selects the scheme with the lowest cost based on the objective function of total expected electricity purchase cost. Optionally, upper limits can be set for solution time, optimality gaps, or node search, to meet the requirements of the park's energy management system for day-ahead calculation timeliness.

[0103] S53, after convergence, outputs the time series results of the optimal decision variables, extracts the day-ahead power purchase plan, distributed photovoltaic power output strategy, energy storage charging and discharging time series scheme, heating and cooling regulation power, and transferable / reducible flexible load dispatch scheme between the park and the power grid for each time period, and performs power output regulation of the internal multi-resources of the park's integrated energy system.

[0104] Specifically, the time series results of the optimal decision variables output by the solver may include: , , , , , , , , , and The optimal values ​​of variables such as [variable name missing]. The park's energy management system can [missing information]. As part of the current electricity purchase plan, and As an energy storage operation command, and As a heating and cooling load regulation plan, and As a flexible load response plan, it regulates the output of diverse resources within the park's integrated energy system.

[0105] In summary, this application presents an integrated solution for the optimal dispatch of a park's comprehensive energy system in the electricity spot market, encompassing "probability prediction, scenario generation, and optimization decision-making." It establishes a complete technical chain, from training the weighted quantile regression (TCN) model to generating and assigning RSC probabilistic scenarios, and finally embedding them into the day-ahead optimal dispatch model. This solution systematically addresses the problem of optimal dispatch in parks under electricity market uncertainty and can be directly applied to park energy management systems. It enables the synergistic optimization of diverse resources such as photovoltaics, energy storage, and flexible loads under spot market risks, minimizing the park's total expected energy cost.

[0106] The technical solution provided in this application collects multi-source historical time-series data of the park's integrated energy system, and trains a weighted quantile regression temporal convolutional network based on the multi-source historical time-series data and the corresponding actual node marginal costs to obtain a probabilistic prediction model of the marginal cost-power relationship. This enables the marginal cost prediction process to simultaneously consider the relevant time-series characteristics of park operation, power purchase conditions, and the probability distribution of node marginal costs. The net power purchase range for the prediction day is discretized into multiple power purchase threshold points, and a prediction feature sequence is constructed for the multivariate prediction data and each power purchase threshold point at each moment of the prediction day. This allows for the output of multiple marginal cost quantile prediction values ​​at different power purchase levels. By connecting the marginal cost quantile prediction values ​​corresponding to each power purchase threshold point according to the same quantile level, and by assigning probability weights based on the quantile interval between adjacent quantile levels, a set of weighted residual supply curve scenarios explicitly associated with the park's power purchase decisions can be constructed. The weighted residual... The supply curve scenario set is embedded into a mixed-integer linear programming model for the optimal scheduling of the park's integrated energy system. A linear coupling constraint for the remaining supply curve is constructed, and the net power purchased by the park is mapped to the marginal cost of the corresponding scenario using binary interval selection variables and interval power purchase variables. This transforms the coupling relationship between power purchase and market clearing price into a computable constraint in the optimal scheduling model. Compared with the method of first predicting a single marginal cost point and then performing post-processing and scenario generation based on historical prediction errors, this method reduces the distribution assumption bias caused by the preset error distribution and the error propagation problem caused by the two-stage processing. It avoids the generated result being only an isolated marginal cost time series scenario that is difficult to correspond to the power purchase decision of the park. This improves the adaptability and availability of the day-ahead power purchase plan and internal multi-resource scheduling scheme of the park's integrated energy system under the uncertainty of electricity spot market prices, and realizes the coordinated optimization operation of the source, storage and load of the park's integrated energy system.

[0107] On the other hand, this application also provides a computer storage medium storing executable program code; the executable program code is used to execute any of the above-mentioned park integrated energy system optimization scheduling methods based on the residual supply curve.

[0108] On the other hand, this application also provides an electronic device, including a memory and a processor; the memory stores program code that can be executed by the processor; the program code is used to execute any of the above-mentioned park integrated energy system optimization scheduling methods based on the residual supply curve.

[0109] For example, the program code may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the program code in an electronic device.

[0110] The electronic device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The electronic device may include, but is not limited to, processors and memory. Those skilled in the art will understand that the electronic device may also include input / output devices, network access devices, buses, etc.

[0111] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0112] The memory can be an internal storage unit of the electronic device, such as a hard drive or RAM. It can also be an external storage device, such as a plug-in hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory can include both internal and external storage units. The memory is used to store the program code and other programs and data required by the electronic device. The memory can also be used to temporarily store data that has been output or will be output.

[0113] The computer storage medium and electronic device described above are created based on the above method. Their technical functions and beneficial effects will not be elaborated here. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0114] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.

Claims

1. A method for optimizing the scheduling of a park's integrated energy system based on the surplus supply curve, characterized in that, The method includes: S1. Collect multi-source historical time-series data of the park's integrated energy system. Based on the multi-source historical time-series data and the corresponding actual node marginal cost, train a weighted quantile regression temporal convolutional network to obtain a probabilistic prediction model of the marginal cost-power relationship. S2, obtain the net power purchase range of the park's integrated energy system on the forecast day, discretize it into multiple power purchase threshold points, construct a prediction feature sequence for the multivariate prediction data corresponding to each moment on the forecast day and each power purchase threshold point, and input it into the marginal cost-power relationship probability prediction model to obtain multiple marginal cost quantile prediction values ​​corresponding to each power purchase threshold point; S3. Connect the marginal cost quantile prediction values ​​corresponding to different power purchase threshold points according to the same quantile level to construct multiple discrete residual supply curves corresponding to each time point; and assign probability weights to each residual supply curve based on the quantile interval between adjacent quantile levels to obtain a set of weighted residual supply curve scenarios. S4, embed the weighted residual supply curve scenario set into the mixed integer linear programming model for the optimal scheduling of the park's integrated energy system, and construct linear coupling constraints for the residual supply curve; through binary interval selection variables and interval power purchase variables, map the park's net power purchase to the interval marginal cost under the corresponding scenario, and construct an objective function with the goal of minimizing the park's total expected power purchase cost, while jointly setting the operational constraints of the park's integrated energy system; S5, solve the mixed integer linear programming model, output the day-ahead power purchase plan between the park and the power grid and the scheduling scheme of multiple resources within the integrated energy system, and regulate the output of multiple resources within the integrated energy system of the park according to the scheduling scheme.

2. The method according to claim 1, characterized in that, Step S1 includes: S11, collect multi-source historical time-series data of the park's integrated energy system. The multi-source historical time-series data includes the marginal cost of historical nodes corresponding to several historical moments, the park's historical net power purchase, regional total load, temperature, irradiance, intraday time period and week type. S12, perform minimum and maximum value normalization processing on the historical node marginal cost, park historical net power purchase, regional total load, temperature, irradiance and weekday type in the multi-source historical time series data, perform sine and cosine encoding on the intraday time period, and splice the data of the same moment into a single moment feature vector. S13, construct a training sample set based on the single-moment feature vectors and actual node marginal costs corresponding to each historical moment; each training sample takes any historical moment of any historical day as the label moment, and the input is a target historical feature sequence composed of the single-moment feature vectors corresponding to the 24 consecutive historical moments closest to the label moment, and a current conditional feature vector composed of temperature, irradiance, regional total load, intraday time period, week type, actual node marginal cost at the same moment of the previous day, and net power purchased by the park corresponding to the label moment; concatenate the target historical feature sequence with the current conditional feature vector to obtain the input feature sequence of the training sample, and the label is the actual node marginal cost of the label moment; S14. Based on the training sample set, using the input feature sequence as input and the actual node marginal cost at the label time as the true label, a weighted quantile regression temporal convolutional network is trained using the weighted quantile loss function to obtain the marginal cost-power relationship probability prediction model.

3. The method according to claim 2, characterized in that, The marginal cost-power relationship probabilistic prediction model includes an input layer, a feature projection layer, a temporal convolution module, and a weighted quantile output layer arranged sequentially. The input layer is used to input the input feature sequence; The feature projection layer is used to perform dimension mapping on the feature vectors at each time step in the input feature sequence through a fully connected layer, and to complete the nonlinear transformation using the ELU activation function; The temporal convolution module includes several dilated causal convolution blocks connected in sequence. Each dilated causal convolution block performs causal convolution operation using an exponentially increasing dilation factor. After passing through weight normalization, ELU activation, and convolution channel adaptation, the output of the previous convolution layer is fused through residual connections to extract multi-temporal temporal dependency features. The weighted quantile output layer is used to extract the output of the last dilated causal convolutional block at the end of the input feature sequence, and then map it to a preset number of quantile dimensions through two fully connected network layers to output the node marginal cost prediction value corresponding to each preset quantile level at the target time.

4. The method according to claim 2, characterized in that, The weighted quantile loss function is: ; in, Here, Q represents the weighted quantile loss value, where M is the total number of training samples and Q is the preset number of quantiles. Let m be the actual node marginal cost of the m-th training sample. Let be the predicted marginal cost of the node for the m-th training sample at the q-th quantile level. For the qth quantile level, The weight of the qth quantile and .

5. The method according to claim 1, characterized in that, Step S2 includes: S21, obtain the net power purchase range of the park's integrated energy system on the forecast day, and discretize the net power purchase range into multiple power purchase threshold points at equal intervals; S22, normalize and periodically encode the multi-source historical time series data of the 24 most recent consecutive moments before the prediction start time to obtain the target historical feature sequence; for each moment of the prediction day and each power purchase threshold point, normalize and periodically encode the predicted temperature, predicted irradiance, predicted regional total load, time period code, weekday type, actual node marginal cost at the same moment of the previous day and the corresponding power purchase threshold point, and then concatenate them to construct the current condition feature vector corresponding to each power purchase threshold point. Then, concatenate the target historical feature sequence with each of the current condition feature vectors to obtain the prediction feature sequence corresponding to each power purchase threshold point. S23, input the predicted feature sequence corresponding to each power purchase threshold point into the marginal cost-power relationship probability prediction model to obtain multiple marginal cost quantile prediction values ​​corresponding to each power purchase threshold point.

6. The method according to claim 1, characterized in that, Step S3 includes: S31, for each time step and each quantile level Construct the remaining supply curve ;in, For the first Each electricity purchase power threshold point, For a moment , No. The first power purchase threshold point, the first The predicted marginal cost of each node corresponding to each quantile; The remaining supply curve includes the number of segments representing the net power purchase range. Each power purchase threshold point; S32, based on all remaining supply curves at the same time, constructs a set of remaining supply curves. Where Q is the preset number of quantiles; S33, Calculate the residual supply curve The probability weights are ,in, , ; S34. Based on all remaining supply curves and their corresponding probability weights at time t, construct a set of weighted remaining supply curve scenarios at time t. .

7. The method according to claim 1, characterized in that, The objective function of the mixed-integer linear programming model is: ; in, For a moment , No. The power range, the first The predicted marginal cost of nodes corresponding to each quantile scenario; For a moment In the The power purchase capacity within a power range; These are the probability weights corresponding to the remaining supply curve; The scheduling time interval; any two adjacent power purchase threshold points constitute a power interval; The linear coupling constraint of the remaining supply curve includes at least the following: ; ; ; in, Choose a variable for the binary interval, with 1 representing time. The park's net power purchase capacity ranks first. There are power intervals, with 0 representing time intervals. The park's net power purchase capacity is not ranked in the first place. One power range; and The first The, the The first power purchase threshold point constitutes the first... Power ranges; Power range index Take 0 to , This represents the number of segments within the net purchased power range.

8. The method according to claim 1, characterized in that, The mixed-integer linear programming model includes at least the following decision variables: At any given moment, the park's integrated energy system includes the net power purchased from the power grid, the power purchased from each power range, the photovoltaic power generation, the energy storage charging power, the energy storage discharging power, the binary variable of energy storage status, the remaining energy storage capacity, the heating load power, the cooling load power, the indoor temperature, the transferable load power, the load that can be reduced, and the binary range selection variable indicating whether the park's net power purchased falls within any power range. The operational constraints of the park's integrated energy system include at least: power balance constraints, photovoltaic power generation constraints, energy storage charging and discharging constraints, energy storage status update constraints, energy storage cycle constraints, heating and cooling load constraints, transferable load constraints, and load reduction constraints.

9. The method according to any one of claims 1 to 8, characterized in that, Step S5 includes: S51, the weighted residual supply curve scenario set, the parameters of each equipment in the park, and the predicted intraday weather and load data are substituted into the mixed integer linear programming model as input parameters; S52, call the commercial solver to iteratively solve the mixed integer linear programming model, and simultaneously satisfy the objective function, the linear coupling constraint of the residual supply curve and the operation constraint of the park's integrated energy system during the solution process; S53, after convergence, outputs the time series results of the optimal decision variables, extracts the day-ahead power purchase plan, distributed photovoltaic power output strategy, energy storage charging and discharging time series scheme, heating and cooling regulation power, and transferable / reducible flexible load dispatch scheme between the park and the power grid for each time period, and performs power output regulation of the internal multi-resources of the park's integrated energy system.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 9.