Charging and discharging method based on bidirectional charging and discharging equipment, server, station and medium

By using bidirectional charging and discharging equipment and charging and discharging decision-making models in charging stations, the charging and discharging strategies of vehicles are optimized, which solves the problem in the existing technology that it is difficult to manage the peak and low peak periods of power consumption in the grid and stations at the same time, and realizes for more efficient electricity cost and demand management.

CN118849862APending Publication Date: 2024-10-29WUHAN NIO ENERGY EQUIPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411020435.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

It is difficult for existing charging stations to control the charging and discharging of vehicles simultaneously according to the peak and low peak periods of grid power consumption and the peak and low peak periods of station power consumption, resulting in low efficiency in electricity cost and demand management.

Method used

Adopting a charging and discharging method based on two-way charging and discharging equipment, by obtaining charging demand information and using a charging and discharging decision-making model, the charging and discharging strategy of the vehicle is optimized to minimize the station cost within the preset planning period, including electricity cost and demand. Comprehensive optimization of volume costs.

Benefits of technology

It achieves dynamic adjustment during the peak and low peak periods of grid power and station power consumption, reduces the power demand and electricity cost of charging stations, and improves the efficiency of power management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118849862A_ABST
    Figure CN118849862A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of charging and discharging control, particularly provides a charging and discharging method based on bidirectional charging and discharging equipment, a server, a station and a medium, and aims to solve the problem of charging and discharging a vehicle according to different peak time periods of power utilization of a power grid and power utilization of the station at the same time. In order to achieve the purpose, the method provided by the invention comprises the steps of obtaining charging demand information of a target vehicle in a charging station; acquiring a charging and discharging strategy of the target vehicle by adopting the charging and discharging decision model; controlling the bidirectional charging and discharging equipment to charge or discharge the target vehicle according to the charging and discharging strategy; the charging and discharging decision model is used for optimizing the charging and discharging strategy of each target vehicle according to the optimization target and the charging demand information of each target vehicle in the preset planning time period, so as to obtain the optimal charging and discharging strategy of each target vehicle. On the basis of the method, charging and discharging control can be carried out on the vehicle according to the peak period and the low period of power utilization of the power grid and the peak period and the low period of power utilization of the station under the condition that the vehicle charging requirement is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of charge and discharge control technology, and in particular to a charge and discharge method, server, station and medium based on a bidirectional charge and discharge device. Background Art

[0002] Bidirectional charging piles can be understood as V2G (Vehicle-to-Grid) charging piles, which have a bidirectional energy flow function. Bidirectional charging piles can transfer the power in the grid to the vehicle to charge the vehicle; bidirectional charging piles can also transfer the power stored in the vehicle to the grid to discharge the vehicle.

[0003] The electricity prices are different during the peak and off-peak periods of the power grid. If you charge the vehicle when the electricity price is low, and control the vehicle to discharge to the grid when the electricity price is high, the electricity cost can be reduced. In addition to charging piles, there are some other loads in the charging station (hereinafter described as station loads). If the vehicle is controlled to supply power to the station load during the peak period of power consumption at the station, the power demand of the charging station can be reduced. However, there is currently no reliable charging and discharging method that can simultaneously control the charging and discharging of vehicles in the charging station according to the peak and off-peak periods of power consumption of the power grid and the peak and off-peak periods of power consumption at the station, so as to realize power consumption management and demand management of the charging station. Summary of the invention

[0004] In order to overcome the above-mentioned defects, the present application is proposed to provide a method for controlling the charging and discharging of vehicles in a charging station according to the peak and off-peak periods of power consumption of the power grid and the peak and off-peak periods of power consumption of the station.

[0005] In a first aspect, a vehicle charging and discharging method based on a bidirectional charging and discharging device is provided, wherein the bidirectional charging and discharging device is arranged at a charging station, and the method comprises:

[0006] Obtaining charging demand information of a target vehicle in the charging station, wherein the charging demand information includes a charging time range within a preset planning period;

[0007] A charging and discharging decision model is used to obtain a charging and discharging strategy of the target vehicle, wherein the charging and discharging strategy includes a battery power of the target vehicle in each sub-period within the charging time range, and the battery power is a charging power or a discharging power;

[0008] Controlling the bidirectional charging and discharging device to charge or discharge the target vehicle in each sub-period according to the battery power in each sub-period;

[0009] in,

[0010] The charging and discharging decision model is used to optimize the charging and discharging strategies of each target vehicle according to the optimization target and the charging demand information of each target vehicle in the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle;

[0011] The optimization goal is to minimize the station cost of the charging station within the preset planning period. The station cost is the sum of the electricity cost and the demand cost. The electricity cost is the cost of the electric energy consumed after charging and discharging the target vehicle, and the demand cost is the cost of the maximum demand generated by the charging station.

[0012] In a technical solution of the above-mentioned vehicle charging and discharging method based on bidirectional charging and discharging equipment, the charging demand information includes the minimum target power at the end of charging, the site cost is the sum of the electricity cost, the demand cost and the minimum power penalty cost, and the minimum power penalty cost is the penalty cost when the actual power of the target vehicle at the end of charging does not reach the minimum target power.

[0013] In a technical solution of the vehicle charging and discharging method based on the bidirectional charging and discharging device, the minimum power penalty cost is obtained by:

[0014] Get the first penalty cost C P1 , C P1 =k p1 ∑ i o i , k p1 represents the first penalty weight, i represents the serial number of the target vehicle, o i represents the charging result of the i-th target vehicle, o i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 means that the actual power of the i-th target vehicle reaches the minimum target power at the end of charging;

[0015] Get the second penalty cost C P2 , C P2 =k p2 ∑ i U i , k p2 represents the second penalty weight, U i represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power;

[0016] According to the first penalty cost C P1 With the second penalty cost C P2 The minimum power penalty cost is obtained.

[0017] In a technical solution of the vehicle charging and discharging method based on the bidirectional charging and discharging device, the station cost is the sum of the electricity cost, the demand cost, the minimum power penalty cost and the alternative cost, and the alternative cost is the reverse flow cost C c , Power fluctuation cost C f 、Auxiliary cost C a One or more or all of;

