Electric vehicle V2G idle time discharge pricing method based on multi-master multi-slave Steinberg game

Through the multi-master multi-slave Steinberg game and MALPPO algorithm, the problem of multi-operator interaction and privacy protection in V2G discharge pricing of electric vehicles is solved, achieving more reasonable power distribution and maximizing user interests, and improving the efficiency of power grid regulation.

CN118608183APending Publication Date: 2024-09-06GUANGXI POWER GRID CO LIUZHOU POWER SUPPLY BUREAU
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410712548.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing V2G discharge pricing method for electric vehicles fails to effectively consider the competition and cooperation between multiple operators, making it difficult to model user interests and satisfaction in complex scenarios, and traditional algorithms fail in the Steinberg game. There are privacy protection and information incompleteness issues, high time complexity, and difficulty in quickly converging to the game equilibrium solution.

Method used

An electric vehicle V2G idle time discharge pricing method based on the multi-master multi-slave Steinberg game is adopted. By simulating the interaction between operators and users, taking into account factors such as user queue waiting time, discharge amount and power restrictions, the MALPPO algorithm is introduced to solve privacy issues. Protection and information incompleteness issues to achieve faster convergence of game equilibrium solutions.

Benefits of technology

It achieves more reasonable distribution and pricing of electric energy, improves the utilization efficiency of electric vehicle batteries as distributed energy storage units, contributes to real-time regulation and peak-shaving auxiliary services of the power grid, and helps electric vehicle users and operators maximize their benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608183A
    Figure CN118608183A
Patent Text Reader

Abstract

The invention discloses a multi-master multi-slave Stackelberg game-based electric vehicle V2G idle discharge pricing method, and relates to the technical field of electric vehicle discharge pricing. Comprising the following steps: S1, carrying out multi-master multi-slave Steinberg game modeling based on a V2G idle discharge pricing problem; carrying out multi-master multi-slave Stackelberg game model training on the electric vehicle user agent and the provider agent; s2, determining an electric vehicle user agent and a provider agent participating in the idle discharge game; s3, the electric vehicle user intelligent agent determines the discharge selling price according to the discharge loss cost and a discharge time delay model; s4, the provider agent determines a discharge capacity demand according to a frequency modulation satisfaction function and a social relation function; and S5, obtaining a Steinberg game result, and carrying out V2G discharge according to the Steinberg game result. According to the invention, a resource transaction game between a plurality of charging and discharging providers and a plurality of electric vehicle users can be considered, and a more reasonable electric energy distribution and pricing method is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric vehicle discharge pricing, and in particular to an electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game. Background Art

[0002] With the rapid development of the global new energy industry, electric vehicles are gradually becoming the main choice for residents' daily travel. The widespread use of electric vehicles has brought about a significant increase in the demand for electricity, especially during peak hours, when a large number of electric vehicles charging at the same time will cause a huge load on the power grid. In order to alleviate this problem, vehicle-to-grid (V2G) technology came into being. V2G technology allows electric vehicles to feed back stored energy to the grid when the grid demand is peak, thereby realizing a two-way flow of electricity. The battery packs of electric vehicles can be regarded as distributed energy storage units, which can not only store electricity, but also provide electricity when the grid needs it. This flexibility provides new possibilities for real-time regulation and peak-shaving auxiliary services of the power grid, which helps to improve the operating efficiency and regulation capabilities of the power system.

[0003] Although V2G technology offers great potential, it still faces many challenges in its implementation, such as the rationality of the pricing mechanism, the incentives for electric vehicle owners to participate, and the cooperative and competitive nature of electric vehicle charging and discharging agents. At present, electric vehicle charging and discharging agents mostly set the charging and discharging prices for V2G based on the basic indicators of the power grid, without fully considering the interests and satisfaction of users.

[0004] 1) The existing method of pricing electric vehicle discharge by electric vehicle operators only considers the pricing game between a single operator and multiple electric vehicles, and does not consider the competition and cooperation relationship between multiple operators. As a result, the existing discharge pricing method is difficult to apply to complex V2G scenarios, and the modeling of user interests and satisfaction is not perfect enough.

[0005] 2) Traditional heuristic algorithms require complete information about the environment when solving the Steinberg game equilibrium solution. However, due to competition and privacy concerns, each game participant is unwilling to disclose their private information. On the other hand, heuristic algorithms are usually one-time algorithms with high time complexity. Slight changes in the game model will cause the algorithm to be re-iterated to obtain the optimal solution.

[0006] This patent aims to propose a pricing method for off-peak discharge of electric vehicles (V2G) based on multi-master and multi-slave Steinberg game to address the above challenges and fully utilize the potential of electric vehicles as distributed energy storage units. Summary of the invention

[0007] In view of the shortcomings of the above-mentioned prior art, the present invention provides a method for pricing electric vehicle V2G off-peak discharge based on multi-master and multi-slave Steinberg game. In order to encourage more electric vehicles to participate in V2G services, in the present invention, electric vehicle operators comprehensively consider factors such as other operators' pricing, frequency modulation satisfaction, social relations, etc. to conduct discharge pricing, and electric vehicles consider elements such as user queuing waiting time, discharge amount, and discharge power limit to make discharge amount decisions.

[0008] It can solve the privacy protection problem and incomplete information problem of both parties in the Steinberg game, and compared with other baseline algorithms, it can converge to the game equilibrium solution more quickly and achieve better performance.

[0009] The specific technical solutions are as follows:

[0010] A method for pricing electric vehicle V2G off-peak discharge based on multi-master and multi-slave Steinberg game, comprising:

[0011] S1. Modeling of multi-master and multi-slave Steinberg game based on V2G off-peak discharge pricing problem; and training of multi-master and multi-slave Steinberg game model for electric vehicle user agents and provider agents;

