A source-load-storage collaborative scheduling method based on multi-time scale rolling optimization, medium and system

By using a spatiotemporal conservation gating prediction model and a particle swarm optimization algorithm, the length of the scheduling sliding window is dynamically adjusted, and mutual exclusion constraints for power purchase and sale are embedded. This solves the problem of insufficient net power deficit prediction accuracy under a multi-timescale rolling scheduling framework, and achieves accurate scheduling decisions and power balance in high-energy-source scenarios.

CN123144232APending Publication Date: 2026-11-20XJ GRP CORP
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, the net power deficit prediction accuracy under the multi-time-scale rolling scheduling framework is insufficient, leading to inaccurate scheduling decisions. Especially in scenarios with high renewable energy penetration, the deficit prediction error is amplified and cannot be adaptively adjusted, resulting in power imbalance.

Method used

A source-load-storage collaborative scheduling method based on multi-timescale rolling optimization is adopted. The net power deficit is predicted by a spatiotemporal conservation gating prediction model. The scheduling sliding window length is dynamically adjusted by combining Schmidt orthogonalization logic and physical conservation gating branches. The scheduling decision variables are solved by particle swarm optimization algorithm, and mutual exclusion constraints of power purchase and sale are embedded to construct a multi-layer scheduling optimization model to ensure power balance.

Benefits of technology

It improves the accuracy of net power deficit prediction, ensures the feasibility and accuracy of scheduling decisions, enables adaptive adjustment in high-fluctuation scenarios, reduces computing resource consumption, and achieves power balance across multiple time scales.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144232A_ABST
    Figure CN123144232A_ABST
Patent Text Reader

Abstract

The application provides a source-load-storage collaborative scheduling method based on multi-time scale rolling optimization, a medium and a system, and belongs to the technical field of power grids. The application obtains day-ahead wind and light load prediction data, and generates three-layer time scale data sequences through interpolation dimension increase and error superposition. The three-layer data is input into a space-time conservation gate prediction model. A Schmidt orthogonalization logic is used to forcibly decouple multi-source heterogeneous features into mutually orthogonal subspaces. A physical conservation gate branch is embedded in a gate cycle unit. The activation state of power purchase and sale neurons is dynamically switched according to the sign of real-time net power shortage. A particle swarm optimization algorithm is used to solve the gas turbine output, energy storage charging and discharging power and demand response reduction layer by layer. After power balance verification is performed on the three-layer scheduling results, the scheduling parameters are output, and the technical problem that the scheduling decision is inaccurate due to the insufficient prediction accuracy of the net power shortage artificial intelligence under the multi-time scale rolling scheduling framework is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power grid technology, and specifically relates to a source-load-storage coordinated scheduling method, medium, and system based on multi-time-scale rolling optimization. Background Technology

[0002] Source-load-storage coordinated dispatch is a core means for microgrids and integrated energy systems to achieve renewable energy consumption and supply-demand balance. In existing technologies, the three-tiered dispatch framework of day-ahead, intraday, and ultra-short-term has been widely applied in microgrid dispatch scenarios involving wind power, photovoltaics, gas turbines, energy storage, and demand response. Typically, recurrent neural networks or gated recurrent units are used to predict wind and solar power output and load, and heuristic algorithms such as particle swarm optimization are used to solve the dispatch decision variables for each time period. However, since wind and solar power output and load power are multi-source heterogeneous time-series signals, their environmental disturbance characteristics and the mechanistic characteristics of power balance and energy storage recursion are superimposed on the weights of the same neurons, leading to information aliasing during the feature extraction stage. Simultaneously, existing prediction models do not embed the physical constraint of mutual exclusion between power purchase and sale into the neuron activation logic. When the sign of the net power deficit changes, the model output is prone to violating the power conservation constraint, amplifying the net power deficit prediction error. In scenarios with high renewable energy penetration, the deficit prediction error is further propagated to dispatch decisions at each level, making it impossible for the dispatch framework with a fixed rolling window length to adaptively adjust, ultimately resulting in power imbalances in multi-timescale dispatch results. In other words, existing technologies suffer from the technical problem of inaccurate scheduling decisions due to insufficient accuracy in predicting net power deficit under a multi-timescale rolling scheduling framework. Summary of the Invention

[0003] In view of this, the present invention provides a source-load-storage collaborative scheduling method, medium and system based on multi-time-scale rolling optimization, which can solve the technical problem of inaccurate scheduling decisions caused by insufficient net power deficit prediction accuracy under the multi-time-scale rolling scheduling framework in the prior art.

[0004] The present invention is implemented as follows: The first aspect of the present invention provides a source-load-storage collaborative scheduling method based on multi-time-scale rolling optimization, comprising the following steps: The system acquires day-ahead load forecast data, wind power forecast output data, photovoltaic forecast output data, electricity purchase and sale price data, and operating parameters of gas turbines, energy storage devices, grid interaction units, and demand response loads. Through interpolation, dimensionality upgrade, and error superposition, it generates a three-level time scale data sequence of day-ahead, intraday, and ultra-short-term. The three-layer time-scale data sequence is input into the spatiotemporal conservation gated prediction model. After spatiotemporal orthogonal decoupling and physical conservation gated branch processing, the net power deficit prediction value is output. The scheduling sliding window length of the three-layer time-scale data sequence is dynamically adjusted according to the net power deficit prediction value and the deficit fluctuation index. A power balance model and an energy storage state of charge recursive model are established, and a day-ahead scheduling optimization model is constructed. The particle swarm optimization algorithm is used to solve the day-ahead scheduling decision variable sequence of gas turbine output, energy storage charging and discharging power and demand response reduction. Based on the interpolation results of the daily scheduling decision variable sequence, an intraday rolling scheduling optimization model is established, and the particle swarm optimization algorithm is used to solve the intraday scheduling decision variable sequence hour by hour within the rolling window of the intraday scheduling period. Based on the interpolation results of the intraday scheduling decision variable sequence, an ultra-short-term rolling scheduling optimization model is established, and the particle swarm optimization algorithm is used to solve the ultra-short-term scheduling decision variable sequence hour by hour within the rolling window of the ultra-short-term scheduling period. Power balance verification is performed on the day-ahead, intraday, and ultra-short-term scheduling results respectively. The maximum unbalanced power, average unbalanced power, and maximum relative error are calculated. The output of gas turbine power, energy storage charging and discharging power, and demand response reduction are output and used as scheduling parameters for scheduling operations.

[0005] Specifically, the generation of three time-scale data sequences—day-ahead, intraday, and ultra-short-term—involves a day-ahead scheduling cycle of 24 hours and a scheduling step of 1 hour; an intraday scheduling cycle of 24 hours and a scheduling step of 15 minutes; and an ultra-short-term scheduling cycle of 24 hours and a scheduling step of 5 minutes. The day-ahead hourly data is extended to intraday 15-minute data using interpolation, and load forecasting errors, wind power forecasting errors, and photovoltaic forecasting errors are superimposed at the intraday scale. Further interpolation is performed to ultra-short-term 5-minute data, and load fluctuations, wind power fluctuations, and photovoltaic fluctuations are superimposed.

[0006] The three-layer time-scale data sequence constructs a sliding window asynchronous queue in memory, maintaining independent first-in-first-out buffers for each of the three time-scale data layers. Each buffer advances with its own scheduling step size, and cross-layer data synchronous writing is triggered by a unified clock signal, ensuring that the day-ahead, intraday, and ultra-short-term data layers are aligned at each scheduling trigger moment. The adaptive multi-scale analysis operator decomposes the load fluctuation signal into low-frequency ground state components and high-frequency disturbance components. The low-frequency ground state components enter the day-ahead and intraday scheduling layers, while the high-frequency disturbance components enter the ultra-short-term scheduling layer.

[0007] The spatiotemporal conservation gated prediction model is structured as follows: the input layer receives a heterogeneous feature tensor composed of wind power output, photovoltaic power output, load power, energy storage state of charge, and electricity purchase and sale price, and maps it to a standard feature matrix through a fully connected layer; the feature matrix enters the spatiotemporal orthogonal decoupling operator layer, and uses Schmitt orthogonalization logic to decompose the feature matrix into an environmental evolution feature subspace and a microgrid mechanism feature subspace; the features of the two orthogonal subspaces are respectively entered into a parallel sequence of improved gated loop units, and an additional physical conservation gated branch is added inside each gated loop unit; a long-span residual dense jump matrix is ​​constructed at the network tail; the output layer outputs a sequence of net power deficit prediction values ​​for each scheduling period.

[0008] The input to the physical conservation gating branch is the hidden state vector at the current moment and the real-time net power deficit scalar of the system. When the net power deficit is greater than zero, the gating branch outputs a high activation signal to the purchasing side neuron group and an inhibition signal to the selling side neuron group. When the net power deficit is less than or equal to zero, the gating logic is reversed. Mutually exclusive routing is achieved by applying a mask matrix to the connection weights of the hidden layer neurons. The mask matrix is ​​dynamically updated at each time step according to the sign of the net power deficit.

[0009] The spatiotemporal conservation gating prediction model embeds a minimum cost flow graph algorithm, which models the power allocation problem of each scheduling period as a directed graph network with capacity constraints. The minimum cost flow solution is fed back to the mask matrix update logic of the physical conservation gating branch in the form of soft constraints. The loss function is composed of a weighted superposition of the prediction error mean square term and the power balance conservation law penalty term. The power balance conservation law penalty term applies a nonlinear quadratic penalty to the violation weight.