[0018] The reverse flow cost k c represents the reverse flow weight, t represents the sequence number of the sub-period, represents the reverse power of the charging station in the tth sub-period;

[0019] The power fluctuation cost k f represents the power fluctuation weight, i represents the serial number of the target vehicle, represents the absolute value of the power change of the battery power of the i-th target vehicle in the t-th sub-period;

[0020] The auxiliary costs k a represents the auxiliary weight, represents the battery power of the i-th target vehicle in the t-th sub-period.

[0021] In a technical solution of the vehicle charging and discharging method based on the bidirectional charging and discharging device, the charging and discharging decision model is used to optimize the charging and discharging strategies of each target vehicle based on preset constraints, according to the optimization target and the charging demand information of each target vehicle in the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle;

[0022] The preset constraint conditions include a power constraint condition, a power constraint condition, and a demand constraint condition; the power constraint condition is used to constrain the battery power of the target vehicle; the power constraint condition is used to constrain the battery power of the target vehicle;

[0023] The demand constraint condition is used to constrain the demand of the charging station.

[0024] In a technical solution of the vehicle charging and discharging method based on the bidirectional charging and discharging device, the power constraint condition includes one or more or all of the power upper and lower limit constraints, the first terminal power constraint condition, and the second terminal power constraint condition;

[0025] The upper and lower limit constraints of the power are: i represents the serial number of the target vehicle, t represents the serial number of the sub-period, represents the battery power of the i-th target vehicle at the beginning of the t-th sub-period, and represent the lower limit value and the upper limit value of the battery power of the i-th target vehicle within the charging time range respectively;

[0026] The first terminal power constraint condition is: represents the minimum target power of the i-th target vehicle at the end of charging, represents the actual power of the i-th target vehicle at the end of charging, M represents a preset value and M is greater than the upper limit of the battery power of all target vehicles within their respective charging time ranges, o i represents the charging result of the i-th target vehicle, o i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 means that the actual power of the i-th target vehicle reaches the minimum target power at the end of charging;

[0027] The second terminal power constraint condition is: U i It represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power.

[0028] In a technical solution of the vehicle charging and discharging method based on the above-mentioned bidirectional charging and discharging device, the power constraint condition includes one or more or all of the charging and discharging power constraint condition, the power balance constraint condition, the group control power constraint condition, and the power conversion constraint condition;

[0029] The charge and discharge power constraint condition is: represents the battery power of the i-th target vehicle in the t-th sub-period, represents the lower limit of the battery power of the i-th target vehicle in the t-th sub-period, represents the upper limit of the battery power of the i-th target vehicle in the t-th sub-period;

[0030] The power balance constraint is: represents the power consumption of the charging station in the tth sub-period, represents the power generation power of the new energy power generation equipment in the charging station in the tth sub-period, represents the power consumption of the station load in the charging station in the t-th sub-period, where the station load refers to the load in the charging station other than the bidirectional charging and discharging equipment;

[0031] The group control power constraint condition is: P Q Indicates the threshold of group control power;

[0032] The power conversion constraint is: represents the absolute value of the battery power change of the i-th target vehicle in the t-th sub-period, represents the battery power of the i-th target vehicle in the t-1-th sub-period.

[0033] In a technical solution of the vehicle charging and discharging method based on the bidirectional charging and discharging device, the demand constraint condition is and P X Indicates the maximum demand generated by the charging station during the preset planning period, represents the power consumption of the charging station in the tth sub-period, Indicates the target demand of the charging station during the preset planning period.

[0034] In a technical solution of the vehicle charging and discharging method based on the bidirectional charging and discharging device, the target demand Obtained by:

[0035] Obtaining the maximum demand of the charging station before the start time of the preset planning period;

[0036] Selecting a larger one from the maximum demand of the charging station before the starting time and the preset demand threshold of the charging station as the candidate demand;

[0037] According to the candidate demands, a target demand of the charging station is obtained.

[0038] In a technical solution of the vehicle charging and discharging method based on the bidirectional charging and discharging device, the preset constraint condition includes a reverse flow constraint condition, and the reverse flow constraint condition is and represents the reverse power of the charging station in the tth sub-period, P N Indicates the anti-backflow threshold, Represents the power consumption of the charging station in the tth sub-period.

[0039] In a second aspect, a server is provided, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the method described in any one of the technical solutions of the above-mentioned vehicle charging and discharging method based on a bidirectional charging and discharging device is implemented.

[0040] In a third aspect, a charging station is provided, comprising a bidirectional charging and discharging device and the server provided in the second aspect.

[0041] In a fourth aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the method described in any one of the technical solutions of the vehicle charging and discharging method based on a bidirectional charging and discharging device.

[0042] Solution 1. A vehicle charging and discharging method based on a bidirectional charging and discharging device, wherein the bidirectional charging and discharging device is arranged at a charging station, characterized in that the method comprises:

[0043] Obtaining charging demand information of a target vehicle in the charging station, wherein the charging demand information includes a charging time range within a preset planning period;

[0044] A charging and discharging decision model is used to obtain a charging and discharging strategy of the target vehicle, wherein the charging and discharging strategy includes a battery power of the target vehicle in each sub-period within the charging time range, and the battery power is a charging power or a discharging power;

[0045] Controlling the bidirectional charging and discharging device to charge or discharge the target vehicle in each sub-period according to the battery power in each sub-period;

[0046] in,

[0047] The charging and discharging decision model is used to optimize the charging and discharging strategies of each target vehicle according to the optimization target and the charging demand information of each target vehicle in the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle;

[0048] The optimization goal is to minimize the station cost of the charging station within the preset planning period. The station cost is the sum of the electricity cost and the demand cost. The electricity cost is the cost of the electric energy consumed after charging and discharging the target vehicle, and the demand cost is the cost of the maximum demand generated by the charging station.

[0049] Solution 2. The method according to Solution 1 is characterized in that the charging demand information includes the minimum target power at the end of charging, the station cost is the sum of the electricity cost, the demand cost and the minimum power penalty cost, and the minimum power penalty cost is the penalty cost when the actual power of the target vehicle at the end of charging does not reach the minimum target power.