[0012] S2. Determine the electric vehicle user agent and provider agent that participate in the off-peak discharge game;

[0013] S3. The electric vehicle user agent determines the discharge price according to the discharge loss cost and discharge delay model;

[0014] S4. The provider agent determines its discharge demand according to the frequency modulation satisfaction function and the social relationship function;

[0015] S5. Obtain a Steinberg game result, and perform V2G discharge according to the Steinberg game result.

[0016] As a preferred embodiment of the above solution, the multi-master and multi-slave Steinberg game model training in step S1 includes:

[0017] Step S11. Determine whether the electric vehicle user or provider agent participating in V2G off-peak discharge pricing has been trained, if not, go to step 12, otherwise go to step 18;

[0018] Step S12. Initialize the total number of training rounds, number of updates, batch size, and agent network parameters;

[0019] Step S13: Reset the game environment of the V2G charging and discharging process, determine the game object, and clear the playback buffer pool;

[0020] Step S14. The electric vehicle agent observes the variable ot j Input the network to obtain the discharge price decision;

[0021] Step S15. The provider agent observes the variable o t i Input the network to obtain the discharge and purchase quantity vector;

[0022] Step S16. Update the state S of the gaming environment t and calculating rewards based on the utility functions of the electric vehicle users and the provider users;

[0023] Step S17. Determine whether the update condition t%|B|=0 is met. If the update condition is met, batch sample data and calculate the loss of the policy network and the critic network according to the loss function formula, and use the network update formula to update the network parameters;

[0024] Step S18. Determine whether the round limit has been reached. If not, return to step 12. If reached, training is completed.

[0025] As a preferred embodiment of the above solution, the multi-master and multi-slave Steinberg game modeling in step S1 includes:

[0026] Define the follower problem and the leader problem together to form the Steinberg game, the goal is to find the game equilibrium solution to maximize the utility of all game participants;

[0027] Two stages are set up. In the first stage, the electric vehicle is taken as the leader, and the discharge price sold to each provider is determined first. In the second stage, the provider is taken as the follower, and its discharge quantity is determined according to its satisfaction coefficient and social relationship function. Given the discharge price of the electric vehicle and the discharge quantity demand of the provider;

[0028] The follower problem is defined as follows:

[0029]

[0030] The constraints include:

[0031]

[0032] P jmin ≤P j,d ≤P jmax (11.2)

[0033] P jmax =min(15,V j ×2I j ) (11.3)

[0034]

[0035] In the formula, represents the utility function of charging and discharging provider i, q -i represents the power demand of the remaining charging and discharging providers except i, P represents the discharge price of all electric vehicle users, V j Indicates the actual discharge voltage of the electric vehicle, I j Depending on the electric vehicle battery model, represents the upper limit of delay tolerance, q i represents the power demand of charging and discharging provider i, Indicates the minimum value of discharge capacity. Indicates the maximum value of discharge capacity, P j,d represents the discharge power of electric vehicle j, P jmin represents the minimum discharge power of electric vehicle j, P jmax represents the minimum value of the electric vehicle j discharge power, T ij represents the V2G discharge delay of EV user j;

[0036] The leader problem is defined as follows:

[0037]

[0038] stp min ≤p j ≤p max (12.1)

[0039] in, represents the utility function of electric vehicle j, p j represents the discharge price proposed by electric vehicle j, P -j represents the discharge price of other electric vehicles except j, q represents the discharge demand of all charging and discharging providers, and p min is the lower limit of the discharge price, p max The upper limit of the discharge electricity price.

[0040] As a preferred embodiment of the above scheme, the process of solving the game equilibrium solution includes:

[0041] The multi-leader multi-follower game is represented as a multi-agent partially observable Markov decision process, represented by the tuple Representation, including state space, observation space, action space, state transition probability function set and reward function;

[0042] The definition is as follows:

[0043] State space: In the current decision round t (t∈{1,2,…,T}), the state space is defined as the current electric vehicle pricing strategy P t , the provider's power demand strategy qt , task arrival rate and task processing rate Formally,

[0044] Partially observable space: The observation space of electric vehicle agent j can be expressed as

[0045]

[0046] Observation space representation of provider agent i: P t-L and q t-L Are randomly generated in the initial stage when t < L;

[0047] Action space: After receiving the observation result , electric vehicle agent j takes a pricing action aimed at maximizing the utility The provider agent determines the power demand vector after receiving the observation

[0048] Reward function: According to the actions taken by all agents, the system state is transformed according to the state transition probability function ; Each agent receives an immediate reward corresponding to the current state and the actions taken; The reward functions of electric vehicles and providers are defined as follows:

[0049]

[0050] Where, Represents the observation space of electric vehicle j at time t, Represents the discharging selling price of electric vehicle j at time t, Represents the utility function of electric vehicle j, p j Represents the discharging selling price of electric vehicle j, P represents the discharging selling prices of all electric vehicles, q represents the discharging quantity demands of all charging and discharging providers, Represents the discharging quantity demand of charging and discharging provider i at time t, Represents the utility function of charging and discharging provider i, q i Represents the discharging quantity demand of charging and discharging provider i, θ ij Represents the pairing probability between electric vehicles and providers, Represents the time delay required for electric vehicle j to perform V2G discharging at charging and discharging provider i, Represents the upper limit of the time delay tolerance of electric vehicle j for V2G discharging.

[0051] As an optimization of the above solution, in step S3: ​

[0052] Discharge loss cost of electric vehicles:

[0053] Electric Vehicles The cycle loss C of each 1Ah battery discharge in the V2G process j,d It is expressed as follows:

[0054]

[0055] T j,energy =L j,N C j,B η j,D (2)

[0056]