[0010] The deficit fluctuation index is the ratio of the standard deviation to the mean of the net power deficit prediction sequence. The scheduling sliding window length is dynamically adjusted according to the deficit fluctuation index. Specifically, when the deficit fluctuation index is lower than the first fluctuation threshold, the intraday rolling optimization time domain is shrunk to the low-fluctuation intraday time domain value, and the ultra-short-term rolling optimization time domain is shrunk to the low-fluctuation ultra-short-term time domain value. When the deficit fluctuation index is between the first fluctuation threshold and the second fluctuation threshold, the intraday and ultra-short-term rolling optimization time domains maintain their default values. When the deficit fluctuation index is not lower than the second fluctuation threshold, the intraday and ultra-short-term rolling optimization time domains are expanded to the high-fluctuation time domain value.

[0011] The objective function of the day-ahead scheduling optimization model includes gas turbine operating cost, carbon emission cost, demand response cost, grid power purchase and sale cost, energy storage charge state exceeding limit penalty, grid power purchase and sale power exceeding limit penalty, energy storage charge and discharge mutual exclusion penalty, and gas turbine ramping exceeding limit penalty. The energy storage charge and discharge mutual exclusion penalty is the sum of the products of charging power and discharging power in each time period, and the charge and discharge mutual exclusion constraint is embedded in the objective function.

[0012] In the recursive model of energy storage state of charge, the upper and lower limits of the state of charge are obtained by analyzing experimental data of charge and discharge characteristic curves provided by the battery manufacturer; the rated capacity of energy storage, the maximum charge and discharge power and the charge and discharge efficiency are provided by the manufacturer's factory test data; and the initial state of charge is determined by the operation record data.

[0013] The intraday rolling scheduling optimization model adds a tracking deviation penalty term and a net load variance penalty term to the day-ahead objective function. The intraday tracking deviation is the difference between the intraday gas turbine output and the day-ahead gas turbine output plan after interpolation to the intraday scale reference value. The intraday rolling optimization only executes the optimization results of the first 15-minute period each time, and then enters the next scheduling period to re-roll and optimize.

[0014] The ultra-short-term rolling scheduling optimization model adds a power smoothing term to the intraday objective function; the power smoothing term is the sum of the squares of the difference in gas turbine output between adjacent time periods and the sum of the squares of the difference in net energy storage power between adjacent time periods; the ultra-short-term rolling optimization only executes the optimization results of the first 5-minute period each time.

[0015] In the power balance verification, the power balance error is the difference between the total power on the supply side and the total power on the demand side. When the absolute value of the maximum power balance error is less than the preset verification threshold, the scheduling result at the corresponding time scale is determined to meet the power balance requirements. The preset verification threshold is determined by statistical analysis of the numerical calculation truncation error in historical scheduling data.

[0016] The training dataset of the spatiotemporal conservation gating prediction model is established by collecting time-series records of wind power output, photovoltaic power output, load power, energy storage state of charge, electricity purchase and sale price and actual electricity purchase and sale power of historical microgrids or park integrated energy systems. The data time resolution covers three granularities: 1 hour, 15 minutes and 5 minutes, and is divided into training set, validation set and test set in a ratio of 7:2:1.

[0017] The training of the spatiotemporal conservation gated prediction model uses an adaptive moment estimator to update parameters; an early stopping mechanism is set in the training, and training is terminated when the loss on the validation set does not decrease for several consecutive rounds; the learning rate is dynamically adjusted according to the deficit fluctuation index adjustment function after each round of training; and finally, the weight corresponding to the minimum root mean square error of the validation set is selected as the optimal parameters of the model.

[0018] In the aforementioned particle swarm optimization algorithm, the number of particles is 30 to 50, the maximum number of iterations is 100 to 200, the initial value of the inertia weight is 0.6 to 0.8, and both the individual learning factor and the swarm learning factor are 1.3 to 1.8; in the intraday particle swarm optimization algorithm, the number of particles is 25 to 40, and the maximum number of iterations is 80 to 120; in the ultra-short-term particle swarm optimization algorithm, the number of particles is 15 to 30, and the maximum number of iterations is 40 to 80; the preset verification threshold ranges from 0.01 to 0.1. The typical value for the lower limit of the charged state is 0.2, and the typical value for the upper limit is 0.9.

[0019] A second aspect of the present invention provides a computer-readable storage medium storing program instructions, which, when executed in a computer, are used to perform the aforementioned source-load-storage collaborative scheduling method based on multi-time-scale rolling optimization.

[0020] A third aspect of the present invention provides a source-load-storage collaborative scheduling system based on multi-timescale rolling optimization, comprising the aforementioned computer-readable storage medium, wherein the system is a computer, the computer-readable storage medium is disposed within the system, and the system is provided with a microprocessor for executing program instructions stored in the computer-readable storage medium.

[0021] This invention constructs a spatiotemporal conservation-gated prediction model and introduces Schmidt orthogonalization logic into the feature decoupling layer. This allows environmental evolution features and microgrid mechanism features to evolve independently within mutually orthogonal subspaces, eliminating information aliasing from multi-source heterogeneous data during the feature extraction stage. A physically conservation-gated branch is added within the gated recurrent unit, dynamically switching the activation and inhibition states of power purchase and sale neurons based on the real-time net power deficit sign. The mutual exclusion constraint between power purchase and sale is directly embedded into the neuron activation logic, ensuring that the predicted output conforms to the power conservation law without relying on an external penalty function. Furthermore, the length of the scheduling sliding window at each layer is dynamically adjusted based on the deficit fluctuation index, enabling the scheduling framework to automatically expand and optimize the time domain in high-fluctuation scenarios and shrink the computational scale in low-fluctuation scenarios. These mechanisms work synergistically from three levels—feature decoupling, physical constraint embedding, and window adaptation—ensuring both the accuracy of net power deficit prediction and the executability of scheduling decisions. In summary, this invention solves the technical problem mentioned in the background art: insufficient accuracy of net power deficit prediction leading to inaccurate scheduling decisions under a multi-timescale rolling scheduling framework. Attached Figure Description

[0022] Figure 1 This is a flowchart of the method of the present invention.

[0023] Figure 2 The above is a stacked bar chart of the daytime scheduling power balance in the embodiment.

[0024] Figure 3 The above is a stacked bar chart of intraday rolling scheduling power balance in the example.

[0025] Figure 4 The above is a stacked bar chart of power balance for ultra-short-term rolling scheduling in the embodiment.

[0026] Figure 5 This is a comparison chart of gas turbine output tracking across multiple time scales in the embodiment. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below.

[0028] like Figure 1 The diagram shown is a flowchart of a source-load-storage collaborative scheduling method based on multi-time-scale rolling optimization provided by the first aspect of the present invention. This method includes the following steps: S01. Obtain day-ahead load forecast data, wind power forecast output data, photovoltaic forecast output data, electricity purchase and sale price data, and operating parameters of gas turbines, energy storage devices, grid interaction units, and demand response loads. After interpolation, dimensionality increase, and error superposition, generate a three-level time scale data sequence of day-ahead, intraday, and ultra-short-term. S02. Input the three-layer data sequence into the spatiotemporal conservation gated prediction model, and after spatiotemporal orthogonal decoupling and physical conservation gated branch processing, output the net power deficit prediction value; dynamically adjust the scheduling sliding window length of the three-layer data sequence according to the net power deficit prediction value and the deficit fluctuation index. S03. Establish a power balance model and an energy storage state of charge recursive model, construct a day-ahead scheduling optimization model, and use the particle swarm optimization algorithm to solve the day-ahead scheduling decision variable sequence of gas turbine output, energy storage charging and discharging power and demand response reduction. S04. Using the interpolation results of the daily scheduling decision variable sequence as a reference, establish an intraday rolling scheduling optimization model, and use the particle swarm optimization algorithm to solve the intraday scheduling decision variable sequence in the rolling window of 8 intraday scheduling periods. S05. Using the interpolation results of the intraday scheduling decision variable sequence as a reference, an ultra-short-term rolling scheduling optimization model is established, and the particle swarm optimization algorithm is used to solve the ultra-short-term scheduling decision variable sequence in the rolling window of 6 ultra-short-term scheduling periods. S06. Perform power balance verification on the day-ahead, intraday, and ultra-short-term three-level dispatch results respectively, calculate the maximum unbalanced power, average unbalanced power, and maximum relative error, and output the gas turbine output, energy storage charging and discharging power, and demand response reduction as dispatch parameters for dispatch operations.

[0029] The three-level time-scale data sequences are generated as follows: The day-ahead scheduling cycle is 24 hours, with a scheduling step size of 1 hour, totaling 24 scheduling periods; the intraday scheduling cycle is 24 hours, with a scheduling step size of 15 minutes, totaling 96 scheduling periods; the ultra-short-term scheduling cycle is 24 hours, with a scheduling step size of 5 minutes, totaling 288 scheduling periods; the day-ahead load sequence is denoted as... The wind power output forecast was recorded as follows The photovoltaic power output was recently predicted to be recorded as ,in The day-ahead hourly data is extended to intraday 15-minute data using interpolation methods, and load forecasting errors, wind power forecasting errors, and photovoltaic forecasting errors are superimposed on the intraday scale. The intraday correction sequences are denoted as follows: , , ,in Further interpolation was performed using ultra-short-term 5-minute data, and load fluctuations, wind power fluctuations, and photovoltaic fluctuations were overlaid. The ultra-short-term series are denoted as follows: , , ,in A sliding window asynchronous queue is constructed in memory to dynamically align the hourly, quarter-hourly, and minute-level data streams using a unified clock step, eliminating thread blocking. The sliding window asynchronous queue refers to maintaining independent first-in-first-out (FIFO) buffers for the three time-scale data in memory. Each buffer advances with its own scheduling step, and cross-layer data synchronous writing is triggered by a unified clock signal, ensuring that the day-ahead, intraday, and ultra-short-term data are aligned at each scheduling trigger moment, avoiding thread blocking caused by high-frequency layers waiting for low-frequency layers to write. An adaptive multi-scale analysis operator is used to decompose the load fluctuation signal into low-frequency ground-state components and high-frequency disturbance components. A multi-threaded parallel approach is used to process the two types of components independently. The low-frequency ground-state component enters the day-ahead and intraday scheduling layers, while the high-frequency disturbance component enters the ultra-short-term scheduling layer, achieving accurate capture of multi-scale signals.