[0050] Solution 3. The method according to Solution 2 is characterized in that the minimum power penalty cost is obtained by:

[0051] Get the first penalty cost C P1 , C P1 =k p1 ∑i o i , k p1 represents the first penalty weight, i represents the serial number of the target vehicle, o i represents the charging result of the i-th target vehicle, o i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 means that the actual power of the i-th target vehicle reaches the minimum target power at the end of charging;

[0052] Get the second penalty cost C P2 , C P2 =k p2 ∑ i U i , k p2 represents the second penalty weight, U i represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power;

[0053] According to the first penalty cost C P1 With the second penalty cost C P2 The minimum power penalty cost is obtained.

[0054] Scheme 4. The method according to Scheme 2, characterized in that:

[0055] The site cost is the sum of the electricity cost, the demand cost, the minimum power penalty cost and the alternative cost, where the alternative cost is the reverse flow cost C c , Power fluctuation cost C f 、Auxiliary cost C a One or more or all of;

[0056] The reverse flow cost k c represents the reverse flow weight, t represents the sequence number of the sub-period, represents the reverse power of the charging station in the tth sub-period;

[0057] The power fluctuation cost k f represents the power fluctuation weight, i represents the serial number of the target vehicle, represents the absolute value of the power change of the battery power of the i-th target vehicle in the t-th sub-period;

[0058] The auxiliary costs k a represents the auxiliary weight, represents the battery power of the i-th target vehicle in the t-th sub-period.

[0059] Solution 5. The method according to Solution 1 is characterized in that the charging and discharging decision model is used to optimize the charging and discharging strategies of each target vehicle based on preset constraints, according to the optimization target and the charging demand information of each target vehicle within the preset planning period, so as to obtain the optimal charging and discharging strategy for each target vehicle;

[0060] The preset constraints include quantity constraints, power constraints, and demand constraints;

[0061] The power constraint condition is used to constrain the battery power of the target vehicle;

[0062] The power constraint condition is used to constrain the battery power of the target vehicle;

[0063] The demand constraint condition is used to constrain the demand of the charging station.

[0064] Solution 6. The method according to Solution 5 is characterized in that the power constraint condition includes one or more or all of the power upper and lower limit constraints, the first terminal power constraint condition, and the second terminal power constraint condition;

[0065] The upper and lower limit constraints of the power are: i represents the serial number of the target vehicle, t represents the serial number of the sub-period, represents the battery power of the i-th target vehicle at the beginning of the t-th sub-period, and represent the lower limit value and the upper limit value of the battery power of the i-th target vehicle within the charging time range respectively;

[0066] The first terminal power constraint condition is: represents the minimum target power of the i-th target vehicle at the end of charging, represents the actual power of the i-th target vehicle at the end of charging, M represents a preset value and M is greater than the upper limit of the battery power of all target vehicles within their respective charging time ranges, o i represents the charging result of the i-th target vehicle, o i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 means that the actual power of the i-th target vehicle reaches the minimum target power at the end of charging;

[0067] The second terminal power constraint condition is: U i It represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power.

[0068] Solution 7. The method according to Solution 5 is characterized in that the power constraint condition includes one or more or all of the charging and discharging power constraint condition, the power balance constraint condition, the group control power constraint condition, and the power conversion constraint condition;

[0069] The charge and discharge power constraint condition is: represents the battery power of the i-th target vehicle in the t-th sub-period, represents the lower limit of the battery power of the i-th target vehicle in the t-th sub-period, represents the upper limit of the battery power of the i-th target vehicle in the t-th sub-period;

[0070] The power balance constraint is: represents the power consumption of the charging station in the tth sub-period, represents the power generation power of the new energy power generation equipment in the charging station in the tth sub-period, represents the power consumption of the station load in the charging station in the t-th sub-period, where the station load refers to the load in the charging station other than the bidirectional charging and discharging equipment;

[0071] The group control power constraint condition is: P Q Indicates the threshold of group control power;

[0072] The power conversion constraint is: represents the absolute value of the battery power change of the i-th target vehicle in the t-th sub-period, represents the battery power of the i-th target vehicle in the t-1-th sub-period.

[0073] Solution 8. The method according to Solution 5 is characterized in that the demand constraint condition is and P X Indicates the maximum demand generated by the charging station during the preset planning period, represents the power consumption of the charging station in the tth sub-period, Indicates the target demand of the charging station during the preset planning period.

[0074] Solution 9. The method according to Solution 8, characterized in that the target demand Obtained by:

[0075] Obtaining the maximum demand of the charging station before the start time of the preset planning period;

[0076] Selecting a larger one from the maximum demand of the charging station before the starting time and the preset demand threshold of the charging station as the candidate demand;

[0077] According to the candidate demands, a target demand of the charging station is obtained.

[0078] Solution 10. The method according to Solution 5 is characterized in that the preset constraint condition includes a countercurrent constraint condition, and the countercurrent constraint condition is and represents the reverse power of the charging station in the tth sub-period, P N Indicates the anti-backflow threshold, Represents the power consumption of the charging station in the tth sub-period.

[0079] Solution 11. A server, comprising:

[0080] at least one processor;

[0081] and, a memory communicatively coupled to the at least one processor;

[0082] Wherein, a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the vehicle charging and discharging method based on a bidirectional charging and discharging device described in any one of Schemes 1 to 10 is implemented.

[0083] Solution 12. A charging station, characterized in that the charging station includes a bidirectional charging and discharging device and the server described in Solution 11.

[0084] Scheme 13. A computer-readable storage medium storing a plurality of program codes, characterized in that the program codes are suitable for being loaded and run by a processor to execute the vehicle charging and discharging method based on a bidirectional charging and discharging device as described in any one of Schemes 1 to 10.

[0085] The above one or more technical solutions of the present application have at least one or more of the following beneficial effects:

[0086] In a technical solution for implementing the vehicle charging and discharging method based on the bidirectional charging and discharging device provided by the present application, the bidirectional charging and discharging device is set at the charging station, and the method may include the following steps: obtaining the charging demand information of the target vehicle in the charging station, the charging demand information includes the charging time range within the preset planning period; using the charging and discharging decision model to obtain the charging and discharging strategy of the target vehicle, the charging and discharging strategy includes the battery power of the target vehicle in each sub-period within the charging time range, and the battery power is the charging power or the discharging power; controlling the bidirectional charging and discharging device to charge or discharge the target vehicle in each sub-period according to the battery power of each sub-period. Among them, the charging and discharging decision model is used to optimize the charging and discharging strategy of each target vehicle according to the optimization target and the charging demand information of each target vehicle in the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle; the optimization target is to minimize the station cost of the charging station within the preset planning period, the station cost is the sum of the electricity cost and the demand cost, the electricity cost is the cost of the electric energy consumed after charging and discharging the target vehicle, and the demand cost is the cost of the maximum demand generated by the charging station.

[0087] The above charging and discharging decision model is used to optimize the charging and discharging strategy of the target vehicle, taking into account both the electricity cost and the demand cost. Among them, optimization based on the electricity cost can enable the charging station to charge the vehicle during the off-peak period of the power grid, and control the vehicle to discharge to the grid during the peak period of the power grid; optimization based on the demand cost can enable the charging station to control the vehicle to discharge to the station load during the peak period of the station's power consumption. It can be seen that based on the above method, the charging and discharging of vehicles in the charging station can be controlled according to the peak and off-peak periods of the power grid and the peak and off-peak periods of the station's power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] The disclosure of the present application will become easier to understand with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. Among them:

[0089] Figure 1 It is a flow chart of the main steps of a vehicle charging and discharging method based on a bidirectional charging and discharging device according to an embodiment of the present application;

[0090] Figure 2 is a flow chart of main steps of a vehicle charging and discharging method based on a bidirectional charging and discharging device according to another embodiment of the present application;

[0091] Figure 3 It is a schematic diagram of the main structure of a server according to an embodiment of the present application.

[0092] Reference numerals:

[0093] 11: memory; 12: processor. DETAILED DESCRIPTION

[0094] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.

[0095] In the description of this application, "processor" may include hardware, software or a combination of the two. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc.

[0096] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.

[0097] The user personal information processed by this application will vary depending on the specific product / service scenario, and shall be based on the specific scenario in which the user uses the product / service, and may involve the user's account information, device information, driving information, vehicle information or other related information. This application will treat the user's personal information and its processing with a high degree of diligence.

[0098] This application attaches great importance to the security of user personal information and has taken reasonable and feasible security protection measures that meet industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.

[0099] Some of the terms involved in this application are explained below.

[0100] Bidirectional charging and discharging equipment is a device with a bidirectional energy flow function, which can transfer the electric energy in the power grid to the vehicle for charging, and can also transfer the electric energy stored in the vehicle to the power grid for vehicle discharge. Bidirectional charging and discharging equipment can be a V2G charging pile.

[0101] A charging station is a place where multiple bidirectional charging and discharging devices are installed. In addition to the bidirectional charging and discharging devices, there are some other loads (such as lighting equipment, monitoring equipment, etc.) that also consume electrical energy. These loads can be understood as the station load of the charging station. In some embodiments, the charging station is also equipped with new energy power generation equipment, which can provide electrical energy to the outside. The bidirectional charging and discharging equipment and the station load can use the electrical energy provided by the new energy power generation equipment. The new energy power generation equipment may include photovoltaic power generation equipment, etc.

[0102] The following is an explanation of an embodiment of a vehicle charging and discharging method based on a bidirectional charging and discharging device provided by the present application. Figure 1 , Figure 1 1 is a flow chart of the main steps of a vehicle charging and discharging method based on a bidirectional charging and discharging device according to an embodiment of the present application. Figure 1 As shown, the vehicle charging and discharging method in the embodiment of the present application mainly includes the following steps S101 to S103.

[0103] Step S101: Obtain charging demand information of a target vehicle in a charging station, where the charging demand information includes a charging time range within a preset planning period.

[0104] There may be multiple vehicles in the charging station, and the target vehicle can be understood as a vehicle that needs to be charged or a vehicle that is ready to start charging. For example, if a vehicle has been successfully connected to a bidirectional charging and discharging device, it means that the bidirectional charging and discharging device can start charging it, and the vehicle is the target vehicle.

[0105] The preset planning period can be understood as a period formed by dividing the operation cycle of the charging station according to the first time interval. For example, if the operation cycle is 1 year and the first time interval is 1 month, the operation cycle can be divided into 12 preset planning periods, i.e., the 1st to 12th months of the year. If the operation cycle is 1 month and the first time interval is 1 day, for January, January can be divided into 31 preset planning periods, i.e., the 1st to 31st days of January.

[0106] The charging time range can be understood as the time range from the start of charging to the end of charging. For example, if the preset planning period is January 1, 2024, the charging time range can be from 8:00 a.m. to 11:00 a.m. on January 1, 2024.

[0107] Step S102: using a charge and discharge decision model to obtain a charge and discharge strategy for the target vehicle, the charge and discharge strategy including the battery power of the target vehicle in each sub-period within the charging time range, the battery power being the charging power or the discharging power.

[0108] The sub-period can be understood as a period formed by dividing the preset planned period according to the second time interval, and the second time interval is less than the minimum length of the charging time range. For example, the second time interval can be 1 minute, 5 minutes, 10 minutes, etc., and the minimum length of the charging time range can be 30 minutes, 1 hour, etc. The minimum length of the charging time range can be a pre-set value. When setting the charging end time, the vehicle user needs to ensure that the actual length of the charging time range is greater than or equal to this minimum length.

[0109] Battery power is the control power of the power battery in the target vehicle. Charging power is the control power for charging the power battery, and discharging power is the control power for discharging the power battery.

[0110] The charge and discharge decision model is explained below.

[0111] In this embodiment, the charging and discharging decision model can be used to optimize the charging and discharging strategies of each target vehicle according to the optimization target and the charging demand information of each target vehicle in the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle. The charging and discharging strategy obtained in the above step S102 is the optimal charging and discharging strategy of the target vehicle.

[0112] The optimization goal is to minimize the station cost of the charging station within the preset planning period. The station cost is the sum of electricity cost and demand cost. The electricity cost and demand cost are explained below respectively.

[0113] 1. Explain the electricity cost.