[0057] Among them, C j,c represents the investment cost of the battery, T j,energy Indicates the cumulative capacity of all complete charge and discharge cycles, L j,N It is the total number of charge and discharge cycles during the battery life at a discharge depth of 0.8; C j,B is the initial capacity of the battery, η j,D is the influence factor of V2G on battery cycle life, x 1 and x 2 Indicates the battery loss characteristic constant, DOD j is the battery discharge depth;

[0058] Electric vehicle discharge delay model:

[0059] The discharge delay of electric vehicles is divided into two parts: queuing time and discharge time;

[0060] 1) Queuing time: According to the queuing theory, the discharge queue of each charging station conforms to an M / M / 1 queue model. Then, the discharge queue of electric vehicle j at the charging station The queuing delay can be expressed as:

[0061]

[0062] where μ i represents the discharge processing rate of charging station i, λ i represents the electric vehicle arrival rate;

[0063] 2) Discharge time:

[0064]

[0065] Among them, η j,d Represents the discharge efficiency of electric vehicles, P j,d represents the discharge power of the electric vehicle, q ij Indicates a given discharge capacity.

[0066] As a preferred embodiment of the above scheme, in step S4:

[0067] The frequency modulation satisfaction function of provider i is defined as a linear quadratic function as follows:

[0068]

[0069] Among them, α i represents the maximum internal satisfaction, β i Indicates the purchase of discharge resources q ij The sensitivity of i >0 and β i >0.

[0070] As a preferred embodiment of the above solution, in step S16:

[0071] The utility function of the provider user is expressed as:

[0072]

[0073] The utility function of the electric vehicle user is expressed as:

[0074]

[0075] In formula (9) and formula (10), α i represents the maximum internal satisfaction, β i Indicates the purchase of discharge resources q ij The sensitivity of i >0 and β i >0; i represents the number of charging stations, j represents the number of electric vehicles, and p j represents the discharge price of electric vehicle j, p l represents the discharge price of electric vehicle l, w ik represents the social relationship between charging and discharging providers i and k, q kj represents the discharge amount of electric vehicle j at the charging and discharging provider k, p j represents the discharge price of electric vehicle j, C j,d Indicates the cycle loss of electric vehicle battery discharge, represents the probability of a fixed pairing between an electric vehicle and a provider, represents the frequency modulation satisfaction function, Represents the social relationship function.

[0076] As a preferred embodiment of the above solution, in step S17:

[0077] The loss function formulas for updating the policy network and the loss function formulas for updating the critic network are expressed by formula (15) and formula (20) respectively:

[0078]

[0079] in, represents the empirical average reward of a batch of samples, r t (θ k ) is the importance ratio, A(o t ,a t ) is the estimator of the advantage function using the generalized advantage estimation method, is a hyperparameter, represents the total discounted reward from time step t to the end of the episode;

[0080] The update formulas of the policy network and the critic network are expressed by (19) and (20) respectively:

[0081]

[0082] Among them, l α is the learning rate of the policy network, Represents the total discounted reward from time step t to the end of the round. Compared with the prior art, the beneficial effects of the present invention are:

[0083] The present invention proposes a pricing method for V2G off-peak discharge of electric vehicles based on multi-master and multi-slave Steinberg game, aiming to achieve more reasonable power distribution and pricing by simulating the interaction between operators and users; the MALPPO algorithm is introduced to solve the problems of privacy protection and information incompleteness in the game process, thereby improving the utilization efficiency of electric vehicle batteries as distributed energy storage units, which is helpful for real-time regulation and peak load auxiliary services of the power grid. The simulation experiment results show that the technical solution of the present invention can effectively help electric vehicle users and operators maximize the interests of both parties.

[0084] The present invention can simultaneously consider the resource trading game between multiple charging and discharging providers and multiple electric vehicle users, and can achieve a more reasonable electric energy distribution and pricing method.

[0085] The present invention introduces the social relationship effect between charging and discharging providers and establishes a power grid frequency regulation satisfaction model, which is helpful for the real-time regulation and peak regulation auxiliary services of the power grid.

[0086] The present invention takes into account the delay tolerance coefficient of electric vehicle users' discharge, comprehensively considers the discharge delay and the queuing delay, and comprehensively considers the user's interests and the satisfaction of the power grid provider.

[0087] The present invention can solve the privacy protection problem and incomplete information problem of both parties in the Steinberg game process, and can converge to the game equilibrium solution more quickly and obtain better performance compared with other baseline algorithms. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] Figure 1 This is the system model diagram of V2G off-peak discharge pricing;

[0089] Figure 2 This is a schematic diagram of the steps of the V2G off-peak discharge pricing method for electric vehicles of the present invention;

[0090] Figure 3 It is a schematic diagram of the game training steps of the present invention;

[0091] Figure 4 This is a flow chart of the off-peak discharge pricing of electric vehicles V2G based on multi-master and multi-slave Steinberg game;

[0092] Figure 5 It is a comparison diagram of the proposed MALPPO for solving V2G off-peak discharge pricing method and other baseline algorithms;

[0093] Figure 6 It is a graph showing the changes in the utility of providers and electric vehicles during the training of the MALPPO algorithm. DETAILED DESCRIPTION

[0094] The following is a further detailed description of the embodiments of the invention in conjunction with the accompanying drawings to make the objectives, technical solutions and technical effects of the invention more clearly presented.

[0095] The existing methods for pricing electric vehicle V2G discharge electricity prices are mainly the following:

[0096] 1) Considering the interaction and coordination between power generation enterprises and energy users, the auction model of static Bayesian game is used to analyze the bidding network problem between different charging and discharging agents;

[0097] 2) Considering the impact of time-of-use pricing on the charging and discharging behavior of electric vehicles, the travel demand of electric vehicles as well as energy and power constraints are analyzed, and an optimal scheduling method for multiple electric aggregators is proposed;

