Charging pile power distribution control method, system and device
By combining deep learning and multi-objective optimization technology, combined with the environment-aware multi-armed bandit algorithm, intelligent allocation and dynamic optimization of charging pile power are achieved, which solves the resource waste and power grid instability of the existing system under complex demands and dynamic environments. problem, improving charging efficiency and user experience.
Patent Information
- Application Number
- CN202411104714.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-13
AI Technical Summary
When faced with complex charging demands and dynamic grid conditions, the existing charging pile power distribution system is difficult to improve charging efficiency, wastes resources seriously, may lead to grid instability, and lacks comprehensive consideration of multi-objective optimization and dynamic changes. adaptability.
The multi-armed bandit algorithm combines deep learning technology, multi-objective optimization and environment awareness, and realizes intelligent allocation and dynamic optimization of charging pile power through multi-layer perceptrons, dynamic graph neural networks, self-attention mechanisms and multi-branch neural networks, integrating Neural architecture search and Monte Carlo tree search, optimize the power allocation scheme, and learn interactively with the environment through the multi-armed bandit algorithm.
It achieves adaptive processing of complex charging needs and dynamic environments, ensures grid stability, user fairness and maximizes the use of renewable energy, improves charging efficiency and user experience, and enhances system flexibility and robustness.
Smart Images