[0114] In this embodiment, the electricity cost is the cost of the electricity consumed by the charging station after charging and discharging all target vehicles during the entire preset planning period. The electricity prices during peak and off-peak periods of the power grid are different. The peak electricity price is high and the off-peak electricity price is low. If the vehicle is controlled to discharge to the grid during the peak period and the grid electricity is used to charge the vehicle during the off-peak period, the electricity cost can be reduced.

[0115] The electricity cost can be expressed as C e represents the electricity cost of the charging station in the preset planning period, t represents the sequence number of the sub-period, t=1,…,m, m represents the total number of sub-periods, i represents the sequence number of the target vehicle, i=1,…,n, n represents the total number of target vehicles, represents the electricity price of the tth sub-period within the preset planning period, represents the battery power of the i-th target vehicle in the t-th sub-period, and △t represents the time length between two adjacent sub-periods, that is, the time granularity of the charge-discharge decision model. is the charging power, then the battery power is negative; if the battery power is the discharge power, then the battery power is correct.

[0116] 2. Explain the demand cost.

[0117] In this embodiment, the demand cost is the cost of the maximum demand generated by the charging station during the entire preset planning period.

[0118] When determining the maximum demand, the preset planning period can be divided into multiple demand test periods according to the third time interval, and the average value of the power consumption of the charging station in each demand test period is obtained as the demand of each demand test period. Then, the largest demand is selected from all the demand test periods as the maximum demand of the charging station in the preset planning period. The higher the maximum demand, the higher the demand cost; otherwise, the lower the demand cost.

[0119] The demand cost can be expressed as C d =k d P X , C d represents the demand cost, k d represents the demand cost weight, P X represents the maximum demand generated by the charging station during the preset planning period, and the demand cost weight k d is a constant. In some embodiments, when determining the demand cost weight k d It can be set according to the amount to be paid for every 1kw demand.

[0120] Based on the above electricity cost C e , demand cost C d , the optimization target of the charge and discharge decision model can be expressed as: min:C e +C d .

[0121] Step S103: Control the bidirectional charging and discharging device to charge or discharge the target vehicle in each sub-period according to the battery power in each sub-period.

[0122] Taking a sub-period as an example, if the battery power of this sub-period is charging power, the bidirectional charging and discharging device is controlled to charge the power battery of the target vehicle according to the charging power within this sub-period; if the battery power is discharging power, the bidirectional charging and discharging device is controlled to discharge the power battery of the target vehicle according to the discharging power within this sub-period.

[0123] In the method described in the above steps S101 to S103, the charging and discharging strategy of the target vehicle is optimized by using the charging and discharging decision model, while taking into account the electricity cost and demand cost; optimizing with the electricity cost as the target can make the charging station charge the vehicle during the low-peak period of the power grid, and control the vehicle to discharge to the grid during the peak period of the power grid; optimizing with the demand cost as the target can make the charging station control the vehicle to discharge to the station load during the peak period of the station's power consumption. Therefore, the above method can simultaneously control the charging and discharging of vehicles in the charging station according to the peak and low-peak periods of the power grid and the peak and low-peak periods of the station's power consumption.

[0124] Next, the charging and discharging decision model will be described.

[0125] In some embodiments of the present application, the charging demand information may also include the minimum target power at the end of charging, which is the lower limit of the power battery in the vehicle that needs to be reached at the end of charging. In some embodiments, the minimum target power can be set by the vehicle user himself, and the station cost is the sum of the power cost, demand cost, and minimum power penalty cost.

[0126] The minimum power penalty cost is the penalty cost if the actual power of the target vehicle at the end of charging does not reach the minimum target power during the entire preset planning period, which can be expressed as C P If the actual power of a target vehicle is greater than or equal to the minimum target power, then there is no need to set a penalty cost for it, that is, the penalty cost is 0; if the actual power is less than the minimum target power, then there is a penalty cost for it.

[0127] Based on the above electricity cost C e , demand cost C d , minimum power penalty cost C P , the optimization target of the charge and discharge decision model can be expressed as: min:C e +C d +C P

[0128] In some embodiments, the minimum power penalty cost C used by the charge and discharge decision model is P It can be obtained through the following steps 11 to 13.

[0129] Step 11: Get the first penalty cost C P1 , C P1 =k p1 ∑ i o i , k p1represents the first penalty weight, i represents the serial number of the target vehicle, o i represents the charging result of the i-th target vehicle, o i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 indicates that the actual power of the i-th target vehicle at the end of charging reaches the minimum target power.

[0130] The first penalty weight k p1 is a constant, the first penalty cost C P1 It can be understood as a one-time penalty. In some embodiments, the first penalty weight k p1 Can be a fixed amount.

[0131] Step 12: Get the second penalty cost C P2 , C P2 =k p2 ∑ i U i , k p2 represents the second penalty weight, U i It represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power.

[0132] The second penalty weight k p2 It is also a constant, but U i It is changing, i The larger the second penalty cost C P2 The larger the U i The smaller the second penalty cost C P2 The smaller the second penalty cost C P2 It can be understood as a linear penalty. In some embodiments, when setting the second penalty weight k p2 When the U i Set the amount to be paid.

[0133] Step 13: According to the first penalty cost C P1 With the second penalty cost C P2 The sum of the power consumption and the power penalty cost is obtained. P =C P1 +C P2 .

[0134] Based on the method described in steps 11 to 13 above, the minimum power penalty cost C can be obtained comprehensively from two dimensions: whether the actual power reaches the minimum target power and the difference between the actual power and the minimum target power. P .

[0135] In some embodiments of the present application, the optimization target adopted by the charging and discharging decision model may be the electricity cost C e , demand cost C d , minimum power penalty cost C P The sum of the alternative cost and the alternative cost, the alternative cost is the upstream cost C c , Power fluctuation cost C f 、Auxiliary cost C a One or more or all of the alternative costs are described below.

[0136] 1. Countercurrent cost C c Provide explanation.

[0137] In this example, the reverse flow cost k c represents the reverse flow weight, t represents the sequence number of the sub-period, represents the reverse flow power of the charging station in the tth sub-period, and the reverse flow power It can be understood as the discharge power of the charging station to the grid in the tth sub-period, that is, the power of the electric energy transmitted to the grid. c is a constant.