[0098] 3) The optimal dispatching strategy of electric vehicle aggregators considering the interaction of multiple interests among electric vehicles, aggregators and distribution networks;

[0099] 4) Consider the factors that affect the electricity price of electric vehicles and analyze the pricing strategy that maximizes the benefits among the power grid, government, and electric vehicles;

[0100] 5) Considering the Steinberg master-slave game model of electric vehicle operators and electric vehicle revenues, the effective set algorithm is used to optimize the operators' own interests and the differential evolution algorithm is used to optimize the electric vehicle revenues.

[0101] 6) Considering that electric vehicles have different preferences for charging and discharging at different times, the interaction between electric vehicle operators and electric vehicles is formulated as an optimal contract design problem, and the optimal contract with regular distribution is described.

[0102] like Figure 1 As shown in the figure, a system model diagram of V2G off-peak discharge pricing for electric vehicles is shown. Each charging station consists of multiple V2G charging piles, natural power generation equipment and electric energy storage equipment. The natural power generation equipment includes but is not limited to renewable energy technologies such as solar photovoltaic panels and wind turbines, which can directly generate electricity from natural energy to provide a clean and green source of electricity for the charging station. The electric energy storage equipment is used to store excess electricity or release electricity during peak demand to balance the supply and demand fluctuations of the power grid. In addition, the power plant provides electricity to the charging piles through its power generation facilities, such as hydropower and thermal power, through the high-voltage transmission network.

[0103] In this embodiment, we consider Charge and discharge providers and Electric vehicles participate in V2G off-peak discharge pricing, and a charging and discharging provider can own multiple charging stations. In order to protect the interests of electric vehicle users, each electric vehicle user will first determine his or her own discharge pricing, and then the charging and discharging provider will determine the discharge purchase amount based on the given discharge electricity price. The discharge pricing vector of all electric vehicles is defined as The discharge power required by all charging and discharging providers is vector in Represents the discharge power vector purchased by charging and discharging provider i from all providers.

[0104] like Figure 1 As shown, it is a schematic diagram of the steps of the V2G idle time discharge pricing method of electric vehicles of the present invention, which specifically includes:

[0105] S1. Modeling of multi-master and multi-slave Steinberg game based on V2G off-peak discharge pricing problem; and training of multi-master and multi-slave Steinberg game model for electric vehicle user agents and provider agents;

[0106] S2. Determine the electric vehicle user agent and provider agent that participate in the off-peak discharge game;

[0107] S3. The electric vehicle user agent determines the discharge price according to the discharge loss cost and discharge delay model;

[0108] S4. The provider agent determines its discharge demand according to the frequency modulation satisfaction function and the social relationship function;

[0109] S5. Obtain a Steinberg game result, and perform V2G discharge according to the Steinberg game result.

[0110] The present invention first models and then trains the electric vehicle user agent and the provider agent, so that all subsequent discharge pricing games only need to determine the game entities and then the agents can make intelligent decisions.

[0111] like Figure 2 As shown, it is a schematic diagram of the game training steps, specifically the multi-master and multi-slave Steinberg game model training steps in step S1, which specifically include:

[0112] Step S11. Determine whether the electric vehicle user or provider agent participating in V2G off-peak discharge pricing has been trained, if not, go to step 12, otherwise go to step 18;

[0113] Step S12. Initialize the total number of training rounds, number of updates, batch size, and agent network parameters;

[0114] Step S13: Reset the game environment of the V2G charging and discharging process, determine the game object, and clear the playback buffer pool;

[0115] Step S14. The electric vehicle agent observes the variable o t j Input the network to obtain the discharge price decision;

[0116] Step S15. The provider agent observes the variable o t i Input the network to obtain the discharge and purchase quantity vector;

[0117] Step S16. Update the state S of the gaming environment t and calculating rewards based on the utility functions of the electric vehicle users and the provider users;

[0118] Step S17. Determine whether the update condition t%|B|=0 is met. If the update condition is met, batch sample data and calculate the loss according to the loss function formula, and use the network update formula to update the network parameters;

[0119] Step S18. Determine whether the round limit has been reached. If not, return to step 12. If reached, training is completed.

[0120] like Figure 3 As shown, it is a flowchart of the V2G off-peak discharge pricing of electric vehicles based on multi-master and multi-slave Steinberg game, which specifically includes:

[0121] Step 1: If the electric vehicle user or provider agent participating in V2G off-peak discharge pricing is not trained, go to step 2, otherwise go to step 8

[0122] Step 2: Initialize the total number of training rounds, number of updates, batch size, and agent network parameters

[0123] Step 3: Reset the game environment of the V2G charging and discharging process, determine the game object, and clear the playback buffer pool

[0124] Step 4: The electric vehicle agent observes the variable o t j Input network to get the discharge price decision

[0125] Step 5: The electric vehicle provider agent calculates the value of the observed variable o. t i Input the network to get the discharge and purchase quantity vector

[0126] Step 6: Update the state S of the game environment t The rewards are calculated based on the utility functions of electric vehicle users and service provider users.

[0127] Step 7: Determine whether the update condition t%|B|=0 is met. If the update condition is met, batch sample the data and calculate the loss according to the loss function formula, and use the network update formula to update the network parameters.

[0128] Step 8: Determine whether the round limit has been reached. If not, return to step 2. If reached, training is completed.

[0129] Step 9: Determine the electric vehicle users and providers participating in the idle time discharge game

[0130] Step 10: The electric vehicle user agent determines the discharge price based on the discharge loss cost, queuing delay, discharge delay, etc.

[0131] Step 11: The electric vehicle provider agent determines its discharge capacity demand based on frequency regulation satisfaction, social relationships, etc.

[0132] Step 12: Perform V2G discharge according to the above Steinberg game result.

