An electric vehicle charging station management method using a blockchain, wherein charging and discharging management of a plurality of electric vehicles parked at a charging station is implemented by using a blockchain system, the blockchain system comprises a server and a plurality of charging piles disposed in the charging station and in communication with the server, each electric vehicle corresponds to a piece of electric vehicle information stored in a distributed ledger of the blockchain system and is electrically connected to a corresponding one of the plurality of charging piles, and the electric vehicle information comprises entry time, departure time, a battery state of charge at a time of entry, a current battery state of charge, an expected departure battery state of charge, a minimum battery state of charge, a maximum battery state of charge, and a full charge capacity of the electric vehicle,
- the electric vehicle charging station management method using the blockchain specifically comprises the following steps:
- (A) mapping the entry time and departure time of each electric vehicle to a corresponding time pane in a scheduling cycle, obtaining at least one time pane corresponding to the electric vehicle, obtaining at least one to-be-planned pane of the electric vehicle from the at least one time pane, and writing the at least one to-be-planned pane into the distributed ledger of the blockchain system, wherein the at least one to-be-planned pane comprises each time pane from a current time pane to a last time pane corresponding to the electric vehicle;
- (B) obtaining a charging priority weight and a discharging priority weight of each electric vehicle in each to-be-planned pane according to a current time, the departure time of the electric vehicle, the current battery state of charge, the departure battery state of charge, the full charge capacity, and a maximum charging and discharging electric power provided by one of the plurality of the charging piles corresponding to the electric vehicle;
- (C) obtaining and writing a maximum charging electric power and a maximum discharging electric power of each electric vehicle in each to-be-planned pane into the distributed ledger in the blockchain system according to a maximum power of a transformer of the charging station and the charging priority weight and the discharging priority weight of the electric vehicle in each to-be-planned pane;
- (D) obtaining and writing, by using a nonlinear programming model, a charging electric power or discharging electric power of each electric vehicle in each to-be-planned pane into the distributed ledger of the blockchain system according to the electric vehicle information of the electric vehicle, at least one purchase price per unit electric power purchased by the charging station in each to-be-planned pane, at least one winning bid price paid by the charging station for participating in demand bidding in each to-be-planned pane, a payment price per unit electric power paid by the charging station in each to-be-planned pane, a penalty price per unit electric power paid by the charging station when the electric vehicle is not fully charged, and the maximum charging electric power and the maximum discharging electric power of the electric vehicle in each to-be-planned pane;
- (E) obtaining a total consumed electric power of the charging station in each time pane from the current time pane to the last time pane of the scheduling cycle according to the charging electric power or discharging electric power of each electric vehicle in each to-be-planned pane;
- (F) determining whether at least one overloaded pane is provided from the current time pane to the last time pane of the scheduling cycle according to the total consumed electric power of each time pane obtained in step (E) and a maximum supplied electric power of the charging station, wherein the total consumed electric power of the at least one overloaded pane is greater than the maximum supplied electric power of the charging station;
- and
- (G) adjusting the purchase price of each of the at least one overloaded pane when it is determined that the at least one overloaded pane is provided, repeating steps (D) to (F) and at least part of step (G) until it is determined that no overloaded pane is provided, and writing a currently obtained charging electric power or discharging electric power of each electric vehicle in each to-be-planned pane into the distributed ledger of the blockchain system, and controlling the charging station to charge or discharge each electric vehicle in the current time pane according to the currently obtained charging electric power or discharging electric power corresponding to each electric vehicle in the current time pane.