[0138] In some embodiments, when setting the reverse flow weight k c When the reverse flow weight is k, it can be set according to the amount to be paid for each 1 kwh (1 kilowatt-hour) of reverse flow power. c =1000.

[0139] 2. Cost of power fluctuation C f Provide explanation.

[0140] In this embodiment k f represents the power fluctuation weight, i represents the serial number of the target vehicle, The absolute value of the power change of the battery power of the i-th target vehicle in the t-th sub-period. Power fluctuation weight k f is a constant.

[0141] In some implementations, when setting the power fluctuation weight k f When, according to each 1kw The amount to be paid is set. For example, the power fluctuation weight k f =0.01.

[0142] 3. Auxiliary cost C a Provide explanation.

[0143] In this embodiment k a represents the auxiliary weight, represents the battery power of the i-th target vehicle in the t-th sub-period.

[0144] Auxiliary weight k a is a constant, and the auxiliary weight k a Much less than 1, that is, 1-k a >0 and 1-k a ≈1. In some embodiments, k a =0.00001.

[0145] Next, the auxiliary weight k a The role of is explained below.

[0146] During charging, due to the auxiliary cost C a It is based on the sequence number t of the sub-time period and the battery power The product of the accumulation of, as the serial number t continues to increase, if you want to reduce the auxiliary cost C a , the charging power can be set higher in the early stage of charging (when t is small), that is, a fast charging method with high power charging can be adopted; in the later stage of charging (when t is large), the charging power can be set lower, that is, a full charging method with low power charging can be adopted. a Optimizing the charging and discharging strategy for the target can make the model preferentially adopt the charging method of fast charging first and then full charging.

[0147] In addition, the charging power is positive and the discharging power is negative. Since the sequence number t is increasing, if we want to reduce the auxiliary cost C a , the vehicle can be charged in the early stage (when t is small) and discharged in the later stage (when t is large). In other words, the auxiliary cost C a By optimizing the charging and discharging strategy for the target, the model can preferentially adopt the control method of charging first and discharging later.

[0148] Based on the above electricity cost C e , demand cost C d , minimum power penalty cost C P 、Backflow cost C c , Power fluctuation cost C f 、Auxiliary cost C a , the optimization target of the charge and discharge decision model can be expressed as: min:C e +C d +C P +C c +C f +C a , C P =C P1 +C P2 .

[0149] If λ1, λ2, λ3, λ4, λ5, and λ6 represent the demand cost weights k respectively d , the first penalty weight k p1 , the second penalty weight k p2 , upstream weight k c , power fluctuation weight k f 、Auxiliary cost C a , then the optimization objective of the charge and discharge decision model can be expressed as:

[0150] Next, the charging and discharging decision model will be described.

[0151] In some embodiments of the present application, the charging and discharging decision model can be used to optimize the charging and discharging strategies of each target vehicle based on preset constraints, according to the optimization target and the charging demand information of each target vehicle in the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle. The optimization target is the same as the optimization target in the aforementioned embodiment.

[0152] The preset constraints may include power constraints, power constraints, and demand constraints. The power constraints are used to constrain the battery power of the target vehicle, the power constraints are used to constrain the battery power of the target vehicle, and the demand constraints are used to constrain the demand of the charging station. Through the above implementation, in the process of optimizing the charging and discharging strategy, it is ensured that the battery power, battery power and demand of the charging station of the target vehicle will not deviate from the normal range and abnormality will occur, thereby improving the reliability of the optimal charging and discharging strategy.

[0153] The above constraints are explained below.

[0154] 1. Explain the power constraint conditions.

[0155] In some implementations of the present application, the power constraint conditions include one or more or all of the power upper and lower limit constraints, the first terminal power constraint conditions, and the second terminal power constraint conditions. These constraints are described below.

[0156] (1) Explain the upper and lower limit constraints of power consumption.

[0157] The upper and lower power constraints are: i represents the serial number of the target vehicle, t represents the serial number of the sub-period, represents the battery power of the i-th target vehicle at the beginning of the t-th sub-period, and Respectively represent the lower limit value and upper limit value of the battery power of the i-th target vehicle within the charging time range. In some embodiments, and The vehicle user can set it by himself, and call the user's settings when optimizing the model and

[0158] (2) Explain the first terminal power constraint condition.

[0159] The first terminal power constraint is represents the minimum target power of the i-th target vehicle at the end of charging, represents the actual power of the i-th target vehicle at the end of charging, M represents a preset value and M is greater than the upper limit of the battery power of all target vehicles within their respective charging time ranges, o i represents the charging result of the i-th target vehicle, o i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 indicates that the actual power of the i-th target vehicle at the end of charging reaches the minimum target power.

[0160] The upper limit of battery power is All target vehicles can be obtained Then select the largest one M is greater than this maximum In some implementations, M may be set to 500.

[0161] (3) Explain the second terminal power constraint conditions.

[0162] The second terminal power constraint is U i represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power, represents the minimum target power of the i-th target vehicle at the end of charging, Represents the battery power of the i-th target vehicle at the beginning of the t-th sub-period.

[0163] In some implementations, the power constraint condition may further include a battery power change constraint condition and a battery initial power constraint condition.

[0164] The battery power change constraint is represents the battery power of the i-th target vehicle at the beginning of the t-1-th sub-period, represents the battery power of the i-th target vehicle at the beginning of the t-th sub-period, represents the battery power of the i-th target vehicle in the t-th sub-period.

[0165] The initial battery capacity constraint is: represents the initial power of the i-th target vehicle (the power before charging begins), represents the initial sub-period (or the first sub-period) within the charging time range of the i-th target vehicle, represents the battery capacity of the i-th target vehicle in the initial sub-period.

[0166] 2. Explain the power constraint conditions.

[0167] In some embodiments of the present application, power constraints include one or more or all of charging and discharging power constraints, power balance constraints, group control power constraints, and power conversion constraints. These constraints are described below.

[0168] (1) Explain the charging and discharging power constraints.