[0133] The following introduces the construction of the off-peak discharge pricing problem of electric vehicles V2G based on multi-master and multi-slave Steinberg game, and uses the MALPPO algorithm to learn the game equilibrium solution under privacy protection conditions.

[0134] The multi-master and multi-slave Steinberg game modeling includes:

[0135] Define the follower problem and the leader problem together to form the Steinberg game, the goal is to find the game equilibrium solution to maximize the utility of all game participants;

[0136] Two stages are set up. In the first stage, the electric vehicle is taken as the leader and the discharge electricity price sold to each provider is determined first. In the second stage, the provider is taken as the follower and its discharge quantity is determined according to its satisfaction coefficient and social benefits. Given the discharge power of the electric vehicle and the discharge electricity price of other providers;

[0137] The follower problem is defined as follows:

[0138]

[0139] The constraints include:

[0140]

[0141] P jmin ≤P j,d ≤P jmax (11.2)

[0142] P jmax =min(15,V j ×2I j ) (11.3)

[0143]

[0144] In the formula, represents the utility function of charging and discharging provider i, q -i represents the power demand of the remaining charging and discharging providers except i, P represents the discharge price of all electric vehicle users, V j Indicates the actual discharge voltage of the electric vehicle, I j Depending on the electric vehicle battery model, represents the upper limit of delay tolerance, q i represents the power demand of charging and discharging provider i, Indicates the minimum value of discharge capacity. Indicates the maximum value of discharge capacity, P j,d represents the discharge power of electric vehicle j, P jmin represents the minimum discharge power of electric vehicle j, P jmax represents the minimum value of the electric vehicle j discharge power, T ij represents the V2G discharge delay of EV user j;

[0145] The leader problem is defined as follows:

[0146]

[0147] stp min ≤p j ≤pmax (12.1)

[0148] Among them, represents the utility function of electric vehicle j, p j represents the selling price of discharging proposed by electric vehicle j, P -j represents the selling price of discharging of other electric vehicles except j, q represents the discharging volume demand of all charging and discharging providers, p min is the lower limit of the discharging electricity price, p max is the upper limit of the discharging electricity price.

[0149] The solution of the game equilibrium includes:

[0150] To utilize deep reinforcement learning, first, the multi-leader multi-follower game is represented as a multi-agent partially observable Markov decision process (POMDP), which is represented by the tuple and includes the state space, observation space, action space, state transition probability function set, and reward function. The detailed definitions of each term are as follows.

[0151] State space: In the current decision-making round t (t ∈ {1, 2, …, T}), the state space is defined as the pricing strategy P of the current electric vehicle t , the electricity demand strategy q of the provider t , the task arrival rate and the task processing rate Formally,

[0152] Partially observable space: Due to privacy protection reasons, each agent cannot observe the complete state of the environment. In off-peak pricing, the agent makes decisions only based on its local observations within the formulated partially observable space. At the beginning of each training round t, electric vehicle j first determines the pricing strategy based on the historical pricing strategies of the past L rounds and the historical electricity demand strategies of the provider. Therefore, the observation space of electric vehicle j can be represented as Subsequently, provider i determines its electricity purchase strategy based on the historical pricing strategies of electric vehicles, the historical electricity demand strategies of other providers, the task arrival rate and the task processing rate P t-L and q t-L are randomly generated in the initial stage when t < L.

[0153] Action space: After receiving the observation result Finally, the EV agent j needs to take pricing actions aimed at maximizing utility Unlike electric vehicles, providers receive observations Then determine the power demand vector Rather than a single action.

[0154] Reward function: Based on the actions taken by all agents, the system state is converted into a state transition probability function Each agent then receives an immediate reward corresponding to the current state and the action taken. The reward functions for EVs and providers are consistent with the utility functions in and can be defined as follows:

[0155]

[0156] in, represents the observation space of electric vehicle j at time t, represents the discharge price of electric vehicle j at time t, represents the utility function of electric vehicle j, p j represents the discharge price of electric vehicle j, P represents the discharge price of all electric vehicles, q represents the discharge demand of all charging and discharging providers, represents the discharge capacity demand of charging and discharging provider i at time t, represents the utility function of charging and discharging provider i, q i represents the discharge capacity demand of charging and discharging provider i, θ ij represents the pairing probability between electric vehicles and providers, represents the time delay required for electric vehicle j to perform V2G discharge at charging and discharging provider i, It represents the upper limit of the delay tolerance of electric vehicle j for V2G discharge.

[0157] The Steinberg game environment consists of M electric vehicles as leaders and N providers as followers. Each game participant is an agent that uses a reinforcement learning controller to make decisions. The electric vehicle agent uses its reinforcement learning controller to determine the price of electricity sales, while the provider agent uses its reinforcement learning controller to decide the discharge electricity purchased from each electric vehicle. Each controller k consists of a participant network Evaluator Network Replay Buffer Policy optimizer and value optimizer. Here, θ k and ω k denote the parameters of the participants and evaluators, respectively.

[0158] Proximal Policy Optimization (PPO) is a model-free, online policy-based algorithm that has shown excellent performance in many resource allocation tasks. The algorithm adopts a fully decentralized PPO training method, where each agent has a decentralized participant and a decentralized evaluator. In addition, in order to accelerate convergence and mitigate the risk of falling into local optimality during training, a Long Short-Term Memory (LSTM) network is used as the infrastructure for participants and evaluators. Both the participant and evaluator networks consist of two multi-layer perceptrons (MLPs). The local observation variables are used as input to the MLP to extract the feature vector, which is subsequently input into the LSTM network with two hidden layers. The memory units in the LSTM network dynamically manage information retention and forgetting. Finally, the output of the action or state value is obtained through two MLPs.

