Smart contract energy trading method for electric vehicle charging stations based on blockchain
By using blockchain smart contracts and multi-party secure computing technology in charging stations, the problem of uncertainty in renewable energy supply and privacy leakage in centralized systems is solved, efficient energy transactions and management are achieved, and energy at charging stations is ensured. Supply stability and privacy protection improve the overall operating efficiency of charging stations.
Patent Information
- Application Number
- CN202410800837.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing charging stations face uncertainty and volatility in energy supply when utilizing renewable energy, which is difficult to predict, leading to an increase in the complexity of energy management. Moreover, existing technology relies on centralized systems, which increases the risk of data security and privacy leaks, and fails to coordinate effectively. Energy trading between charging stations fails to maximize the benefits of distributed energy resources.
Using blockchain-based smart contracts and multi-party secure computing technology, energy transactions and management are carried out through a combination of smart contracts and multi-party secure computing, and the decentralization and non-tampering characteristics of the blockchain are used to ensure the transparency and fairness of transactions. , protect the privacy of charging station operations, and calculate the transaction amount through a distributed solving algorithm to complete transactions and payment settlements without directly sharing sensitive information.
It improves the efficiency and cost-effectiveness of charging station energy management, enhances privacy protection, reduces reliance on centralized management, ensures the stability of energy supply and efficiency of transactions, and fully utilizes the potential of renewable energy.
Smart Images