[0169] The charge and discharge power constraints are: represents the battery power of the i-th target vehicle in the t-th sub-period, represents the lower limit of the battery power of the i-th target vehicle in the t-th sub-period, It represents the upper limit of the battery power of the i-th target vehicle in the t-th sub-period.

[0170] (2) Explain the power balance constraints.

[0171] The power balance constraint is represents the power consumption of the charging station in the tth sub-period, represents the battery power of the i-th target vehicle in the t-th sub-period, represents the power generation power of the new energy power generation equipment in the charging station in the tth sub-period, It represents the power consumption of the charging station load in the t-th sub-period. The station load refers to the load in the charging station except the bidirectional charging and discharging equipment. It is negative.

[0172] (3) Explain the power constraints of group control.

[0173] The group control power constraint is: P Q Indicates the threshold of group control power. represents the battery power of the i-th target vehicle in the t-th sub-period.

[0174] Group control can be understood as controlling multiple bidirectional charging and discharging devices to charge and discharge different target vehicles, and group control power can be understood as the sum of the battery powers of these target vehicles. The threshold of group control power can be understood as the upper limit of group control power.

[0175] (4) Explain the power conversion constraints.

[0176] The power conversion constraints are: represents the absolute value of the battery power change of the i-th target vehicle in the t-th sub-period, represents the battery power of the i-th target vehicle in the t-th sub-period, represents the battery power of the i-th target vehicle in the t-1-th sub-period.

[0177] 3. Explain the demand constraints.

[0178] The demand constraint is and P X Indicates the maximum demand generated by the charging station during the preset planning period. represents the power consumption of the charging station in the tth sub-period, Indicates the target demand of the charging station during the preset planning period.

[0179] The target demand can be understood as the demand that the charging station needs to meet during the preset planning period. In some embodiments, the target demand can be obtained through the following steps 21 to 23.

[0180] Step 21: Obtain the maximum demand of the charging station before the start time of the preset planning period. Step 22: Select the larger one from the maximum demand of the charging station before the start time and the preset demand threshold of the charging station as the candidate demand. The preset demand threshold can be understood as the lower limit of the demand. Step 23: Obtain the target demand of the charging station based on the candidate demand.

[0181] Specifically, the candidate demand may be used as the target demand.

[0182] In some embodiments, to avoid failure to meet The candidate demand can be reduced to meet the conditions and the reduced candidate demand can be used as the target demand. Specifically, a safety value can be set to obtain the difference between the candidate demand and the safety value, and the difference can be used as the target demand. The safety value is a demand value. When setting a specific value of the safety value, those skilled in the art can perform statistical analysis on the demand generated by the actual operation of the charging station to determine whether it can meet the requirements. In some embodiments, the insurance value is 5 kW.

[0183] Based on the methods described in steps 21 to 23 above, accurate target requirements can be obtained, further improving the reliability of the optimal charging and discharging strategy.

[0184] Next, we will continue to explain the constraints adopted by the charging and discharging decision model.

[0185] In some embodiments of the present application, the constraint condition may also include a reverse flow constraint condition, and the reverse flow constraint condition is and represents the reverse power of the charging station in the tth sub-period, P N Indicates the anti-backflow threshold, Represents the power consumption of the charging station in the tth sub-period. The positive and negative of the reverse power and the power consumption are opposite. If we want to satisfy Conditions, then actually need to meet or conditions.

[0186] When setting the anti-backflow threshold P N When the value of can be obtained, the maximum power provided by the power grid to the charging station can be obtained, the maximum reverse power from the charging station that the power grid can withstand can be obtained, and then the difference between the absolute value of the maximum power and the maximum reverse power can be obtained. The anti-reverse flow threshold P is set according to the difference. N Since the reverse power is negative, the absolute value of the reverse power is obtained to obtain the above difference.