[0159] Strategy optimization method and value function update method. The strategy iteration objective is defined as:

[0160]

[0161] in,

[0162]

[0163] here represents the empirical average reward of a batch of samples, r t (θ k ) is the importance ratio, A(o t ,a t ) is an estimator of the advantage function using the generalized advantage estimation method and is a hyperparameter. Policy Network The update is done by mini-batch stochastic gradient ascent method as follows:

[0164]

[0165] Among them l α is the learning rate of the policy network. The loss function used to update the critic network is defined as

[0166]

[0167] in represents the total discounted reward from time step t to the end of the episode. The critic network is updated by mini-batch stochastic gradient descent as follows:

[0168]

[0169] Among them l βIn the above-mentioned electric vehicle V2G off-peak discharge pricing method based on multi-master and multi-slave Steinberg game, the loss function formulas mentioned in step 7 are respectively expressed by formula (15) and formula (20), and the network update formulas are respectively expressed by (19) and (20).

[0170] The frequency modulation satisfaction function and the social relationship function are both part of the provider's utility function, and the intelligent agent will choose the discharge demand decision that can maximize its utility.

[0171] In the above-mentioned electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game, the electric vehicle discharge loss cost, queuing delay and discharge delay in step 10 are calculated as follows:

[0172] (1) Discharge loss cost of electric vehicles:

[0173] Electric Vehicles The cycle loss C of each 1Ah battery discharge in the V2G process j,d It is expressed as follows:

[0174]

[0175] Among them C j,c represents the investment cost of the battery, T j,energy Indicates the cumulative capacity of all complete charge and discharge cycles, L j,N It is the total number of charge and discharge cycles during the battery life at a discharge depth of 0.8; C j,B is the initial capacity of the battery, η j,D is the influence factor of V2G on battery cycle life, x 1 and x 2 Indicates the battery loss characteristic constant, DOD j is the battery discharge depth.

[0176] The discharge loss cost is part of the utility function of electric vehicle users. The discharge delay model is the constraint formula (11.5) of the optimization problem. In the reinforcement learning algorithm, formula (14) is a constraint of the reward function. Therefore, the intelligent agent will consider these two factors comprehensively when deciding the discharge price.

[0177] (2) Electric vehicle discharge delay model:

[0178] The discharge delay of electric vehicles is divided into two parts: queuing time and discharge time. 1) Queuing time: According to the queuing theory, considering that the discharge queue of each charging station conforms to an M / M / 1 queue model, then electric vehicle j is The queuing delay can be expressed as:

[0179]

[0180] where μ i represents the discharge processing rate of charging station i, λ i represents the arrival rate of electric vehicles. 2) Discharge time: define η j,d Represents the discharge efficiency of electric vehicles, P j,d represents the discharge power of the electric vehicle, then given the discharge power q ij , the discharge time of electric vehicles can be expressed as

[0181]

[0182] In the above-mentioned electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game, the utility functions of the electric vehicle users and electric vehicle providers in step 6 and their corresponding constraints are expressed as follows:

[0183] (3) Electric vehicle providers and electric vehicle utility function modeling:

[0184] In the many-to-many Steinberg game, the resource pricing of the provider can largely determine the incentive selection of the electric vehicle. Therefore, consider that the electric vehicle follows a probabilistic decision model to select a matching provider for discharge. The pairing probability θ between electric vehicle i and provider j is ij It is proportional to the inverse of the discharge pricing of electric vehicle j and can be expressed as:

[0185]

[0186] In the electric vehicle V2G process, electric vehicles are the holders of electric resources, and providers rely on the resources discharged by electric vehicles to achieve peak load assistance for the power grid. Purchasing sufficient electric resources can help providers to reversely assist the power grid load to the greatest extent, improve the quality of power supply, and solve the randomness and intermittency problems of new energy power generation. The frequency regulation satisfaction function of provider i is defined as a linear quadratic function as follows:

[0187]

[0188] where α i represents the maximum internal satisfaction, β i Indicates the purchase of discharge resources q ij The sensitivity of i >0 and β i > 0. This concave linear quadratic function means that the internal benefit from participating in the transaction increases as the marginal benefit decreases. After completing the V2G discharge, the provider needs to pay the electric vehicle user according to the service level agreement, and the fee is defined as C(q i )=q ij pj .

[0189] The present invention also focuses on the social effect between charging and discharging providers, that is, if two providers belong to the same distribution network, one provider helps the grid to reduce the load during peak hours by increasing the purchase of discharged electricity, which can not only bring potential economic benefits to the provider, but also reduce the overall load of the grid, thereby reducing the risk of grid overload and improving the stability of the grid. This is also beneficial to other providers in the same distribution network, because they can also benefit from the reduced grid load, which may reduce their operating costs and improve service quality. The social relationship between providers is represented by the adjacency matrix The impact between providers is mutual, that is, w ik =w ki .w ik The larger the value, the closer the relationship and the more profound the influence on each other's decision. Therefore, given the discharge purchase volume of other providers, this positive social effect can be expressed as:

[0190]

[0191] In summary, the utility function of the charging and discharging provider can be expressed as:

[0192]

[0193] Given a pairing probability θ ij , the utility function of an electric vehicle can be defined as the difference between the electricity cost paid by the charging provider and the battery loss cost as follows:

[0194]

[0195] In formula (9) and formula (10), α i represents the maximum internal satisfaction, β i Indicates the purchase of discharge resources q ij The sensitivity of i >0 and β i >0; i represents the number of charging stations, j represents the number of electric vehicles, and p j represents the discharge price of electric vehicle j, p l represents the discharge price of electric vehicle l, w ik represents the social relationship between charging and discharging providers i and k, q kj represents the discharge amount of electric vehicle j at the charging and discharging provider k, p j represents the discharge price of electric vehicle j, C j,d Indicates the cycle loss of electric vehicle battery discharge, represents the probability of a fixed pairing between an electric vehicle and a provider, represents the frequency modulation satisfaction function, Represents the social relationship function.