[0030] The formula for calculating the system net power deficit is as follows: In the formula, For time period The power imbalance between supply and demand within the system, in units of For time period load power For time period Demand response power reduction For time period Energy storage charging power For time period Energy storage discharge power For time period gas turbine output For time period wind power output For time period Photovoltaic output; when hour, , ;when hour, , The system power balance constraint is: .

[0031] The recursive relationship of energy storage state of charge is as follows: In the formula, For time period State of charge of energy storage devices For time period State of charge of energy storage devices For charging efficiency For discharge efficiency For scheduling time step The rated capacity of the energy storage; the upper and lower limits of the energy storage state of charge are constrained as follows: and The values ​​are obtained through analysis of experimental data on charge-discharge characteristic curves provided by battery manufacturers, and are determined based on the energy storage device model within the ranges of 0.2–0.5 and 0.7–0.95. Typical values ​​are... , The rated capacity, maximum charge / discharge power, and charge / discharge efficiency of the energy storage are provided by the manufacturer's factory test data, while the initial state of charge is determined by the operation record data; the energy storage charge / discharge power constraint is... , The mutual exclusion penalty for energy storage charging and discharging is: The mutual exclusion penalty term embeds the charging and discharging mutual exclusion constraint into the objective function. By amplifying the penalty value when the charging power and discharging power are both greater than zero in the same time period, it suppresses the optimizer from generating scheduling instructions for simultaneous charging and discharging. In the spatiotemporal conservation gating prediction model, the physical conservation gating branch constructs a mutual exclusion route at the level of inter-layer neuron connections in the hidden layer. When the net power deficit is greater than zero, it activates the purchasing side neurons and suppresses the selling side neurons, blocking the parallel activation path of charging and discharging from the mechanism level and avoiding the penalty function from causing the optimization to fall into deadlock. The above two mutual exclusion mechanisms are applied to the scheduling solution layer and the prediction inference layer, respectively, forming a double-layer mutual exclusion guarantee.

[0032] Among them, the day-ahead scheduling decision variables are The current scheduling objective function is: In the formula, For the operating costs of gas turbines, For carbon emission costs, For demand response costs, For the cost of purchasing and selling electricity to the power grid, This is a penalty for exceeding the state of charge limit for energy storage. Penalties for exceeding power purchase and sale limits by the power grid. For energy storage charging and discharging mutual exclusion penalty terms, This is a penalty term for the gas turbine's ramp-up exceeding the limit; in the current-day scheduling particle swarm optimization algorithm, the number of particles is 30-50, the maximum number of iterations is 100-200, the initial value of the inertia weight is 0.6-0.8, and the individual learning factor and the swarm learning factor are both 1.3-1.8; the above parameter values ​​were determined through multi-round iterative simulation experiments on microgrid examples of different scales, recording the convergence speed and solution quality, and then analyzing the data; the particle velocity update formula is... The particle position update formula is: In the formula, For the first The particle in the first Position at the next iteration For the first The particle in the first Speed ​​at the next iteration For the first The individual best position in the history of each particle. This is the best position in the history of the particle swarm. For inertial weights, and These are individual learning factors and group learning factors, respectively. and A random number between 0 and 1.

[0033] Among them, the intraday scheduling decision variables are Intraday tracking deviation is In the formula This is a reference value interpolated from the daytime gas turbine output plan to an intraday scale; the intraday net load is... The intraday scheduling objective function is based on the day-ahead objective function, with the addition of a tracking deviation penalty term and a net load variance penalty term. The intraday scheduling particle swarm optimization algorithm has 25-40 particles and a maximum number of iterations of 80-120. The parameter values ​​are determined through multiple rounds of intraday scheduling simulation experiments and convergence analysis. The intraday rolling optimization time domain is 8 intraday scheduling periods, that is, each optimization advances by 2 hours, only executing the optimization results of the first 15-minute period, and then entering the next scheduling period to re-roll and optimize.

[0034] Among them, the ultra-short-term scheduling decision variables are The ultra-short-term tracking bias is In the formula This is a reference value for the intraday gas turbine output plan, interpolated to an ultra-short-term scale; the power smoothing term is... The ultra-short-term scheduling objective function adds a power smoothing term to the intraday objective function; the ultra-short-term scheduling particle swarm optimization algorithm has 15-30 particles and a maximum number of iterations of 40-80. The parameter values ​​are determined through multiple rounds of ultra-short-term scheduling simulation experiments and smoothness analysis; the ultra-short-term rolling optimization time domain is 6 ultra-short-term scheduling periods, that is, each optimization advances by 30 minutes, and only the optimization results of the current first 5-minute period are executed.

[0035] In the power balance verification, the total power on the supply side is Total demand-side power is Power balance error is ;when When the error is less than a preset verification threshold, the scheduling result at the corresponding time scale is deemed to meet the power balance requirements. The preset verification threshold is determined through statistical analysis of the numerical calculation truncation error in historical scheduling data, and its value ranges from 0.01 to 0.1. .

[0036] The spatiotemporal conservation gating prediction model is based on deep learning and has the following structure: The input layer receives a heterogeneous feature tensor composed of wind power output, photovoltaic power output, load power, energy storage state of charge, and electricity purchase and sale price. A fully connected layer then maps and aligns these heterogeneous feature dimensions. The standard feature matrix is ​​used to unify the input feature space. The feature matrix enters the spatiotemporal orthogonal decoupling operator layer. This layer uses Schmitt orthogonalization logic to decompose the feature matrix in the column space into an environmental evolution feature subspace and a microgrid mechanism feature subspace. The two are orthogonal to each other in the vector space, avoiding the superposition and interference of environmental disturbance features such as wind and solar fluctuations and mechanism features such as power balance and energy storage recursion on the same neuron connection weights, thus achieving physical isolation of the feature space. The features of the two orthogonal subspaces are respectively entered into a parallel improved gated recurrent unit sequence. Each gated recurrent unit adds a physical conservation gated branch in addition to the standard update gate and reset gate. The input of the physical conservation gated branch is the hidden state vector at the current moment and the real-time net power of the system. The power deficit scalar is used to determine the source of the deficit. When the net power deficit is greater than zero, the gated branch outputs a high activation signal to the purchasing-side neuron group and an inhibition signal to the selling-side neuron group, achieving mutually exclusive routing between purchasing and selling at the neuron connection level. When the net power deficit is less than or equal to zero, the gate logic is reversed, activating the selling-side neurons while suppressing the purchasing-side neurons. This mutually exclusive routing logic is implemented by applying a mask matrix to the neuron group connection weights inside the hidden layer. The mask matrix is ​​dynamically updated at each time step based on the sign of the net power deficit. In terms of memory allocation, independent weight buffers are maintained for the purchasing-side and selling-side neuron groups to avoid aliasing of the two sets of weight gradients during backpropagation. A long-span residual dense jump matrix is ​​constructed at the end of the network to convert the original input layer data into a single data structure. The feature matrix, through a learnable linear projection layer, spans all intermediate layers and is directly concatenated with the final hidden layer output along the channel dimension before being fed into the fully connected output layer. This effectively alleviates the gradient dispersion problem in deep networks while preserving the direct propagation path of the original physical quantities at the input. Inter-layer memory allocation employs a gradient checkpointing strategy, retaining only the intermediate activation values ​​of long-span residual jump matrices, while recalculating the activation values ​​of other layers as needed during backpropagation, reducing peak memory usage. The loss function is a weighted superposition of the prediction error mean square term and the power balance conservation law penalty term. The power balance conservation law penalty term calculates the violation of the predicted net power deficit and power balance constraints at the output layer; once a physical law is violated, a gradient checkpoint is triggered. The weights of the physical conservation gating branch are backtracked to apply a nonlinear quadratic penalty to the non-compliant weights, forcing the network output to conform to the power conservation constraint. The minimum cost flow graph algorithm is embedded in the network to model the power allocation problem of purchasing and selling electricity in each scheduling period as a directed graph network with capacity constraints. Nodes correspond to scheduling periods, and the capacity of directed edges corresponds to the upper and lower limits of power purchase and sale. The minimum cost flow solution is fed back to the mask matrix update logic of the physical conservation gating branch in the form of soft constraints to help determine the activation priority of the purchasing and selling neurons and achieve synergistic optimization of graph theory algorithm and neural network inference. The output layer outputs the net power deficit prediction value sequence for each scheduling period for subsequent scheduling decision steps.

[0037] The specific steps for establishing the training dataset for the spatiotemporal conservation gating prediction model include: collecting time-series records of wind power output, photovoltaic power output, load power, energy storage state of charge, electricity purchase and sale price, and actual electricity purchase and sale power from historical microgrids or integrated energy systems in industrial parks, with data time resolutions covering three granularities: 1 hour, 15 minutes, and 5 minutes; performing missing value imputation, outlier removal, and normalization on the original data; dividing the training set, validation set, and test set into a 7:2:1 ratio; and constructing supervised learning sample pairs using heterogeneous feature tensors of each time period as input samples and net power deficit and electricity purchase and sale power of the corresponding time period as labels.

