A data center power coordination control method and system for new energy access
By constructing a spatiotemporal fluctuation correlation model and optimizing task scheduling using a hybrid graph attention network, the dynamic matching problem caused by the volatility of new energy sources in data center new energy access was solved. This achieved efficient utilization of new energy access and stability of task execution, improving the proportion of green energy consumption and the system's adaptability.
Patent Information
- Application Number
- CN202611556977.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-09
- Publication Date
- 2026-11-24
AI Technical Summary
When data centers connect to new energy sources, the output of these sources is intermittent, fluctuating, and random due to weather conditions. This makes it difficult to dynamically match the execution of computing tasks with energy supply. Existing scheduling schemes fail to effectively address forecasting biases and lack precise correlation methods, resulting in misalignment between task scheduling and peak energy demand, as well as the coexistence of wind and solar power curtailment and grid dependence. This makes it difficult to achieve a dual guarantee of green energy utilization and task service quality.
A spatiotemporal fluctuation correlation model of new energy output is constructed. A graph neural network is used to learn the propagation law of new energy fluctuations, generate an initial task scheduling plan, and optimize task scheduling through a hybrid graph attention network. Combined with real-time monitoring and model prediction controller, power distribution is dynamically adjusted to achieve adaptive optimization.
It significantly improved the accuracy of new energy supply forecasting, optimized the three-dimensional collaborative scheduling of tasks, power, and space, reduced the impact of new energy fluctuations on key businesses, increased the proportion of green energy consumption, and achieved supply and demand balance and adaptive evolution capabilities, ensuring the deep integration and dynamic collaboration of computing tasks and new energy access.
Smart Images