Figure CN118469712B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging stations, and in particular to a smart contract energy trading method for electric vehicle charging stations based on blockchain. Background Art
[0002] With the popularity of electric vehicles and the growing demand for sustainable urban development, the construction and operation of charging stations have become a key link. In this context, charging stations that combine renewable energy (such as wind energy and solar energy) are gaining more and more attention. These charging stations not only reduce dependence on traditional energy, but also help improve energy efficiency and reduce environmental impact.
[0003] However, compared with traditional charging stations, charging stations combined with renewable energy face a series of challenges. First, the uncertainty and volatility of renewable energy make energy supply difficult to predict, which increases the complexity of energy management and scheduling of charging stations.
[0004] Secondly, as the number of charging stations increases and their distribution becomes more widespread, how to efficiently trade and manage energy to achieve a balance between energy supply and demand has become an important issue. In addition, privacy protection is also a challenge that cannot be ignored.
[0005] In the energy trading process, the operational data of charging stations is sensitive information and needs to be properly protected to prevent data leakage and privacy infringement. Existing technologies are insufficient in dealing with these challenges:
[0006] First, existing energy management systems often rely on centralized control and decision-making, which not only increases the system's vulnerability and scalability, but may also lead to data leakage and privacy issues; second, existing energy trading mechanisms often ignore the synergy between charging stations and fail to fully utilize the potential of distributed renewable energy; third, existing solutions have limited effectiveness in dealing with the uncertainty and volatility of renewable energy, and it is difficult to ensure the stability of energy supply at charging stations.
[0007] Therefore, the existing technologies have the following disadvantages: Centralization risk: Relying on a centralized system increases the risk of data security and privacy leakage. Low efficiency of energy trading: The existing mechanism fails to effectively coordinate energy trading between charging stations and fails to maximize the benefits of distributed energy. Inadequate handling of renewable energy volatility: The existing system is difficult to effectively deal with the uncertainty and volatility of renewable energy.
[0008] In summary, in order to improve the efficiency of energy management at charging stations, ensure the stability of energy supply, and protect the operational privacy of charging stations, a new technical approach is urgently needed. Blockchain technology and smart contracts provide a unique solution. Among them, smart contracts ensure that energy transactions are completed under the premise of protecting the privacy of charging stations, while the blockchain system guarantees the authenticity and integrity of transaction data while reducing the dependence on centralized management agencies. This approach not only enhances privacy protection, but also improves the efficiency and cost-effectiveness of energy management at charging stations. Through this innovative approach, we can better utilize renewable energy, promote the efficient operation of charging station networks, and make important contributions to achieving sustainable urban development. Summary of the invention
[0009] In order to solve the above problems, the present invention provides an electric vehicle charging station smart contract energy trading method based on blockchain. First, a battery swap station energy trading method combining smart contracts and multi-party secure computing: combining smart contracts with multi-party secure computing and applying them to the energy trading and management process between battery swap stations, ensuring the efficiency of the transaction and the privacy protection of the battery swap station operation data. Second, deep integration of block chain technology: through the decentralized and tamper-proof characteristics of blockchain technology, not only the transparency and fairness of the transaction process are ensured, but also the operational privacy of the battery swap station is effectively protected, reducing dependence on centralized management. Third, the application of advanced multi-party secure computing technology: using multi-party secure computing technology, while protecting the privacy of each battery swap station operation data, the amount to be paid by each party is calculated, and the transaction and payment settlement are completed without directly sharing sensitive information.
[0010] To achieve the above-mentioned object, the present invention provides a blockchain-based smart contract energy trading method for electric vehicle charging stations, comprising the following steps: S1, a decision model and solution method for a single charging station;
[0011] S2. Establish a charging station transaction model based on the charging station decision model and design a distributed solution algorithm;
[0012] S3. Based on the distributed solution algorithm, we design and implement the corresponding smart contract algorithm;
[0013] In step S1, the decision model and solution method of a single charging station include the electric vehicle set, charging and discharging decision variables of the charging station, the upper limit of discharge, charging and discharging benefits of the charging station, the power schedule optimization problem of the charging station and the conversion of the convex optimization problem;
[0014] Electric vehicle collection: For charging stations , define arrival at charging station Electric vehicles for collection , each electric vehicle is described by a vector: ,in Representative electric vehicle Arrival time, Representative electric vehicle The departure time, Representative electric vehicle The battery level upon arrival, Representative electric vehicle The battery level when leaving;
[0015] Charging station charging and discharging decision variables: Charging station Need to decide for each electric car At every moment Charge capacity Discharge , then the charging station The charging decision variables are the set , the discharge decision variables are the set When electric cars At the charging station During each moment The amount of charge and discharge cannot exceed the upper limit of charge and discharge:
[0016] ;
[0017] ;
[0018] When electric car Not at a charging station During the period, the amount of charge and discharge at each moment is 0:
[0019] ;
[0020] Moreover, electric vehicles At every moment It is not possible to charge and discharge at the same time, so there are the following non-convex constraints:
[0021] ;
[0022] The efficiency of electric vehicle charging and discharging is defined as Therefore, electric vehicles The amount of electricity increased by charging is , the amount of electricity reduced by discharge is , then electric vehicles The formula for the change in power is:
[0023] ;
[0024] And every moment electric car The charge should be within the battery capacity:
[0025] ;
[0026] In addition, electric vehicles When entering and leaving a charging station, the battery level should be sufficient to meet the requirements of arrival and departure:
[0027] ;
[0028] Charging and discharging revenue of charging station: Charging station The income during the charging and discharging period of electric vehicles includes income and compensation for the discharge of electric vehicles. Time, charging station The net charge amount for electric vehicles is
[0029] ;
[0030] use represent The charging price at the time, then the charging station The charge and discharge benefits at all times are
[0031] ;
[0032] On the other hand, in order to compensate for the loss of electric vehicles due to discharge, charging stations The compensation for all electric vehicles is
[0033] .
[0034] Preferably, in step S1, the energy of the charging station comes from both new energy and grid interaction;
[0035] New energy: Every charging station Equipped with solar power generation or wind power generation, new energy The power generation at the moment is ;and is a random variable that is not determined by the charging station controlled by;
[0036] Grid interaction: Each charging station Need to decide at every moment Electricity purchased from the grid and the amount of electricity sold ; The amount of electricity purchased and sold needs to satisfy the following non-negative constraints:
[0037] .
[0038] Preferably, in step S1, the charging station The definition of revenue includes charging and discharging revenue, electric vehicle compensation, and the net cost of buying and selling electricity with the grid:
[0039] .
[0040] Preferably, in step S2, the charging station energy trading model includes trading variables, trading constraints and trading mechanism design;
[0041] Transaction variables: At each charging station With charging station Trading energy, energy trading volume indicates; when Representative charging station Towards Buying energy, and vice versa selling energy; therefore charging stations The energy trading variable set is ; After energy trading, charging stations To charging station The amount paid is Indicates that when Representative charging station Towards Payment amount; therefore charging station The payment amount variable set is ;
[0042] Transaction constraints: The transaction model is subject to three constraints: market clearing constraints, post-transaction energy balance constraints, and incentive constraints;
[0043] Trading mechanism design: The goal of the trading mechanism is to maximize social welfare; social welfare is defined as the sum of the benefits of all charging stations:
[0044] ;
[0045] in , , , , , .
[0046] Preferably, in step S2, the market clearing constraint: The market clearing constraint ensures that the energy transactions and payment amounts between charging stations are balanced. Specifically, any charging station and between, The amount of electricity purchased is equal to Electricity sold:
[0047] ;
[0048] And any charging station and between, The amount paid is equal to Amount Received:
[0049] ;
[0050] Energy balance constraints after trading: Charging stations In the process of power management and trading, it is necessary to ensure the balance of power, that is, the balance of power demand and power obtained by all electric vehicles.
[0051] ;
[0052] Incentive constraints: When charging stations After participating in energy trading, his income should be higher than that without participating in the transaction. We define charging stations as Benefits of participating in energy trading
[0053] ;
[0054] Therefore, the incentive constraint is defined as:
[0055] ;
[0056] Preferably, in step S3, the problem is decomposed into the following two sub-problems P1 and P2, a distributed algorithm for solving P1 and a distributed algorithm for solving P2.
[0057] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 This is an overall flow chart of the blockchain-based smart contract energy trading method for electric vehicle charging stations of the present invention;
[0059] Figure 2 A schematic diagram of the interaction between smart contracts and charging stations in the blockchain-based smart contract energy trading method for electric vehicle charging stations of the present invention;
[0060] Figure 3 This is a schematic diagram of a smart contract for an electric vehicle charging station smart contract energy trading method based on blockchain according to the present invention. DETAILED DESCRIPTION
[0061] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.
[0062] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.
[0063] Embodiment 1
[0064] like Figure 1-Figure 3 As shown, the present invention provides a blockchain-based electric vehicle charging station smart contract energy trading method, comprising the following steps:
[0065] Charging and discharging management of charging stations:
[0066] Consider having moments, the set of all moments is We consider a total of Charging stations, the corresponding set is .
[0067] Electric vehicle collection: For charging stations , we define arrival at the charging station Electric vehicles for collection . Each electric vehicle is described by a vector: ,in Representative electric vehicle Arrival time, Representative electric vehicle The departure time, Representative electric vehicle The battery level upon arrival, Representative electric vehicle The battery level when you leave.
[0068] Charging station charging and discharging decision variables: Charging station Need to decide for each electric car At every moment Charge capacity Discharge . Then the charging station The charging decision variables are the set ;
[0069] The discharge decision variables are the set .
[0070] When electric car At the charging station During each moment The amount of charge and discharge cannot exceed the upper limit of charge and discharge:
[0071] (1)
[0072] (2)
[0073] When electric car Not at a charging station During the period, the amount of charge and discharge at each moment is 0:
[0074] (3)
[0075] Moreover, electric vehicles At every moment It is not possible to charge and discharge at the same time, so there are the following non-convex constraints:
[0076] (4)
[0077] The efficiency of electric vehicle charging and discharging is defined as , so electric vehicles The amount of electricity increased by charging is , the amount of electricity reduced by discharge is . Electric vehicles The formula for the change in power is:
[0078] (5)
[0079] And every moment electric car The charge should be within the battery capacity:
[0080] (6)
[0081] In addition, electric vehicles When entering and leaving a charging station, the battery level should be sufficient to meet the requirements of arrival and departure:
[0082] (7)
[0083] Charging and discharging revenue of charging station: Charging station The income during the charging and discharging of electric vehicles includes income and compensation for the discharge of electric vehicles. Time, charging station The net charge amount for electric vehicles is:
[0084] (8)
[0085] use represent The charging price at the time, then the charging station The charge and discharge benefits at all times are:
[0086] (9)
[0087] On the other hand, in order to compensate for the loss of electric vehicles due to discharge, charging stations The compensation for all electric vehicles is:
[0088] (10)
[0089] Power management at charging stations:
[0090] The energy for charging stations comes from both new energy and the power grid.
[0091] New energy: Every charging station Equipped with solar power generation or wind power generation, new energy The power generation at the moment is .and is a random variable that is not determined by the charging station controlled.
[0092] Solar power generation: Represents a charging station of solar power installed capacity, represents the solar power generation per unit installed capacity, and is a random variable. Then the solar power generation is:
[0093] (11)
[0094] Wind power generation: Represents a charging station of wind power installed capacity, represents the wind power generation per unit installed capacity, and is a random variable. Then the wind power generation is:
[0095] (12)
[0096] Each charging station The total amount of renewable energy power generation is the sum of solar power generation and wind power generation:
[0097] (13)
[0098] Grid interaction: Each charging station Need to decide at every moment Electricity purchased from the grid and the amount of electricity sold The amount of electricity purchased and sold needs to satisfy the following non-negative constraints:
[0099] (14)
[0100] Defining Charging Stations The electricity purchase decision variables are the set , the decision variables for selling electricity are the set At every moment The electricity price is defined as The electricity price is defined as , then the charging station The net cost of trading electricity with the grid is:
[0101] (15)
[0102] And, charging station In the process of power management, it is necessary to ensure the balance of power, that is, the balance of power demand and power obtained by all electric vehicles:
[0103] (16)
[0104] Electricity schedule optimization problem of charging stations:
[0105] Charging Station You need to optimize your electricity schedule to maximize your profits.
[0106] Charging Station The definition of revenue includes the revenue from charging and discharging, compensation for electric vehicles, and the net cost of buying and selling electricity with the grid:
[0107] (17)
[0108] Charging Station The electricity schedule is optimized as follows:
[0109] (18)
[0110] Due to the existence of non-convex constraint (4), problem (18) is a non-convex optimization problem and is very difficult to solve. This problem is transformed into a convex optimization problem for solution.
[0111] Convex optimization problem transformation:
[0112] In order to solve problem (18), constraint (4) is removed, thus transforming problem (18) into a convex optimization problem, namely:
[0113] (19)
[0114] And we prove the following theorem: The optimal solutions of problem (18) and problem (19) are the same.
[0115] Therefore, the optimal solution to the original problem (18) is obtained by solving the convex optimization problem (19).
[0116] Charging station energy trading model:
[0117] Consider trading energy between charging stations to maximize social welfare.
[0118] Transaction variables: At each charging station With charging station Trading energy, energy trading volume Indicates. Represents a charging station;
[0119] Towards Buying energy, and vice versa selling energy. The energy trading variable set is After energy trading, charging stations To charging station The amount paid is Indicates that when Represents a charging station, Towards Payment amount, therefore, charging station The payment amount variable set is .
[0120] Transaction constraints: The transaction model is subject to three constraints: market clearing constraints, post-transaction energy balance constraints, and incentive constraints.
[0121] Market clearing constraint: Market clearing constraint ensures that energy transactions and payment amounts between charging stations are balanced. Specifically, any charging station and between, The amount of electricity purchased is equal to Electricity sold:
[0122] (20)
[0123] And any charging station and between, The amount paid is equal to Amount Received:
[0124] (twenty one)
[0125] Energy balance constraints after trading: Charging stations In the process of power management and trading, it is necessary to ensure the balance of power, that is, the balance of power demand and power obtained by all electric vehicles:
[0126] (twenty two)
[0127] Incentive constraints: When charging stations After participating in energy trading, the benefits should be higher than when not participating in the transaction. Definition of charging station The benefits of participating in energy trading are
[0128] (twenty three)
[0129] Therefore, the incentive constraint can be defined as:
[0130] (twenty four)
[0131] Trading mechanism design: The goal of the trading mechanism is to maximize social welfare. Social welfare is defined as the sum of the benefits of all charging stations:
[0132] (25)
[0133] in ; ; ; ; , .
[0134] Then the transaction mechanism design problem can be modeled as follows:
[0135] (26)
[0136] Distributed solution algorithm design:
[0137] Design a distributed algorithm to solve problem (26) so as to maximize social welfare under the premise of privacy protection. We first decompose problem (26) and then design distributed solution algorithms for the two decomposed problems respectively.
[0138] Decomposition of problem (26): We can decompose problem (26) into the following two sub-problems P1 and P2. The optimal solutions of these two sub-problems are equivalent to the optimal solution of problem (26). P1 and P2 are:
[0139] (27)
[0140] (28)
[0141] Distributed Algorithm for Solving P1: Defining Auxiliary Variables The auxiliary variables transform the original market clearing constraint (20) into the following two constraints:
[0142] (29)
[0143] (30)
[0144] And, introduce the dual variable and the penalty variable .
[0145] An iterative distributed algorithm is proposed to solve problem P1. In each iteration, given the auxiliary variables and dual variables, each charging station first solves its own transaction problem, and then each charging station submits the solution of its own transaction problem to the algorithm, and the algorithm then uniformly optimizes the auxiliary variables and dual variables. The process of the iteration is as follows:
[0146] Solving the transaction problem of charging stations: the algorithm provides auxiliary variables from the previous iteration and dual variables , and then each charging station Solve the following problem:
[0147] (31)
[0148] After solving problem (31), the charging station Submit the results of your own transaction variables Give the algorithm.
[0149] The algorithm updates the auxiliary variables and dual variables: The algorithm updates the auxiliary variables and dual variables according to the following formula:
[0150] (32)
[0151] (33)
[0152] Distributed algorithm for solving P2: Similarly, define auxiliary variables The auxiliary variables transform the original market clearing constraint (20) into the following two constraints:
[0153] (34)
[0154] (35)
[0155] And, introduce the dual variable and the penalty variable .
[0156] An iterative distributed algorithm is proposed to solve problem P2. In each iteration, given the auxiliary variables and dual variables, each charging station first solves its own payment problem, and then each charging station submits the solution of its own payment problem to the algorithm, which then uniformly optimizes the auxiliary variables and dual variables. The process of the iteration is as follows:
[0157] Solution to the payment problem at the charging station: the algorithm provides auxiliary variables from the previous iteration and dual variables , and then each charging station Solve the following problem:
[0158] (36)
[0159] After solving problem (36), the charging station Submit your own payment variable results Give the algorithm.
[0160] The algorithm updates the auxiliary variables and dual variables: The algorithm updates the auxiliary variables and dual variables according to the following formula:
[0161] (37)
[0162] (38)
[0163] Algorithm 1 outlines a distributed algorithm for solving the transaction mechanism design problem.
[0164] Algorithm 1 Distributed Algorithm for Transaction Mechanism Design Problem
[0165] 1: Solution to problem P1:
[0166] 2: Solution initialization: Initialize the number of iterations , fault tolerance , penalty term , initialize auxiliary variables and dual variables ;
[0167] 3: repeat;
[0168] 4: Update the number of iterations: ;
[0169] 5: for all charging stations :
[0170] 6: Make the charging station Solve problem (31) and convert the result Submit to this algorithm;
[0171] 7: end for;
[0172] 8: Update according to formulas (32) and (33) and dual variables ;
[0173] 9: until the termination condition is met: ;
[0174] 10: Solution to Problem P2:
[0175] 11: Solution initialization: Initialize the number of iterations , fault tolerance , penalty term , initialize auxiliary variables and dual variables ;
[0176] 12: repeat;
[0177] 13: Update the number of iterations: ;
[0178] 14: for all charging stations :
[0179] 15: Make the charging station Solve problem (36) and convert the result Submit to this algorithm
[0180] 16: end for
[0181] 17: Update according to formulas (37) and (38) and dual variables ;
[0182] 18: until the termination condition is met: .
[0183] Smart contract design:
[0184] According to the proposed distributed algorithm 1, a blockchain-based smart contract is designed. The interaction process between the charging station and the smart contract is as follows: Figure 2 As shown, the transaction process is divided into three steps:
[0185] The first step is to iteratively solve P1. In each iteration, the charging station submits the solution to the transaction problem to the smart contract, and the smart contract updates the variables until convergence after multiple iterations.
[0186] The second step is to iteratively solve P2. In each iteration, the charging station submits the solution to the payment problem to the smart contract, and the smart contract updates the variables, until convergence after multiple iterations.
[0187] The third step is energy trading and transaction amount payment between charging stations.
[0188] In addition, this smart contract is implemented and deployed, and its interface is as follows Figure 3The actual implementation of a smart contract developed on a local Ethereum blockchain instance is described. Ethereum was chosen due to its robustness and proven experience in supporting smart contract applications.
[0189] We use the Remix integrated development environment to deploy smart contracts, which is a platform widely used for Ethereum development. Figure 3 As shown, the smart contract user interface on the Remix platform is designed to simplify the process of charging stations solving problem P1. In , each charging station submits its energy trading decision through the “energyTradingDecision” function, such as Figure 3 Next, the smart contract updates the auxiliary variables and dual variables. Each charging station can use the "getAuxiliaryVariables" and "getDualVariables" functions to obtain the updated values of these variables, as shown in the figure. After completion, each charging station can verify whether the iteration has reached convergence by accessing the "isIterationComplete" function. This structured process enables the smart contract to effectively help the charging station solve problem P1 without leaking the charging station's privacy information.
[0190] In order to simulate the blockchain environment to deploy smart contracts, we used Ganache, a tool that simulates the Ethereum blockchain network. Figure 3 The transaction confirmation process on the blockchain is shown, where the transaction at the bottom represents the deployment transaction of the smart contract. This result confirms the effectiveness and feasibility of our smart contract in the blockchain environment.
[0191] Start interacting with smart contracts through Remix IDE. Figure 3 Shows the process of retrieving auxiliary variables during the iteration of the charging station. This visualization helps to understand the functionality and user experience of the smart contract in action.
Claims
1. A blockchain-based smart contract energy trading method for electric vehicle charging stations, characterized in that: The following steps are involved: S1. Decision model and solution method of a single charging station; S2. Establish a charging station transaction model based on the charging station decision model and design a distributed solution algorithm; S3. Design and implement the corresponding smart contract algorithm based on the distributed solution algorithm; In step S1, the decision model and solution method of a single charging station include the electric vehicle set, charging and discharging decision variables of the charging station, the upper limit of discharge, charging and discharging benefits of the charging station, the power schedule optimization problem of the charging station and the conversion of the convex optimization problem; Electric vehicle collection: For charging stations The electric vehicles arriving at charging station i are defined as a set Each electric vehicle is described by a vector: in represents the arrival time of electric vehicle j, represents the departure time of electric vehicle j, represents the power of electric vehicle j when it arrives, represents the power of electric vehicle j when it leaves; Charging station charging and discharging decision variables: Charging station i needs to decide the charging amount of each electric vehicle j at each time t Discharge Then the charging decision variables of charging station i are the set The discharge decision variables are the set When electric vehicle j is at charging station i, the amount of charge and discharge at each time t cannot exceed the upper limit of charge and discharge: When electric vehicle j is not at charging station i, the amount of charge and discharge at each moment is 0: Moreover, electric vehicle j cannot be charged and discharged at the same time at each time t, so there will be the following non-convex constraints: Define the efficiency of electric vehicle charging and discharging as η∈(0,1), therefore, the amount of electricity increased by charging electric vehicle j is The amount of electricity reduced by discharge is Then the formula for the change of electric vehicle j’s power is: And the power of electric car j should be within the capacity of the battery at each moment: In addition, when electric vehicle j enters and leaves the charging station, the power should meet the power when it arrives and leaves: Charging and discharging income of charging station: The income of charging station i during the charging and discharging of electric vehicles includes income and compensation for the discharge of electric vehicles. At time t, the net charging amount of electric vehicles by charging station i is use represents the charging price at time t, then the charging and discharging income of charging station i at all times is In order to compensate for the loss of electric vehicles due to discharge, the compensation of charging station i to all electric vehicles is 2. The blockchain-based electric vehicle charging station smart contract energy trading method according to claim 1 is characterized in that: In step S1, the energy of the charging station comes from the interaction between new energy and the power grid; New energy: Each charging station i is equipped with either solar power generation or wind power generation. The power generation of new energy at time t is and is a random variable that is not controlled by charging station i; Grid interaction: Each charging station i needs to decide how much power to purchase from the grid at each time t and the amount of electricity sold The amount of electricity purchased and sold needs to satisfy the following non-negative constraints:
3. The blockchain-based electric vehicle charging station smart contract energy trading method according to claim 1 is characterized in that: In step S1, the revenue definition of charging station i includes the revenue from charging and discharging, the compensation for electric vehicles, and the net cost of interactively buying and selling electricity with the power grid:
4. The blockchain-based electric vehicle charging station smart contract energy trading method according to claim 1 is characterized in that: In step S1 , the revenue definition of charging station i includes the revenue from charging and discharging, the compensation for electric vehicles, and the net cost of interactively buying and selling electricity with the power grid.
5. The blockchain-based electric vehicle charging station smart contract energy trading method according to claim 1 is characterized in that: In step S2, the charging station energy trading model includes trading variables, trading constraints and trading mechanism design; Trading variables: At time t, each charging station i trades energy with charging station n, and the energy trading amount is expressed as indicates; when represents charging station i buying energy from n, and vice versa, selling energy; therefore, the energy transaction variable set of charging station i is After the energy transaction, the amount paid by charging station i to charging station n is π i,n It means that when π i,n >0 means that charging station i pays n; therefore, the payment amount variable set of charging station i is Transaction constraints: The transaction model is subject to three constraints: market clearing constraints, post-transaction energy balance constraints, and incentive constraints; Trading mechanism design: The goal of the trading mechanism is to maximize social welfare; social welfare is defined as the sum of the benefits of all charging stations: in 6. The blockchain-based electric vehicle charging station smart contract energy trading method according to claim 5 is characterized in that: In step S2, the market clearing constraint: The market clearing constraint ensures that the energy transactions and payment amounts between charging stations are balanced. Specifically, between any charging stations i and n, the amount of electricity purchased by i is equal to the amount of electricity sold by n: And between any charging stations i and n, the amount paid by i is equal to the amount received by n: Energy balance constraint after transaction: During the power management and transaction process of charging station i, it is necessary to ensure the balance of power, that is, the balance of power demand and power obtained by all electric vehicles Incentive constraint: When charging station i participates in energy trading, the income is higher than when it does not participate in the transaction. Define the income of charging station i after participating in energy trading Therefore, the incentive constraint is defined as:
7. The blockchain-based electric vehicle charging station smart contract energy trading method according to claim 1 is characterized in that: In step S3, the power schedule optimization problem of the charging station is decomposed into the following two sub-problems P1 and P2, and a distributed algorithm for solving P1 and a distributed algorithm for solving P2 are obtained.
Citation Information
Patent Citations
Electric vehicle charging electric energy transaction method based on block chain technology
CN111091224A
Energy credit accounting and management using blockchain
US20200148072A1