[0187] The following is combined with Figure 2 , the vehicle charging and discharging method provided by the present application is described. In this embodiment, the bidirectional charging and discharging device is a bidirectional charging pile (i.e., a V2G charging pile). Specifically, the anti-backflow threshold P can be configured on the cloud (cloud server). N , Target demand For the target vehicle in the charging station, the vehicle user can set the departure time and the minimum target power at the end of charging. The charging end time can be obtained based on the departure time, and then the charging time range of the target vehicle can be obtained based on the time when the target vehicle starts charging. In addition, the battery power of the target vehicle before charging starts (i.e. Figure 2The charging station is also equipped with photovoltaic power generation equipment and station loads, and the power generation power of the photovoltaic power generation equipment and the power consumption of the station loads can also be obtained. The charging and discharging decision model can optimize the charging and discharging strategy of the target vehicle based on the above information, obtain the optimal charging and discharging strategy for the target vehicle, and then control the bidirectional charging pile to charge and discharge the target vehicle according to the optimal charging and discharging strategy.

[0188] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders. These adjusted schemes are equivalent to the technical schemes described in this application, and therefore will also fall within the scope of protection of this application.

[0189] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code.

[0190] Another aspect of the present application also provides a computer-readable storage medium.

[0191] In an embodiment of a computer-readable storage medium according to the present application, the computer-readable storage medium may be configured to store a program for executing a vehicle charging and discharging method based on a bidirectional charging and discharging device according to the above method embodiment, and the program may be loaded and run by a processor to implement the above vehicle charging and discharging method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method section of the embodiment of the present application. The computer-readable storage medium may be a storage device including various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.

[0192] Another aspect of the present application also provides a server.

[0193] In an embodiment of a server according to the present application, the server may include at least one processor; and a memory connected to the at least one processor in communication; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the method described in any of the above embodiments is implemented. The smart device described in the present application may include a driving device, a smart car, a robot, and other devices. Figure 3 , Figure 3 FIG. 4 exemplarily shows that the memory 11 and the processor 12 are communicatively connected via a bus.

[0194] In another aspect of the present application, a charging station is also provided. In an embodiment of a charging station according to the present application, the charging station may include a bidirectional charging and discharging device and a server as described in the above server embodiment. The charging station may use the server to obtain the optimal charging and discharging strategy for each target vehicle, and control the bidirectional charging and discharging device to perform charging and discharging control on the target vehicle according to the optimal charging and discharging strategy.

[0195] So far, the technical solution of the present application has been described in conjunction with an embodiment shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.

Claims

1. A vehicle charging and discharging method based on a bidirectional charging and discharging device, wherein the bidirectional charging and discharging device is arranged at a charging station, characterized in that: The method comprises: Obtaining charging demand information of a target vehicle in the charging station, wherein the charging demand information includes a charging time range within a preset planning period; A charging and discharging decision model is used to obtain a charging and discharging strategy of the target vehicle, wherein the charging and discharging strategy includes a battery power of the target vehicle in each sub-period within the charging time range, and the battery power is a charging power or a discharging power; Controlling the bidirectional charging and discharging device to charge or discharge the target vehicle in each sub-period according to the battery power in each sub-period; in, The charging and discharging decision model is used to optimize the charging and discharging strategies of each target vehicle according to the optimization target and the charging demand information of each target vehicle in the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle; The optimization goal is to minimize the station cost of the charging station within the preset planning period. The station cost is the sum of the electricity cost and the demand cost. The electricity cost is the cost of the electric energy consumed after charging and discharging the target vehicle, and the demand cost is the cost of the maximum demand generated by the charging station.

2. The method according to claim 1, characterized in that: The charging demand information includes the minimum target power at the end of charging. The station cost is the sum of the power cost, the demand cost and the minimum power penalty cost. The minimum power penalty cost is the penalty cost when the actual power of the target vehicle at the end of charging does not reach the minimum target power.

3. The method according to claim 2, characterized in that The minimum power penalty cost is obtained by: Get the first penalty cost C P1 , C P1 =k p1 ∑ i o i , k p1 represents the first penalty weight, i represents the serial number of the target vehicle, o i represents the charging result of the i-th target vehicle, o i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 means that the actual power of the i-th target vehicle reaches the minimum target power at the end of charging; Get the second penalty cost C P2 , C P2 =k p2 ∑ i U i , k p2 represents the second penalty weight, U i represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power; According to the first penalty cost C P1 With the second penalty cost C P2 The minimum power penalty cost is obtained.

4. The method according to claim 2, characterized in that The station cost is the sum of the electricity cost, the demand cost, the minimum power penalty cost and the alternative cost, and the alternative cost is the reverse flow cost C c , Power fluctuation cost C f 、Auxiliary cost C a One or more or all of; The reverse flow cost k c represents the reverse flow weight, t represents the sequence number of the sub-period, represents the reverse power of the charging station in the tth sub-period; The power fluctuation cost k f represents the power fluctuation weight, i represents the serial number of the target vehicle, represents the absolute value of the power change of the battery power of the i-th target vehicle in the t-th sub-period; The auxiliary costs k a represents the auxiliary weight, represents the battery power of the i-th target vehicle in the t-th sub-period.

5. The method according to claim 1, characterized in that The charging and discharging decision model is used to optimize the charging and discharging strategies of each target vehicle based on preset constraints, according to the optimization target and the charging demand information of each target vehicle within the preset planning period, so as to obtain the optimal charging and discharging strategy of each target vehicle; The preset constraints include quantity constraints, power constraints, and demand constraints; The power constraint condition is used to constrain the battery power of the target vehicle; The power constraint condition is used to constrain the battery power of the target vehicle; The demand constraint condition is used to constrain the demand of the charging station.

6. The method according to claim 5, characterized in that The power constraint condition includes one or more or all of the power upper and lower limit constraint conditions, the first terminal power constraint condition, and the second terminal power constraint condition; The upper and lower limit constraints of the power are: i represents the serial number of the target vehicle, t represents the serial number of the sub-period, represents the battery power of the i-th target vehicle at the beginning of the t-th sub-period, and represent the lower limit value and the upper limit value of the battery power of the i-th target vehicle within the charging time range respectively; The first terminal power constraint condition is: represents the minimum target power of the i-th target vehicle at the end of charging, represents the actual power of the i-th target vehicle at the end of charging, M represents a preset value and M is greater than the upper limit of the battery power of all target vehicles within their respective charging time ranges, 0 i represents the charging result of the i-th target vehicle, 0 i =1 means that the actual power of the i-th target vehicle at the end of charging does not reach the minimum target power, o i =0 means that the actual power of the i-th target vehicle reaches the minimum target power at the end of charging; The second terminal power constraint condition is: U i It represents the difference between the actual power of the i-th target vehicle at the end of charging and the minimum target power.

7. The method according to claim 5, characterized in that The power constraint condition includes one or more or all of the charging and discharging power constraint condition, the power balance constraint condition, the group control power constraint condition, and the power conversion constraint condition; The charge and discharge power constraint condition is: represents the battery power of the i-th target vehicle in the t-th sub-period, represents the lower limit of the battery power of the i-th target vehicle in the t-th sub-period, represents the upper limit of the battery power of the i-th target vehicle in the t-th sub-period; The power balance constraint is: represents the power consumption of the charging station in the tth sub-period, represents the power generation power of the new energy power generation equipment in the charging station in the tth sub-period, represents the power consumption of the station load in the charging station in the t-th sub-period, where the station load refers to the load in the charging station other than the bidirectional charging and discharging equipment; The group control power constraint condition is: P Q Indicates the threshold of group control power; The power conversion constraint is: represents the absolute value of the battery power change of the i-th target vehicle in the t-th sub-period, represents the battery power of the i-th target vehicle in the t-1-th sub-period.

8. The method according to claim 5, characterized in that The demand constraint condition is and P X Indicates the maximum demand generated by the charging station during the preset planning period, represents the power consumption of the charging station in the tth sub-period, Indicates the target demand of the charging station during the preset planning period.

9. The method according to claim 8, characterized in that The target demand Obtained by: Obtaining the maximum demand of the charging station before the start time of the preset planning period; Selecting a larger one from the maximum demand of the charging station before the starting time and the preset demand threshold of the charging station as the candidate demand; According to the candidate demands, a target demand of the charging station is obtained.

10. The method according to claim 5, characterized in that The preset constraint condition includes a reverse flow constraint condition, and the reverse flow constraint condition is and represents the reverse power of the charging station in the tth sub-period, P N Indicates the anti-backflow threshold, Represents the power consumption of the charging station in the tth sub-period.