Figure CN118636728B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power system management and intelligent control technology, and in particular to a charging pile power distribution control method, system and equipment. Background Art
[0002] With the popularity of electric vehicles, the construction of charging pile networks has become a key infrastructure to ensure the normal operation of electric vehicles. The charging pile network not only needs to meet diverse charging needs, but also strike a balance between grid stability and energy efficiency. In the prior art, the power allocation and scheduling of charging piles mostly use simple rules and algorithms, such as a first-come, first-served charging strategy or a fixed power allocation method. However, these methods are powerless in the face of complex charging needs and dynamic grid conditions, and are difficult to cope with the ever-changing loads and user needs, resulting in low charging efficiency, serious waste of resources, and may even cause grid instability.
[0003] Traditional charging pile power distribution systems usually focus on a single goal, such as maximizing charging speed or minimizing charging time, while ignoring other important factors, such as user fairness, grid stability, and the use of renewable energy. This single-objective optimization strategy not only fails to meet the diverse needs of different users, but may also lead to uneven resource allocation and affect user experience. In addition, traditional systems are usually based on static rules and preset parameters, lacking the ability to adapt to real-time data and environmental changes. When the grid load changes or the charging demand surges, the system cannot adjust the strategy quickly, which may cause the grid to overload or the quality of charging service to decline.
[0004] In the existing technology, although there are some attempts to combine machine learning and optimization algorithms to improve the power allocation strategy of charging piles, such as charging scheduling methods based on reinforcement learning and optimization models based on linear programming, these methods still have certain limitations. First, many methods are only applicable to specific scenarios and environments, lacking versatility and scalability. Second, these methods often rely on historical data and fixed model structures and cannot adapt to dynamically changing environments. In addition, most existing studies focus on the optimization of the algorithm itself, lack comprehensive consideration of multi-objective optimization, and fail to make full use of multiple information sources for comprehensive decision-making.
[0005] Therefore, how to provide a charging pile power distribution control method, system and device is a problem that technical personnel in this field urgently need to solve. Summary of the invention
[0006] One object of the present invention is to propose a charging pile power distribution control method, system and device. The present invention realizes intelligent distribution and dynamic optimization of charging pile power by combining deep learning technology, multi-objective optimization and environment-aware multi-armed bandit algorithm. The method can adaptively handle complex charging requirements and dynamic environments, ensure grid stability, user fairness and maximize the use of renewable energy. By providing a user-friendly visual interface, users can intuitively understand the charging process and system decisions, improving user satisfaction and system management efficiency.
[0007] The charging pile power distribution control method according to an embodiment of the present invention comprises the following steps:
[0008] S1, collect data on charging piles and electric vehicles and build a data set;
[0009] S2, preprocessing the data set, including data cleaning, normalization and outlier processing;
[0010] S3, use a multi-layer perceptron to process the preprocessed data set to extract numerical features and embedding representation;
[0011] S4. Apply dynamic graph neural network combined with meta-learning to extract numerical features and embedding representations to generate spatiotemporal features;
[0012] S5, input numerical features, embedded representations, and spatiotemporal features into the self-attention mechanism, fuse multimodal features, model global relationships, and generate comprehensive feature representations;
[0013] S6, inputting the comprehensive feature representation into the designed multi-branch neural network structure, each branch is used to optimize a different objective;
[0014] S7, integrating the output results of the multi-branch neural network, and generating a power allocation solution using neural architecture search and Monte Carlo tree search;
[0015] S8, optimize the power allocation scheme through the environment-aware multi-armed bandit algorithm, and interact with the environment to learn the optimal allocation scheme;
[0016] S9. Provide a user-friendly interface for visual display of data and decision-making processes.
[0017] Furthermore, the S3 specifically includes:
[0018] S31, inputting the preprocessed data set into a multilayer perceptron, wherein the multilayer perceptron includes an input layer, a plurality of hidden layers and an output layer;
[0019] S32. For numerical features, the input layer receives the original numerical feature vector , applying logarithmic transformation and normalization:
[0020] ;
[0021] in, represents the smoothing parameter, represents the numerical feature vector after logarithmic transformation;
[0022] ;
[0023] in, represents the normalized numerical feature, Represents a numerical feature vector The minimum value of Represents a numerical feature vector The maximum value of
[0024] Further input to the hidden layer, the output of the hidden layer is:
[0025] ;
[0026] in, Indicates The activation value of the layer, Indicates Layer and The weight matrix between layers, Indicates The output of the layer, Indicates The bias of the layer, represents the activation function, represents the batch normalization function, represents the residual connection Layer activation values;
[0027] S33. For category features , transformed into a high-dimensional sparse vector through one-hot encoding , by embedding the matrix Mapping to a low-dimensional embedding space:
[0028] ;
[0029] in, Embedding vector representing category features;
[0030] S34. Use an adaptive regularization strategy to normalize each embedding vector and add Gaussian noise:
[0031] ;
[0032] in, represents the normalized embedding vector, represents the L2 norm of the embedding vector, It means the mean is 0 and the variance is Gaussian noise;
[0033] S35, normalized embedding vector Further input into the hidden layer, using variational autoencoder for feature learning:
[0034] ;
[0035] in, represents a hidden variable, represents the mean, represents the standard deviation, represents a standard normally distributed random variable;
[0036] S36. The final embedding feature is expressed as:
[0037] ;
[0038] in, Indicates The embedded feature representation of the layer, Indicates Layer and The weight matrix between layers, Indicates Bias of the layer;
[0039] S37. Numerical feature representation after multi-layer perceptron processing and embedding feature representation The final output is expressed as:
[0040] ;
[0041] ;
[0042] in, represents the final numerical feature, represents the final embedding representation, Represents the last layer of a multilayer perceptron.
[0043] Furthermore, the S4 specifically includes:
[0044] S41, constructing a dynamic graph neural network to represent the dynamic relationship between the charging pile and the electric vehicle, wherein the charging pile and the electric vehicle are respectively used as nodes in the graph, and the charging request and the charging status are used as edges in the graph;
[0045] S42, assigning an initial feature vector to each node, the initial feature vector of the node is composed of numerical features and embedding representation Combination, specifically expressed as:
[0046] ;
[0047] in, Representation Node The initial eigenvector of Representation Node The numerical characteristics of Representation Node Embedding representation of ;
[0048] S43, use adaptive temporal convolutional network to perform temporal modeling on dynamic graphs and extract different time steps The time series features under each time step , calculate the current eigenvector and the previous The weighted sum of the eigenvectors at time steps:
[0049] ;
[0050] in, Indicates Layer at time step The timing characteristics of Indicates the time step The weight matrix of Indicates Layer at time step The characteristic vector of Indicates the time step The bias term of
[0051] Use an adaptive time step selection mechanism to adjust according to the changes in the current time series data :
[0052] ;
[0053] in, and represents the adaptive parameter, represents the number of time steps selected, represents the characteristic change rate of the current time step, represents the activation function;
[0054] Adaptive time stepping It can automatically adjust according to the dynamics of the input data to capture more subtle time dependencies.
[0055] S44. Apply the cross-layer graph attention mechanism to update the features and neighborhood aggregation of the nodes in the graph:
[0056] ;
[0057] in, Representation Node In the The feature representation of the layer, Representation Node The neighborhood set of Indicates The weight matrix of the attention head, Representation Node , and The attention coefficient of the attention head:
[0058] ;
[0059] in, Indicates The adaptive weight vector of the attention heads, Represents a vector concatenation operation;
[0060] This cross-layer attention mechanism can integrate feature information at different levels and improve the richness and accuracy of feature representation.
[0061] S45. Perform multiple iterations on each layer of the graph until the model converges, and finally obtain the spatiotemporal feature representation of each node:
[0062] ;
[0063] in, represents the final set of spatiotemporal features, Represents the last layer, A collection of nodes representing final times.
[0064] Furthermore, the S5 specifically includes:
[0065] S51, the numerical features , Embedded Representation and spatiotemporal characteristics Combined into input matrix , and input into the self-attention mechanism module for feature fusion;
[0066] S52. In the self-attention mechanism, the input matrix Perform projection to generate query matrix , key matrix Sum Matrix :
[0067] ;
[0068] in, represents the weight matrix of the query matrix,
[0069] S53. Introduce a weighting mechanism based on Gaussian kernel, calculate the similarity between features through Gaussian kernel function, and use it to correct the dot product attention:
[0070] ;
[0071] in, Indicates query and The similarity between the keys, Represents the scale parameter of the Gaussian kernel, which is used to control the decay rate of the similarity;
[0072] S54, similarity matrix With key matrix The transpose of the dot product is then combined with the value matrix Multiply them together to get the weighted feature representation:
[0073] ;
[0074] in, represents the normalized similarity;
[0075] S55, using an improved multi-head attention mechanism, the output of each head includes a residual connection after linear transformation:
[0076] ;
[0077] ;
[0078] in, , and Indicates The weight matrix of each head, represents the output weight matrix, Represents the weight matrix of the residual connection;
[0079] S56. Combine the output and input matrices of multi-head attention Perform additive residual connection and layer normalization based on position encoding:
[0080] ;
[0081] in, represents the position encoding matrix, represents a comprehensive feature representation;
[0082] S57, the comprehensive feature representation Input to a nonlinearly activated feedforward neural network, which consists of two fully connected layers and an adaptive threshold activation function:
[0083] ;
[0084] in, and represents the weight matrix of the fully connected layer, and represents the bias, Adaptively adjust activation threshold to optimize feature extraction;
[0085] S58, output the final comprehensive feature representation .
[0086] Furthermore, the S6 specifically includes:
[0087] S61. Final comprehensive feature representation Input into a multi-branch neural network;
[0088] S62, charging speed optimization branch, the goal of this branch is to maximize the charging efficiency and minimize the charging time. The optimization objective function is:
[0089]
[0090] in, Indicates charging speed optimized output, represents the activation function, represents the output layer weight matrix, Indicates The weight matrix of the hidden layer, Indicates The activation value of the layer, No. The bias of the hidden layer, represents the bias of the output layer, represents the regularization coefficient, Represents the Frobenius norm, which is used to control the complexity of the model;
[0091] S63, user fairness optimization branch, which is designed to ensure that all users have fair access to charging resources. The optimization objective function includes weighted processing of user historical priorities and charging records:
[0092] ;
[0093] in, represents the user fairness optimization output, represents the output layer weight matrix, Indicates The activation value of the layer, represents the output layer bias, represents the hyperbolic tangent activation function, represents random drop method, Represents the weighted coefficient of user priority and historical charging record, Characteristic values representing user priority and historical charging records, Indicates the number of users;
[0094] S64, power grid stability optimization branch, the branch goal is to maintain power grid stability, optimize the objective function:
[0095] ;
[0096] in, represents the grid stability optimization output, represents the output layer weight matrix, Indicates LSTM layer activation value at time step, represents the output layer bias, represents the time step, represents the normalization function, which is used to convert the output into a probability distribution;
[0097] S65, Renewable energy priority utilization branch, which aims to maximize the use of renewable energy, calculate the current availability of renewable energy and future supply forecasts, and optimize the objective function as follows:
[0098] ;
[0099] in, Indicates that renewable energy is used first and output is used second. represents the output layer weight matrix, represents the predicted renewable energy supply characteristics, represents the output layer bias, represents the penalty coefficient, Used to punish negative values, Represents the amount of renewable energy resources.
[0100] Furthermore, the S7 specifically includes:
[0101] S71. In the multi-branch neural network, each branch generates a preliminary power allocation plan according to different optimization objectives, wherein the optimization objectives include but are not limited to maximizing charging speed, grid load balancing, user fairness, and renewable energy utilization;
[0102] S72, integrating and normalizing the output results of each branch;
[0103] S73. Use neural architecture search to automatically optimize the structure and hyperparameters of multi-branch neural networks, using a reinforcement learning agent model in the search process Controlling the candidate network structure The generation of the proxy model is updated as follows:
[0104] ;
[0105] in, represents the parameters of the proxy model, represents the learning rate, Represents the reward value of the candidate network structure, express Generate probability distribution of candidate network structures;
[0106] S74. Integrate the output of the candidate network structure and use the Monte Carlo tree search algorithm to select the optimal power allocation solution in the search tree. The selection strategy is based on the upper confidence bound:
[0107] ;
[0108] in, Indicates the current state. Indicates action, represents the state-action value function, Indicates status The number of visits, Indicates action In Status The number of visits, represents the exploration coefficient;
[0109] S75: Output the final charging power allocation strategy .
[0110] Furthermore, the S8 specifically includes:
[0111] S81. Introducing environmental context variables into the environment-aware multi-armed bandit algorithm As input, it is specifically defined as:
[0112] ;
[0113] in, Indicates the environment state characteristics, Indicates the total number of state features;
[0114] S82. Set the environment context variable Input into the multi-armed bandit model to generate the expected reward value for different power allocation schemes. The calculation formula is:
[0115] ;
[0116] in, Indicates The expected reward for a power allocation scheme, Indicates the corresponding power allocation action, Represents the value function:
[0117] ;
[0118] in, Represents the time step Instant rewards, represents the discount factor;
[0119] S83. Update the reward function based on actual feedback through interaction with the environment and adjust the value function in the multi-armed bandit model :
[0120] ;
[0121] in, represents the learning rate, Indicates the actual instant reward obtained. represents the discount factor, represents the optimal action for the next step, The environment context variables representing the next step;
[0122] S84, real-time monitoring of environmental context variables The power allocation strategy is adjusted dynamically based on the changes in the environment, and different power allocation schemes are triggered according to different environmental conditions.
[0123] A charging pile power distribution control system according to an embodiment of the present invention includes:
[0124] A data collection module for collecting data from multiple charging piles and electric vehicles;
[0125] A data preprocessing module, connected to the data collection module, for preprocessing the data set;
[0126] A feature extraction module, connected to the data preprocessing module, includes a multi-layer perceptron, wherein the multi-layer perceptron includes an input layer, a plurality of hidden layers and an output layer, and is used to process the preprocessed data set to extract numerical features and embedding representations;
[0127] The dynamic graph neural network module is connected to the feature extraction module and combines meta-learning technology to extract features from numerical features and embedded representations to generate spatiotemporal features;
[0128] The self-attention mechanism module is connected to the dynamic graph neural network module and is used to input numerical features, embedded representations, and spatiotemporal features. The self-attention mechanism fuses multimodal features, models global relationships, and generates comprehensive feature representations;
[0129] A multi-branch neural network module, connected to the self-attention mechanism module, wherein each branch in the multi-branch neural network structure is used to optimize different objectives, including charging speed optimization, user fairness, grid stability, and renewable energy utilization, and generate a preliminary power allocation plan;
[0130] A strategy generation and optimization module, connected to the multi-branch neural network module, including neural architecture search and Monte Carlo tree search submodules. The neural architecture search automatically optimizes the structure and hyperparameters of the multi-branch neural network. The Monte Carlo tree search is used to select the optimal power allocation solution in the search tree.
[0131] An environment perception and interaction module, connected to the strategy generation and optimization module, includes an environment perception multi-armed bandit algorithm, which dynamically adjusts the power allocation strategy by real-time monitoring of environmental context variables, and interacts with the environment to learn the optimal allocation plan. The multi-armed bandit algorithm generates expected reward values for different power allocation plans based on environmental context variables, updates the reward function, and adjusts the value function;
[0132] The visualization module is connected to the environment perception and interaction module and is used to provide a user-friendly interface for visual display of data and decision-making processes.
[0133] A charging pile power distribution control device according to an embodiment of the present invention includes:
[0134] Data collection module, used to collect real-time data of charging piles and electric vehicles and build data sets;
[0135] A data preprocessing module, communicating with the data collection module, for preprocessing the data set;
[0136] A feature extraction module, connected to the data preprocessing module, comprising a multi-layer perceptron, for processing the preprocessed data set, extracting numerical features and embedding representations;
[0137] A feature fusion module, connected to the feature extraction module, combines a meta-learning dynamic graph neural network and a self-attention mechanism to extract and fuse numerical features, embedded representations, and spatiotemporal features to generate a comprehensive feature representation;
[0138] An optimization module, connected to the feature fusion module, including a multi-branch neural network structure, each branch is used to optimize a different goal, and generates a preliminary power allocation solution through neural architecture search and Monte Carlo tree search;
[0139] a policy optimization module, in communication with the optimization module, comprising an environment-aware multi-armed bandit algorithm for optimizing the power allocation scheme according to environmental context variables and interacting with the environment to learn the optimal allocation strategy;
[0140] A visualization display module, connected to the strategy optimization module, for providing a user-friendly interface for visualization of data and decision-making process;
[0141] The controller,communicates with the modules and coordinates the execution of data flow,computation and power allocation strategies.
[0142] The beneficial effects of the present invention are:
[0143] The present invention realizes intelligent control of power distribution in the charging pile network by integrating multiple advanced deep learning and optimization technologies, significantly improving the efficiency and flexibility of the system. First, the present invention introduces a multi-layer perceptron (MLP) for the extraction of numerical features and embedded representations, and combines the dynamic graph neural network (DGNN) of meta-learning to effectively handle the complex dynamic relationship between charging piles and electric vehicles. This fusion of multimodal features greatly improves the model's ability to process different input data, allowing the system to adaptively adjust in different scenarios, thereby achieving accurate feature extraction and efficient power distribution.
[0144] In terms of formulating power allocation strategies, the present invention achieves multi-objective optimization through a multi-branch neural network structure. Each branch is specifically optimized for a specific optimization goal (such as charging speed, user fairness, grid stability, and renewable energy utilization), and the network structure and parameter settings are further optimized using neural architecture search (NAS) and Monte Carlo tree search (MCTS) techniques. The design of this structure not only improves the generalization ability of the model, but also ensures the optimal solution under multiple constraints. Through comprehensive consideration of multiple objectives, the present invention can weigh various indicators in different scenarios, maximize overall system performance, and ensure user experience and grid stability.
[0145] In addition, the context-aware multi-armed bandit algorithm (CMAB) of the present invention achieves rapid response and adaptation to complex dynamic environments by real-time monitoring of environmental context variables and dynamically adjusting the power allocation strategy. The algorithm can not only learn in real time according to changes in the actual environment, but also continuously optimize the strategy based on feedback, so that the system always maintains the optimal state under different load and demand changes. Compared with traditional static or semi-dynamic methods, the present invention has significant advantages in adaptability and robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0146] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0147] Figure 1 A flow chart of the charging pile power distribution control method, system and device proposed by the present invention;
[0148] Figure 2 This is a schematic diagram of the structure of the charging pile power distribution control method, system and device proposed by the present invention;
[0149] Figure 3 This is a schematic diagram of the multi-branch neural network structure of the charging pile power distribution control method, system and device proposed in the present invention. DETAILED DESCRIPTION
[0150] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0151] refer to Figure 1-3 , a charging pile power distribution control method comprises the following steps:
[0152] S1, collect data on charging piles and electric vehicles and build a data set;
[0153] S2, preprocessing the data set, including data cleaning, normalization and outlier processing;
[0154] S3, use a multi-layer perceptron to process the preprocessed data set to extract numerical features and embedding representation;
[0155] S4. Apply dynamic graph neural network combined with meta-learning to extract numerical features and embedding representations to generate spatiotemporal features;
[0156] S5, input numerical features, embedded representations, and spatiotemporal features into the self-attention mechanism, fuse multimodal features, model global relationships, and generate comprehensive feature representations;
[0157] S6, inputting the comprehensive feature representation into the designed multi-branch neural network structure, each branch is used to optimize a different objective;
[0158] S7, integrating the output results of the multi-branch neural network, and generating a power allocation solution using neural architecture search and Monte Carlo tree search;
[0159] S8, optimize the power allocation scheme through the environment-aware multi-armed bandit algorithm, and interact with the environment to learn the optimal allocation scheme;
[0160] S9. Provide a user-friendly interface for visual display of data and decision-making processes.
[0161] In this implementation, S3 specifically includes:
[0162] S31, inputting the preprocessed data set into a multilayer perceptron, wherein the multilayer perceptron includes an input layer, a plurality of hidden layers and an output layer;
[0163] S32. For numerical features, the input layer receives the original numerical feature vector , applying logarithmic transformation and normalization:
[0164] ;
[0165] in, represents the smoothing parameter, represents the numerical feature vector after logarithmic transformation;
[0166] ;
[0167] in, represents the normalized numerical feature, Represents a numerical feature vector The minimum value of Represents a numerical feature vector The maximum value of
[0168] Further input to the hidden layer, the output of the hidden layer is:
[0169] ;
[0170] in, Indicates The activation value of the layer, Indicates Layer and The weight matrix between layers, Indicates The output of the layer, Indicates The bias of the layer, represents the activation function, represents the batch normalization function, represents the residual connection Layer activation values;
[0171] S33. For category features , transformed into a high-dimensional sparse vector through one-hot encoding , by embedding the matrix Mapping to a low-dimensional embedding space:
[0172] ;
[0173] in, Embedding vector representing category features;
[0174] S34. Use an adaptive regularization strategy to normalize each embedding vector and add Gaussian noise:
[0175] ;
[0176] in, represents the normalized embedding vector, represents the L2 norm of the embedding vector, It means the mean is 0 and the variance is Gaussian noise;
[0177] S35, normalized embedding vector Further input into the hidden layer, using variational autoencoder for feature learning:
[0178] ;
[0179] in, represents a hidden variable, represents the mean, represents the standard deviation, represents a standard normally distributed random variable;
[0180] S36. The final embedding feature is expressed as:
[0181] ;
[0182] in, Indicates The embedded feature representation of the layer, Indicates Layer and The weight matrix between layers, Indicates Bias of the layer;
[0183] S37. Numerical feature representation after multi-layer perceptron processing and embedding feature representation The final output is expressed as:
[0184] ;
[0185] ;
[0186] in, represents the final numerical feature, represents the final embedding representation, Represents the last layer of a multilayer perceptron.
[0187] In this implementation, S4 specifically includes:
[0188] S41, constructing a dynamic graph neural network to represent the dynamic relationship between the charging pile and the electric vehicle, wherein the charging pile and the electric vehicle are respectively used as nodes in the graph, and the charging request and the charging status are used as edges in the graph;
[0189] S42, assigning an initial feature vector to each node, the initial feature vector of the node is composed of numerical features and embedding representation Combination, specifically expressed as:
[0190] ;
[0191] in, Representation Node The initial eigenvector of Representation Node The numerical characteristics of Representation Node Embedding representation of ;
[0192] S43, use adaptive temporal convolutional network to perform temporal modeling on dynamic graphs and extract different time steps The time series features under each time step , calculate the current eigenvector and the previous The weighted sum of the eigenvectors at time steps:
[0193] ;
[0194] in, Indicates Layer at time step The timing characteristics of Indicates the time step The weight matrix of Indicates Layer at time step The characteristic vector of Indicates the time step The bias term of
[0195] Use an adaptive time step selection mechanism to adjust according to the changes in the current time series data :
[0196] ;
[0197] in, and represents the adaptive parameter, represents the number of time steps selected, represents the characteristic change rate of the current time step, represents the activation function;
[0198] Adaptive time stepping It can automatically adjust according to the dynamics of the input data to capture more subtle time dependencies.
[0199] S44. Apply the cross-layer graph attention mechanism to update the features and neighborhood aggregation of the nodes in the graph:
[0200] ;
[0201] in, Representation Node In the The feature representation of the layer, Representation Node The neighborhood set of Indicates The weight matrix of the attention head, Representation Node , and The attention coefficient of the attention head:
[0202] ;
[0203] in, Indicates The adaptive weight vector of the attention heads, Represents a vector concatenation operation;
[0204] This cross-layer attention mechanism can integrate feature information at different levels and improve the richness and accuracy of feature representation.
[0205] S45. Perform multiple iterations on each layer of the graph until the model converges, and finally obtain the spatiotemporal feature representation of each node:
[0206] ;
[0207] in, represents the final set of spatiotemporal features, Represents the last layer, A collection of nodes representing final times.
[0208] In this implementation manner, S5 specifically includes:
[0209] S51, the numerical features , Embedded Representation and spatiotemporal characteristics Combined into input matrix , and input into the self-attention mechanism module for feature fusion;
[0210] S52. In the self-attention mechanism, the input matrix Perform projection to generate query matrix , key matrix Sum Matrix :
[0211] ;
[0212] in, represents the weight matrix of the query matrix,
[0213] S53. Introduce a weighting mechanism based on Gaussian kernel, calculate the similarity between features through Gaussian kernel function, and use it to correct the dot product attention:
[0214] ;
[0215] in, Indicates query and The similarity between the keys, Represents the scale parameter of the Gaussian kernel, which is used to control the decay rate of the similarity;
[0216] S54, similarity matrix With key matrix The transpose of the dot product is then combined with the value matrix Multiply them together to get the weighted feature representation:
[0217] ;
[0218] in, represents the normalized similarity;
[0219] S55, using an improved multi-head attention mechanism, the output of each head includes a residual connection after linear transformation:
[0220] ;
[0221] ;
[0222] in, , and Indicates The weight matrix of each head, represents the output weight matrix, Represents the weight matrix of the residual connection;
[0223] S56. Combine the output and input matrices of multi-head attention Perform additive residual connection and layer normalization based on position encoding:
[0224] ;
[0225] in, represents the position encoding matrix, represents a comprehensive feature representation;
[0226] S57, the comprehensive feature representation Input to a nonlinearly activated feedforward neural network, which consists of two fully connected layers and an adaptive threshold activation function:
[0227] ;
[0228] in, and represents the weight matrix of the fully connected layer, and represents the bias, Adaptively adjust activation threshold to optimize feature extraction;
[0229] S58, output the final comprehensive feature representation .
[0230] In this implementation manner, S6 specifically includes:
[0231] S61. Final comprehensive feature representation Input into a multi-branch neural network;
[0232] S62, charging speed optimization branch, the goal of this branch is to maximize the charging efficiency and minimize the charging time. The optimization objective function is:
[0233]
[0234] in, Indicates charging speed optimized output, represents the activation function, represents the output layer weight matrix, Indicates The weight matrix of the hidden layer, Indicates The activation value of the layer, No. The bias of the hidden layer, represents the bias of the output layer, represents the regularization coefficient, Represents the Frobenius norm, which is used to control the complexity of the model;
[0235] S63, user fairness optimization branch, which is designed to ensure that all users have fair access to charging resources. The optimization objective function includes weighted processing of user historical priorities and charging records:
[0236] ;
[0237] in, represents the user fairness optimization output, represents the output layer weight matrix, Indicates The activation value of the layer, represents the output layer bias, represents the hyperbolic tangent activation function, represents random drop method, Represents the weighted coefficient of user priority and historical charging record, Characteristic values representing user priority and historical charging records, Indicates the number of users;
[0238] S64, power grid stability optimization branch, the branch goal is to maintain power grid stability, optimize the objective function:
[0239] ;
[0240] in, represents the grid stability optimization output, represents the output layer weight matrix, Indicates LSTM layer activation value at time step, represents the output layer bias, represents the time step, represents the normalization function, which is used to convert the output into a probability distribution;
[0241] S65, Renewable energy priority utilization branch, which aims to maximize the use of renewable energy, calculate the current availability of renewable energy and future supply forecasts, and optimize the objective function as follows:
[0242] ;
[0243] in, Indicates that renewable energy is used first and output is used second. represents the output layer weight matrix, represents the predicted renewable energy supply characteristics, represents the output layer bias, represents the penalty coefficient, Used to punish negative values, Represents the amount of renewable energy resources.
[0244] In this implementation manner, the S7 specifically includes:
[0245] S71. In the multi-branch neural network, each branch generates a preliminary power allocation plan according to different optimization objectives, wherein the optimization objectives include but are not limited to maximizing charging speed, grid load balancing, user fairness, and renewable energy utilization;
[0246] S72, integrating and normalizing the output results of each branch;
[0247] S73. Use neural architecture search to automatically optimize the structure and hyperparameters of multi-branch neural networks, using a reinforcement learning agent model in the search process Controlling the candidate network structure The generation of the proxy model is updated as follows:
[0248] ;
[0249] in, represents the parameters of the proxy model, represents the learning rate, Represents the reward value of the candidate network structure, express Generate probability distribution of candidate network structures;
[0250] S74. Integrate the output of the candidate network structure and use the Monte Carlo tree search algorithm to select the optimal power allocation solution in the search tree. The selection strategy is based on the upper confidence bound:
[0251] ;
[0252] in, Indicates the current state. Indicates action, represents the state-action value function, Indicates status The number of visits, Indicates action In Status The number of visits, represents the exploration coefficient;
[0253] S75: Output the final charging power allocation strategy .
[0254] Furthermore, the S8 specifically includes:
[0255] S81. Introducing environmental context variables into the environment-aware multi-armed bandit algorithm As input, it is specifically defined as:
[0256] ;
[0257] in, Indicates the environment state characteristics, Indicates the total number of state features;
[0258] S82. Set the environment context variable Input into the multi-armed bandit model to generate the expected reward value for different power allocation schemes. The calculation formula is:
[0259] ;
[0260] in, Indicates The expected reward for a power allocation scheme, Indicates the corresponding power allocation action, Represents the value function:
[0261] ;
[0262] in, Represents the time step Instant rewards, represents the discount factor;
[0263] S83. Update the reward function based on actual feedback through interaction with the environment and adjust the value function in the multi-armed bandit model :
[0264] ;
[0265] in, represents the learning rate, Indicates the actual instant reward obtained. represents the discount factor, represents the optimal action for the next step, The environment context variables representing the next step;
[0266] S84, real-time monitoring of environmental context variables The power allocation strategy is adjusted dynamically based on the changes in the environment, and different power allocation schemes are triggered according to different environmental conditions.
[0267] Charging pile power distribution control system, including:
[0268] A data collection module for collecting data from multiple charging piles and electric vehicles;
[0269] A data preprocessing module, connected to the data collection module, for preprocessing the data set;
[0270] A feature extraction module, connected to the data preprocessing module, includes a multi-layer perceptron, wherein the multi-layer perceptron includes an input layer, a plurality of hidden layers and an output layer, and is used to process the preprocessed data set to extract numerical features and embedding representations;
[0271] The dynamic graph neural network module is connected to the feature extraction module and combines meta-learning technology to extract features from numerical features and embedded representations to generate spatiotemporal features;
[0272] The self-attention mechanism module is connected to the dynamic graph neural network module and is used to input numerical features, embedded representations, and spatiotemporal features. The self-attention mechanism fuses multimodal features, models global relationships, and generates comprehensive feature representations;
[0273] A multi-branch neural network module, connected to the self-attention mechanism module, wherein each branch in the multi-branch neural network structure is used to optimize different objectives, including charging speed optimization, user fairness, grid stability, and renewable energy utilization, and generate a preliminary power allocation plan;
[0274] A strategy generation and optimization module, connected to the multi-branch neural network module, including neural architecture search and Monte Carlo tree search submodules. The neural architecture search automatically optimizes the structure and hyperparameters of the multi-branch neural network. The Monte Carlo tree search is used to select the optimal power allocation solution in the search tree.
[0275] An environment perception and interaction module, connected to the strategy generation and optimization module, includes an environment perception multi-armed bandit algorithm, which dynamically adjusts the power allocation strategy by real-time monitoring of environmental context variables, and interacts with the environment to learn the optimal allocation plan. The multi-armed bandit algorithm generates expected reward values for different power allocation plans based on environmental context variables, updates the reward function, and adjusts the value function;
[0276] The visualization module is connected to the environment perception and interaction module and is used to provide a user-friendly interface for visual display of data and decision-making processes.
[0277] Charging pile power distribution control equipment, including:
[0278] Data collection module, used to collect real-time data of charging piles and electric vehicles and build data sets;
[0279] A data preprocessing module, communicating with the data collection module, for preprocessing the data set;
[0280] A feature extraction module, connected to the data preprocessing module, comprising a multi-layer perceptron, for processing the preprocessed data set, extracting numerical features and embedding representations;
[0281] A feature fusion module, connected to the feature extraction module, combines a meta-learning dynamic graph neural network and a self-attention mechanism to extract and fuse numerical features, embedded representations, and spatiotemporal features to generate a comprehensive feature representation;
[0282] An optimization module, connected to the feature fusion module, including a multi-branch neural network structure, each branch is used to optimize a different goal, and generates a preliminary power allocation solution through neural architecture search and Monte Carlo tree search;
[0283] a policy optimization module, in communication with the optimization module, comprising an environment-aware multi-armed bandit algorithm for optimizing the power allocation scheme according to environmental context variables and interacting with the environment to learn the optimal allocation strategy;
[0284] A visualization display module, connected to the strategy optimization module, for providing a user-friendly interface for visualization of data and decision-making process;
[0285] The controller,communicates with the modules and coordinates the execution of data flow,computation and power allocation strategies.
[0286] Embodiment 1:
[0287] In order to verify the feasibility of the present invention in implementation, the present invention is applied to a large city. The main commercial and residential areas of the city have a large number of charging piles, which are distributed in various parking lots and public charging stations. The peak time of charging demand is usually concentrated between 8 and 9 in the morning and 6 and 8 in the evening on weekdays. During these time periods, not only users concentrate on charging, but also the load of the power grid increases sharply, which brings huge pressure to the city's power supply and management.
[0288] In order to deal with this problem, the city power management department decided to introduce the charging pile power distribution control system of the present invention. The system obtains real-time data of each charging pile and electric vehicle through the data collection module, including vehicle battery status, charging demand, grid load and current electricity price. The data preprocessing module cleans, normalizes and processes outliers on the collected data to ensure the accuracy and consistency of the data.
[0289] After data preprocessing is completed, the system inputs the processed data into a multi-layer perceptron for preliminary feature extraction. The multi-layer perceptron extracts numerical features and embedded representations through steps such as logarithmic transformation and normalization. Then, the dynamic graph neural network combined with meta-learning performs deep feature extraction on the numerical features and embedded representations to generate spatiotemporal features between charging piles and electric vehicles. These features are input into the self-attention mechanism to further fuse multimodal features and generate comprehensive feature representations.
[0290] The comprehensive feature representation is input into a multi-branch neural network, and each branch corresponds to an optimization goal, including charging speed optimization, user fairness, grid stability, and renewable energy priority. The charging speed optimization branch ensures that users can complete charging quickly and reduce waiting time; the user fairness branch allocates charging resources fairly according to the user's historical charging records and priorities; the grid stability branch monitors the grid load in real time to avoid grid overload; the renewable energy priority branch gives priority to the use of green energy such as wind and solar energy to reduce dependence on traditional electricity.
[0291] The system dynamically optimizes the network structure and parameter configuration of each branch through neural architecture search and Monte Carlo tree search to generate preliminary power allocation plans. Then, the environment-aware multi-armed bandit algorithm optimizes these plans and adjusts the power allocation strategy based on real-time environmental context variables. The system automatically adjusts the strategy according to environmental changes, such as sudden fluctuations in electricity prices and sudden increases in charging demand, to ensure a dynamic balance between the power grid and charging demand.
[0292] Table 1 Comparison of relevant data before and after optimization of charging pile power distribution control system
[0293]
[0294] Table 1 shows the comparison of relevant data of the charging pile power distribution control system before and after optimization in different time periods, including the number of charging requests, average waiting time, grid load, renewable energy utilization rate and the reduction ratio of traditional power consumption. Through the analysis of these data, it can be clearly seen that the present invention has a significant effect in improving charging efficiency, optimizing grid load and improving renewable energy utilization rate.
[0295] First, in terms of the number of charging requests, the table data shows that the number of charging requests during the peak period from 8:00 to 9:00 in the morning reached 1,000, which is 2.5 times that of the non-peak period. This phenomenon shows that the demand for electric vehicle charging during this period is very concentrated. However, the data after system optimization shows that despite the significant increase in the number of charging requests, the average waiting time has been reduced from 20 minutes before optimization to 10 minutes, significantly improving the charging efficiency. This not only reduces the waiting time of users, but also improves the utilization rate of charging piles.
[0296] In addition, in terms of grid load, the comparison of data before and after optimization shows that the grid load during peak hours has changed from "high" to "within a safe range". This means that the dynamic power allocation strategy of the present invention effectively balances the grid load and avoids possible grid overload problems. The stability of the grid load is crucial to the power management of the city, especially with the rapid popularization of electric vehicles.
[0297] The utilization rate of renewable energy is also an important indicator. The table shows that through the system optimization of the present invention, the utilization rate of renewable energy has been improved in different time periods. For example, the utilization rate from 8:00 to 9:00 in the morning has reached 30%. This not only conforms to the current advocacy of green energy, but also reduces dependence on traditional electricity, further reflecting the environmental friendliness of the system. In addition, the reduction in traditional electricity consumption reached 30% to 35% during peak hours, which shows that while the system effectively utilizes renewable energy, it also greatly reduces the consumption of traditional electricity.
[0298] In general, the above data fully demonstrates the advantages of the charging pile power distribution control system of the present invention in many aspects. The system not only effectively manages the charging needs of electric vehicles during peak hours, but also achieves efficient energy management through intelligent scheduling and balancing of grid loads. By optimizing the power distribution strategy, the system improves charging efficiency, reduces user waiting time, and enhances user experience. At the same time, the system also shows significant effects in improving the utilization rate of renewable energy and reducing traditional electricity consumption, providing strong support for the green development of the city. These achievements not only reflect the technical advantages of the present invention, but also provide valuable experience and reference for the further optimization of the electric vehicle charging network.
[0299] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A charging pile power distribution control method, characterized in that: The steps include: S1, collect data on charging piles and electric vehicles and build a data set; S2, preprocessing the data set, including data cleaning, normalization and outlier processing; S3, use a multi-layer perceptron to process the preprocessed data set to extract numerical features and embedding representation; S4. Apply dynamic graph neural network combined with meta-learning to extract numerical features and embedding representations to generate spatiotemporal features; S5, input numerical features, embedded representations, and spatiotemporal features into the self-attention mechanism, fuse multimodal features, model global relationships, and generate comprehensive feature representations; S6, inputting the comprehensive feature representation into the designed multi-branch neural network structure, each branch is used to optimize a different objective; S7, integrating the output results of the multi-branch neural network, and generating a power allocation solution using neural architecture search and Monte Carlo tree search; S8, optimize the power allocation scheme through the environment-aware multi-armed bandit algorithm, and interact with the environment to learn the optimal allocation scheme; S9. Provide a user-friendly interface for visual display of data and decision-making process; The S7 specifically includes: S71. In the multi-branch neural network, each branch generates a preliminary power allocation plan according to different optimization objectives, wherein the optimization objectives include but are not limited to maximizing charging speed, grid load balancing, user fairness, and renewable energy utilization; S72, integrating and normalizing the output results of each branch; S73. Use neural architecture search to automatically optimize the structure and hyperparameters of multi-branch neural networks. The search process uses a reinforcement learning agent model A to control the generation of candidate network structures N. The update formula of the agent model is: Among them, θ A represents the parameters of the proxy model, η represents the learning rate, R(N) represents the reward value of the candidate network structure, Represents θ A Generate probability distribution of candidate network structures; S74. Integrate the output of the candidate network structure and use the Monte Carlo tree search algorithm to select the optimal power allocation solution in the search tree. The selection strategy is based on the upper confidence bound: Where s represents the current state, a represents the action, Q(s,a) represents the state-action value function, N(s) represents the number of visits to state s, N(s,a) represents the number of visits to action a in state s, and c represents the exploration coefficient; S75: Output the final charging power allocation strategy P * ; The S8 specifically includes: S81. In the environment-aware multi-armed bandit algorithm, the environment context variable Z is introduced as input, which is specifically defined as: Z={z1,z2,…,z n }; Among them, z i represents the i-th state feature of the environment, and n represents the total number of state features; S82. Input the environmental context variable Z into the multi-armed bandit model. The calculation formula of the reward value R is: R i =Q(a i ,Z); Among them, R i represents the expected reward of the ith power allocation scheme, a i represents the corresponding power allocation action, and Q represents the value function: Among them, r t represents the immediate reward at time step t, and γ2 represents the discount factor; S83. By interacting with the environment, the reward function is updated according to the actual feedback, and the value function Q(a,Z) in the multi-armed bandit model is adjusted: Among them, a represents the learning rate, r represents the actual instant reward, γ3 represents the discount factor, and a ′ represents the optimal action for the next step, Z ′ The environment context variables representing the next step; S84. Monitor the changes of the environmental context variable Z in real time, dynamically adjust the power allocation strategy, and trigger different power allocation schemes according to different environmental conditions.
2. The charging pile power distribution control method according to claim 1, characterized in that: The S3 specifically includes: S31, inputting the preprocessed data set into a multilayer perceptron, wherein the multilayer perceptron includes an input layer, a plurality of hidden layers and an output layer; S32. For numerical features, the input layer receives the original numerical feature vector X, applies logarithmic transformation and normalization: X log =log2(X+∈); Among them, ∈ represents the smoothing parameter, X log represents the numerical feature vector after logarithmic transformation; Among them, X norm represents the normalized numerical feature, X min represents the minimum value of the numerical eigenvector X, X max represents the maximum value of the numerical eigenvector X; X norm Further input to the hidden layer, the output of the hidden layer is: in, represents the activation value of layer l, represents the weight matrix between the l-1th layer and the lth layer, represents the output of the l-1th layer, represents the bias of the l-1th layer, f represents the activation function, BN represents the batch normalization function, Represents the activation value of the l-2th layer in the residual connection; S33. For the category feature C, transform it into a high-dimensional sparse vector C through one-hot encoding one-hot , through the embedding matrix W C Mapping to a low-dimensional embedding space: E=W C ·C one-hot ; Where E represents the embedding vector of the category feature; S34. Use an adaptive regularization strategy to normalize each embedding vector and add Gaussian noise: Among them, E ′ represents the normalized embedding vector, ∥E∥ represents the L2 norm of the embedding vector, Indicates that the mean is 0 and the variance is σ 2 Gaussian noise; S35, normalized embedding vector E ′ Further input into the hidden layer, using variational autoencoder for feature learning: Among them, z represents the latent variable, μ represents the mean, σ represents the standard deviation, and ∈1 represents the standard normal distribution random variable; S36. The final embedding feature is expressed as: in, represents the embedded feature representation of the lth layer, represents the weight matrix between the l-1th layer and the lth layer, represents the bias of the l-1th layer; S37. Numerical feature representation after multi-layer perceptron processing and embedding feature representation The final output is expressed as: Among them, F X Represents the final numerical feature, F E represents the final embedding representation, and L represents the last layer of the multi-layer perceptron.
3. The charging pile power distribution control method according to claim 1, characterized in that: The S4 specifically includes: S41, constructing a dynamic graph neural network to represent the dynamic relationship between the charging pile and the electric vehicle, wherein the charging pile and the electric vehicle are respectively used as nodes in the graph, and the charging request and the charging status are used as edges in the graph; S42, assigning an initial feature vector to each node, the initial feature vector of the node is composed of the numerical feature F X and embedding representation F E Combination, specifically expressed as: in, represents the initial feature vector of node i, represents the numerical feature of node i, represents the embedding representation of node i; S43. Use an adaptive temporal convolutional network to perform temporal modeling on the dynamic graph, extract temporal features at different time steps t, and calculate the weighted sum of the current feature vector and the feature vectors of the previous δt time steps at each time step t: in, represents the temporal features of the lth layer at time step t, W t-j represents the weight matrix of time step tj, H (l-1) (j) represents the feature vector of the l-1th layer at time step j, b t-j represents the bias term of time step tj; Use an adaptive time step selection mechanism to adjust δt according to the changes in the current time series data: Among them, α k and γ k represents the adaptive parameter, K represents the number of selected time steps, Represents the feature change rate of the current time step, and sigmoid represents the activation function; S44. Apply the cross-layer graph attention mechanism to update the features and neighborhood aggregation of the nodes in the graph: in, represents the feature representation of node i at the l+1 layer, N(i) represents the neighborhood set of node i, represents the weight matrix of the kth attention head, Represents the attention coefficient of nodes i, j and the kth attention head: in, represents the adaptive weight vector of the kth attention head, ∥ represents the vector concatenation operation; S45. Perform multiple iterations on each layer of the graph until the model converges, and finally obtain the spatiotemporal feature representation of each node: Among them, F T represents the final spatiotemporal feature set, L represents the last layer, V T A collection of nodes representing final times.
4. The charging pile power distribution control method according to claim 1, characterized in that: The S5 specifically includes: S51, the numerical feature F X , embedding representation F E and the spatiotemporal characteristics F T Combined into the input matrix F = [F X ; F E ; F T ] and input it into the self-attention mechanism module for feature fusion; S52. In the self-attention mechanism, the input matrix F is projected to generate the query matrix Q, the key matrix K and the value matrix V: Q=FW Q ,K=FW K ,V=FW V ; Among them, W Q represents the weight matrix of the query matrix, S53. Introduce a weighting mechanism based on Gaussian kernel, calculate the similarity between features through Gaussian kernel function, and use it to correct the dot product attention: A ij =exp(-γ∥Q i -K j ∥ 2 ); Among them, A ij represents the similarity between the i-th query and the j-th key, and γ represents the scale parameter of the Gaussian kernel; S54, dot product the similarity matrix A with the transpose of the key matrix K, and then multiply it with the value matrix V to obtain the weighted feature representation: Attention(Q,K,V)=Softmax(A)·V; Among them, Softmax represents the normalized similarity; S55, using an improved multi-head attention mechanism, the output of each head includes a residual connection after linear transformation: MultiHead(Q,K,V)=Concat(head1,head2,…,head h )W O ; in, and represents the weight matrix of the i-th head, W O represents the output weight matrix, Represents the weight matrix of the residual connection; S56. Perform additive residual connection on the output of multi-head attention and the input matrix F, and perform layer normalization based on position encoding: F out =LayerNorm(F+MultiHead(Q,K,V)+P); Among them, P represents the position encoding matrix, F out represents a comprehensive feature representation; S57, the comprehensive feature representation F out Input to a nonlinearly activated feedforward neural network, which consists of two fully connected layers and an adaptive threshold activation function: <h2 style=";text-align:left;direction:ltr">FFNN(F<h2 style=";text-align:left;direction:ltr"> out <h2 style=";text-align:left;direction:ltr"> )=ATAF(W1F<h2 style=";text-align:left;direction:ltr"> out <h2 style=";text-align:left;direction:ltr"> +b1)W2+b2; Among them, W1 and W2 represent the weight matrices of the fully connected layer, b1 and b2 represent the bias, and ATAF adaptively adjusts the activation threshold to optimize feature extraction; S58, output the final comprehensive feature representation F final .
5. The charging pile power distribution control method according to claim 1, characterized in that: The S6 specifically includes: S61, the final comprehensive feature representation F final Input into a multi-branch neural network; S62, charging speed optimization branch, the optimization objective function is: Among them, O speed represents the charging speed optimization output, σ represents the activation function, W speed,out represents the output layer weight matrix, represents the weight matrix of the Lth hidden layer, represents the activation value of the L-1th layer, The bias of the Lth hidden layer, b speed,out represents the bias of the output layer, λ speed represents the regularization coefficient, ∥W speed,hidden ∥ F represents the Frobenius norm; S63, user fairness optimization branch, the optimization objective function includes weighted processing of user historical priority and charging record: Among them, O fairness represents the user fairness optimization output, W fairness,out represents the output layer weight matrix, represents the activation value of the Lth layer, b fairness,out represents the output layer bias, tanh represents the hyperbolic tangent activation function, Dropout represents the random dropout method, α k Represents the weighted coefficient of user priority and historical charging record, u k represents the feature value of user priority and historical charging record, and K represents the number of users; S64, power grid stability optimization branch, optimization objective function: Among them, O stability represents the grid stability optimization output, W stability,out represents the output layer weight matrix, represents the activation value of the LSTM layer at the tth time step, b stability,out represents the output layer bias, T represents the time step, and softmax represents the normalization function; S65, renewable energy priority utilization branch, calculates the current availability of renewable energy and future supply forecast, and the optimization objective function is: Among them, O renewable Represents the priority utilization of renewable energy output, W renewable,out represents the output layer weight matrix, F R represents the predicted renewable energy supply characteristics, b renewable,out represents the output layer bias, γ c represents the penalty coefficient, is used to penalize negative values, and M represents the amount of renewable energy resources.
6. A charging pile power distribution control system, executing the charging pile power distribution control method according to any one of claims 1 to 5, characterized in that: Includes the following modules: A data collection module for collecting data from multiple charging piles and electric vehicles; A data preprocessing module, connected to the data collection module, for preprocessing the data set; A feature extraction module, connected to the data preprocessing module, includes a multi-layer perceptron, wherein the multi-layer perceptron includes an input layer, a plurality of hidden layers and an output layer, and is used to process the preprocessed data set to extract numerical features and embedding representations; The dynamic graph neural network module is connected to the feature extraction module and combines meta-learning technology to extract features from numerical features and embedded representations to generate spatiotemporal features; The self-attention mechanism module is connected to the dynamic graph neural network module and is used to input numerical features, embedded representations, and spatiotemporal features. The self-attention mechanism fuses multimodal features, models global relationships, and generates comprehensive feature representations; A multi-branch neural network module, connected to the self-attention mechanism module, wherein each branch in the multi-branch neural network structure is used to optimize different objectives, including charging speed optimization, user fairness, grid stability, and renewable energy utilization, and generate a preliminary power allocation plan; A strategy generation and optimization module, connected to the multi-branch neural network module, including neural architecture search and Monte Carlo tree search submodules. The neural architecture search automatically optimizes the structure and hyperparameters of the multi-branch neural network. The Monte Carlo tree search is used to select the optimal power allocation solution in the search tree. An environment perception and interaction module, connected to the strategy generation and optimization module, includes an environment perception multi-armed bandit algorithm, which dynamically adjusts the power allocation strategy by real-time monitoring of environmental context variables, and interacts with the environment to learn the optimal allocation plan. The multi-armed bandit algorithm generates expected reward values for different power allocation plans based on environmental context variables, updates the reward function, and adjusts the value function; The visualization module is connected to the environment perception and interaction module and is used to provide a user-friendly interface for visual display of data and decision-making processes.
7. A charging pile power distribution control device, executing the charging pile power distribution control method according to any one of claims 1 to 5, characterized in that: include: Data collection module, used to collect real-time data of charging piles and electric vehicles and build data sets; A data preprocessing module, communicating with the data collection module, for preprocessing the data set; A feature extraction module, connected to the data preprocessing module, comprising a multi-layer perceptron, for processing the preprocessed data set, extracting numerical features and embedding representations; A feature fusion module, connected to the feature extraction module, combines a meta-learning dynamic graph neural network and a self-attention mechanism to extract and fuse numerical features, embedded representations, and spatiotemporal features to generate a comprehensive feature representation; An optimization module, connected to the feature fusion module, including a multi-branch neural network structure, each branch is used to optimize a different goal, and generates a preliminary power allocation solution through neural architecture search and Monte Carlo tree search; a policy optimization module, in communication with the optimization module, comprising an environment-aware multi-armed bandit algorithm for optimizing the power allocation scheme according to environmental context variables and interacting with the environment to learn the optimal allocation strategy; A visualization display module, connected to the strategy optimization module, for providing a user-friendly interface for visualization of data and decision-making process; The controller,communicates with the modules and coordinates the execution of data flow,computation and power allocation strategies.