Figure CN123163012A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power control technology, and in particular to a data center power collaborative control method and system for new energy access. Background Technology
[0002] As the core infrastructure of the digital economy, data centers experience a continuous increase in energy consumption as computing power demands rise. Integrating new energy sources such as wind and solar power has become a key path to reduce carbon emissions and operating costs. However, the output of new energy sources is significantly affected by meteorological conditions, exhibiting intermittency, volatility, and randomness. Meanwhile, data center computing tasks often have strict power consumption requirements and timing constraints. Dynamic alignment between these two factors has become a pressing technical challenge. Existing scheduling schemes mostly employ fixed time windows or simple threshold response strategies, failing to fully characterize the propagation patterns of new energy fluctuations in the spatiotemporal dimension. They also lack methods to accurately correlate external energy fluctuations with the power supply status of internal server clusters, leading to misalignment between task scheduling and energy peaks, and a coexistence of wind and solar curtailment and grid dependence. Furthermore, traditional methods struggle to effectively address prediction biases during real-time operation and lack a strategy self-evolution mechanism based on long-term operational feedback, making it impossible to achieve dual guarantees of green energy utilization and task service quality in complex and ever-changing energy environments. Summary of the Invention
[0003] To address the aforementioned technical issues, this application provides a data center power collaborative control method and system for new energy access, which improves the accuracy of data center power collaborative control.
[0004] In a first aspect, this application provides a data center power collaborative control method for new energy access, the method comprising: The power requirements and time flexibility data of each computing task in the data center, the output data and historical fluctuation characteristics data of new energy sources, and the power supply correlation mapping relationship between each new energy power generation unit and each server cluster in the data center are obtained respectively. A spatiotemporal fluctuation correlation model of new energy output is constructed, and an initial task scheduling plan is generated based on the spatiotemporal fluctuation correlation model. Predict future supply trends of new energy sources, and dynamically adjust the computational tasks in the initial task scheduling plan that meet preset conditions in terms of time flexibility based on the supply trends, and form an optimized execution plan based on the task execution period; During the execution of the execution plan, the output data and the total power demand of the data center are monitored in real time. When a deviation occurs between the two, the power distribution is dynamically adjusted according to the preset collaborative control strategy. After one or more control cycles have ended, based on the final execution status of the task and the actual utilization of new energy, the performance index of the coordinated control is calculated. Based on the comparison results of the performance index with the corresponding preset target, the generation rules of the initial task scheduling plan and the coordinated control strategy are iteratively updated to achieve adaptive optimization of the control method.
[0005] Secondly, this application provides a data center power collaborative control system for new energy access, the system comprising: The planning generation unit is used to acquire the power requirements and time flexibility data of each computing task in the data center, the output data and historical fluctuation characteristics data of new energy sources, and the power supply correlation mapping relationship between each new energy power generation unit and each server cluster in the data center, construct a spatiotemporal fluctuation correlation model of new energy output, and generate an initial task scheduling plan based on the spatiotemporal fluctuation correlation model. An optimized execution unit is used to predict the future supply trend of new energy and dynamically adjust the calculation tasks in the initial task scheduling plan that meet the preset conditions in terms of time flexibility based on the supply trend. Based on the task execution period, an optimized execution plan is formed. The scheduling and allocation unit is used to monitor the output data and the total power demand of the data center in real time during the execution of the execution plan. When there is a deviation between the two, the power allocation is dynamically adjusted according to the preset collaborative control strategy. The collaborative control unit includes a specific strategy module, which is used to calculate the performance index of collaborative control based on the final execution status of the task and the actual utilization of new energy after one or more control cycles, and iteratively update the generation rules of the initial task scheduling plan and the collaborative control strategy according to the comparison results of the performance index with the corresponding preset target, so as to realize the adaptive optimization of the control method.
[0006] Compared with the prior art, the beneficial effects of the present invention are at least as follows: First, by constructing a spatiotemporal fluctuation correlation model for new energy output, and utilizing graph neural networks to fuse physical information such as satellite cloud images and numerical weather predictions, the propagation patterns of new energy fluctuations in the spatiotemporal dimension are learned and dynamic fluctuation feature maps are output, significantly improving the accuracy of new energy supply forecasting and the ability to characterize cross-regional fluctuation transmission. Based on the power supply correlation mapping relationship, external energy fluctuations are correlated with the power supply risk level of the internal server cluster. By fusing task dependencies, power context, and spatial constraints through a hybrid graph attention network, an initial task scheduling plan is generated, realizing three-dimensional collaborative scheduling of tasks, power, and space. This prioritizes the execution of high-priority tasks during periods of stable power supply, effectively reducing the impact of new energy fluctuations on critical business operations. Then, by using probabilistic power supply curves and comprehensive utility functions, a multi-objective trade-off is made between the alignment of task execution and power supply, scheduling deviation costs, and system load pressure, forming an optimized execution plan. This significantly improves the proportion of green energy consumption and suppresses excessive task concentration. During the execution phase, a model predictive controller is introduced. Based on real-time deviations, control levels are dynamically divided, and the optimal action sequence is solved on a rolling basis. With the goal of minimizing cumulative execution costs and external grid power purchases, rapid closed-loop correction of supply-demand deviations and continuous supply-demand balance are achieved. Finally, a multi-dimensional performance evaluation system is used to quantify the control effect from three dimensions: green energy efficiency, service quality impact, and model accuracy. Based on reinforcement learning meta-controllers, performance deviations are automatically attributed, and the attention weights of the scheduling model and the cost function weights of the model predictive controller are adaptively adjusted. The soft actor-critic algorithm iteratively optimizes the decision-making strategy, enabling the entire control method to have long-term adaptive evolution capabilities. Ultimately, this achieves deep integration and dynamic collaboration between data center computing tasks and new energy access. Attached Figure Description
[0007] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0008] Figure 1 This is a flowchart of a data center power collaborative control method for new energy access, as described in an embodiment of this application. Figure 2 This is a schematic diagram comparing the convergence of the comprehensive utility function optimization process in the embodiments of this application; Figure 3 This is a curve showing the adaptive performance improvement of the system driven by the reinforcement learning meta-controller in an embodiment of this application. Figure 4 This is a schematic diagram of the structure of a data center power collaborative control system for new energy access according to an embodiment of this application. Detailed Implementation
[0009] This application provides a data center power collaborative control method and system for new energy access. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0010] For ease of understanding, the specific process of the embodiments of this application is described below. Please refer to [link / reference]. Figure 1 One embodiment of a data center power collaborative control method for new energy access in this application includes: Step S1: Obtain the power requirements and time flexibility data of each computing task in the data center, the output data and historical fluctuation characteristics data of new energy sources, and the power supply correlation mapping relationship between each new energy power generation unit and each server cluster in the data center. Construct a spatiotemporal fluctuation correlation model of new energy output, and generate an initial task scheduling plan based on the spatiotemporal fluctuation correlation model.
[0011] Furthermore, a spatiotemporal fluctuation correlation model for new energy output is constructed, including: Each new energy power generation unit connected to the data center is defined as a node in a graph. Edges are established based on the physical proximity between these units and the correlation coefficient of their historical output data, constructing a graph structure representing the spatial correlation topology of new energy. For each node, the corresponding historical output time series is extracted to obtain temporal fluctuation characteristics, and corresponding physical information is integrated. This physical information includes at least satellite cloud image data or wind speed field data from numerical weather prediction, forming a multi-dimensional node feature vector. This multi-dimensional node feature vector is input into a graph neural network model. Spatial features of adjacent nodes are aggregated through graph convolution operations, and temporal dependencies of the nodes themselves are extracted through temporal modeling. The propagation pattern of new energy fluctuations in the spatiotemporal dimension is learned, training a spatiotemporal fluctuation correlation model and outputting a dynamic fluctuation feature map. Based on the dynamic fluctuation feature map, the transmission probability and impact intensity of fluctuations between different physical regions within a future time window are predicted.
[0012] Furthermore, an initial task scheduling plan is generated, including task priorities and predetermined execution times, comprising: All computational tasks to be executed and their corresponding dependencies are constructed as a directed acyclic graph (DAG). A graph neural network is used to process the DAG, generating an initial embedding vector for each task node based on power demand and time flexibility data. The continuously predicted power supply curves for a future period indicated by historical fluctuation characteristic data are processed by a time series encoder to generate power context embedding vectors. The power supply risk levels of each server cluster in different time slices, indicated by the dynamic fluctuation feature map, are encoded as spatial constraint vectors. Based on the initial embedding vectors, power context embedding vectors, and spatial constraint vectors, a hybrid graph attention network is applied to generate a scheduling action sequence, which is used as the initial task scheduling plan. Based on the dynamic fluctuation feature map and the power supply correlation mapping, when generating the initial task scheduling plan, high-priority tasks are prioritized for scheduling to server clusters whose power supply stability is higher than a preset stability threshold as predicted by the dynamic fluctuation feature map within the corresponding time window.
[0013] Furthermore, a hybrid graph attention network is applied to generate a sequence of scheduling actions, including: The initial embedding vector, power context embedding vector, and spatial constraint vector are input into a Transformer-based decoder. At each decision time step, the decoder simultaneously considers the execution conditions of task nodes, the sufficiency of power resources, and the availability status of the server cluster through a cross-modal attention mechanism. Based on the attention score, the optimal scheduling action is output, which includes starting, pausing, or resuming a task on a specific server cluster. For high-priority tasks, execution is preferentially selected on server clusters where the predicted power supply stability is higher than a preset stability threshold. The decision process is repeated until all tasks are scheduled, generating a sequence of scheduling actions.
[0014] Specifically, when data centers connect to new energy sources such as wind and solar power, the intermittent, fluctuating, and random nature of these sources makes it difficult to dynamically match computational task execution with energy supply. Therefore, it is necessary to construct a spatiotemporal fluctuation correlation model of new energy output using multi-dimensional data, and to integrate graph neural networks with hybrid graph attention networks to form a collaborative technical solution from energy fluctuation prediction to task scheduling generation.
[0015] Power demand data refers to the electrical power required by each computing task during operation. This data is collected in real-time by smart meters deployed on the server's power management module or by a power consumption estimation model based on hardware performance counters. The power consumption estimation model is a calculation model that indirectly estimates power consumption based on server hardware operating status parameters. Its principle lies in the quantifiable statistical correlation between the power consumption of hardware components such as processors, memory, and hard drives and their workload intensity. Time flexibility data refers to the adjustability of computing tasks within their execution time windows. It is defined as the time span between the latest and earliest allowed start times of a task; greater time flexibility indicates a wider task scheduling space. New energy output data refers to the actual electrical power output of new energy power generation units such as wind turbines and photovoltaic arrays. This data can be obtained through the real-time data interface of a Supervisory Control and Data Acquisition (SCADA) system or an energy management platform. Historical fluctuation characteristic data is a cumulative record of renewable energy output data over a long historical period. It is used to characterize the statistical regularity and dynamic characteristics of renewable energy output and is obtained through the following steps: Time series of output from each renewable energy power generation unit are collected at a fixed sampling frequency, outliers are removed, and missing data is filled; statistical features, including mean, standard deviation, and extreme values, are extracted using a sliding window; periodic features, including principal period components and energy distribution, are extracted through frequency domain transformation; correlation features, including autocorrelation decay order and cross-correlation time delay, are extracted through correlation analysis; and the above features are normalized and integrated into a standardized feature matrix, which serves as the historical fluctuation characteristic data. The power supply correlation mapping relationship is the correspondence between the power supply paths of each renewable energy power generation unit and each server cluster within the data center. It is stored in matrix form, where rows represent renewable energy power generation units, columns represent server clusters, and matrix elements represent the power supply correlation strength between the two. This strength is determined through electrical topology analysis, power flow monitoring, or statistical analysis of historical power supply records.
[0016] While power demand data and time flexibility data do not directly participate in the training of the spatiotemporal fluctuation correlation model, they provide application constraints for the dynamic fluctuation feature map output by the model. Specifically, the training objective of the spatiotemporal fluctuation correlation model is to minimize the prediction error of new energy output, while the power demand data and time flexibility data are used to determine the application scenarios and accuracy requirements of the prediction results after the model training is completed.
[0017] Historical fluctuation characteristic data serves as the core training input for the spatiotemporal fluctuation correlation model. It is input into the graph neural network in the form of multi-dimensional node feature vectors, providing an initial state representation for each new energy power generation unit node. The statistical and periodic features in the historical fluctuation characteristic data constitute the time-dimensional fluctuation features, used to initialize the temporal state of the nodes. The cross-correlation time delay parameters in the correlation features are used to initialize the weights of edges in the graph structure, enabling stronger information transmission channels between physically adjacent power generation units with synchronized historical fluctuations.
[0018] The power supply correlation mapping plays a dual role in constructing the spatiotemporal fluctuation correlation model, serving as both a spatial constraint and an output mapping. At the spatial constraint level, the matrix elements in the power supply correlation mapping serve as prior knowledge, constraining the scope and intensity of information transmission in the graph neural network. If two new energy power generation units have high power supply correlation strengths with the same server cluster, the model is guided to enhance the feature interactions between these two power generation units during graph convolution aggregation. At the output mapping level, the power supply correlation mapping defines the conversion rules from node states in the dynamic fluctuation feature map to the power supply risk level of the server cluster. The fluctuation prediction results of each power generation unit are weighted and superimposed according to the power supply correlation strength to obtain the comprehensive power supply risk index for each server cluster.
[0019] Physical proximity refers to the geographical distance between new energy power generation units. Power generation units geographically closer are more likely to be affected by the same meteorological system, resulting in strong spatial correlation in power output fluctuations. The correlation coefficient of historical power output data is obtained by calculating the Pearson correlation coefficient between the power output time series of two power generation units. A higher correlation coefficient indicates more synchronized power output fluctuations. The edges of the graph are determined jointly based on physical proximity and correlation coefficients. An edge is established between two power generation units only when the geographical distance is less than a preset distance and the correlation coefficient is greater than a preset coefficient. The resulting graph structure comprehensively depicts the spatial topology of new energy power generation units.
[0020] Historical power output time series is a sequence of power output values recorded by new energy power generation units at fixed sampling intervals over a past period. Temporal fluctuation characteristics are extracted through statistical analysis and wavelet decomposition of this time series, including daily periodic components, seasonal periodic components, trend components, and random fluctuation components. Physical information refers to external physical environment data affecting new energy power output, including at least satellite cloud imagery data or wind speed field data from numerical weather prediction. Satellite cloud imagery data reflects cloud coverage and movement trends, directly affecting photovoltaic power generation, while wind speed field data reflects future wind speed distribution in various regions, directly affecting wind power generation. The temporal fluctuation characteristics and physical information are fused and connected end-to-end in the dimensional direction to form a higher-dimensional, multi-dimensional node feature vector.
[0021] Graph neural network (GNN) models are deep learning models specifically designed for processing graph-structured data. The essence of graph convolution is that for each node in the graph, its own features are weighted and averaged with the features of its neighboring nodes according to the edge weights, thereby updating the node's representation vector. This updated vector contains both its own and its neighboring information. After multiple layers of graph convolution, each node's representation vector can perceive a wider range of graph structure information, achieving spatial feature aggregation. Temporal modeling employs gated recurrent units (GRUs) or long short-term memory (LSTM) networks to model the evolution of node feature vectors over time, capturing the time dependencies such as daily and seasonal cycles in renewable energy output. By jointly training the graph convolutional network and the temporal modeling network, the model can simultaneously learn the propagation patterns of renewable energy fluctuations in both the spatial and temporal dimensions. After training, the model outputs a dynamic fluctuation feature map, which is a graph structure that changes over time. The state of each node represents the fluctuation characteristics of that power generation unit at the current moment, and the weight of each edge represents the intensity and direction of fluctuation transmission between adjacent power generation units.
[0022] The propagation probability refers to the likelihood that a power output fluctuation from one power generation unit will propagate to another power generation unit or the region where a server cluster is located. It is obtained by calculating the attention coefficient between nodes using a graph attention mechanism; a higher attention coefficient indicates a greater probability of propagation. The impact intensity refers to the degree of influence on the renewable energy output of the target region after the propagation of the fluctuation occurs. It is obtained by mapping the output features of the graph convolutional layer to the change in power output.
[0023] Specifically, after constructing the spatiotemporal fluctuation correlation model, an initial task scheduling plan containing task priorities and predetermined execution times is generated based on the model.
[0024] A directed acyclic graph (DAG) has directional edges and no cycles, corresponding to the prerequisite dependencies between computational tasks; that is, task A must be completed before task B, but cyclic dependencies are not allowed. Graph neural networks aggregate neighbor node information through graph convolution. Neighbor nodes represent prerequisite or subsequent tasks in the dependency relationship. The initial embedding vector is a low-dimensional dense vector representation generated by the graph neural network for each task node, encoding the task's power requirements, time flexibility, and its topological position information in the dependency graph.
[0025] The continuously predicted power supply curve is the prediction result of the spatiotemporal fluctuation correlation model on the total output of new energy sources or the output of each power generation unit in the future. It is represented in the form of a time series. The time series encoder uses a one-dimensional convolutional neural network or a Transformer encoder to map the above time series into a fixed-length vector representation. This vector encodes the overall trend, peak and valley distribution and fluctuation amplitude information of the future power supply.
[0026] The power supply risk level is determined by analyzing the output fluctuation prediction results of the new energy power generation units associated with each server cluster in the dynamic fluctuation feature map. If the main power source of a server cluster is predicted to experience severe output fluctuations or face the risk of power outage in a future time slice, then the power supply risk level of that cluster in that time slice is high. The spatial constraint vector is the result of vectorizing the risk level of each server cluster in each time slice, used to constrain the scheduling algorithm to avoid assigning important tasks to high-risk spatiotemporal regions. Here, the scheduling algorithm specifically refers to the end-to-end decision algorithm based on the hybrid graph attention network to generate scheduling action sequences, which is specifically manifested as a sequence generation process performed by a decoder based on the Transformer architecture combined with a cross-modal attention mechanism. This algorithm uses the initial embedding vector, the power context embedding vector, and the spatial constraint vector as joint inputs, and outputs the current optimal scheduling action by calculating the attention score at each decision time step. In this algorithm, the spatial constraint vector plays a dual role of constraint and bias: on the one hand, the power supply risk level information it encodes directly reduces the attention score of high-risk server clusters in the corresponding time slice through a masking mechanism, making it difficult for the decoder to select the spatiotemporal region when generating scheduling actions; on the other hand, the spatial constraint vector participates in cross-modal attention calculation as a feature embedding, guiding the algorithm to actively avoid high-risk spatiotemporal combinations during global optimization, thereby ensuring that important tasks are preferentially allocated to server clusters with power supply stability higher than the preset threshold for execution.
[0027] Hybrid graph attention network simultaneously handles task-dependent graph structures and cross-modal attention mechanisms. The inputs are the initial embedding vector on the task side, the power context embedding vector on the energy side, and the spatial constraint vector on the space side. The output is a sequence of scheduling actions, which is a series of scheduling decisions arranged in chronological order. Each scheduling decision specifies when, on which server cluster, and which task to execute.
[0028] Power supply stability exceeding the preset stability threshold means that within the corresponding time window, the predicted output fluctuation of the associated new energy power generation unit of the server cluster is less than the allowable range, or the probability of power outage is lower than the risk tolerance. This mechanism ensures that critical business tasks are prioritized for deployment on computing resources with reliable energy supply.
[0029] Specifically, the Transformer architecture is a deep learning model architecture based on the self-attention mechanism. The decoder is the component in the Transformer responsible for generating the output sequence. It generates the target sequence based on the output of the encoder. In this scenario, the encoder part is implicitly included in the generation process of various embedding vectors, and the decoder directly receives the fused multimodal embedding vector.
[0030] Cross-modal attention mechanisms are an extension of attention mechanisms to multimodal data. Standard attention mechanisms calculate the similarity between query vectors and key vectors to determine the attention weight for value vectors. Cross-modal attention mechanisms allow interaction between vectors from different modalities. For example, a task embedding vector can be used as a query, and an electricity context embedding vector can be used as a key and value to determine which time slice's electricity supply status should be prioritized at the current decision moment. Execution conditions refer to whether the task's prerequisites have been met and whether the time window has been reached; electricity resource sufficiency refers to whether the supply of new energy sources is sufficient for the corresponding time period; and availability status refers to whether the computing resources of the server cluster are idle.
[0031] Attention score is a weighted value calculated by a cross-modal attention mechanism; a higher score indicates that the task-time-cluster combination is more suitable for the current scheduling. Scheduling actions are specific operational instructions issued by the scheduling system to the data center resource manager. Starting a task means allocating computing resources to the task and beginning execution; pausing a task means temporarily interrupting the task's execution and saving its current state; resuming a task means rescheduling the paused task for execution. The preset stability threshold is the minimum standard for power supply stability set by the system administrator based on business reliability requirements. Only server clusters with predicted power supply stability higher than this threshold are allowed to execute high-priority tasks. This hard constraint is implemented by applying a mask at the network output layer.
[0032] Looping execution means that after the decoder outputs a scheduling action at each time step, it feeds the execution result of the action back to the system state, updates the completion status of the task dependency graph, the availability status of the server cluster, and the remaining power resources, and then proceeds to the next decision time step until the set of tasks to be scheduled is empty. The generated sequence of scheduling actions constitutes the complete initial task scheduling plan, which specifies the start and end times, execution locations, and required power resource quotas for each task.
[0033] Step S2: Predict the future supply trend of new energy, and dynamically adjust the calculation tasks in the initial task scheduling plan that meet the preset conditions in terms of time flexibility based on the supply trend. Based on the task execution period, form an optimized execution plan.
[0034] Furthermore, an optimized execution plan is developed, including: Based on historical fluctuation data, a probabilistic power supply curve for the future is predicted. Combined with time flexibility data, selectable execution periods are determined for tasks whose time flexibility meets preset conditions. A comprehensive utility function is constructed, which weights and integrates multiple evaluation dimensions. Starting from the initial task scheduling plan, the execution periods of flexible tasks are repeatedly adjusted. The search direction is guided by the changes in the comprehensive utility function until the function converges or the termination condition is met.
[0035] Several evaluation dimensions include: the degree of alignment between task execution and the power supply curve; the cost of deviation of task execution time from the initial scheduling; and the load pressure on the system caused by the total power demand of concurrent tasks.
[0036] Specifically, after generating an initial task scheduling plan based on the spatiotemporal fluctuation correlation model, the initial task scheduling plan is further optimized and adjusted by predicting the future supply trend of new energy sources, so as to form an optimized execution plan that better suits the fluctuation characteristics of new energy sources. This prediction process relies on the spatiotemporal fluctuation correlation model constructed in step S1. By inputting the latest real-time meteorological monitoring data and new energy output monitoring data into the model, the output of each new energy power generation unit within the future time window is predicted in a rolling manner. Unlike deterministic predictions that only output a single predicted value, the prediction in this embodiment generates a probabilistic power supply curve for the future based on historical fluctuation characteristic data. The so-called probabilistic power supply curve refers to providing not only the expected output value but also the confidence interval or probability distribution corresponding to the predicted value when predicting the power supply value for each future time slot. For example, by using quantile regression or Gaussian process modeling, the probability that the output of new energy sources will be within a specific interval in a certain future period is output. The necessity of this probabilistic representation lies in the fact that the output of new energy sources is affected by the randomness of meteorological conditions, and a single predicted value is difficult to reflect the true uncertainty. The probabilistic curve can provide a risk assessment basis for subsequent scheduling decisions. The input data for the forecasting process includes periodic patterns and random fluctuation amplitudes in historical fluctuation characteristics data, as well as real-time physical information. The output data is a probabilistic power supply curve that extends over time. This curve is presented in the form of a time series, with each time point corresponding to a predicted power output distribution.
[0037] Based on the probabilistic power supply curve, this embodiment combines time flexibility data to determine selectable execution periods for computational tasks whose time flexibility meets preset conditions. Tasks whose time flexibility meets preset conditions refer to computational tasks that have significant time adjustment space within the limits of business constraints. Their time flexibility values are higher than a system-set threshold, indicating that such tasks can be moved back and forth within a certain time range without violating the final deadline. The specific method for determining selectable execution periods is as follows: using the original execution period arranged for the task in the initial task scheduling plan as a benchmark, and the earliest start time and latest completion time defined by the time flexibility data as boundaries, combined with the supply sufficiency of each period in the probabilistic power supply curve, a set of candidate periods that both meet the task's time constraints and have a high level of new energy supply is selected. If the time flexibility of a task allows it to be executed within a fixed-length window over a relatively long period, the system compares this time range with the probabilistic power supply curve, eliminating periods with excessively high supply risk or low output, and retaining periods with stable and sufficient supply as selectable execution periods for the task.
[0038] After determining the optional execution periods for each flexible task, this embodiment constructs a comprehensive utility function to quantitatively evaluate the overall merits of different scheduling schemes. The comprehensive utility function is essentially a multi-objective weighted function that weights and integrates three evaluation dimensions: the matching quality between task execution and new energy supply, the cost of scheduling adjustments, and system load balancing, mapping them to a scalar utility value. A higher utility value indicates a better scheduling scheme. The function takes a specific task execution period arrangement as input and outputs the corresponding comprehensive utility value. Meanwhile, the function incorporates a hard constraint on power supply stability. This constraint is derived from the power supply risk level of each server cluster in each time slice predicted by the dynamic fluctuation feature map in step S1. Specifically, for high-priority tasks, they are only allowed to be assigned to server clusters with power supply stability higher than a preset stability threshold for execution. This constraint is implemented through a masking mechanism. That is, before calculating the comprehensive utility value, it is first determined whether the execution time period of each high-priority task in the scheme and the combination of server clusters meet the stability threshold requirement. If not, the comprehensive utility value of the scheme is directly set to negative infinity or zero, so that it is excluded in the subsequent search process, thereby ensuring that the optimization result always meets the power supply reliability requirements.
[0039] This is mapped to a scalar utility value; a higher utility value indicates a better scheduling scheme. The function takes a specific task execution time period arrangement as input and outputs the overall utility value corresponding to that scheme.
[0040] Specifically, the first evaluation dimension is the alignment between task execution and the power supply curve. This dimension measures the degree of matching between the execution period of the calculation task and the expected peak supply of renewable energy. It is typically calculated by the ratio of the average renewable energy supply power to the task power demand during the task execution period, or by calculating the time overlap between the task execution period and the peak supply period. A higher degree of alignment indicates that the task can absorb more green energy during execution, reducing dependence on the external power grid. This dimension's value participates in the calculation of the comprehensive utility function with a positive weight; that is, the higher the alignment, the greater the comprehensive utility value.
[0041] The second evaluation dimension is the deviation cost of task execution time relative to its initial schedule. This dimension measures the cost of adjusting a task from its original execution time slot in the initial task scheduling plan to a new execution time slot. This cost includes, but is not limited to, context switching overhead during task migration, data migration latency, increased waiting time for subsequent dependent tasks due to the execution time change, and user-perceived service response latency. The deviation cost is typically calculated based on task priority and actual time offset; higher priority tasks or larger time offset adjustments have higher deviation costs. This dimension participates in the calculation of the overall utility function with a negative weight, meaning that the higher the deviation cost, the lower the overall utility value, thereby suppressing system instability caused by over-adjustment.
[0042] The third evaluation dimension is the load pressure on the system caused by the total power demand of concurrent tasks. This dimension aims to prevent the concentration of too many high-power tasks during the optimization process in the same peak period of renewable energy supply, which could lead to excessive instantaneous load on the server cluster, increased heat dissipation pressure, or insufficient renewable energy output to meet the total demand. Load pressure is obtained by calculating the ratio of the sum of the power demands of all concurrent tasks within the same time period to the expected upper limit of renewable energy supply or the power supply capacity of the server cluster for the corresponding time period. The higher the ratio, the greater the load pressure. This dimension also participates in the calculation with a negative weight in the comprehensive utility function to ensure that the optimization results improve the utilization rate of green energy while maintaining the safety and stability of system operation.
[0043] Based on the constructed comprehensive utility function, starting from the initial task scheduling plan, the system iteratively searches for the task execution time arrangement that maximizes the comprehensive utility function. The search process begins with the initial task scheduling plan generated in step S1, which serves as the current optimal baseline scheme. In each iteration, the system selects one or more tasks from the set of tasks that meet preset time flexibility conditions, adjusts their execution time from the current arrangement to other candidate time periods among the previously determined optional execution time periods, and generates a new candidate scheduling scheme. The comprehensive utility function value of this candidate scheme is then calculated and compared with the comprehensive utility function value of the current optimal scheme. If the utility value of the candidate scheme is higher than that of the current optimal scheme, the adjustment is accepted, and the candidate scheme is updated to the new current optimal scheme; if the utility value of the candidate scheme is lower than or equal to that of the current optimal scheme, the search strategy determines whether to accept the adjustment. For example, in simulated annealing, a suboptimal solution is accepted with a certain probability to escape local optima, or in a greedy algorithm, a suboptimal solution is directly rejected. This adjustment and comparison process is repeated continuously, guided by the changing trend of the comprehensive utility function, meaning the system always explores directions that improve alignment, control deviation costs, and balance load pressure.
[0044] The search process continues until a preset termination condition is met. Termination conditions typically fall into two categories: one is a function convergence condition, where the improvement in the overall utility function value over multiple iterations is less than a preset threshold, indicating that further adjustments are unlikely to yield significant improvement and the current solution is close to optimal; the other is an iteration limit, where a preset maximum number of search steps is reached to prevent the search from proceeding indefinitely and wasting computational resources. When the termination condition is met, the search process ends, and the current optimal solution obtained is the optimized execution plan. Compared to the initial task scheduling plan, this plan, while maintaining task dependency constraints and deadline constraints, significantly improves the proportion of green energy consumption by migrating flexible tasks to periods with abundant new energy supply. Simultaneously, by balancing deviation costs and load pressure, it avoids the side effects of excessive centralized adjustments, achieving synergistic optimization of energy utilization efficiency and system operational stability.
[0045] For example, Figure 2 This diagram illustrates the convergence of the comprehensive utility function optimization process. The horizontal axis represents the number of optimization iterations, and the vertical axis represents the comprehensive utility function value (which is a weighted combination of three dimensions: task-power alignment, scheduling deviation cost, and system load pressure; a higher value indicates a better scheduling scheme). Figure 2 The results demonstrate the effectiveness and superiority of the integrated utility function and guided search strategy proposed in step S2. This method can obtain a higher quality optimized execution plan with greater efficiency.
[0046] Step S3: During the execution of the execution plan, monitor the output data and the total power demand of the data center in real time. When there is a deviation between the two, dynamically adjust the power distribution according to the preset collaborative control strategy.
[0047] Furthermore, power distribution is dynamically adjusted according to a preset collaborative control strategy, including: The deviation between real-time quantified power output data and the total power demand of the data center is dynamically divided into multiple control levels based on a preset deviation threshold. For each control level, a set of actions containing multiple alternative control actions is predefined, and each action is associated with a quantified execution cost. When the deviation triggers a preset control level, the model predictive controller is activated. Within a finite future time domain, an optimization problem is solved with the objective of minimizing the cumulative execution cost and the amount of electricity purchased from the external power grid, and the optimal action sequence is determined. Only the first action in the optimal action sequence is executed. In the next control cycle, based on the updated system state, the model predictive controller is activated again to make decisions.
[0048] Specifically, after the optimized execution plan enters the actual execution phase, due to the inherent deviation between the actual and predicted values of renewable energy output, and the potential deviation of the calculated power demand from the planned value due to dynamic load changes, a real-time closed-loop control mechanism is needed to dynamically correct power allocation. This embodiment obtains the instantaneous values of both by real-time monitoring of renewable energy output data and the total power demand of the data center. Output data is collected at a fixed sampling frequency by power sensors deployed at the output end of the renewable energy generation unit, while the total power demand is obtained by aggregating the real-time power consumption monitoring values of each server cluster in the data center. By comparing the real-time collected output data with the total power demand, the deviation between the two can be quantified. This deviation is defined as the difference between the output data and the total power demand at the same moment. A positive deviation occurs when output exceeds demand, indicating surplus renewable energy; a negative deviation occurs when output is less than demand, indicating a supply gap in renewable energy.
[0049] Based on the quantified deviation, the current system state is dynamically divided into multiple control levels according to preset deviation thresholds. The deviation threshold is a pre-defined boundary standard for deviation amplitude. The system compares the absolute value of the deviation calculated in real time with each threshold to determine the current control level. When the absolute value of the deviation is in a lower range, the system is classified as a normal control level, indicating a basic balance between supply and demand. Only minor adjustments are needed, and the system maintains its current execution plan without triggering additional control actions. Specifically, when the absolute value of the deviation obtained from real-time quantification is in a lower range—that is, when the difference between the actual output of new energy and the total power demand of the data center is within a tolerable range—it indicates a basic balance between supply and demand, and a good match between task execution and energy supply. No intervention operations such as task migration, rate adjustment, or energy storage call-up are required. At this level, the system only maintains routine monitoring and data acquisition, reserving computing resources for normal business load processing, while continuing to track the changing trends of output data and total power demand at a fixed sampling frequency, providing data support for possible level transitions. This design avoids the system overhead and performance fluctuations caused by frequent control actions triggered by minor fluctuations, ensuring that control resources are activated only when truly needed. When the absolute value of the deviation crosses the intermediate threshold, the system enters the early warning control level, indicating a significant supply-demand imbalance. When the absolute value of the deviation exceeds the high threshold, the system triggers the emergency control level, indicating a severe power shortage or significant curtailment of renewable energy. The significance of this tiered mechanism is that different levels of deviation correspond to different control response intensities, avoiding frequent activation of high-intensity control actions due to minor fluctuations, while also ensuring that sufficient control resources can be quickly mobilized in the event of severe imbalances.
[0050] For each control level, a predefined action set containing multiple alternative control actions is defined. The action set is the collection of all control actions available for the model predictive controller to choose from at that level. The action sets for different control levels differ in the types and intensity of actions. Action sets for normal control levels typically include low-intrusive actions such as fine-tuning task execution rates and minor adjustments to server power consumption. Action sets for early warning control levels extend to medium-intensity actions such as task migration and energy storage system charging / discharging switching. Action sets for emergency control levels further encompass high-intensity actions such as large-scale task suspension, backup power activation, and purchasing power from the external power grid. Each action is associated with a quantified execution cost, which is a numerical measure of the potential performance loss, resource overhead, or economic expenditure after the action is implemented. For example, the cost of reducing task execution rate is positively correlated with task priority and the magnitude of the rate reduction; the cost of suspending low-priority tasks is lower than suspending high-priority tasks; and the cost of purchasing power from the external power grid directly corresponds to the product of the market electricity price and the amount of electricity purchased. This quantification of execution costs allows for comparability analysis of control actions of different natures within the same optimization framework.
[0051] When the real-time deviation triggers a preset control level, the Model Predictive Controller (MMDC) is activated to make a decision. The MMDC is an advanced control algorithm based on a dynamic model of the controlled object for rolling optimization. Its core idea is to solve an open-loop optimal control problem within a finite future time domain using the current system state and the predictive model in each control cycle. The finite time domain, also known as the prediction time domain, refers to a fixed-length time window extending into the future from the current moment. The MMDC performs optimization calculations only within this time window, rather than attempting to solve for a globally optimal solution in the infinite future. This significantly reduces computational complexity and enhances real-time performance. The input data of the MMDC includes the current system state vector, which at least contains the current output of each renewable energy generation unit, the state of charge of the energy storage system, the real-time load rate of each server cluster, the progress information of the tasks being executed, and the aforementioned quantized deviation value. Its output data is the optimal sequence of actions that optimizes the objective function within the prediction time domain. This sequence is a set of control actions arranged in chronological order, with each action corresponding to one control cycle within the prediction time domain. The stopping conditions for the model predictive controller fall into two categories: the first is the deviation convergence condition, which means that when the absolute value of the deviation obtained from real-time monitoring falls back to the threshold range of the normal control level and remains stable for multiple consecutive control cycles, the model predictive controller stops running and the system returns to the normal monitoring state; the second is the maximum number of iterations condition, which means that when the model predictive controller has rolled to the preset maximum number of control cycles, it will be forcibly stopped regardless of whether the deviation has converged, to prevent infinite loops caused by continuous disturbances. At this time, the system records the current state and waits for the next level trigger.
[0052] Specifically, the optimization problem solved by the model predictive controller within a finite time domain aims to minimize cumulative execution cost and external grid power purchase. Cumulative execution cost refers to the sum of the execution costs of control actions taken from the current moment to each future control cycle within the prediction time domain. It reflects the overall intervention cost of the control strategy over a future period. External grid power purchase refers to the total electricity purchased from the traditional power grid within the prediction time domain to compensate for the renewable energy supply gap. It directly determines the data center's operating costs and carbon emission levels. The objective function of the optimization problem is a weighted sum of these two terms. The weighting coefficients can be dynamically set according to the data center's operating strategy. For example, the penalty weight for electricity purchase can be increased during periods of strict carbon emission constraints, while the weight of execution cost considerations can be increased during periods of high task service quality requirements. The constraints of the optimization problem include the power capacity constraints of the server cluster, the charging and discharging power and capacity constraints of the energy storage system, the task deadline constraints, and the physical feasible region constraints of the control actions themselves, ensuring that the solved action sequence can be physically executed in the actual system.
[0053] The Model Predictive Controller (MMDC) solves the constrained optimization problem using numerical optimization algorithms to obtain the optimal sequence of actions in the prediction time domain. However, it does not implement all actions in the sequence; instead, it executes only the first action. This design of executing only the first action stems from the rolling optimization principle of MMDC. Due to model uncertainties and external disturbances, the future system state is difficult to predict accurately. If the entire future action sequence were executed at once, subsequent actions would no longer be optimal or even infeasible if the actual state deviated from the predicted trajectory. Therefore, the MMDC only implements the optimal action at the current moment in each control cycle. In the next control cycle, the system re-acquires updated state data, and the MMDC is restarted for a new round of optimization. This mechanism of repeatedly restarting the MMDC to make decisions based on the updated system state in each control cycle is called rolling time-domain control. It enables the control strategy to continuously adapt to the latest system state changes and disturbances, transforming open-loop optimization into closed-loop feedback control, thereby achieving continuous supply and demand balance adjustment. As the control cycle continues to roll forward, the model predictive controller repeatedly executes a closed-loop process of prediction, optimization, implementation, and re-prediction to ensure that the data center maintains optimal and real-time power distribution in an environment of continuous fluctuations in new energy sources and dynamic changes in task load.
[0054] Step S4: After one or more control cycles have ended, calculate the performance index of the coordinated control based on the final execution status of the task and the actual utilization of new energy. Then, based on the comparison results between the performance index and the corresponding preset target, iteratively update the generation rules of the initial task scheduling plan and the coordinated control strategy to achieve adaptive optimization of the control method.
[0055] Furthermore, the performance indicators of the coordinated control are calculated, including: The system aggregates planned task execution data, actual execution log data, actual power output data from renewable energy sources, and actual total power demand data from the data center. Based on the aggregated data, multi-dimensional performance indicators are calculated, including: renewable energy self-consumption rate (green energy efficiency dimension); priority-weighted task latency index and control invasiveness score (service quality impact dimension); and supply forecast accuracy and demand forecast accuracy indicators (model accuracy dimension). The supply forecast accuracy indicator is calculated by comparing the predicted renewable energy supply with the actual power output data; the demand forecast accuracy indicator is calculated by comparing the total power demand estimated based on the scheduling plan with the actual total power demand of the data center. These multi-dimensional performance indicators are then combined into a structured performance index for collaborative control.
[0056] Furthermore, adaptive optimization of the control method is achieved through a meta-controller based on reinforcement learning, including: According to the preset diagnostic rules, the performance deviation is attributed to the specific strategy module. The strategy module includes a scheduling generation module responsible for generating the initial task scheduling plan and a collaborative control module responsible for dynamically adjusting power distribution.
[0057] The key behavioral logic in the specific strategy module is parameterized into adjustable hyperparameters, which serve as the update action space of the meta-controller. The hyperparameters include attention weights in the scheduling model used to generate the initial task scheduling plan, and cost function weights in the model predictive controller used for the cooperative control strategy.
[0058] The meta-controller takes performance indicators as state inputs and, under the premise of meeting preset stability conditions, selects and executes update actions at a preset update frequency to adjust hyperparameters. Based on the cumulative reward value calculated from the performance indicators of multiple consecutive control cycles after adjustment, it uses a reinforcement learning algorithm to iteratively optimize its decision-making strategy.
[0059] Furthermore, reinforcement learning algorithms are used to iteratively optimize the decision-making strategy, including: The meta-controller is constructed as an architecture containing an actor with a policy network and an evaluator with a value network. The policy network is responsible for mapping the state vector composed of performance metrics to update actions on hyperparameters, and the evaluator is responsible for evaluating the long-term value of performing a specific update action in a specific state.
[0060] When the policy network generates update actions, it encourages diverse exploration of the update action space by maximizing policy entropy; before applying the update actions to the policy module, the actions are scaled and limited by a security constraint layer.
[0061] An experience replay buffer is established to store experience tuples containing historical states, executed update actions, obtained rewards, and subsequent states. In each control cycle, historical experiences are randomly sampled from the experience replay buffer, and the network parameters of the actor and evaluator are updated based on the soft actor-critic algorithm.
[0062] Specifically, after one or more control cycles, the system enters the performance evaluation and strategy optimization phase. A control cycle is the time unit for executing a collaborative control strategy, typically a fixed duration. After one or more control cycles, sufficient operational data has been accumulated during real-time monitoring and dynamic adjustment. The system needs to perform retrospective analysis on this data to evaluate the actual effectiveness of the aforementioned control strategies. First, it is necessary to aggregate multi-source heterogeneous operational data, including planned task execution data, actual execution log data, actual power output data from renewable energy sources, and actual total power demand data from the data center. Planned task execution data comes from the initial task scheduling plan and the optimized execution plan, recording the theoretical start time, theoretical completion time, planned power allocation, and planned server cluster deployment for each task. Actual execution log data comes from the real-time records of the task management system within the control cycle, including the actual start time, actual completion time, whether migration or pause occurred during execution, actual energy consumption, and the final completion status of each task. The actual power output data from renewable energy sources is the actual output power time series of each renewable energy power generation unit within the corresponding control cycle, collected by the SCADA system. The actual total power demand data for a data center is the total electrical power it receives from all power sources during the same time period, including direct power supply from renewable energy sources, energy storage discharge, and power purchased from the external power grid. These four types of data are time-aligned and formatted to form a structured dataset that can be used for subsequent calculations.
[0063] The green energy efficiency dimension includes at least the renewable energy self-consumption rate. The renewable energy self-consumption rate is defined as the proportion of electricity actually consumed and utilized by data centers from renewable energy sources to the total renewable energy generation. It is calculated by dividing the portion of the actual renewable energy output directly consumed by the data center load within the statistical control period by the total renewable energy generation. The higher this indicator, the more fully the data center utilizes green energy and the less wind and solar curtailment occurs.
[0064] Service quality impact dimensions include at least a priority-weighted task latency index and a control invasiveness score. The priority-weighted task latency index quantifies the impact of scheduling adjustments on task timeliness. It is calculated by multiplying the actual completion time of each task by its planned completion time, summing the results, and then dividing by the total number of tasks for normalization. Priority weights are pre-set based on the task's business importance; a higher index indicates more severe latency for high-priority tasks and a greater impairment in service quality. The control invasiveness score assesses the severity of interference from real-time control actions on task execution. It is calculated by statistically analyzing the frequency and intensity of control actions within the control cycle. For example, each task pause is counted as one invasiveness, and each execution rate adjustment is weighted by the adjustment magnitude. The weighted sum of actions is divided by the control cycle duration. A higher score indicates that the control strategy frequently interferes with normal task operation, potentially leading to system jitter and user-perceived instability.
[0065] The model accuracy dimension includes at least two metrics: supply forecast accuracy and demand forecast accuracy. The supply forecast accuracy metric measures the accuracy of the spatiotemporal fluctuation correlation model in predicting renewable energy output. It is calculated by comparing the predicted renewable energy supply power curve with the actual output data, typically using root mean square error (RMSE) or mean absolute percentage error (MASE) as the measure. A smaller error indicates that the forecast model accurately captures the fluctuation patterns of renewable energy. The demand forecast accuracy metric measures the accuracy of the scheduling plan in predicting data center load demand. It is calculated by comparing the total power demand estimated based on the scheduling plan with the actual total power demand of the data center. The estimated total power demand is obtained by summing the power demands of each task in the plan over its execution period, while the actual total power demand is collected by the monitoring system. A smaller error between the two metrics indicates that the scheduling plan accurately predicts load changes.
[0066] The multi-dimensional performance indicators from the three dimensions mentioned above are combined into a structured performance indicator for collaborative control according to preset weights. The preset weights are set by the system administrator based on operational objectives. The structured performance indicator is represented in vector form, with each component of the vector corresponding to a performance value of a different dimension, facilitating subsequent item-by-item comparison with preset objectives.
[0067] The preset target is the expected performance metric value set by the system administrator or user based on business needs and operational strategies. The actual calculated structured performance metrics are compared with the preset target to obtain the performance deviation, which is the difference or ratio between the actual value and the target value. If all dimensions meet the preset target, the system maintains its current strategy; if any dimension fails to meet the target, an adaptive optimization process is triggered.
[0068] Adaptive optimization is achieved through a meta-controller based on reinforcement learning. The meta-controller is a high-level policy optimizer whose function is not to directly control task scheduling or power allocation, but rather to regulate key parameters of lower-level policy modules, enabling gradual improvement of the lower-level policies. Specifically, performance deviations are first attributed to the specific policy modules causing the deviations based on pre-defined diagnostic rules. These diagnostic rules are a set of rules based on expert knowledge or data mining, and their attribution logic strictly corresponds to the functional boundaries of each module: if the supply forecast accuracy is low, the deviation is attributed to the spatiotemporal fluctuation correlation model responsible for predicting new energy output, which can be improved by adjusting the number of layers in the graph neural network or the length of the time-series modeling window; if the renewable energy self-consumption rate is low but the supply forecast accuracy is high, the deviation is attributed to the scheduling generation module responsible for generating the initial task scheduling plan, indicating that the forecast is accurate but the task scheduling has failed to effectively track the new energy output, requiring adjustment of the attention weights in the hybrid graph attention network or the alignment weights in the utility function; if the task delay index is high and the control invasiveness score is high, the deviation is attributed to the collaborative control module responsible for dynamically adjusting power allocation, indicating that the real-time control is too aggressive or conservative, requiring adjustment of the cost function weights or deviation threshold grading standards in the model prediction controller. This attribution mechanism strictly distinguishes the responsibility boundaries between the forecasting side and the scheduling side, and between the planning side and the real-time side, enabling optimization to accurately pinpoint the root cause of the problem and avoid blind adjustments caused by incorrect cross-module attribution.
[0069] Key behavioral logic parameters in specific strategy modules are parameterized as adjustable hyperparameters, serving as the update action space for the meta-controller. Hyperparameters are parameters in machine learning or control algorithms that need to be pre-set and do not change with data during training or operation, unlike weight parameters that the model automatically learns through gradient descent during training. In this embodiment, the hyperparameters include at least the temperature coefficient in the scheduling model used to generate the initial task scheduling plan, and the cost function weights in the model predictive controller used for the collaborative control strategy. The temperature coefficient is a scalar parameter in the hybrid graph attention network that controls the sharpness of the attention distribution. The higher the temperature coefficient, the more uniform the attention score becomes after softmax normalization, and the more conservative the trade-offs between features are when making task scheduling decisions. The lower the temperature coefficient, the sharper the attention distribution, and the more focused the decision is on a certain type of feature. For example, reducing the temperature coefficient will make the scheduling more strongly pursue the peak periods of new energy indicated by the power context embedding vector. The cost function weights are the weighted coefficients of each cost item in the model predicts the controller's optimization objective. They determine the trade-off between execution costs, electricity purchase costs, and constraint violation penalties. For example, increasing the weight of electricity purchase costs will encourage the controller to more actively reduce dependence on the external power grid through task adjustments.
[0070] The meta-controller takes the aforementioned structured performance indicators as state inputs. These state inputs are multi-dimensional vectors that fully describe the current system performance. Under the premise of satisfying preset stability conditions, it selects and executes update actions at a preset update frequency to adjust hyperparameters. Preset stability conditions are constraints that ensure the system does not oscillate or become unstable due to parameter adjustments. For example, they may require that the amplitude of two consecutive hyperparameter adjustments is less than a threshold, or that the adjusted performance indicators monotonically improve over several subsequent cycles. The preset update frequency is the time interval for hyperparameter adjustments, typically set to be much longer than the control cycle. Update actions are the specific adjustment instructions for hyperparameters output by the meta-controller.
[0071] Based on the cumulative reward value calculated from the performance indicators over multiple consecutive control cycles after adjustment, a reinforcement learning algorithm is used to iteratively optimize the decision-making strategy of the meta-controller. The cumulative reward value is a core concept in reinforcement learning, referring to the sum of delayed rewards obtained by the agent after performing a series of actions. In this embodiment, the degree of improvement of the performance indicator relative to a preset target is mapped to the reward value; the greater the improvement, the higher the reward. The meta-controller's decision-making strategy is a mapping function from the performance indicator state to the update action. By learning this mapping function, the meta-controller can automatically select the optimal hyperparameter adjustment scheme for different performance deviation patterns.
[0072] A reinforcement learning algorithm is used to iteratively optimize the decision-making policy of the meta-controller. Specifically, this is achieved by constructing an architecture containing an actor (policy network) and an evaluator (value network). The actor is the agent component in reinforcement learning responsible for selecting actions based on the current state. The policy network is the neural network that implements the actor's function; its input is a state vector composed of performance metrics, and its output is the action update based on hyperparameters. The probability distribution of the action is typically represented by a Gaussian or categorical distribution. The evaluator is responsible for evaluating the long-term value of performing a specific update action in a given state. The value network is the neural network that implements the evaluator's function; its input is the state and the action, and its output is an estimate of the long-term value of that state-action pair, i.e., the expected cumulative reward.
[0073] When the policy network generates update actions, maximizing policy entropy encourages diverse exploration of the update action space. Policy entropy is the application of the concept of entropy in information theory to policy distribution, measuring the degree of randomness in policy output. Higher entropy indicates that the policy is more inclined towards random exploration rather than greedy exploitation. Maximizing policy entropy is one of the core ideas of the Soft Actor / Critic algorithm. By adding an entropy regularization term to the optimization objective, it encourages the policy to maintain exploratory behavior while obtaining high rewards, avoiding premature convergence to local optima.
[0074] Before applying the updated action to the policy module, the action is scaled and limited by a safety constraint layer. The safety constraint layer is a post-processing module that performs constraint transformations on the original action output by the policy network, ensuring that all hyperparameter adjustments remain within a preset safety range. Scaling refers to proportionally reducing the action amplitude, while limiting refers to cropping the action value to between the allowed minimum and maximum values, preventing hyperparameter jumps into dangerous regions due to the randomness of the neural network.
[0075] An experience replay buffer is established to store experience tuples containing historical states, executed update actions, obtained rewards, and subsequent states. The experience replay buffer is a memory structure used in reinforcement learning to store and reuse historical interaction data. An experience tuple is a record of a single interaction, in the form of current state, executed action, obtained reward, and next state. In each control cycle, historical experiences are randomly sampled from the experience replay buffer to break the temporal correlation between data and improve training stability.
[0076] The network parameters of the actor and evaluator are updated based on the soft actor-critic algorithm, specifically including the following steps: A batch of experience tuples are randomly sampled from the experience replay buffer. For the next state in each experience tuple, the distribution of the next action is output through the target policy network, and multiple candidate actions are sampled. The candidate actions are input into the target evaluation network to obtain the corresponding Q-value estimates. The minimum of these Q-value estimates is taken and an entropy regularization term is added to obtain the target Q-value. The target Q-value is equal to the immediate reward plus a discount factor multiplied by the expected Q-value of the next state and the entropy reward. The discount factor is a positive number less than 1, and the entropy reward is obtained by multiplying the policy entropy by a temperature coefficient. The evaluator network parameters are updated with the goal of minimizing the mean square error between the current evaluation network output Q-value and the target Q-value. The stochastic gradient descent algorithm is used to update the evaluator network parameters. The gradient of the loss function with respect to the weights of each layer of the evaluator network is calculated through backpropagation along the gradient descent direction. Adjust the weights; update the policy network parameters with the optimization objective of maximizing the sum of the expected cumulative reward and the policy entropy. Input the current state into the policy network to output the action distribution and sample actions. Input the state and sampled actions into the current evaluation network to obtain the Q value, and calculate the policy entropy. Add the Q value and the entropy reward to obtain the policy gradient objective. Calculate the gradient of this objective with respect to the policy network parameters through backpropagation, and adjust the weights along the gradient ascent direction. Update the target network parameters by slowly adjusting the parameters of the target policy network and the target evaluation network using a soft update method. The target network parameters are equal to the current network parameters multiplied by the update coefficient plus the original target network parameters multiplied by 1 minus the update coefficient. The update coefficient is a positive number much less than 1. Adjust the temperature coefficient dynamically based on the deviation between the current policy entropy and the target entropy, so that the policy entropy automatically converges to the preset target value. Repeat the above steps until the evaluator network loss converges or the preset number of iterations is reached.
[0077] The Soft Actor-Critic algorithm is a model-free deep reinforcement learning algorithm that combines the actor-critic architecture with the maximum entropy reinforcement learning concept. It alternately updates the policy network to maximize the sum of expected reward and entropy, and updates the value network to minimize Bellman error, gradually converging to the optimal policy. Network parameters are updated using stochastic gradient descent or its variant optimizer. Gradients are calculated through backpropagation, and network weights are iteratively adjusted. This allows the meta-controller to continuously learn the mapping relationship between specific performance deviation patterns and optimal update actions over long-term operation, ultimately achieving adaptive evolution of the entire data center power collaborative control method.
[0078] For example, Figure 3 To enhance the adaptive performance improvement curve of the system driven by the learning meta-controller, the horizontal axis represents runtime (control cycle, unit: days), and the vertical axis represents the performance index. This performance index is a weighted composite of renewable energy self-consumption rate (green energy efficiency dimension), priority-weighted task delay index (reciprocal or negatively normalized) (service quality impact dimension), and prediction error (reciprocal) (model accuracy dimension). Figure 3 In the exploration phase (the first 40 control cycles), the performance index curve shows relatively obvious fluctuations and the upward trend is relatively gentle; the stable convergence phase (after 40 cycles) refers to the gradual optimization of the decision strategy as the experience tuples stored in the experience replay buffer become richer. Figure 3 This demonstrates that the cooperative control method proposed in this application is not merely a static scheduling and feedback control scheme, but more importantly, it endows the system with long-term adaptive evolution capabilities through a reinforcement learning meta-controller.
[0079] The above describes a data center power collaborative control method for new energy access in an embodiment of this application. The following describes a data center power collaborative control system for new energy access in an embodiment of this application. Please refer to [link / reference]. Figure 4 One embodiment of a data center power collaborative control system for new energy access in this application includes: The planning generation unit is used to acquire power demand and time flexibility data of each computing task in the data center, output data and historical fluctuation characteristics data of new energy sources, as well as the power supply correlation mapping relationship between each new energy power generation unit and each server cluster in the data center, to construct a spatiotemporal fluctuation correlation model of new energy output, and to generate an initial task scheduling plan based on the spatiotemporal fluctuation correlation model.
[0080] An optimized execution unit is used to predict future supply trends of new energy sources and dynamically adjust the calculation tasks in the initial task scheduling plan that meet preset conditions based on the supply trends. Based on the task execution period, an optimized execution plan is formed.
[0081] The scheduling and allocation unit is used to monitor the output data and the total power demand of the data center in real time during the execution of the execution plan. When there is a deviation between the two, the power allocation is dynamically adjusted according to the preset collaborative control strategy.
[0082] The collaborative control unit, including a specific strategy module, is used to calculate the performance index of collaborative control based on the final execution status of the task and the actual utilization of new energy after one or more control cycles. Based on the comparison results of the performance index with the corresponding preset target, iteratively updates the generation rules of the initial task scheduling plan and the collaborative control strategy to achieve adaptive optimization of the control method.
[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0084] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0085] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A data center power collaborative control method for new energy access, characterized in that, The method includes: The power requirements and time flexibility data of each computing task in the data center, the output data and historical fluctuation characteristics data of new energy sources, and the power supply correlation mapping relationship between each new energy power generation unit and each server cluster in the data center are obtained respectively. A spatiotemporal fluctuation correlation model of new energy output is constructed, and an initial task scheduling plan is generated based on the spatiotemporal fluctuation correlation model. Predict future supply trends of new energy sources, and dynamically adjust the computational tasks in the initial task scheduling plan that meet preset conditions in terms of time flexibility based on the supply trends, and form an optimized execution plan based on the task execution period; During the execution of the execution plan, the output data and the total power demand of the data center are monitored in real time. When a deviation occurs between the two, the power distribution is dynamically adjusted according to the preset collaborative control strategy. After one or more control cycles have ended, based on the final execution status of the task and the actual utilization of new energy, the performance index of the coordinated control is calculated. Based on the comparison results of the performance index with the corresponding preset target, the generation rules of the initial task scheduling plan and the coordinated control strategy are iteratively updated to achieve adaptive optimization of the control method.
2. The data center power collaborative control method for new energy access according to claim 1, characterized in that, Constructing a spatiotemporal fluctuation correlation model for new energy output, including: Each new energy power generation unit connected to the data center is defined as a node in the graph. Based on the physical proximity relationship between each new energy power generation unit and the correlation coefficient of historical output data, the edges of the graph are established to construct a graph structure that represents the spatial association topology of new energy. For each node in the graph structure, historical output time series are extracted to obtain time-dimensional fluctuation features, and the corresponding physical information is fused to form a multi-dimensional node feature vector; The multi-dimensional node feature vectors are input into the graph neural network model. The spatial features of adjacent nodes are aggregated through graph convolution operations, and the temporal dependencies of the nodes themselves are extracted through temporal modeling. The propagation law of new energy fluctuations in the spatiotemporal dimension is learned, the spatiotemporal fluctuation correlation model is trained, and the dynamic fluctuation feature map is output. Based on the dynamic fluctuation feature map, the probability of fluctuation transmission and the intensity of its impact between different physical regions within the future time window are predicted.
3. The data center power collaborative control method for new energy access according to claim 2, characterized in that, Generate an initial task scheduling plan that includes task priorities and predetermined execution times, including: All computational tasks to be executed and their corresponding prerequisites are constructed into a directed acyclic graph. A graph neural network is used to process the directed acyclic graph, and an initial embedding vector is generated for each task node based on the power requirements and the time flexibility data. The continuous predicted power supply curves for a future period of time, indicated by the historical fluctuation characteristics data, are processed by a time series encoder to generate a power context embedding vector. The power supply risk level of each server cluster indicated by the dynamic fluctuation feature map at different time slices is encoded into a spatial constraint vector. Based on the initial embedding vector, the power context embedding vector, and the spatial constraint vector, a hybrid graph attention network is applied to generate a scheduling action sequence, which is then used as the initial task scheduling plan. Based on the dynamic fluctuation feature map and the power supply correlation mapping, when generating the initial task scheduling plan, high-priority tasks are preferentially scheduled to server clusters that are predicted by the dynamic fluctuation feature map and whose power supply stability is higher than a preset stability threshold within the corresponding time window.
4. The data center power collaborative control method for new energy access according to claim 3, characterized in that, A hybrid graph attention network is applied to generate a sequence of scheduled actions, including: The initial embedding vector, the power context embedding vector, and the spatial constraint vector are input together into a decoder based on the Transformer architecture; At each decision time step, the decoder simultaneously considers the execution conditions of the task node, the sufficiency of power resources, and the availability status of the server cluster through a cross-modal attention mechanism. Based on the attention score, the current optimal scheduling action is output. The scheduling action includes starting a task, pausing a task, or resuming a task on a specific server cluster. For high-priority tasks, priority is given to executing them on server clusters that are predicted to have power supply stability higher than a preset stability threshold. The decision-making process is executed repeatedly until all tasks are scheduled, generating a sequence of scheduling actions.
5. The data center power collaborative control method for new energy access according to claim 1, characterized in that, Develop an optimized execution plan, including: Based on the historical fluctuation characteristics data, predict the future probabilistic power supply curve, and combine the time flexibility data to determine the available execution periods for tasks whose time flexibility meets preset conditions; A comprehensive utility function is constructed, which weights and integrates multiple evaluation dimensions. Starting from the initial task scheduling plan, the execution time of flexible tasks is repeatedly adjusted. The search direction is guided by the changes in the comprehensive utility function until the function converges or the termination condition is met. The evaluation dimensions include: the degree of alignment between task execution and the power supply curve; the deviation cost of task execution time from the initial scheduling; and the load pressure on the system caused by the total power demand of concurrent tasks.
6. The data center power collaborative control method for new energy access according to claim 1, characterized in that, Dynamically adjust power distribution according to a preset collaborative control strategy, including: The deviation between the output data and the total power demand of the data center is quantified in real time. Based on the preset deviation threshold, the current system state is dynamically divided into multiple control levels. For each control level, a set of actions containing multiple alternative control actions is predefined, and a quantified execution cost is associated with each action. When the deviation triggers a preset control level, the model predictive controller is activated to solve an optimization problem aimed at minimizing cumulative execution costs and external power grid purchases within a finite future time domain, and to determine the optimal action sequence. Only the first action in the optimal action sequence is executed, and the model predictive controller is repeatedly started to make decisions based on the updated system state in the next control cycle.
7. The data center power collaborative control method for new energy access according to claim 1, characterized in that, Calculate the performance metrics of coordinated control, including: Aggregate the planned execution data of the task, the actual execution log data, the actual output data of new energy sources, and the actual total power demand data of the data center; Based on the aggregated data, multi-dimensional performance indicators are calculated, including: renewable energy self-consumption rate in the green energy efficiency dimension; priority-weighted task delay index and control invasiveness score in the service quality impact dimension; and supply forecast accuracy index and demand forecast accuracy index in the model accuracy dimension. The multi-dimensional performance indicators are synthesized into structured performance indicators for collaborative control.
8. The data center power collaborative control method for new energy access according to claim 1, characterized in that, Adaptive optimization of control methods is achieved through a meta-controller based on reinforcement learning, including: According to the preset diagnostic rules, the performance deviation is attributed to a specific strategy module, which includes a scheduling generation module responsible for generating the initial task scheduling plan and a collaborative control module responsible for dynamically adjusting power distribution. The key behavioral logic in the specific strategy module is parameterized into adjustable hyperparameters, which serve as the update action space of the meta-controller; the hyperparameters include the attention weights in the scheduling model and the cost function weights in the model prediction controller. The meta-controller takes the performance index as a state input, and under the premise of satisfying the preset stability conditions, selects and executes update actions at a preset update frequency to adjust the hyperparameters; based on the cumulative reward value calculated from the performance index of multiple consecutive control cycles after adjustment, it uses a reinforcement learning algorithm to iteratively optimize its own decision-making strategy.
9. The data center power collaborative control method for new energy access according to claim 8, characterized in that, Iteratively optimize its decision-making strategy using reinforcement learning algorithms, including: The meta-controller is constructed as an architecture that includes an actor with a policy network and an evaluator with a value network. The policy network is responsible for mapping the state vector composed of the performance metrics to update actions on the hyperparameters, and the evaluator is responsible for evaluating the long-term value of performing a specific update action in a specific state. When the policy network generates update actions, it encourages diverse exploration of the update action space by maximizing policy entropy; before applying the update actions to the policy module, the update actions are scaled and limited by a security constraint layer. An experience replay buffer is established to store experience tuples containing historical states, executed update actions, obtained rewards, and subsequent states. In each control cycle, historical experiences are randomly sampled from the experience replay buffer, and the network parameters of the actor and the evaluator are updated based on the soft actor-critic algorithm.
10. A data center power collaborative control system for new energy access, used to implement the data center power collaborative control method for new energy access as described in any one of claims 1-9, characterized in that, The system includes: The planning generation unit is used to acquire the power requirements and time flexibility data of each computing task in the data center, the output data and historical fluctuation characteristics data of new energy sources, and the power supply correlation mapping relationship between each new energy power generation unit and each server cluster in the data center, construct a spatiotemporal fluctuation correlation model of new energy output, and generate an initial task scheduling plan based on the spatiotemporal fluctuation correlation model. An optimized execution unit is used to predict the future supply trend of new energy and dynamically adjust the calculation tasks in the initial task scheduling plan that meet the preset conditions in terms of time flexibility based on the supply trend. Based on the task execution period, an optimized execution plan is formed. The scheduling and allocation unit is used to monitor the output data and the total power demand of the data center in real time during the execution of the execution plan. When there is a deviation between the two, the power allocation is dynamically adjusted according to the preset collaborative control strategy. The collaborative control unit includes a specific strategy module, which is used to calculate the performance index of collaborative control based on the final execution status of the task and the actual utilization of new energy after one or more control cycles, and iteratively update the generation rules of the initial task scheduling plan and the collaborative control strategy according to the comparison results of the performance index with the corresponding preset target, so as to realize the adaptive optimization of the control method.