[0038] The training steps of the spatiotemporal conservation gated prediction model specifically include: updating parameters using an adaptive moment estimator optimizer, with the initial learning rate set to... to The batch size was set to 32 to 128, determined by comparing the convergence speed of the validation set loss under different batch sizes in experiments. The upper limit of the training epochs was set to 200 to 500 epochs, and an early stopping mechanism was set to terminate training when the validation set loss did not decrease for 20 consecutive epochs. After each training epoch, the root mean square error of net power deficit prediction was calculated on the validation set, and the learning rate was dynamically adjusted according to the deficit fluctuation index adjustment function. Finally, the weight corresponding to the minimum root mean square error of the validation set was selected as the optimal parameters of the model.

[0039] The spatiotemporal conservation gated prediction model uses Schmitt orthogonalization logic to forcibly decouple environmental evolution features from microgrid mechanism features in the feature space, allowing the two types of information to evolve separately in independent subspaces, eliminating mutual interference between multi-source heterogeneous data during feature extraction. The physical conservation gated branch directly embeds power balance constraints into the neuron activation logic, enabling the network to automatically follow the physical law of mutual exclusion between electricity purchase and sale during the inference stage, without relying on external penalty function correction. The long-span residual dense jump matrix preserves the direct transmission path of the original physical quantities, making deep feature extraction and shallow physical quantities complementary at the output end, improving the prediction robustness in high-fluctuation scenarios of new energy. The embedding of the minimum cost flow graph algorithm enables the neural network to have combinatorial optimization capabilities at the resource allocation level, making up for the limitations of the pure gradient descent method in handling discrete constraints.

[0040] The deficit fluctuation index adjustment function is used to dynamically adjust the learning rate parameter of the spatiotemporal conservation gated prediction model according to the fluctuation characteristics of the net power deficit prediction sequence. Specifically, after each training round, the ratio of the standard deviation to the mean of the net power deficit prediction sequence on the validation set is calculated and denoted as the deficit fluctuation index. ;when When the learning rate is multiplied by a coefficient of 1.2, convergence is accelerated; when... When the learning rate remains unchanged, the learning rate remains at its current value; when When the learning rate is multiplied by a factor of 0.8, the update step size is reduced; when At that time, the learning rate is multiplied by a coefficient of 0.5 and gradient clipping is triggered simultaneously to tighten the upper limit of the gradient norm to 0.5 to 1.0, preventing gradient explosion in high-fluctuation scenarios. The above coefficient values ​​were determined by conducting multiple rounds of iterative training experiments on multiple sets of historical datasets, recording the convergence curves of the validation set under different coefficient combinations, and then analyzing the data.

[0041] In step S02, the method for dynamically adjusting the length of the scheduling sliding window based on the predicted net power deficit and the deficit fluctuation index is as follows: using the deficit fluctuation index... Based on, when At that time, the intraday rolling optimization time domain is shrunk to 6 intraday scheduling periods, and the ultra-short-term rolling optimization time domain is shrunk to 4 ultra-short-term scheduling periods to reduce computational resource consumption; when At that time, the intraday rolling optimization time domain maintains 8 intraday scheduling periods, and the ultra-short-term rolling optimization time domain maintains 6 ultra-short-term scheduling periods; when In this case, the intraday rolling optimization time domain is extended to 10 intraday scheduling periods, and the ultra-short-term rolling optimization time domain is extended to 8 ultra-short-term scheduling periods to improve the scheduling robustness under high fluctuation scenarios; the sliding window length threshold is determined by comprehensively analyzing the convergence and computation time of scheduling simulation experiments under different fluctuation intensities.

