Electric vehicle charging scheduling method and system based on robust reinforcement learning
By constructing a Markov decision model and establishing a robust reinforcement learning algorithm, including a policy network, a value network and the strongest attack evaluation network, the problem of the vulnerability of the electric vehicle charging dispatching system to attacks is solved, and the problem of vulnerability in the face of network attacks is achieved. Good strategy performance and system stability.
Patent Information
- Application Number
- CN202410940750.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-15
AI Technical Summary
The electric vehicle charging scheduling system is vulnerable to malicious attacks and network intrusions. Traditional reinforcement learning is susceptible to disturbances. Model-based optimization methods perform poorly in highly random and dynamic environments, making it difficult to quickly solve decision-making problems in a large number of uncertain scenarios.
Using a method based on robust reinforcement learning, the electric vehicle charging scheduling decision is constructed as a Markov decision model, a policy network, a value network and the strongest attack evaluation network are established, and the optimal scheduling strategy is output through the robust reinforcement learning algorithm to enhance the system Defense capabilities against cyberattacks.
It improves the electric vehicle charging dispatching system's defense capabilities against network attacks, ensures that the strategy performs well in unattacked and counterattack scenarios, and ensures system operation stability and decision-making optimization.
Smart Images

Figure CN118485282B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent scheduling, and in particular relates to an electric vehicle charging scheduling method and system based on robust reinforcement learning. Background Art
[0002] In the context of energy transformation, electric vehicles and their charging infrastructure are developing rapidly due to their advantages in environmental protection and low carbon. The electric vehicle charging dispatching system aggregates users' charging needs, coordinates the charging and discharging dispatching of electric vehicles, and realizes two-way information and energy interaction with the power system. However, due to the complexity of the charging network and the inherent vulnerabilities of the charging network communication system, the electric vehicle charging dispatching system is easily targeted by malicious attacks and network intrusions. By exploiting common vulnerabilities, attackers can invade a large number of IoT sensor devices from the communication network, thereby posing a huge threat to the charging network and power system.
[0003] On the other hand, facing the highly random and dynamic real world, traditional optimization methods have great limitations. Reinforcement learning, as a model-free method, can gradually learn the optimal sequential scheduling strategy by continuously interacting with the environment without relying on an accurate environmental model. Therefore, it is considered to be one of the effective methods to solve the real-time scheduling problem of electric vehicles. However, reinforcement learning is vulnerable to adversarial attacks. Attackers can affect reinforcement learning decisions by injecting disturbances into the input data and further disrupt the operation of the reinforcement learning-based system. Attackers can disrupt the normal operation of the electric vehicle charging scheduling system based on reinforcement learning by injecting disturbances into the sensors in the charging network.
[0004] Model-based optimization methods have been widely developed for the problem of electric vehicle charging scheduling. However, this method has irreversible limitations in the face of highly random and dynamic real-world environments. The main reason is that model-based optimization methods assume that electric vehicles need to have a complete understanding of the environment, but this assumption is usually unrealistic. Moreover, model-based optimization methods usually deal with various uncertainties in reality through stochastic programming or robust optimization, but these algorithms only use a small number of representative scenarios, which may lead to very conservative optimization results and make it difficult to quickly solve decision-making problems in a large number of uncertain scenarios.
[0005] As a model-free method, reinforcement learning can learn the optimal scheduling strategy from repeated interactions with the environment without relying on accurate environmental models. In addition, as an online learning method, it can effectively use data from interactions with the environment to capture system uncertainties and adapt to various dynamic situations. However, traditional reinforcement learning models lack decision-making experience on attack samples in regular training, which leads to poor performance of scheduling strategies in the face of various attacks. Even slight perturbations in input data may cause a significant drop in the performance of the output strategy, thereby affecting the stability of the entire system. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the present application provides an electric vehicle charging scheduling method and system based on robust reinforcement learning.
[0007] In a first aspect, the present application proposes an electric vehicle charging scheduling method based on robust reinforcement learning, comprising the following steps:
[0008] The electric vehicle charging scheduling decision is constructed as a Markov decision model;
[0009] Obtain a reinforcement learning algorithm, and establish a strategy network, a value network, and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm to obtain a robust reinforcement learning algorithm;
[0010] The constructed Markov decision model is solved by the robust reinforcement learning algorithm, and an optimal scheduling strategy is output, so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy.
[0011] In some embodiments, the electric vehicle charging scheduling decision is constructed as a Markov decision model, including defining the agent state:
[0012] The formula for defining the state of the agent is:
[0013]
[0014] in, represents the state of the agent, Indicates the charging electricity price, Indicates The battery status of the electric vehicle at each charging point, Indicates The remaining charging time of electric vehicles at charging points, the agent state includes all The battery status and remaining charging time of electric vehicles at each charging point.
[0015] In some embodiments, constructing the electric vehicle charging scheduling decision as a Markov decision model includes defining agent actions:
[0016] The formula for defining the agent's actions is:
[0017]
[0018]
[0019] in, represents the agent action, Indicates that it is Charging points in The charge and discharge rate at the time, Indicates the maximum charge and discharge power, Indicates that the agent is Always on the charging point Actions taken.
[0020] In some embodiments, constructing the electric vehicle charging scheduling decision as a Markov decision model includes defining an agent reward:
[0021] The formula for defining the agent reward is:
[0022]
[0023] in, represents the agent reward, is the penalty coefficient, which is used to set the weight distribution of the agent between the two goals. express A collection of charging points where electric vehicles can be charged and discharged at all times. express A collection of charging points that are not meeting charging demands at any given moment.
[0024] In some embodiments, the obtaining of the reinforcement learning algorithm, establishing a policy network, a value network, and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm to obtain a robust reinforcement learning algorithm, and establishing the value network includes:
[0025] Introducing the advantage function Evaluate the current strategy and update the value network parameters :
[0026]
[0027] Set the value network update formula:
[0028]
[0029] in, The state value representing the state of the agent, Represents the discount factor, which reflects the importance of future earnings.
[0030] In some embodiments, establishing the strongest attack evaluation network includes:
[0031] Face the current strategy to the strongest attack Action Value Defined as:
[0032]
[0033] Set the strongest attack evaluation network update formula:
[0034]
[0035]
[0036] in, Indicates the range of disturbance of the action. The agent state is represented by quilt The state after attack interference.
[0037] In some embodiments, establishing the policy network includes:
[0038] Get the policy gradient loss function of the reinforcement learning algorithm:
[0039]
[0040] Set the policy network robust update formula:
[0041]
[0042] By combining the policy gradient loss function and the policy network robust update formula through balancing weights, we get the overall loss function of the policy network:
[0043]
[0044] in, Representation strategy In Status Next action The probability of Represents the balance weight.
[0045] In some embodiments, the robust reinforcement learning algorithm is used to solve the constructed Markov decision model and output an optimal scheduling strategy so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy, including:
[0046] Step 1: Define the solution input and solution output. The solution input includes the charging electricity price, the battery status of the electric vehicle at each charging point, and the remaining charging time. The solution output includes the charging and discharging strategy of each charging point, corresponding to the strategy network parameters after the update iteration is completed;
[0047] Step 2: Initialize the number of iterations, balance weight, strategy network, value network, strongest attack evaluation network, and the network parameters corresponding to the strategy network, value network, and strongest attack evaluation network;
[0048] Step 3: Get the current agent state As input to the policy network;
[0049] Step 4: The policy network outputs the charging and discharging actions of each charging point as agent actions, executes the corresponding actions, and obtains agent rewards;
[0050] Step 5: Entering the next moment, the state of the agent is Transfer to , a set of trajectory sequences are collected ;
[0051] Step 6: Update the parameters of the value network :
[0052]
[0053] Step 7: Calculate the state The strongest attack :
[0054]
[0055] Step 8: Update the strongest attack evaluation network parameters :
[0056] Step 9: Update policy network parameters :
[0057]
[0058] Step 10: Repeat steps 3-9 until the number of iterations is reached, and return the policy network parameters after iterative update.
[0059] In the second aspect, the present application proposes an electric vehicle charging scheduling system based on robust reinforcement learning, including a model building module, an algorithm optimization module and a scheduling execution module;
[0060] The model building module is used to construct the electric vehicle charging scheduling decision as a Markov decision model;
[0061] The algorithm optimization module is used to obtain a reinforcement learning algorithm, establish a strategy network, a value network and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm, and obtain a robust reinforcement learning algorithm;
[0062] The scheduling execution module is used to solve the constructed Markov decision model through the robust reinforcement learning algorithm and output the optimal scheduling strategy so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy.
[0063] In a third aspect, the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0064] Beneficial effects of the present invention:
[0065] 1. A robust reinforcement learning algorithm is designed to enhance the defense level of the electric vehicle charging scheduling system against network attacks by improving the robustness of the traditional reinforcement learning algorithm. The robust charging scheduling algorithm in this scheme still has good scheduling capabilities when facing potential network attacks.
[0066] 2. The robust reinforcement learning algorithm provided by this solution ensures that the model has good strategic performance when it is not attacked, and also has good strategic performance in the scenario of adversarial attack, so that electric vehicles can still make the best decision when charging scheduling in the face of network attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is the overall flow chart of the present invention.
[0068] Figure 2 It is a system principle block diagram of the present invention. DETAILED DESCRIPTION
[0069] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein; on the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0070] In the first aspect, the present application proposes a charging scheduling method for electric vehicles based on robust reinforcement learning, such as Figure 1 As shown, the following steps are included:
[0071] S100: Constructing the EV charging scheduling decision as a Markov decision model;
[0072] The charging scheduling system takes into account the arrival and departure of electric vehicles at any time throughout the day. The main goal is to minimize the charging cost while ensuring that all electric vehicles can meet the charging requirements when they depart. Specifically, when an electric vehicle arrives at the charging station, the charging scheduling system makes decisions on the vehicle's charging and discharging power until the vehicle leaves the charging station. If an electric vehicle does not meet the charging requirements when it leaves, the corresponding penalty cost will be calculated. The charging scheduling system purchases and sells electricity to the power grid and interacts with the grid. Attackers exploit vulnerabilities in the vehicle-grid communication protocol to attack electric vehicles that are being charged, causing the charging scheduling system to receive erroneous charging requirements that are being attacked, affecting the charging scheduling system's ability to make correct charging and discharging scheduling decisions;
[0073] Based on this, the electric vehicle charging scheduling problem is constructed as a Markov decision process. The intelligent agent receives the charging and discharging demand and electricity price and other states, and performs actions, that is, makes charging and discharging scheduling decisions at the current moment. The intelligent agent gradually learns from the interaction with electric vehicles and the market environment, so as to improve the strategy and maximize the benefits.
[0074] In some embodiments, the electric vehicle charging scheduling decision is constructed as a Markov decision model, including defining the agent state:
[0075] The formula for defining the state of the agent is:
[0076]
[0077] in, represents the state of the agent, Indicates the charging electricity price, Indicates The battery status of the electric vehicle at each charging point, Indicates The remaining charging time of electric vehicles at charging points, the agent state includes all The battery status and remaining charging time of electric vehicles at each charging point.
[0078] In some embodiments, constructing the electric vehicle charging scheduling decision as a Markov decision model includes defining agent actions:
[0079] The formula for defining the agent's actions is:
[0080]
[0081] In order to ensure that the charging and discharging power meets the hard constraint of the maximum charging and discharging power, we restrict the action space to [-1,1] and recalculate the charging point exist The charging and discharging power at all times makes sure that the charging and discharging power does not exceed the range that the battery capacity can withstand:
[0082]
[0083] in, represents the agent action, Indicates that it is Charging points in The charge and discharge rate at the time, Indicates the maximum charge and discharge power, Indicates that the agent is Always on the charging point Actions taken.
[0084] In some embodiments, constructing the electric vehicle charging scheduling decision as a Markov decision model includes defining an agent reward:
[0085] The formula for defining the agent reward is:
[0086]
[0087] in, represents the agent reward, is the penalty coefficient, which is used to set the weight distribution of the agent between the two goals. express A collection of charging points where electric vehicles can be charged and discharged at all times. express A collection of charging points that are not meeting charging demands at any given moment.
[0088] The goal of the charging scheduling system is to ensure that all electric vehicles can meet the charging needs when they set off while minimizing the charging cost. The instant charging dispatching system uses the revenue from purchasing and selling electricity to the power grid minus the penalty cost for failing to meet charging requirements as a reward.
[0089] S200: Obtain a reinforcement learning algorithm, and establish a strategy network, a value network, and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm to obtain a robust reinforcement learning algorithm;
[0090] The attacker attacks the battery state of the electric vehicle to affect the charging scheduling system to make the correct decision. Therefore, the actual attack effect can be considered as an adversarial disturbance to the state of the agent, and the agent makes a decision based on the disturbed state.
[0091] This scheme proposes a robust reinforcement learning algorithm RA2C, which adds the value estimation of the strategy under the strongest attack on the basis of the reinforcement learning algorithm A2C. RA2C includes a policy network, a value network, and a strongest attack evaluation network: the policy network is responsible for decision-making and action selection; the value network is responsible for evaluating the quality of the actions taken by the policy network; the strongest attack evaluation network is responsible for evaluating the quality of the actions taken by the policy network under the strongest attack. By estimating the value of the strategy under the strongest attack, the intelligent agent selects those strategies that can guarantee higher worst-case rewards even in the face of adversarial attacks.
[0092] In some embodiments, the obtaining of the reinforcement learning algorithm, establishing a policy network, a value network, and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm to obtain a robust reinforcement learning algorithm, and establishing the value network includes:
[0093] Introducing the advantage function Evaluate the current strategy and update the value network parameters :
[0094]
[0095] Set the value network update formula:
[0096]
[0097] in, The state value representing the state of the agent, Represents the discount factor, which reflects the importance of future earnings.
[0098] Among them, the meaning of the current strategy is The action that the agent needs to perform at each moment;
[0099] In some embodiments, establishing the strongest attack evaluation network includes:
[0100] Face the current strategy to the strongest attack Action Value Defined as:
[0101]
[0102] Set the strongest attack evaluation network update formula:
[0103]
[0104]
[0105] in, Indicates the range of disturbance of the action. The agent state is represented by quilt The state after attack interference.
[0106] Among them, the purpose of the strongest attack evaluation network is to guide the agent to update the minimum reward that may be caused by the current strategy and find the worst case of the current strategy.
[0107] In some embodiments, establishing the policy network includes:
[0108] Get the policy gradient loss function of the reinforcement learning algorithm:
[0109]
[0110] Set the policy network robust update formula:
[0111]
[0112] By balancing the weights, the policy gradient loss function and the policy network robust update formula are combined to balance the robustness of the network and obtain the overall loss function of the policy network:
[0113]
[0114] in, Representation strategy In Status Next action The probability of Represents the balance weight.
[0115] Among them, the policy network actually allows the agent to make strategies (that is, execute actions), and the value network and the strongest attack evaluation network actually guide the agent to make strategies, that is, to guide it in the direction of maximizing rewards and being less vulnerable to attacks.
[0116] S300: Solving the constructed Markov decision model through the robust reinforcement learning algorithm, and outputting an optimal scheduling strategy, so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy.
[0117] In some embodiments, the robust reinforcement learning algorithm is used to solve the constructed Markov decision model and output an optimal scheduling strategy so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy, including:
[0118] Step 1: Define the solution input and solution output. The solution input includes the charging electricity price, the battery status of the electric vehicle at each charging point, and the remaining charging time. The solution output includes the charging and discharging strategy of each charging point, corresponding to the strategy network parameters after the update iteration is completed;
[0119] Step 2: Initialize the number of iterations, balance weight, strategy network, value network, strongest attack evaluation network, and the network parameters corresponding to the strategy network, value network, and strongest attack evaluation network;
[0120] Step 3: Get the current agent state As input to the policy network;
[0121] Step 4: The policy network outputs the charging and discharging actions of each charging point as agent actions, executes the corresponding actions, and obtains agent rewards;
[0122] Step 5: Entering the next moment, the state of the agent is Transfer to , a set of trajectory sequences are collected ;
[0123] Step 6: Update the parameters of the value network :
[0124]
[0125] Step 7: Calculate the state The strongest attack :
[0126]
[0127] Step 8: Update the strongest attack evaluation network parameters :
[0128] Step 9: Update policy network parameters :
[0129]
[0130] Step 10: Repeat steps 3-9 until the number of iterations is reached, and return the policy network parameters after iterative update.
[0131] Among them, the goal is to update the policy network to output the optimal scheduling strategy according to the current environmental state, so the policy network needs to be updated iteratively; the value network evaluates the performance of the current policy network by estimating the value of the state after taking a certain action, and guides the policy network to update to the optimal strategy; the strongest attack evaluation network estimates the lowest state value after the current environmental state is subjected to the strongest attack, evaluates the vulnerability of the current policy network to attacks, and guides the policy network to update to a robust strategy.
[0132] Specifically, each round of scheduling process of the above implementation steps is as follows:
[0133] Initialize electricity prices, EV travel parameters, and EV battery status;
[0134] At time t=0, when the electric car arrives at charging point i, the agent state changes. All have values, and other states remain unchanged. If an electric car also arrives at charging point j, It will also change and get state s0;
[0135] The agent inputs s0 into the value network, strategy network, and strongest attack evaluation network, updates the parameters of each network, and outputs action a0 according to the strategy network;
[0136] The agent performs action a0, gets reward r0, enters the next state s1, and updates state s1 at time t=1 according to the status of the EV at each charging point. This is a set of trajectories {s0, a0, r0, s1};
[0137] The agent inputs s1 into the value network, policy network, and strongest attack evaluation network, updates the parameters of each network, and once again outputs action a1 according to the policy network;
[0138] Repeat the above steps until t=96 (a day is divided into 96 moments, 15 minutes for each moment), that is, the charging scheduling for the day is completed, and the total reward (scheduling system benefit) and scheduling strategy (sequence action strategy) are obtained, and this round of scheduling process ends.
[0139] Repeat N rounds of scheduling process until the maximum number of convergences is reached and the optimal scheduling strategy is generated.
[0140] In the second aspect, the present application proposes an electric vehicle charging scheduling system based on robust reinforcement learning, such as Figure 2 As shown, it includes a model building module, an algorithm optimization module and a scheduling execution module;
[0141] The model building module is used to construct the electric vehicle charging scheduling decision as a Markov decision model;
[0142] The algorithm optimization module is used to obtain a reinforcement learning algorithm, establish a strategy network, a value network and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm, and obtain a robust reinforcement learning algorithm;
[0143] The scheduling execution module is used to solve the constructed Markov decision model through the robust reinforcement learning algorithm and output the optimal scheduling strategy so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy.
[0144] In a third aspect, the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0145] The above are only preferred implementations of the present invention. It should be pointed out that a number of modifications and improved technical solutions made by those skilled in the art without departing from the technical solution should also be deemed to fall within the scope of protection required by the claims.
Claims
1. A method for charging scheduling of electric vehicles based on robust reinforcement learning, characterized in that: The following steps are involved: The electric vehicle charging scheduling decision is constructed as a Markov decision model; Obtain a reinforcement learning algorithm, establish a strategy network, a value network, and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm, and obtain a robust reinforcement learning algorithm, wherein establishing the value network includes: Introducing the advantage function Evaluate the current strategy and update the value network parameters : Set the value network update formula: in, The state value representing the state of the agent, represents the discount factor, reflecting the importance of future earnings; Establishing the strongest attack evaluation network includes: Face the current strategy to the strongest attack Action Value Defined as: Set the strongest attack evaluation network update formula: in, Indicates the range of disturbance of the action. The agent state is represented by quilt The state after attack interference; Establishing the strategy network includes: Get the policy gradient loss function of the reinforcement learning algorithm: Set the policy network robust update formula: By combining the policy gradient loss function and the policy network robust update formula through balancing weights, we get the overall loss function of the policy network: in, Representation strategy In Status Next action The probability of represents the balance weight; The constructed Markov decision model is solved by the robust reinforcement learning algorithm, and the optimal scheduling strategy is output, so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy, including: Step 1: Define the solution input and solution output. The solution input includes the charging electricity price, the battery status of the electric vehicle at each charging point, and the remaining charging time. The solution output includes the charging and discharging strategy of each charging point, corresponding to the strategy network parameters after the update iteration is completed; Step 2: Initialize the number of iterations, balance weight, strategy network, value network, strongest attack evaluation network, and the network parameters corresponding to the strategy network, value network, and strongest attack evaluation network; Step 3: Get the current agent state As input to the policy network; Step 4: The policy network outputs the charging and discharging actions of each charging point as agent actions, executes the corresponding actions, and obtains agent rewards; Step 5: Entering the next moment, the state of the agent is Transfer to , a set of trajectory sequences are collected ; Step 6: Update the parameters of the value network : Step 7: Calculate the state The strongest attack : Step 8: Update the strongest attack evaluation network parameters : Step 9: Update policy network parameters : Step 10: Repeat steps 3-9 until the number of iterations is reached, and return the policy network parameters after iterative update.
2. The method according to claim 1, characterized in that: The electric vehicle charging scheduling decision is constructed as a Markov decision model, including defining the agent state: The formula for defining the state of the agent is: in, represents the state of the agent, Indicates the charging electricity price, Indicates The battery status of the electric vehicle at each charging point, Indicates The remaining charging time of electric vehicles at charging points, the agent state includes all The battery status and remaining charging time of electric vehicles at each charging point.
3. The method according to claim 2, characterized in that: The electric vehicle charging scheduling decision is constructed as a Markov decision model, including defining the agent action: The formula for defining the agent's actions is: in, represents the agent action, Indicates that it is Charging points in The charge and discharge rate at the time, Indicates the maximum charge and discharge power, Indicates that the agent is Always on the charging point Actions taken.
4. The method according to claim 3, characterized in that: The electric vehicle charging scheduling decision is constructed as a Markov decision model, including defining the agent reward: The formula for defining the agent reward is: in, represents the agent reward, is the penalty coefficient, which is used to set the weight distribution of the agent between the two goals. express A collection of charging points where electric vehicles can be charged and discharged at all times. express A collection of charging points that are not meeting charging demands at any given moment.
5. An electric vehicle charging scheduling system based on robust reinforcement learning, characterized in that: Includes model building module, algorithm optimization module and scheduling execution module; The model building module is used to construct the electric vehicle charging scheduling decision as a Markov decision model; The algorithm optimization module is used to obtain a reinforcement learning algorithm, establish a strategy network, a value network and a strongest attack evaluation network on the network architecture of the reinforcement learning algorithm, and obtain a robust reinforcement learning algorithm, wherein establishing the value network includes: Introducing the advantage function Evaluate the current strategy and update the value network parameters : Set the value network update formula: in, The state value representing the state of the agent, represents the discount factor, reflecting the importance of future earnings; Establishing the strongest attack evaluation network includes: Face the current strategy to the strongest attack Action Value Defined as: Set the strongest attack evaluation network update formula: in, Indicates the range of disturbance of the action. The agent state is represented by quilt The state after attack interference; Establishing the strategy network includes: Get the policy gradient loss function of the reinforcement learning algorithm: Set the policy network robust update formula: By combining the policy gradient loss function and the policy network robust update formula through balancing weights, we get the overall loss function of the policy network: in, Representation strategy In Status Next action The probability of represents the balance weight; The scheduling execution module is used to solve the constructed Markov decision model through the robust reinforcement learning algorithm and output the optimal scheduling strategy so that the electric vehicle charging scheduling decision is optimally scheduled under the optimal scheduling strategy, including: Step 1: Define the solution input and solution output. The solution input includes the charging electricity price, the battery status of the electric vehicle at each charging point, and the remaining charging time. The solution output includes the charging and discharging strategy of each charging point, corresponding to the strategy network parameters after the update iteration is completed; Step 2: Initialize the number of iterations, balance weight, strategy network, value network, strongest attack evaluation network, and the network parameters corresponding to the strategy network, value network, and strongest attack evaluation network; Step 3: Get the current agent state As input to the policy network; Step 4: The policy network outputs the charging and discharging actions of each charging point as agent actions, executes the corresponding actions, and obtains agent rewards; Step 5: Entering the next moment, the state of the agent is Transfer to , a set of trajectory sequences are collected ; Step 6: Update the parameters of the value network : Step 7: Calculate the state The strongest attack : Step 8: Update the strongest attack evaluation network parameters : Step 9: Update policy network parameters : Step 10: Repeat steps 3-9 until the number of iterations is reached, and return the policy network parameters after iterative update.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Cluster electric vehicle charging behavior optimization method based on deep reinforcement learning
CN111934335A
Electric vehicle charging guide strategy method based on hierarchical deep reinforcement learning
CN114117910A
Intelligent power grid state recovery method and system based on deep reinforcement learning
CN115118477A
Method for attacking global data distribution in federated learning scene
CN116192424A
Robust confrontation training framework for multi-agent reinforcement learning energy system
CN116306903A