[0196] The process of solving the game equilibrium solution is actually the training process of the intelligent agent. Reinforcement learning training will make the final decision value of the intelligent agent approach the equilibrium solution. When reasoning after the training is completed, the participating electric vehicles and provider entities are input, and the intelligent agent will automatically give the optimal decision value.

[0197] In order to evaluate the proposed electric vehicle V2G idle time pricing method, we conducted a simulation experiment. We considered that there are 2 V2G vehicles and 3 charging and discharging providers participating in this discharge pricing game, and the provider user frequency modulation satisfaction coefficient α i and β i They follow normal distribution and The social relationships between providers follow a normal distribution We set μ α =30,μ β =30,μ w = 5. We compare our algorithm with 8 baseline algorithms:

[0198] MALPPO-RL and MALPPO-RF: downgraded versions of the proposed MALPPO scheme, where the leader EV randomly selects its pricing strategy and the follower providers randomly select their discharge capacity strategies, respectively.

[0199] MAPPO&MAA2C&MADQN: PPO algorithm, A2C algorithm and DQN algorithm in multi-agent environment.

[0200] MALA2C: An improved version of the MAA2C ​​algorithm, where the core network is replaced by LSTM.

[0201] Steinberg equilibrium solution: We use the heuristic algorithm backward induction method to obtain the Steinberg game equilibrium solution under information sharing.

[0202] Random algorithm: All participants randomly select their pricing strategy or demand strategy in the V2GC pricing process.

[0203] like Figure 5-6As shown in Figure 3, our proposed MALPPO algorithm significantly outperforms other algorithms, with the highest reward and fastest convergence speed, while the random method always produces the lowest reward. Compared with the full DRL algorithm, both MALPPO-RL and MALPPO-RF combine random pricing and demand strategies to obtain poor rewards. In terms of reward improvement, our MALPPO algorithm outperforms the ordinary MAPPO method by 1.5%, the MALA2C method by 3.4%, the MAA2C ​​method by 5.3%, the MADQN method by 7.8%, the MALPPO-RF method by 23.2%, the MALPPO-RL method by 35.6%, and the random method by up to 58.2%. For the convergence speed, our algorithm converges in about 200 iterations, while MAPPO, MALA2C, MAA2C, and MADQN are about 600, 1000, 1200, and 1500 iterations, respectively. As the algorithm iterates, the utility of electric vehicles and the utility of charging and discharging providers gradually converge to the Steinberg game equilibrium solution under information sharing. It can be shown that our algorithm can maximize the interests of electric vehicle users and operators under the premise of privacy protection and incomplete privacy.

[0204] The above description is only a preferred feasible embodiment of the present invention and is not intended to limit the scope of the patent application of the present invention. All equivalent changes, equivalent substitutions or modified changes performed within the technical spirit and principles suggested by the present invention should be included in the scope of patent protection covered by the present invention.

Claims

1. A method for pricing electric vehicle V2G off-peak discharge based on multi-master and multi-slave Steinberg game, characterized by: S1. Modeling of multi-master and multi-slave Steinberg game based on V2G off-peak discharge pricing problem; and training of multi-master and multi-slave Steinberg game model for electric vehicle user agents and provider agents; S2. Determine the electric vehicle user agent and provider agent that participate in the off-peak discharge game; S3. The electric vehicle user agent determines the discharge price according to the discharge loss cost and discharge delay model; S4. The provider agent determines its discharge demand according to the frequency modulation satisfaction function and the social relationship function; S5. Obtain a Steinberg game result, and perform V2G discharge according to the Steinberg game result.

2. According to claim 1, a method for pricing electric vehicle V2G off-peak discharge based on multi-master and multi-slave Steinberg game, characterized in that: The multi-master and multi-slave Steinberg game model training in step S1 includes: Step S11. Determine whether the electric vehicle user or provider agent participating in V2G off-peak discharge pricing has been trained, if not, go to step 12, otherwise go to step 18; Step S12. Initialize the total number of training rounds, number of updates, batch size, and agent network parameters; Step S13: Reset the game environment of the V2G charging and discharging process, determine the game object, and clear the playback buffer pool; Step S14. The electric vehicle agent observes the variables Input the network to obtain the discharge price decision; Step S15. The provider agent determines the observed variables Input the network to obtain the discharge and purchase quantity vector; Step S16. Update the state S of the gaming environment t and calculating rewards based on the utility functions of the electric vehicle users and the provider users; Step S17. Determine whether the update condition t%|B|=0 is met. If the update condition is met, batch sample data and calculate the loss of the policy network and the critic network according to the loss function formula, and use the network update formula to update the network parameters; Step S18. Determine whether the round limit has been reached. If not, return to step 12. If reached, training is completed.