[0042] The specific implementation of step S01 is as follows: First, obtain 24-hour daytime load forecast data from the energy management system or historical database. Wind power output forecast Photovoltaic power output forecast ( (and the rated power, minimum output, and rate of climb of the gas turbine, and the rated capacity of the energy storage device). Maximum charge and discharge power and Charge and discharge efficiency and Initial state of charge The data includes the grid purchase and sale price curve. The hourly data is extended to 15-minute intraday data using cubic spline interpolation, and then normally distributed load forecasting errors, wind power forecasting errors, and photovoltaic forecasting errors are superimposed on the intraday data to form an intraday correction sequence. , , ( The intraday data was then upgraded to 5-minute ultra-short-term data through cubic spline interpolation, and short-term load fluctuations, wind power fluctuations, and photovoltaic fluctuations were superimposed to form an ultra-short-term series. , , ( Independent first-in-first-out (FIFO) buffers are maintained in memory for the three time-scale data. A unified clock signal triggers the synchronous writing of cross-layer data, achieving alignment of the three layers of data at each scheduling trigger moment. The adaptive multi-scale analysis operator, based on the empirical mode decomposition principle, separates the load fluctuation signal into low-frequency ground-state components and high-frequency disturbance components. The low-frequency components are sent to the day-ahead and intraday scheduling layers, while the high-frequency components are sent to the ultra-short-term scheduling layer, completing the hierarchical allocation of multi-scale signals.

[0043] The specific implementation of step S02 is as follows: The three-layer time-scale data sequence generated in step S01 is input into the spatiotemporal conservation gated prediction model. The input layer of this model receives a heterogeneous feature tensor composed of wind power output, photovoltaic power output, load power, energy storage state of charge, and electricity purchase and sale prices, which is uniformly mapped through a fully connected layer to... The standard feature matrix is ​​then used. This feature matrix enters the spatiotemporal orthogonal decoupling operator layer, where Schmitt orthogonalization logic decomposes it into an environmental evolution feature subspace and a microgrid mechanism feature subspace in the column space. These two subspaces are orthogonal to each other in the vector space, eliminating mutual interference between heterogeneous data from multiple sources during feature extraction. The features from the two orthogonal subspaces are then fed into a parallel sequence of modified gated recurrent units. Each gated recurrent unit has an additional physically conserved gated branch, taking the real-time net power deficit scalar as input. The mask matrix is ​​dynamically updated based on the net power deficit sign, switching the activation and inhibition states of the purchasing and selling side neuron groups to achieve mutually exclusive routing between purchasing and selling power. At the network tail, the original feature matrix is ​​directly transmitted to the output layer via a long-span residual dense jump matrix. After concatenation with the output of the deep hidden layer, it is fed into the fully connected output layer, outputting a sequence of predicted net power deficit values ​​for each scheduling period. Based on this, the ratio of the standard deviation to the mean of the predicted net power deficit sequence is calculated as the deficit fluctuation index. ,in accordance with The length of the intraday and ultra-short-term scheduling sliding window is dynamically adjusted within the specified interval: when At that time, the intraday rolling optimization time domain shrinks to 6 intraday scheduling periods, and the ultra-short-term rolling optimization time domain shrinks to 4 ultra-short-term scheduling periods; when When, the time domain retains its default value; when At that time, the intraday time domain is expanded to 10 intraday scheduling periods, and the ultra-short-term time domain is expanded to 8 ultra-short-term scheduling periods.

[0044] The specific implementation of step S03 is as follows: A system power balance model is established. The total power on the supply side is the sum of gas turbine output, energy storage discharge power, wind power output, photovoltaic output, and grid-purchased power. The total power on the demand side is the sum of net load after deducting demand response, energy storage charging power, and grid-sold power. These two are strictly equal in each scheduling period. The energy storage state-of-charge recursive model is recursively calculated period by period based on charging and discharging efficiency, charging and discharging power, and scheduling step size. and constrain the state of charge in to Within the range, of which The typical value is 0.2. The typical value is 0.9. The decision variables for the current scheduling optimization model are: The objective function includes gas turbine operating costs, carbon emission costs, demand response costs, grid purchase and sale costs, and various penalty terms. A particle swarm optimization algorithm is used to solve the problem, with 30 to 50 particles, a maximum number of iterations of 100 to 200, initial inertia weights of 0.6 to 0.8, and individual and swarm learning factors of 1.3 to 1.8. Particle velocity and position are updated iteratively generation by generation according to the standard particle swarm optimization formula, outputting a 24-hour day-ahead scheduling decision variable sequence.

[0045] The specific implementation of step S04 is as follows: The daily scheduling decision variable sequence is extended into a 15-minute reference curve using cubic spline interpolation, serving as the tracking benchmark for intraday scheduling. Based on the daily interpolation reference value, an intraday rolling scheduling optimization model is established, with the decision variables being... The objective function is based on the day-ahead objective function, with the addition of a tracking deviation penalty term consisting of the difference between the intraday gas turbine output and the day-ahead reference value, as well as a net load variance penalty term. The particle swarm optimization algorithm uses 25 to 40 particles and a maximum number of iterations of 80 to 120. The intraday rolling optimization time domain defaults to 8 intraday scheduling periods (i.e., optimizing forward 2 hours). Each time, only the optimization results of the first 15-minute period are executed, and then the optimization is restarted for the next period, completing the solution for all 96 intraday scheduling periods in a rolling manner.

[0046] The specific implementation of step S05 is as follows: The intraday scheduling decision variable sequence is extended into a 5-minute reference curve using cubic spline interpolation, serving as the tracking benchmark for ultra-short-term scheduling. An ultra-short-term rolling scheduling optimization model is established, with the decision variables being... The objective function is based on the intraday objective function, with the addition of a power smoothing term. This power smoothing term is the sum of the squares of the differences in gas turbine output between adjacent time periods and the sum of the squares of the net power differences in energy storage between adjacent time periods, used to suppress drastic output fluctuations in ultra-short-term scheduling. The particle swarm optimization algorithm uses 15 to 30 particles and a maximum number of iterations of 40 to 80. The ultra-short-term rolling optimization time domain defaults to 6 ultra-short-term scheduling periods (i.e., optimizing forward by 30 minutes). Each time, only the optimization result of the first 5-minute period is executed, rolling through each period to solve all 288 ultra-short-term scheduling periods throughout the day.

[0047] The specific implementation of step S06 is as follows: Power balance verification is performed on the day-ahead, intraday, and ultra-short-term scheduling results respectively. The total power on the supply side is calculated for each scheduling period. Total power on the demand side The difference between them yields the power balance error. The maximum absolute value, average absolute value, and maximum relative error of power balance errors for each time period are statistically analyzed. When the maximum absolute value is less than a preset verification threshold (ranging from 0.01 to 0.1),... When the power balance requirement is met, the scheduling result is determined to be satisfactory. After the verification is passed, the sequence of gas turbine output, energy storage charging and discharging power, and demand response reduction for the three-level scheduling is output and sent to the corresponding execution unit as scheduling parameters to complete the source-load-storage coordinated scheduling operation.

[0048] It should be noted that the key technologies of this invention include: the spatiotemporal orthogonal decoupling technology forcibly separates environmental evolution features and microgrid mechanism features in the vector space through Schmitt orthogonalization, enabling the two types of information to evolve in independent subspaces, eliminating the interference of weight superposition of multi-source heterogeneous data in the feature extraction stage, and improving the prediction accuracy of net power deficit from the source; the physical conservation gating technology directly embeds the mutual exclusion constraint of power purchase and sale into the neuron activation logic of the gated recurrent unit, and dynamically updates the mask matrix by driving the real-time net power deficit symbol, so that the model automatically follows the power conservation law in the inference stage without relying on external penalty function correction; and the deficit fluctuation index adaptive window technology adjusts the scheduling optimization time domain of each layer according to the fluctuation intensity of the net power deficit prediction sequence, so that computing resources are dynamically allocated according to the system operating status. When the three technologies work together, orthogonal decoupling improves the feature quality of the predicted input, physical conservation gating ensures the compliance of the predicted output with constraints, and the adaptive window mechanism effectively transmits high-quality prediction results to the scheduling decision layer. The three form a complete closed loop from feature extraction and constraint embedding to scheduling execution, enabling multi-timescale rolling scheduling to remain executable in scenarios with high new energy penetration.

[0049] It should be noted that in microgrid dispatch scenarios involving multiple distributed renewable energy sources, wind and solar power output exhibits strong randomness and may experience significant fluctuations within a short period, while the load side also experiences unpredictable abrupt disturbances. Under these circumstances, the fluctuation range of the system's net power deficit may exceed a large proportion of the installed capacity within a short period, leading to multiple sign flips in the power purchase and sale status within a single dispatch cycle. In traditional rolling dispatch frameworks, the output of the prediction model often produces large errors near the time of deficit sign flip. This is because conventional gated recurrent units, when handling the two mutually exclusive states of power purchase and sale, experience mutual interference in their corresponding weight gradients during the backpropagation phase, making it difficult for the model to accurately capture the time and magnitude of the deficit sign flip. The above technical problem arises because the power purchase and sale states share a weight matrix at the neuron connection level, causing the model to be unable to establish a clear decision boundary between the two mutually exclusive physical states during the training phase. This results in continuous errors near the deficit sign flip during inference, leading to power imbalances in the dispatch decision around that time. The common solution to the aforementioned technical problem is to introduce a power balancing penalty term into the loss function, using weighted hyperparameters to strengthen the penalty for samples violating mutual exclusion constraints. However, soft constraints at the loss function level rely on gradient backpropagation, resulting in a lag in the response to deficit sign flipping. When fluctuations are high and flipping is frequent, the penalty gradient competes with the prediction error gradient during optimization, easily leading to training oscillations and making it difficult to simultaneously guarantee prediction accuracy and constraint compliance. This invention effectively solves this technical problem. The physical conservation gating branch directly maintains independent weight buffers for the purchasing and selling neuron groups within the hidden layer of the gated recurrent unit. The mask matrix is ​​dynamically updated at each time step based on the real-time net power deficit sign, cutting off the weight gradient aliasing path between the two states at the neuron connection level. When the net power deficit is greater than zero, the purchasing neuron weights receive gradient updates, while the selling neuron weights are masked; when the net power deficit is less than or equal to zero, the logic is reversed. This mechanism embeds physical constraints at the neuron activation level rather than the loss function level, enabling the model to switch activation paths instantly when the deficit sign flips, without waiting for gradient backpropagation. This allows for accurate capture of the timing and magnitude of the deficit sign flip in highly volatile scenarios, ensuring that the net power deficit prediction continuously conforms to the power conservation constraint throughout the entire scheduling cycle. Consequently, scheduling decisions at each level can maintain a balance between power supply and demand even during periods of high deficit volatility.

[0050] A second aspect of the present invention provides a computer-readable storage medium storing program instructions, which, when executed in a computer, are used to perform the aforementioned source-load-storage collaborative scheduling method based on multi-time-scale rolling optimization.

[0051] A third aspect of the present invention provides a source-load-storage collaborative scheduling system based on multi-timescale rolling optimization, comprising the aforementioned computer-readable storage medium. The system is any one of a computer, a server, or a microcontroller. The computer-readable storage medium is disposed within the system, and the system is provided with a microprocessor that executes the program instructions stored in the computer-readable storage medium.

[0052] Specifically, the principle of this invention is: First, existing gated recurrent units, when processing multi-source heterogeneous signals such as wind and solar power output and load power, superimpose feature components with different physical meanings on the same weight matrix, causing environmental disturbances to interfere with the mechanistic features. This invention introduces Schmitt orthogonalization logic, forcibly decomposing the input feature matrix into an environmental evolution feature subspace and a microgrid mechanistic feature subspace in the column space, both of which are orthogonal in the vector space. Orthogonality ensures that the two types of features evolve in their respective independent neuron connection weights, fundamentally isolating the mutual interference of multi-source heterogeneous data during the feature extraction stage. This allows subsequent gated units to model features with different physical meanings separately, improving the prediction accuracy of net power deficit.

[0053] Secondly, the mutual exclusion of power purchase and sale is a fundamental physical constraint for power balance. However, existing prediction models only apply soft constraints through external penalty functions. When the sign of the net power deficit changes abruptly, the penalty gradient cannot respond in real time, causing the model output to violate the mutual exclusion law. This invention adds a physically conserved gating branch inside the gated recurrent unit. Taking the real-time net power deficit scalar as input, it dynamically updates the mask matrix at each time step according to the deficit sign, directly switching the activation and inhibition states of the neuron groups on the power purchase and sale sides. This mechanism embeds the physical constraint at the neuron connection level, rather than relying on external loss terms, enabling the model to automatically follow the mutual exclusion law of power purchase and sale during the inference phase, thus blocking the path of predicted output violating power conservation at the mechanistic level.

[0054] Furthermore, existing rolling scheduling frameworks use a fixed optimization time domain. In high-fluctuation scenarios, this time domain is too short, leading to insufficient robustness; in low-fluctuation scenarios, it is too long, resulting in wasted computational resources. This invention uses the deficit fluctuation index (i.e., the ratio of the standard deviation to the mean of the net power deficit prediction sequence) as a quantitative indicator to establish a tiered threshold criterion, dynamically adjusting the length of the intraday and ultra-short-term rolling optimization time domain. When fluctuations increase, the optimization time domain expands, enabling scheduling decisions to cover longer-term future disturbances; when fluctuations decrease, the optimization time domain shrinks, reducing the computational burden of a single optimization. This mechanism matches the computational resource allocation of the scheduling framework with the real-time operating status of the system, ensuring the executability of scheduling results in high-fluctuation scenarios.

[0055] Finally, the long-span residual dense jump matrix directly transmits the original physical quantities at the input to the output layer, concatenating them with the deep feature extraction results along the channel dimension. This alleviates the gradient dispersion problem in deep networks while preserving the direct constraint path of the original physical quantities on the output, further improving the prediction robustness in high-fluctuation scenarios of new energy. The synergistic effect of these mechanisms ensures the accuracy of net power deficit prediction and the feasibility of multi-timescale scheduling decisions at the physical constraint level.

[0056] The following provides a specific embodiment 1 of the present invention, and the specific implementation of each step in this embodiment 1 is described in detail below.

[0057] The specific implementation method of step S01 is as follows.

[0058] Obtain day-ahead load forecast data Wind power forecast output data Photovoltaic power output forecast data ( The data includes electricity purchase and sale prices and operating parameters of various equipment. Cubic spline interpolation is used to upgrade the day-ahead hourly data to intraday 15-minute data, then further to ultra-short-term 5-minute data, and prediction errors are superimposed at each level to generate a three-layer data sequence. The intraday corrected sequence is... , , ( ), ultra-short-term sequences are , , ( The system maintains independent first-in-first-out (FIFO) buffers for each of the three data layers in memory. A unified clock signal triggers synchronous writing of cross-layer data, achieving alignment of the three layers. An adaptive multi-scale analysis operator incorporates load fluctuation signals... Decomposed into low-frequency ground state components With high-frequency disturbance components The decomposition formula is expressed as follows: ; In the formula, For time period The load power, in kW. The low-frequency ground state component is expressed in kW. These are high-frequency disturbance components, measured in kW. Low-frequency components enter the day-ahead and intraday dispatching layers, while high-frequency components enter the ultra-short-term dispatching layer.

[0059] The specific implementation method of step S02 is as follows.

[0060] The three-layer data sequence is input into the spatiotemporal conservation gated prediction model. The input layer receives a heterogeneous feature tensor composed of wind power output, photovoltaic power output, load power, energy storage state of charge, and electricity purchase and sale price, which is uniformly mapped through a fully connected layer to... Standard feature matrix , This is a dimensionless normalized characteristic matrix, with each element obtained from the original physical quantities after normalization. The characteristic matrix enters the spatiotemporal orthogonal decoupling operator layer, where it is subjected to Schmitt orthogonalization. Decomposed into environmental evolution feature subspace With the microgrid mechanism feature subspace The orthogonality condition formula is expressed as follows: ; In the formula, This is the feature subspace matrix of environmental evolution. The dimension of environmental evolution characteristics. The microgrid mechanism characteristic subspace matrix is ​​represented by the superscript. This represents the matrix transpose. The orthogonality condition ensures that the two subspaces are mutually orthogonal in the vector space, eliminating mutual interference from heterogeneous data from multiple sources during the feature extraction stage. The features from the two subspaces are respectively fed into a parallel sequence of improved gated recurrent units. Each unit, except for the standard update gate... and reset door In addition, a physics-conservation gating branch is added. The physics-conservation gating branch uses the current hidden state vector. Scalar of real-time net power deficit of the system For input, gated mask matrix The update rule formula is expressed as follows: ; In the formula, For time period The gated mask matrix, For the neuron activation mask matrix on the electricity purchase side, For the neuron activation mask matrix on the electricity sales side, For time period The system's net power deficit, in kW. For time period The hidden state vector, Based on each time step The symbols are dynamically updated, and the neuron groups on the electricity purchase side and the electricity sales side maintain independent weight buffers to avoid aliasing of the two sets of weight gradients during backpropagation. A long-span residual dense jump matrix is ​​constructed at the end of the network to transform the original feature matrix of the input layer. Through learnable linear projection layers Spanning all intermediate layers, outputting to the final hidden layer. For channel-level splicing, the splicing operation formula is as follows: ; In the formula, The concatenated feature vectors This is the final hidden layer output vector. For learnable linear projection matrices, The semicolon indicates the output channel dimension, and it represents a vector concatenation operation. The output fully connected layer then outputs a sequence of predicted net power deficit values. The loss function is a weighted sum of the mean square term of the prediction error and the power balance conservation law penalty term, expressed as follows: ; In the formula, This is the total loss value. For time period The predicted net power deficit, in kW. For time period The true net power deficit, in kW. For time period The power balance constraint reference value, in kW. This is the conservation law penalty weighting coefficient, with an empirical value of 0.1 to 1.0. This represents the total number of time periods. The network embeds a minimum-cost flow graph algorithm, modeling the power allocation for each scheduling period as a directed graph network with capacity constraints. Nodes correspond to scheduling periods, and the capacity of directed edges corresponds to the upper and lower limits of power purchase and sale. The solution results are fed back in the form of soft constraints. The update logic helps determine the activation priority of neurons in the power purchase and sales processes. After the model outputs a sequence of predicted net power deficit values, the deficit fluctuation index is calculated. , To verify the ratio of the standard deviation to the mean of the net power deficit prediction sequence on the validation set, based on Dynamically adjust the length of the sliding window: when At that time, the intraday rolling optimization time domain is shrunk to 6 intraday scheduling periods, and the ultra-short-term scheduling time domain is shrunk to 4 ultra-short-term scheduling periods; when At that time, 8 and 6 scheduling periods are maintained respectively; when At the same time, the number of scheduling periods was expanded to 10 and 8 respectively.

[0061] The specific implementation method of step S03 is as follows.

[0062] The power balance model is established, and the formula for calculating the net power deficit of the system is as follows: ; In the formula, For time period The power imbalance between supply and demand within the system, expressed in kW. For time period The load power, in kW. For time period Demand response power reduction, in kW. For time period The energy storage charging power, measured in kW. For time period The energy storage and discharge power, measured in kW. For time period The gas turbine output, measured in kW. For time period Wind power output, in kW. For time period Photovoltaic output, measured in kW. The rule for determining the power output for purchase and sale is: when... hour, , ;when hour, , In the formula For time period The purchased power capacity, in kW. For time period The electricity sold is expressed in kW. The system power balance constraint formula is as follows: ; The recursive formula for the state of charge of energy storage is expressed as follows: ; In the formula, For time period The state of charge of the energy storage device is dimensionless. For time period The state of charge of the energy storage device, For charging efficiency, dimensionless. Discharge efficiency, dimensionless. The scheduling time step is expressed in hours (h). The rated capacity of the energy storage is expressed in kWh, and the unit inside the parentheses on the right side of the equals sign is kW. Multiply by The unit after that is kWh, divide by The latter is a dimensionless increment, compared to the left side. Dimensionally consistent. The upper and lower limits of the energy storage state of charge are constrained as follows: Typical values , The energy storage charging and discharging power constraint is , In the formula Maximum charging power, in kW. The maximum discharge power is expressed in kW. The day-ahead scheduling decision variable is... In the formula For the daytime gas turbine output decision sequence, This is the current energy storage charging power decision sequence. This is the decision sequence for the day-to-day energy storage discharge power. This is the decision sequence for day-ahead demand response reduction. The day-ahead scheduling objective function is expressed as follows: ; In the formula, The total dispatch cost for the day is expressed in yuan. The operating cost of the gas turbine is expressed in yuan. Carbon emission cost, in yuan. Demand response cost, in yuan. The cost of purchasing and selling electricity to the power grid is expressed in yuan. This refers to the penalty for exceeding the state of charge limit for energy storage, expressed in yuan. Penalties for exceeding power purchase and sale limits by the power grid, in yuan. This is a penalty term for mutual exclusion during energy storage charging and discharging, expressed in yuan. This represents the penalty for exceeding the ramp limit during gas turbine operation, expressed in yuan. The formula for the energy storage charge / discharge mutual exclusion penalty is as follows: ; In the formula, This is the mutual exclusion penalty coefficient, in yuan / , used to (Unit is) Convert ) to cost units. and When multiple values ​​are simultaneously greater than zero within the same time period, the penalty value is amplified to suppress the optimizer from generating scheduling instructions for simultaneous charging and discharging. The particle swarm optimization algorithm is used to solve this problem, and the particle velocity update formula is: ; The particle position update formula is: ; In the formula, For the first The particle in the first Position at the next iteration For the first The particle in the first Speed ​​at the next iteration For the first The individual best position in the history of each particle. This is the best position in the history of the particle swarm. For inertial weights, and These are individual learning factors and group learning factors, respectively. and The number of particles is 30 to 50, and the maximum number of iterations is 100 to 200.

[0063] The specific implementation method of step S04 is as follows.

[0064] Based on the interpolation results of the day-ahead scheduling decision variable series, the intraday scheduling decision variable is: In the formula For the intraday gas turbine output decision sequence, For the intraday energy storage charging power decision sequence, The decision sequence for intraday energy storage discharge power. This is the decision sequence for intraday demand response reductions. The formula for intraday gas turbine output tracking deviation is as follows: ; In the formula, For time period Intraday tracking deviation, in kW. For time period The daily gas turbine output, in kW. This is a reference value for the daytime gas turbine output plan, interpolated to an intraday scale, in kW. The intraday net load formula is as follows: ; In the formula, For time period The intraday net load is expressed in kW, and the meanings of the variables are consistent with those in step S03. The intraday scheduling objective function is based on the day-ahead objective function, with the addition of a tracking deviation penalty term and a net load variance penalty term. The number of particles is 25–40, the maximum number of iterations is 80–120, and the rolling optimization time domain is 8 intraday scheduling periods. Only the optimization results of the first 15-minute period are executed before entering the next period for re-rolling.

[0065] The specific implementation method of step S05 is as follows.

[0066] Using the intraday scheduling decision variable series interpolation results as a reference, the ultra-short-term scheduling decision variables are: In the formula For ultra-short-term gas turbine output decision sequence, For ultra-short-term energy storage charging power decision sequence, For ultra-short-term energy storage discharge power decision sequence, This is the decision sequence for ultra-short-term demand response reduction. The formula for ultra-short-term gas turbine output tracking deviation is as follows: ; In the formula, For time period The ultra-short-term tracking deviation, in kW. For time period The output of ultra-short-term gas turbines, in kW. This is a reference value for the intraday gas turbine output plan, interpolated to an ultra-short-term scale, in kW. The power smoothing term formula is as follows: ; In the formula, This is the power smoothing term, in units of , To optimize the time domain length for ultra-short-term rolling, and The power output of the gas turbines in adjacent time periods are respectively. , , , The energy storage charging and discharging power of adjacent time periods are respectively. The smoothing term suppresses sudden power changes by constraining the output change amplitude of adjacent time periods. The ultra-short-term scheduling objective function adds a power smoothing term to the intraday objective function. The number of particles is 15-30, the maximum number of iterations is 40-80, and the rolling optimization time domain is 6 ultra-short-term scheduling time periods. Only the optimization result of the first 5-minute time period is executed before entering the next time period to re-roll.

[0067] The specific implementation method of step S06 is as follows.

[0068] Power balance checks are performed on the three-level scheduling results respectively. The formula for the total power on the supply side is as follows: ; The formula for total demand-side power is expressed as follows: ; The formula for power balance error is expressed as follows: ; In the formula, For time period Total power on the supply side, in kW. For time period Total demand-side power, in kW. For time period The power balance error, in kW. When When the value is less than the preset verification threshold, the scheduling result is determined to meet the power balance requirements. The preset verification threshold is determined by statistical analysis of the numerical calculation truncation error in historical scheduling data, and the value range is 0.01 to 0.1 kW. The output of the gas turbine, the energy storage charging and discharging power, and the demand response reduction are used as scheduling parameters to execute the scheduling operation.

[0069] To better understand and implement this invention, the following is a specific application scenario of this invention, Example 2: This embodiment takes a typical park-level microgrid as the object and applies the source-load-storage coordinated scheduling method based on multi-timescale rolling optimization of the present invention to perform a 24-hour day-ahead, intraday, and ultra-short-term three-level scheduling simulation of the system. The main equipment parameters of the microgrid are shown in Table 1.

[0070] Table 1. Main Equipment Parameters of Microgrid

[0071] In step S01, the day-ahead load forecast data, wind power forecast output data, and photovoltaic forecast output data for a typical day of the microgrid are obtained from the historical database of the energy management system. The time resolution is 1 hour, totaling 24 time periods. The day-ahead peak load forecast value is 920. The predicted valley load is 380. The peak wind power output is currently predicted to be 260 kW. The peak photovoltaic power output is predicted to be 175. The peak periods are concentrated between 10:00 and 16:00. The hourly data is upscaled to 15-minute intraday data (96 time periods) and 5-minute ultra-short-term data (288 time periods) using cubic spline interpolation. Load forecasting error (standard deviation of 3% of the load mean), wind power forecasting error (standard deviation of 5% of installed capacity), and photovoltaic forecasting error (standard deviation of 4% of installed capacity), along with the corresponding ultra-short-term fluctuation components, are then overlaid to generate a three-layer timescale data sequence.

[0072] In step S02, the three-layer time-scale data sequence is input into the spatiotemporal conservation-gated prediction model. The input layer of this model receives heterogeneous feature tensors, which are mapped through a fully connected layer to... The standard feature matrix; the spatiotemporal orthogonal decoupling operator layer uses Schmitt orthogonalization logic to decompose the feature matrix into an environmental evolution feature subspace and a microgrid mechanism feature subspace; the features of the two subspaces are respectively entered into a 3-layer improved gated recurrent unit sequence, with each layer having a hidden state dimension of 128; the physical conservation gated branches within each gated recurrent unit dynamically update the mask matrix based on the real-time net power deficit sign; the network tail uses a long-span residual dense jump matrix to transform the original The feature matrix is ​​directly passed to the output layer, concatenated with the output of the deep hidden layer along the channel dimension, and then fed into the fully connected output layer to output a sequence of net power deficit predictions. The model is trained on a historical dataset with training, validation, and test sets split in a 7:2:1 ratio, using an adaptive moment estimation optimizer with an initial learning rate of [missing information]. The batch size is 64, the maximum training epochs are 300, and an early stopping mechanism is implemented (training terminates when the validation set loss does not decrease for 20 consecutive epochs). The learning rate is dynamically adjusted based on the deficit fluctuation index. After training, the deficit fluctuation index of the net power deficit prediction sequence for the entire day is calculated. The result was 0.18, which is in the range of... Therefore, the intraday rolling optimization time domain maintains the default 8 intraday scheduling periods, and the ultra-short-term rolling optimization time domain maintains the default 6 ultra-short-term scheduling periods.

[0073] In step S03, the particle swarm optimization algorithm is used to solve the day-ahead scheduling optimization model. The number of particles is set to 40, the maximum number of iterations is set to 150, the initial value of the inertia weight is set to 0.7, and both the individual learning factor and the swarm learning factor are set to 1.5. The sequence of day-ahead scheduling decision variables (a total of 24 time periods) is shown in Table 2, which lists the key decision variables for typical time periods.

[0074] Table 2. Decision Variables for Typical Periods Before the

[0075] As shown in Table 2, during the off-peak hours at night (hours 1 to 6), the gas turbine maintains a low output, and the energy storage is in a charging state, taking advantage of the low off-peak electricity price to fill the gap; during the peak hours (hours 14 to 18), the gas turbine output increases, the energy storage switches to discharge mode, and at the same time, demand response is activated to reduce peak load, which reflects the time-sharing resource optimization allocation mechanism of source-load-storage coordinated scheduling.

[0076] In step S04, the day-ahead scheduling decision variable sequence is interpolated to a 15-minute reference curve. Based on this, particle swarm optimization is performed periodically within a rolling window of eight intraday scheduling periods. The number of particles is set to 32, and the maximum number of iterations is set to 100. Due to the introduction of prediction correction errors in the intraday phase, the actual wind power output is approximately 15% lower than the predicted value in some periods. The actual output of photovoltaic power was about 10% lower than the predicted value. To correct the aforementioned prediction deviation, the intraday dispatching system slightly increased the output of the gas turbine by tracking the deviation penalty term, while simultaneously adjusting the energy storage charging and discharging power.

[0077] In step S05, the intraday scheduling decision variable sequence is interpolated into a 5-minute reference curve. Based on this curve, particle swarm optimization is performed periodically within a rolling window of six ultra-short-term scheduling periods. The number of particles is set to 20, and the maximum number of iterations is set to 60. In the ultra-short-term stage, the output variation in adjacent periods is constrained by a power smoothing term, so that the variation in gas turbine output in adjacent 5-minute periods is controlled within the ramp rate constraint range, and the fluctuation of net energy storage power in the ultra-short-term scale is also effectively suppressed.

[0078] In step S06, power balance verification is performed on the three-layer scheduling results, with the preset verification threshold set to 0.05. The maximum power balance error over the previous 24 periods was 0.008. The maximum power balance error across 96 time periods during the day was 0.021. The maximum power balance error over the 288 ultra-short-term periods was 0.034. The power balance verification requirements were met by all three levels of scheduling. A summary of the power balance errors in the three-level scheduling is shown in Table 3.

[0079] Table 3. Power Balance Verification Results for Three-Level Scheduling

[0080] As shown in Table 3, the power balance error increases as the scheduling time resolution is refined from 1 hour to 5 minutes, but the errors at all three levels are still well below the preset verification threshold of 0.05. This demonstrates that the power balance calculation method of the present invention has high numerical accuracy at all time scales. The error increases with increasing time resolution because the amplitude of the superimposed fluctuation components is smaller at high-frequency scales, resulting in a slight increase in the relative truncation error of the numerical calculation, but the absolute error remains within the acceptable range for engineering applications.

[0081] In this embodiment, after running the main program, the following is obtained: Figures 2 to 5 The result is shown in the figure. Figure 2 As shown, Figure 2 The above is a stacked bar chart of the daytime scheduling power balance in the embodiment. Figure 2 In this context, the positive stacking column represents supply-side power, including wind power output, photovoltaic power output, gas turbine power output, energy storage discharge power, and grid-purchased power; the negative stacking column represents demand-side power, including net load after deducting demand response, energy storage charging power, and grid-sold power. Figure 2 It can be seen that, under the day-ahead 24-hour dispatch scale, the power supply on the supply side and the power demand side basically maintain a corresponding relationship in each time period, indicating that the day-ahead dispatch results can achieve power balance among sources, loads, storage, and the grid. Figure 3 As shown, Figure 3 The above is a stacked bar chart of intraday rolling scheduling power balance in the example. Figure 3 The system displays the power balance during the intraday dispatch phase with a 15-minute time resolution. Due to the introduction of load, wind power, and solar power forecast correction errors during the intraday dispatch phase, the system's operating status changes compared to the day-ahead plan. Figure 3It can be seen that this invention can maintain a power supply-demand balance during each scheduling period of the day by optimizing and adjusting the gas turbine output, energy storage charging and discharging power, demand response, and grid power purchase and sale through intraday rolling optimization. This demonstrates that the method has the ability to correct intraday forecast deviations. Figure 4 As shown, Figure 4 The above is a stacked bar chart of power balance for ultra-short-term rolling scheduling in the embodiment. Figure 4 The diagram illustrates the power balance during the ultra-short-term dispatch phase with a 5-minute time resolution. The ultra-short-term phase further considers short-term fluctuations in load and renewable energy output, thus requiring a higher level of real-time adaptability from the dispatching method. Figure 4 It can be seen that, on a 5-minute timescale, this invention can still maintain power balance between the supply and demand sides through rapid rolling optimization, indicating that the method can adapt to short-term fluctuations in new energy sources and load disturbances. Figure 5 As shown, Figure 5 This is a comparison chart of gas turbine output tracking across multiple time scales in the embodiment. Figure 5 In the figure, the day-ahead gas turbine output curve represents the day-ahead basic dispatch plan, the intraday gas turbine output curve represents the intraday rolling correction result, and the ultra-short-term gas turbine output curve represents the ultra-short-term real-time correction result; the figure also includes day-ahead and intraday reference curves. Figure 5 It can be seen that intraday scheduling can be tracked and corrected based on the daily plan, and ultra-short-term scheduling can be further tracked and adjusted based on the intraday plan. This shows that the present invention can achieve effective connection between daily, intraday and ultra-short-term scheduling and reduce the planning deviation between different time scales.

[0082] Regarding the structure of the spatiotemporal conservation gated prediction model, the main scheme of this embodiment uses a modified gated recurrent unit sequence as the backbone of temporal modeling. The following alternative structures can achieve equivalent functionality. Alternative structure one is a prediction model based on a temporal convolutional network. The input layer receives the same heterogeneous feature tensor as the main scheme. After being mapped to a standard feature matrix through a fully connected layer, it enters a multi-layer causal dilated convolutional module. The dilation coefficients of each convolutional layer are 1, 2, 4, and 8, respectively, to exponentially expand the receptive field to cover long-term temporal dependencies. Physical conservation gating logic is embedded at the activation function positions between convolutional layers. Masks are applied to the power purchase and power sales channels of the convolutional feature map according to the real-time net power deficit sign, achieving mutually exclusive routing between power purchase and sales. The output layer structure is consistent with the main scheme, outputting a sequence of predicted net power deficit values. This alternative structure is superior to the recurrent structure in parallel computing efficiency and is suitable for scenarios with high inference speed requirements. Alternative structure two is a prediction model based on a temporal self-attention mechanism. The input layer receives heterogeneous feature tensors, which are mapped to query, key, and value matrices through positional encoding and linear projection. Global temporal dependencies are extracted through a multi-head self-attention layer. During the attention weight calculation stage, the attention mask matrix is ​​conditionally updated based on the real-time net power deficit scalar. When the net power deficit is greater than zero, attention weights related to the power purchase side are activated, while those related to the power sales side are suppressed. The spatiotemporal orthogonal decoupling logic is implemented before the multi-head self-attention layer through subspace projection, grouping and processing the environmental evolution feature head and the microgrid mechanism feature head in parallel. The output layer is consistent with the main scheme, outputting a sequence of predicted net power deficit values. This alternative structure can explicitly model long-range dependencies between arbitrary time periods and is suitable for scenarios with strong long-range correlations within the scheduling cycle. Both alternative structures are highly consistent with the main scheme in terms of feature extraction dimensions and loss function convergence objectives, and are equivalent replacements that can be implemented by those skilled in the art without creative effort.

[0083] In summary, this embodiment establishes day-ahead, intraday, and ultra-short-term multi-timescale scheduling models, integrating wind power, photovoltaics, gas turbines, energy storage devices, grid interaction power, and demand response load into a unified source-load-storage collaborative optimization framework; solves scheduling schemes at each timescale using particle swarm optimization algorithm; rigorously calculates grid power purchase and sales power through power balance relationships; and verifies the executability of the scheduling results through power balance verification. Figure 1 The overall implementation process of the method of the present invention is shown. Figure 2 , Figure 3 and Figure 4 The power balance effect was verified at three time scales: day-ahead, intraday, and ultra-short-term. Figure 5The tracking and coordination effects between multi-timescale scheduling plans were verified. This demonstrates that the present invention can improve the accuracy of net power deficit prediction through a spatiotemporal conservation gating prediction model under conditions of fluctuating renewable energy output and load forecasting deviations, thereby enhancing the stability and executability of source-load-storage coordinated scheduling. As the deficit fluctuation index increases, the adaptive window mechanism automatically expands and optimizes the time domain, ensuring that the scheduling results maintain power supply-demand balance even during periods of high fluctuation. This characteristic fundamentally compensates for the insufficient robustness of traditional fixed-time-domain scheduling frameworks in scenarios with high renewable energy penetration.

[0084] It should be noted that the variables involved in this invention are explained in detail in Tables 4 and 5.

[0085] Table 4. Variable Explanation Table (Part 1)

[0086] Table 5. Variable Explanation Table (Part Two)

[0087] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A source-load-storage collaborative scheduling method based on multi-timescale rolling optimization, characterized in that, Includes the following steps: The system acquires day-ahead load forecast data, wind power forecast output data, photovoltaic forecast output data, electricity purchase and sale price data, and operating parameters of gas turbines, energy storage devices, grid interaction units, and demand response loads. Through interpolation, dimensionality upgrade, and error superposition, it generates a three-level time scale data sequence of day-ahead, intraday, and ultra-short-term. The three-layer time-scale data sequence is input into the spatiotemporal conservation gated prediction model. After spatiotemporal orthogonal decoupling and physical conservation gated branch processing, the net power deficit prediction value is output. The scheduling sliding window length of the three-layer time-scale data sequence is dynamically adjusted according to the net power deficit prediction value and the deficit fluctuation index. A power balance model and an energy storage state of charge recursive model are established, and a day-ahead scheduling optimization model is constructed. The particle swarm optimization algorithm is used to solve the day-ahead scheduling decision variable sequence of gas turbine output, energy storage charging and discharging power and demand response reduction. Based on the interpolation results of the daily scheduling decision variable sequence, an intraday rolling scheduling optimization model is established, and the particle swarm optimization algorithm is used to solve the intraday scheduling decision variable sequence hour by hour within the rolling window of the intraday scheduling period. Based on the interpolation results of the intraday scheduling decision variable sequence, an ultra-short-term rolling scheduling optimization model is established, and the particle swarm optimization algorithm is used to solve the ultra-short-term scheduling decision variable sequence hour by hour within the rolling window of the ultra-short-term scheduling period. Power balance verification is performed on the day-ahead, intraday, and ultra-short-term scheduling results respectively. The maximum unbalanced power, average unbalanced power, and maximum relative error are calculated. The output of gas turbine power, energy storage charging and discharging power, and demand response reduction are output and used as scheduling parameters for scheduling operations.

2. The source-load-storage collaborative scheduling method based on multi-timescale rolling optimization according to claim 1, characterized in that, The generation of three time-scale data sequences—day-ahead, intraday, and ultra-short-term—specifically involves a day-ahead scheduling cycle of 24 hours and a scheduling step of 1 hour; an intraday scheduling cycle of 24 hours and a scheduling step of 15 minutes; and an ultra-short-term scheduling cycle of 24 hours and a scheduling step of 5 minutes. The day-ahead hourly data is extended to intraday 15-minute data using interpolation methods, and load forecasting errors, wind power forecasting errors, and photovoltaic forecasting errors are superimposed at the intraday scale. Further interpolation is performed to ultra-short-term 5-minute data, and load fluctuations, wind power fluctuations, and photovoltaic fluctuations are superimposed.

3. The source-load-storage collaborative scheduling method based on multi-timescale rolling optimization according to claim 2, characterized in that, The three-layer timescale data sequence constructs a sliding window asynchronous queue in memory, maintaining independent first-in-first-out buffers for each of the three timescale data. Each buffer advances with its own scheduling step size, and cross-layer data synchronous writing is triggered by a unified clock signal, so that the day-ahead, intraday, and ultra-short-term data are in an aligned state at each scheduling trigger time. The adaptive multi-scale analysis operator decomposes the load fluctuation signal into low-frequency ground state components and high-frequency disturbance components. The low-frequency ground state components enter the day-ahead and intraday scheduling layers, and the high-frequency disturbance components enter the ultra-short-term scheduling layer.

4. The source-load-storage collaborative scheduling method based on multi-timescale rolling optimization according to claim 3, characterized in that, The structure of the spatiotemporal conservation gated prediction model is as follows: The input layer receives a heterogeneous feature tensor composed of wind power output, photovoltaic power output, load power, energy storage state of charge, and electricity purchase and sale price, and maps it into a standard feature matrix through a fully connected layer; the feature matrix enters the spatiotemporal orthogonal decoupling operator layer, and uses Schmitt orthogonalization logic to decompose the feature matrix into an environmental evolution feature subspace and a microgrid mechanism feature subspace; the features of the two orthogonal subspaces respectively enter a parallel improved gated loop unit sequence, and each gated loop unit adds an additional physical conservation gated branch; A long-span residual dense jump matrix is ​​constructed at the network tail end; the output layer outputs the net power deficit prediction value sequence for each scheduling period.

5. The source-load-storage collaborative scheduling method based on multi-timescale rolling optimization according to claim 4, characterized in that, The input to the physical conservation gating branch is the hidden state vector at the current moment and the real-time net power deficit scalar of the system. When the net power deficit is greater than zero, the gating branch outputs a high activation signal to the purchasing side neuron group and an inhibition signal to the selling side neuron group. When the net power deficit is less than or equal to zero, the gating logic is reversed. Mutually exclusive routing is achieved by applying a mask matrix to the connection weights of the hidden layer neurons. The mask matrix is ​​dynamically updated at each time step according to the sign of the net power deficit.

6. The source-load-storage collaborative scheduling method based on multi-timescale rolling optimization according to claim 5, characterized in that, The spatiotemporal conservation gating prediction model embeds a minimum cost flow graph algorithm, which models the power allocation problem of purchasing and selling electricity in each scheduling period as a directed graph network with capacity constraints. The minimum cost flow solution is fed back to the mask matrix update logic of the physical conservation gating branch in the form of soft constraints. The loss function is composed of a weighted superposition of the prediction error mean square term and the power balance conservation law penalty term. The power balance conservation law penalty term applies a nonlinear quadratic penalty to the violation weight.

7. The source-load-storage collaborative scheduling method based on multi-timescale rolling optimization according to claim 6, characterized in that, The deficit fluctuation index is the ratio of the standard deviation to the mean of the net power deficit prediction sequence. The length of the scheduling sliding window is dynamically adjusted according to the deficit fluctuation index. Specifically, when the deficit fluctuation index is lower than the first fluctuation threshold, the intraday rolling optimization time domain is shrunk to the low-fluctuation intraday time domain value, and the ultra-short-term rolling optimization time domain is shrunk to the low-fluctuation ultra-short-term time domain value. When the deficit fluctuation index is between the first fluctuation threshold and the second fluctuation threshold, the intraday and ultra-short-term rolling optimization time domains maintain their default values. When the deficit volatility index is not lower than the second volatility threshold, the intraday and ultra-short-term rolling optimization time domain is expanded to the high volatility time domain value.

8. The source-load-storage collaborative scheduling method based on multi-timescale rolling optimization according to claim 7, characterized in that, The objective function of the day-ahead scheduling optimization model includes gas turbine operating cost, carbon emission cost, demand response cost, grid power purchase and sale cost, energy storage charge state exceeding limit penalty, grid power purchase and sale power exceeding limit penalty, energy storage charge and discharge mutual exclusion penalty, and gas turbine ramping exceeding limit penalty. The energy storage charge and discharge mutual exclusion penalty is the sum of the products of charging power and discharging power in each time period, and the charge and discharge mutual exclusion constraint is embedded in the objective function.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions, which, when executed in a computer, are used to perform the source-load-storage collaborative scheduling method based on multi-timescale rolling optimization as described in any one of claims 1-8.

10. A source-load-storage collaborative scheduling system based on multi-timescale rolling optimization, characterized in that, The system comprises the computer-readable storage medium of claim 9, wherein the system is a computer, the computer-readable storage medium is disposed within the system, and the system is provided with a microprocessor that executes program instructions stored in the computer-readable storage medium.