3. The electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game according to claim 1 is characterized in that: The multi-master and multi-slave Steinberg game modeling in step S1 includes: Define the follower problem and the leader problem together to form the Steinberg game, the goal is to find the game equilibrium solution to maximize the utility of all game participants; Two stages are set up. In the first stage, the electric vehicle is taken as the leader, and the discharge price sold to each provider is determined first. In the second stage, the provider is taken as the follower, and its discharge quantity is determined according to its satisfaction coefficient and social relationship function. Given the discharge price of the electric vehicle and the discharge quantity demand of the provider; The follower problem is defined as follows: The constraints include: P jmin ≤P j,d ≤P jmax (11.2) P jmax =min(15,V j ×2I j )(11.3) In the formula, represents the utility function of charging and discharging provider i, q -i represents the power demand of the remaining charging and discharging providers except i, P represents the discharge price of all electric vehicle users, V j Indicates the actual discharge voltage of the electric vehicle, I j Depending on the electric vehicle battery model, represents the upper limit of delay tolerance, q i represents the power demand of charging and discharging provider i, Indicates the minimum value of discharge capacity. Indicates the maximum value of discharge capacity, P j,d represents the discharge power of electric vehicle j, P jmin represents the minimum discharge power of electric vehicle j, P jmax represents the minimum value of the electric vehicle j discharge power, T ij represents the V2G discharge delay of EV user j; The leader problem is defined as follows: s.t.p min ≤p j ≤p max (12.1) in, represents the utility function of electric vehicle j, p j represents the discharge price proposed by electric vehicle j, P -j represents the discharge price of other electric vehicles except j, q represents the discharge demand of all charging and discharging providers, and p min is the lower limit of the discharge price, p max The upper limit of the discharge electricity price.

4. The electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game according to claim 3 is characterized in that: The game equilibrium solution solving process includes: The multi-leader multi-follower game is represented as a multi-agent partially observable Markov decision process, represented by the tuple Representation, including state space, observation space, action space, state transition probability function set and reward function; The definition is as follows: State space: In the current decision round t (t∈{1,2,…,T}), the state space is defined as the current electric vehicle pricing strategy P t , the provider's power demand strategy q t , task arrival rate and task processing rate formal, Partially observable space: The observation space of electric vehicle agent j can be expressed as Observation space representation of provider agent i: P t-L and q t-L Randomly generated at the initial stage when t < L; Action Space: Observations Received After that, EV agent j takes pricing actions aimed at maximizing utility The provider agent receives the observation Then determine the power demand vector Reward function: Based on the actions taken by all agents, the system state is converted into a state transition probability function The transition is made; each agent receives an immediate reward corresponding to the current state and the action taken; the reward functions for the EV and the provider are defined as follows: in, represents the observation space of electric vehicle j at time t, represents the discharge price of electric vehicle j at time t, represents the utility function of electric vehicle j, p j represents the discharge price of electric vehicle j, P represents the discharge price of all electric vehicles, q represents the discharge demand of all charging and discharging providers, represents the discharge capacity demand of charging and discharging provider i at time t, represents the utility function of charging and discharging provider i, q i represents the discharge capacity demand of charging and discharging provider i, θ ij represents the pairing probability between electric vehicles and providers, represents the time delay required for electric vehicle j to perform V2G discharge at charging and discharging provider i, It represents the upper limit of the delay tolerance of electric vehicle j for V2G discharge.

5. The electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game according to claim 1 is characterized in that: In step S3: Discharge loss cost of electric vehicles: Electric Vehicles The cycle loss C of each 1Ah battery discharge in the V2G process j,d It is expressed as follows: T j,energy =L j,N C j,B or j,D (2) Among them, C j,c represents the investment cost of the battery, T j,energy Indicates the cumulative capacity of all complete charge and discharge cycles, L j,N It is the total number of charge and discharge cycles during the battery life at a discharge depth of 0.8; C j,B is the initial capacity of the battery, η j,D is the influence factor of V2G on battery cycle life, x1 and x2 represent battery loss characteristic constants, DOD j is the battery discharge depth; Electric vehicle discharge delay model: The discharge delay of electric vehicles is divided into two parts: queuing time and discharge time; 1) Queuing time: According to the queuing theory, the discharge queue of each charging station conforms to an M / M / 1 queue model. Then, the discharge queue of electric vehicle j at the charging station The queuing delay can be expressed as: where μ i represents the discharge processing rate of charging station i, λ i represents the electric vehicle arrival rate; 2) Discharge time: Among them, η j,d Represents the discharge efficiency of electric vehicles, P j,d represents the discharge power of the electric vehicle, q ij Indicates a given discharge capacity.

6. The electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game according to claim 2 is characterized in that: In step S4: The frequency modulation satisfaction function of provider i is defined as a linear quadratic function as follows: Among them, α i represents the maximum internal satisfaction, β i Indicates the purchase of discharge resources q ij The sensitivity of i >0 and β i >0.

7. The electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game according to claim 2 is characterized in that: In step S16: The utility function of the provider user is expressed as: The utility function of the electric vehicle user is expressed as: In formula (9) and formula (10), α i represents the maximum internal satisfaction, β i Indicates the purchase of discharge resources q ij The sensitivity of i >0 and β i >0; i represents the number of charging stations, j represents the number of electric vehicles, and p j represents the discharge price of electric vehicle j, p l represents the discharge price of electric vehicle l, w ik represents the social relationship between charging and discharging providers i and k, q kj represents the discharge amount of electric vehicle j at the charging and discharging provider k, p j represents the discharge price of electric vehicle j, C j,d Indicates the cycle loss of electric vehicle battery discharge, represents the probability of a fixed pairing between an electric vehicle and a provider, represents the frequency modulation satisfaction function, Represents the social relationship function.

8. The electric vehicle V2G idle time discharge pricing method based on multi-master and multi-slave Steinberg game according to claim 1 is characterized in that: In step S17: The loss function formulas for updating the policy network and the loss function formulas for updating the critic network are expressed by formula (15) and formula (20) respectively: in, represents the empirical average reward of a batch of samples, r t (θ k ) is the importance ratio, A(o t ,a t ) is the estimator of the advantage function using the generalized advantage estimation method, is a hyperparameter, represents the total discounted reward from time step t to the end of the episode; The update formulas of the policy network and the critic network are expressed by (19) and (20) respectively: Among them, l α is the learning rate of the policy network, represents the total discounted reward from time step t to the end of the episode.

Citation Information

Cited By

  • Charging and discharging cooperative scheduling method and system considering real-time electricity price and V2G partition

    CN122390789A