An electric vehicle charging and discharging optimization scheduling method and device
By training a charging behavior prediction model and constructing a mixed-integer linear programming model, the charging and discharging scheduling of electric vehicles is optimized. This solves the problems of adjustable capacity assessment error and neglect of user demand in the existing technology for electric vehicles participating in the secondary frequency regulation of the power grid, and realizes refined scheduling and efficient frequency regulation services.
Patent Information
- Application Number
- CN202611230706.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for electric vehicles to participate in the secondary frequency regulation of the power grid have problems such as large errors in directly predicting the overall adjustable capacity of the fleet, relying on the assumption of a fixed expected state of charge and ignoring user charging demand, making it difficult to accurately assess the available frequency regulation capacity.
By collecting historical charging data of electric vehicles, a charging behavior prediction model is trained, the theoretical off-site charge value and expected state of charge are calculated for each vehicle, and the vehicle operating domain is divided by combining the upper and lower limit parameters of the battery state of charge. A mixed integer linear programming model is constructed to optimize the charging and discharging scheduling plan and to apply to the power grid for the overall available frequency regulation capacity.
A refined assessment of available frequency regulation capacity reduces the risk of users' charging demand deviating when they are offline, balancing economic benefits, user satisfaction, and frequency regulation service quality, thereby improving the accuracy and profitability of frequency regulation services.
Smart Images

Figure CN123183995A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optimized scheduling technology for electric vehicles participating in secondary frequency regulation of the power grid, specifically to an optimized scheduling method and apparatus for electric vehicle charging and discharging. Background Technology
[0002] With the rapid growth of electric vehicle ownership, their flexible and controllable charging and discharging capabilities provide considerable demand-side regulation potential for the power system. In the power ancillary services market, electric vehicles are typically aggregated by electric vehicle aggregators, consolidating the dispersed frequency regulation capabilities of individual vehicles into a large-scale frequency regulation capacity. These aggregators then act as intermediaries in the secondary frequency regulation service market, earning revenue based on capacity and mileage. As intermediaries connecting a massive number of users with the frequency regulation market, electric vehicle aggregators, when participating in frequency regulation ancillary services, need to accurately assess the available frequency regulation capacity of their fleets in advance during the day-ahead phase to submit applications to the market. Simultaneously, they need to rationally formulate charging and discharging plans for each electric vehicle while ensuring user charging needs are met, thereby maximizing their own revenue while satisfying the grid's frequency regulation performance requirements. Therefore, how to accurately assess available frequency regulation capacity and optimize charging and discharging scheduling accordingly has become a critical issue that urgently needs to be addressed.
[0003] Existing research methods for obtaining the frequency-tunable capacity of electric vehicles can be broadly categorized into two types: directly predicting the overall adjustable capacity of the electric vehicle fleet, or characterizing its feasible region through the establishment of physical models. However, both of these methods have limitations. For the former, since the overall adjustable capacity is affected by the coupling of multiple factors, direct prediction is prone to large errors, and relying solely on the overall adjustable capacity to formulate a unified scheduling strategy is insufficient to fully utilize the differentiated frequency-tunable potential of each electric vehicle. The latter method is usually based on numerous assumptions and is affected by the uncertainty of electric vehicle behavior in actual operation, making it difficult to guarantee the effectiveness of the strategy and resulting in low practicality.
[0004] Furthermore, existing research largely neglects to consider users' actual charging needs when formulating charging and discharging strategies and establishing corresponding scheduling models, assuming a fixed user's expected charging capacity or requiring users to set their own expected value. This can lead to several issues. Firstly, users may be unwilling to actively set their expected state of charge (SOC), or tend to set excessively high SOCs, making it difficult to accurately assess the actual available frequency regulation capacity and formulate reasonable scheduling plans. Secondly, electric vehicle users may leave charging stations early due to uncertainties, causing the model's assumed fixed SOC to deviate from reality, increasing the risk of regulation failure and reducing users' willingness to participate in frequency regulation. This negatively impacts the quality of frequency regulation services provided by electric vehicle aggregators and their market revenue.
[0005] Therefore, there is an urgent need for an optimized scheduling method for electric vehicle charging and discharging to solve the problems of large errors in the direct prediction of the overall adjustable capacity of the fleet, or reliance on the assumption of a fixed expected state of charge while ignoring user charging needs. Summary of the Invention
[0006] To address these issues, the present invention provides an electric vehicle charging and discharging optimization scheduling method and apparatus to solve problems in existing technologies, such as large errors in directly predicting the overall adjustable capacity of the fleet, reliance on fixed expected state of charge assumptions while ignoring user charging needs, and difficulty in accurately assessing available frequency-adjustable capacity.
[0007] To achieve the above objectives, the present invention provides the following technical solution: a method for optimizing the charging and discharging schedule of electric vehicles, comprising:
[0008] Electric vehicle aggregators collect historical charging data of local electric vehicles and train a charging behavior prediction model based on the historical charging data to obtain the trained charging behavior prediction model; using the trained charging behavior prediction model, they predict and output the charging behavior parameters of electric vehicles.
[0009] Based on the charging behavior parameters of electric vehicles, the theoretical off-site charge value of each vehicle under rated power charging conditions is calculated, and the expected state of charge of each electric vehicle is adaptively solved by combining the preset charging level threshold.
[0010] Based on the charging behavior parameters of electric vehicles and the desired state of charge, combined with the inherent charging and discharging power limits of electric vehicles and the upper and lower limits of battery state of charge parameters, the dynamic upper and lower boundaries of the state of charge of a single vehicle are calculated at each time step, and several types of vehicle operating domains are divided.
[0011] Based on the upper and lower boundaries of the vehicle operating domain, the up-modulation and down-modulation capacity of a single electric vehicle are calculated respectively; by aggregating the frequency modulation capacity of all vehicles through Minkowski sum, the overall available frequency modulation capacity of the aggregator is obtained.
[0012] Based on the desired state of charge and the overall available frequency regulation capacity of the aggregator, a multi-dimensional operational constraint is introduced to construct an electric vehicle charging and discharging optimization scheduling model.
[0013] The electric vehicle charging and discharging optimization scheduling model is transformed into a mixed integer linear programming model and solved by setting a solver to obtain the optimal charging and discharging scheduling plan; the optimal charging and discharging scheduling plan is issued to all electric vehicles for execution, and the overall available frequency regulation capacity is reported to the power grid secondary frequency regulation market.
[0014] As a preferred scheme of electric vehicle charging and discharging optimization scheduling method, the charging behavior parameters of electric vehicles include the electric vehicle's access time, departure time, and initial state of charge.
[0015] The expression for the charging behavior parameter is:
[0016]
[0017] In the formula, For the first Charging behavior parameters of electric vehicles; For the predicted access time; For the predicted departure time; This represents the predicted initial state of charge.
[0018] As a preferred scheme for optimizing the charging and discharging scheduling of electric vehicles, the theoretical off-site charge value of the vehicle under rated power charging conditions is:
[0019]
[0020] In the formula, For the first The state of charge of an electric vehicle when it is off-grid; This is the initial state of charge; For battery charging efficiency; Rated charging power; This refers to the departure time; For access time; Battery capacity;
[0021] The expression for the desired state of charge of each electric vehicle is:
[0022]
[0023] In the formula, The desired state of charge; This is the preset charging level threshold.
[0024] As a preferred scheme for an optimized scheduling method for electric vehicle charging and discharging, the vehicle operating domain is divided into four categories:
[0025] The first type of vehicle operating domain: When charging, users can charge to the maximum state of charge or discharge to the minimum state of charge;
[0026] The formulas for calculating the upper and lower boundaries of the operating domain for the first type of vehicle are:
[0027]
[0028]
[0029] The second type of vehicle operating domain: When charging, the user can charge to the maximum state of charge, but when discharging, the user either reaches or cannot reduce to the minimum state of charge.
[0030] The calculation formulas for the upper and lower boundaries of the operating domain of the second type of vehicle are as follows:
[0031]
[0032]
[0033] The third type of vehicle operating domain: when the user is charging, the maximum state of charge may be reached or may not be reached, but the discharge may reduce the state of charge to the minimum.
[0034] The formulas for calculating the upper and lower boundaries of the operating domain for the third type of vehicle are as follows:
[0035]
[0036]
[0037] The fourth type of vehicle operating domain: when the user is charging, the user may be unable to reach the maximum state of charge, or when the user is discharging, the user may be unable to reach the minimum state of charge.
[0038] The formula for calculating the upper and lower boundaries of the operating domain of the fourth type of vehicle is:
[0039]
[0040]
[0041] In the formula, and The first electric vehicles The upper and lower boundaries of the runtime domain at any given time; and These are the upper and lower limits of the state of charge, respectively; and These are charging efficiency and discharging efficiency, respectively. and These are the maximum charging power and the maximum discharging power, respectively. This refers to the current position of the electric vehicle within the charging station.
[0042] As a preferred scheme for an optimized scheduling method for electric vehicle charging and discharging, the calculation formulas for the up-regulation capacity and the down-regulation capacity of a single electric vehicle are as follows:
[0043]
[0044]
[0045] In the formula, and The first electric vehicles The up and down frequency modulation capacity at specific times; For the electric vehicle in The actual power at any given time, with positive values during charging and negative values during discharging; The state of charge level of the electric vehicle; This refers to the duration of the frequency modulation response;
[0046] The formula for calculating the overall available frequency modulation capacity of the aggregator is as follows:
[0047]
[0048]
[0049] In the formula, and For aggregators Overall adjustment of frequency modulation capacity at different times; For Minkowski and operators.
[0050] As a preferred embodiment of an electric vehicle charging and discharging optimization scheduling method, the objective function expression of the electric vehicle charging and discharging optimization scheduling model is:
[0051]
[0052] In the formula, and These are the prices for frequency modulation capacity and frequency modulation mileage, respectively. For frequency modulation mileage; For aggregated frequency modulation capacity; The unit price of electricity; This refers to the actual charging power. These are the weighting coefficients; for Time assigned to the first The commanded power of an electric vehicle; This represents the actual response power of the electric vehicle at that moment;
[0053] The expression for the multi-dimensional operational constraints is:
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060] In the formula, For the first electric vehicles The state of charge at any given moment; For the first The state of charge of an electric vehicle at time t+1; , The first electric vehicles The actual charging and discharging power at any given moment; and These represent the charging and discharging states of the electric vehicle. The threshold set for the model.
[0061] The present invention also provides an electric vehicle charging and discharging optimization scheduling device, which employs the above-mentioned electric vehicle charging and discharging optimization scheduling method, including:
[0062] The charging behavior parameter acquisition module is used by electric vehicle aggregators to collect historical charging data of local electric vehicles, and to train a charging behavior prediction model based on the historical charging data to obtain the trained charging behavior prediction model; and to predict and output the charging behavior parameters of electric vehicles through the trained charging behavior prediction model.
[0063] The expected state of charge module is used to calculate the theoretical off-site charge value of each vehicle under rated power charging conditions based on the charging behavior parameters of the electric vehicle, and adaptively solve the expected state of charge of each electric vehicle in combination with a preset charging level threshold.
[0064] The vehicle operation domain division module is used to calculate the dynamic upper and lower boundaries of the single vehicle's state of charge on a time-by-time basis, based on the charging behavior parameters of the electric vehicle and the expected state of charge, combined with the inherent charging and discharging power limit of the electric vehicle and the upper and lower limits of the battery's state of charge parameters, and to divide the vehicle operation domain into several types.
[0065] The module for obtaining the overall available frequency modulation capacity of the aggregator is used to calculate the up-modulation and down-modulation capacity of a single electric vehicle based on the upper and lower boundaries of the vehicle operating domain; and to obtain the overall available frequency modulation capacity of the aggregator by aggregating the frequency modulation capacity of all vehicles through Minkowski sum.
[0066] The electric vehicle charging and discharging optimization scheduling model construction module is used to construct an electric vehicle charging and discharging optimization scheduling model based on the expected state of charge and the overall available frequency regulation capacity of the aggregator, and by introducing multi-dimensional operational constraints.
[0067] The optimal charging and discharging scheduling plan acquisition and execution module is used to transform the electric vehicle charging and discharging optimization scheduling model into a mixed integer linear programming model and solve it by setting a solver to obtain the optimal charging and discharging scheduling plan; issue instructions for the optimal charging and discharging scheduling plan to all electric vehicles for execution; and report the overall available frequency regulation capacity to the power grid secondary frequency regulation market.
[0068] As a preferred embodiment of an electric vehicle charging and discharging optimization scheduling device, the charging behavior parameter acquisition module includes the electric vehicle's access time, departure time, and initial state of charge.
[0069] The expression for the charging behavior parameter is:
[0070]
[0071] In the formula, For the first Charging behavior parameters of electric vehicles; For the predicted access time; For the predicted departure time; This represents the predicted initial state of charge.
[0072] As a preferred embodiment of an electric vehicle charging and discharging optimization scheduling device, in the desired state of charge module, the theoretical off-site charge value of the vehicle under rated power charging conditions is:
[0073]
[0074] In the formula, For the first The state of charge of an electric vehicle when it is off-grid; This is the initial state of charge; For battery charging efficiency; Rated charging power; This refers to the departure time; For access time; Battery capacity;
[0075] The expression for the desired state of charge of each electric vehicle is:
[0076]
[0077] In the formula, The desired state of charge; This is the preset charging level threshold.
[0078] As a preferred embodiment of an electric vehicle charging and discharging optimization scheduling device, the vehicle operating domain division module divides the vehicle operating domain into four categories:
[0079] The first type of vehicle operating domain: When charging, users can charge to the maximum state of charge or discharge to the minimum state of charge;
[0080] The formulas for calculating the upper and lower boundaries of the operating domain for the first type of vehicle are:
[0081]
[0082]
[0083] The second type of vehicle operating domain: When charging, the user can charge to the maximum state of charge, but when discharging, the user either reaches or cannot reduce to the minimum state of charge.
[0084] The calculation formulas for the upper and lower boundaries of the operating domain of the second type of vehicle are as follows:
[0085]
[0086]
[0087] The third type of vehicle operating domain: when the user is charging, the maximum state of charge may be reached or may not be reached, but the discharge may reduce the state of charge to the minimum.
[0088] The formulas for calculating the upper and lower boundaries of the operating domain for the third type of vehicle are as follows:
[0089]
[0090]
[0091] The fourth type of vehicle operating domain: when the user is charging, the user may be unable to reach the maximum state of charge, or when the user is discharging, the user may be unable to reach the minimum state of charge.
[0092] The formula for calculating the upper and lower boundaries of the operating domain of the fourth type of vehicle is:
[0093]
[0094]
[0095] In the formula, and The first electric vehicles The upper and lower boundaries of the runtime domain at any given time; and These are the upper and lower limits of the state of charge, respectively; and These are charging efficiency and discharging efficiency, respectively. and These are the maximum charging power and the maximum discharging power, respectively. This refers to the current position of the electric vehicle within the charging station.
[0096] As a preferred embodiment of an electric vehicle charging and discharging optimization scheduling device, the calculation formulas for the upward and downward frequency modulation capacities of a single electric vehicle in the overall available frequency modulation capacity acquisition module of the aggregator are as follows:
[0097]
[0098]
[0099] In the formula, and The first electric vehicles The up and down frequency modulation capacity at specific times; For the electric vehicle in The actual power at any given time, with positive values during charging and negative values during discharging; The state of charge level of the electric vehicle; This refers to the duration of the frequency modulation response;
[0100] The formula for calculating the overall available frequency modulation capacity of the aggregator is as follows:
[0101]
[0102]
[0103] In the formula, and For aggregators Overall adjustment of frequency modulation capacity at different times; For Minkowski and operators.
[0104] As a preferred embodiment of an electric vehicle charging and discharging optimization scheduling device, the objective function expression of the electric vehicle charging and discharging optimization scheduling model in the electric vehicle charging and discharging optimization scheduling model construction module is as follows:
[0105]
[0106] In the formula, and These are the prices for frequency modulation capacity and frequency modulation mileage, respectively. For frequency modulation mileage; For aggregated frequency modulation capacity; The unit price of electricity; This refers to the actual charging power. These are the weighting coefficients; for Time assigned to the first The commanded power of an electric vehicle; This represents the actual response power of the electric vehicle at that moment;
[0107] The expression for the multi-dimensional operational constraints is:
[0108]
[0109]
[0110]
[0111]
[0112]
[0113]
[0114] In the formula, For the first electric vehicles The state of charge at any given moment; For the first The state of charge of an electric vehicle at time t+1; , The first electric vehicles The actual charging and discharging power at any given moment; and These represent the charging and discharging states of the electric vehicle. The threshold set for the model.
[0115] The present invention has the following advantages:
[0116] First, this invention characterizes the operating domain for each electric vehicle and calculates the dynamic upper and lower bounds of the state of charge at each moment. Compared with directly predicting the overall adjustable capacity of the fleet, it can more accurately assess the available frequency-tunable capacity and more accurately reflect the overall available frequency-tunable capacity of the fleet.
[0117] Secondly, based on the charging behavior prediction results, this invention proposes a differentiated calculation method for the expected state of charge, which eliminates the need for users to actively set the target state of charge. This method can ensure the charging needs of users when they are off-grid, while also preserving sufficient frequency regulation capacity and reducing the risk of regulation failure caused by fixed assumptions deviating from reality.
[0118] Third, this invention proposes an optimized scheduling strategy for electric vehicle charging and discharging power for aggregators participating in the secondary frequency regulation market. It can ensure users' charging needs while preventing scheduling entities from falsely reporting capacity. It solves the problems of existing technologies that make it difficult to accurately assess available frequency regulation capacity and lack consideration for users' travel needs, taking into account the three dimensions of economic benefits, user satisfaction, and frequency regulation service quality. Attached Figure Description
[0119] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely exemplary, and those skilled in the art can derive other embodiments based on the provided drawings without creative effort.
[0120] The structures, proportions, sizes, etc. illustrated in this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed herein, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.
[0121] Figure 1 This is a flowchart illustrating an optimized scheduling method for charging and discharging electric vehicles provided in Embodiment 1 of the present invention.
[0122] Figure 2 This is a schematic diagram illustrating the specific implementation process of an electric vehicle charging and discharging optimization scheduling method provided in Embodiment 1 of the present invention;
[0123] Figure 3 This is a schematic diagram of the structure of four types of operating domains in an electric vehicle charging and discharging optimization scheduling method provided in Embodiment 1 of the present invention;
[0124] Figure 4 This is a schematic diagram of the charging and discharging scheduling results of a single electric vehicle in one possible embodiment provided in Embodiment 1 of the present invention;
[0125] Figure 5 This is a schematic diagram of the architecture of an electric vehicle charging and discharging optimization scheduling device provided in Embodiment 2 of the present invention. Detailed Implementation
[0126] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0127] Example 1
[0128] See Figure 1 and Figure 2 Embodiment 1 of the present invention provides a method for optimizing the charging and discharging scheduling of electric vehicles, comprising the following steps:
[0129] S1. The electric vehicle aggregator collects and obtains historical charging data of local electric vehicles, and trains a charging behavior prediction model based on the historical charging data to obtain the trained charging behavior prediction model; and predicts and outputs the charging behavior parameters of electric vehicles through the trained charging behavior prediction model.
[0130] S2. Based on the charging behavior parameters of electric vehicles, calculate the theoretical off-site charge value of each vehicle under the rated power charging condition, and adaptively solve the expected state of charge of each electric vehicle in combination with the preset charging level threshold.
[0131] S3. Based on the charging behavior parameters of the electric vehicle and the expected state of charge, combined with the inherent charging and discharging power limit of the electric vehicle and the upper and lower limits of the battery state of charge, calculate the dynamic upper and lower boundaries of the state of charge of a single vehicle at each time step, and divide the vehicle operating domain into several types.
[0132] S4. Based on the upper and lower boundaries of the vehicle operating domain, calculate the up-modulation capacity and down-modulation capacity of a single electric vehicle; aggregate the modulation capacities of all vehicles using the Minkowski sum to obtain the overall available modulation capacity of the aggregator.
[0133] S5. Based on the desired state of charge and the overall available frequency regulation capacity of the aggregator, multi-dimensional operational constraints are introduced to construct an electric vehicle charging and discharging optimization scheduling model.
[0134] S6. Transform the electric vehicle charging and discharging optimization scheduling model into a mixed integer linear programming model and solve it using a set solver to obtain the optimal charging and discharging scheduling plan; issue instructions to all electric vehicles to execute the optimal charging and discharging scheduling plan, and report the overall available frequency regulation capacity to the power grid secondary frequency regulation market.
[0135] In this embodiment, in step S1, the electric vehicle aggregator collects and obtains historical charging data of local electric vehicles, and trains a charging behavior prediction model based on the historical charging data to obtain the trained charging behavior prediction model; the trained charging behavior prediction model is used to predict and output the charging behavior parameters of electric vehicles.
[0136] Specifically, electric vehicle aggregators collect historical data on local electric vehicle charging behavior, train prediction models, and obtain predicted parameters for each electric vehicle charging behavior. The charging behavior parameters of an electric vehicle are expressed as follows:
[0137] (1)
[0138] In the formula, For the first Charging behavior parameters of electric vehicles; For the predicted access time; For the predicted departure time; This represents the predicted initial state of charge.
[0139] Based on the above predictions, the operating domain of each electric vehicle can be characterized, thereby improving the accuracy of aggregated frequency regulation capacity assessment. Aggregators then adjust the charging and discharging power of electric vehicles within their operating domains to execute scheduling plans.
[0140] In this embodiment, the charging behavior parameters are derived from a prediction model trained by the electric vehicle aggregator using local historical charging data. The accuracy of this prediction directly affects the accuracy of subsequent frequency regulation capacity assessment. The more accurate the prediction, the closer the aggregator's estimate of the schedulable space for each electric vehicle within the scheduling cycle will be to reality. This is more conducive to formulating a reasonable charging and discharging scheduling plan and reducing the deviation between the declared capacity and the actual adjustable capacity.
[0141] In this embodiment, in step S2, based on the charging behavior parameters of the electric vehicle, the theoretical off-site charge value of the vehicle under the rated power charging condition is calculated for each vehicle, and the expected state of charge of each electric vehicle is adaptively solved by combining the preset charging level threshold.
[0142] Specifically, existing research, when considering user travel needs, typically requires users to submit their desired state of charge (SOC) or assume a fixed value. However, on the one hand, users may be unwilling to actively set their charging expectations or tend to set excessively high SOC expectations, thus compressing the available frequency regulation capacity. On the other hand, electric vehicle users are affected by uncertainties and may leave the station early, causing the model's assumed expected value to deviate from reality. Therefore, this invention proposes a differentiated SOC calculation method based on charging behavior prediction results to ensure that electric vehicles have sufficient charge when leaving the station.
[0143] Specifically, for an electric vehicle whose access time, departure time, and initial state of charge have been predicted, the amount of electricity the vehicle would receive under normal charging conditions at rated power, without participating in frequency regulation services, can be calculated:
[0144] (2)
[0145] In the formula, For the first The state of charge of an electric vehicle when it is off-grid; This is the initial state of charge; For battery charging efficiency; Rated charging power; This refers to the departure time; For access time; This refers to the battery capacity.
[0146] Considering that electric vehicles typically have a charging limit during actual operation, their state of charge when off-grid should not exceed their maximum allowable value, thus meeting the requirements. Furthermore, when users spend a considerable amount of time at charging stations, electric vehicles only need to be charged to a certain level to meet their subsequent travel needs, without needing to be charged to the maximum limit. Based on the above analysis, the model determines the corresponding expected state of charge value according to the differences in the predicted charging behavior results:
[0147] (3)
[0148] In the formula, The desired state of charge; The preset charging level threshold is set to 80% in this invention. This setting can meet the user's charging needs while maintaining sufficient margin for down-regulation capacity.
[0149] The proposed method for calculating the expected state of charge can adaptively reflect the differences in user dwell time and charging needs. Furthermore, it requires no user intervention in setting the parameters, reducing the user's burden and avoiding the risk of adjustment failure due to assumed values deviating from reality.
[0150] In this embodiment, in step S3, based on the charging behavior parameters of the electric vehicle and the desired state of charge, combined with the inherent charging and discharging power limit of the electric vehicle and the upper and lower limits of the battery state of charge, the dynamic upper and lower boundaries of the state of charge of a single vehicle are calculated at each time step, and several types of vehicle operating domains are divided.
[0151] Specifically, unlike traditional scheduling models that use globally unified upper and lower bounds of the state of charge to characterize the feasible operating domain of electric vehicle groups and describe user charging demand with fixed values, the operating domain characterization method proposed in this invention calculates dynamic upper and lower bounds of the state of charge on a time-by-time basis based on the predicted information of each electric vehicle. Under the premise of ensuring the off-grid state of charge demand of each user, it accurately quantifies the actual available frequency regulation capacity of each electric vehicle at the current moment.
[0152] Within a scheduling cycle, the set of possible variations in the state of charge of an electric vehicle across different time periods is defined as its operating domain. Based on the operational domain, the schedulable capacity of electric vehicles at different times can be accurately calculated, and a scheduling plan can then be formulated. Depending on the differences in the prediction results, the access status of electric vehicles within the scheduling cycle will also vary. For example... Figure 3 As shown, based on whether its highest and lowest states of charge can be reached, the operating domain can be divided into four types:
[0153] For the first type of operating domain, users can charge to the maximum state of charge limit while connected to a charging station. It can also discharge at maximum power to the minimum permissible state of charge. At this point, the operating domain is a complete hexagon, with its upper and lower boundaries as follows:
[0154] (4)
[0155] (5)
[0156] In the formula, and The first electric vehicles The upper and lower boundaries of the runtime domain at any given time; and These are the upper and lower limits of the state of charge, respectively; and These are charging efficiency and discharging efficiency, respectively. and These are the maximum charging power and the maximum discharging power, respectively. This refers to the current position of the electric vehicle within the charging station.
[0157] These types of electric vehicles have ample time spent at charging stations, providing significant scheduling flexibility and representing a primary resource for frequency regulation services. The upper boundary corresponds to the scenario where, upon user access, the vehicle charges at maximum power until the SoC reaches its limit, and then remains at that level until the user leaves the charging station. The lower boundary considers the scenario where, upon user access, the vehicle initially discharges at maximum power to the minimum level, maintains that level for a period, and then, to ensure the desired charging level is met upon user departure, charges at maximum power until the user leaves.
[0158] If a user can charge to the maximum capacity after connecting to a charging station, but fails to reach or reduce to the minimum state of charge during discharge, then their operating domain belongs to the second type, and its upper and lower boundaries are:
[0159] (6)
[0160] (7)
[0161] The upper limit of this type of electric vehicle is the same as that of the first type, but during the discharge phase, due to the high initial state of charge level or the short stay time at the charging station, it may just reach or fail to drop to the theoretical minimum value.
[0162] For the third type of operating domain, the user can reach the minimum state of charge when discharging, but may not reach the maximum state of charge when charging. Its upper and lower boundaries are:
[0163] (8)
[0164] (9)
[0165] The lower boundary of this type of electric vehicle is the same as that of the first type, but because the initial state of charge is relatively low or the time spent at the charging station is insufficient, the maximum state of charge may be reached at the right time or not at all during charging.
[0166] For the last type of operating domain, electric vehicles of this type either reach or fail to reach their maximum and minimum state of charge. These electric vehicles have the shortest dwell time at stations and the smallest possible dispatchable range. Their upper and lower boundaries are:
[0167] (10)
[0168] (11)
[0169] Furthermore, some electric vehicles may lack discharge capacity and therefore cannot participate in frequency regulation services; these special cases will not be discussed separately in this invention. By subdividing the operating domain of electric vehicles into the aforementioned types, this invention can provide matching upper and lower boundaries of the state of charge for electric vehicles with different dwell times and charge conditions. This allows for a more accurate characterization of the actual available adjustment space for each electric vehicle at each moment, avoiding overestimation or underestimation of its frequency regulation capability, and laying the foundation for the formulation of subsequent charging and discharging scheduling plans.
[0170] In this embodiment, in step S4, based on the upper and lower boundaries of the vehicle operating domain, the up-modulation capacity and down-modulation capacity of a single electric vehicle are calculated respectively; by aggregating the modulation capacities of all vehicles through Minkowski sum, the overall available modulation capacity of the aggregator is obtained.
[0171] Specifically, for a single electric vehicle, its frequency regulation capacity is constrained by both the upper and lower boundaries of the operating domain and the charging and discharging power limits. Based on the operating domain conditions, the up-regulation and down-regulation capacity of each electric vehicle can be calculated separately:
[0172] (12)
[0173] (13)
[0174] In the formula, and The first electric vehicles The up and down frequency modulation capacity at specific times; For the electric vehicle in The actual power at any given time, with positive values during charging and negative values during discharging; The state of charge level of the electric vehicle; This represents the duration of the frequency modulation response.
[0175] For electric vehicle aggregators operating charging stations, the frequency regulation capacity reported to the power grid should be the aggregated value of the frequency regulation capacity of all available electric vehicles within the scheduling cycle. This aggregation process can be achieved by calculating the Minkowski sum of the frequency regulation capacities of each electric vehicle:
[0176] (14)
[0177] (15)
[0178] In the formula, and For aggregators Overall adjustment of frequency modulation capacity at different times; For Minkowski and operators.
[0179] By employing the Minkowski method and aggregating the frequency regulation capacity of each electric vehicle, the overall fleet's up- and down-regulation capacity at each moment can be accurately characterized, taking into account the power and state of charge constraints of each electric vehicle, rather than simply summing the capacities of each vehicle. This more realistically reflects the range of frequency regulation capacity that can be declared after aggregation, and avoids overestimating the overall adjustable capacity due to ignoring individual vehicle constraints.
[0180] In this embodiment, in step S5, based on the desired state of charge and the overall available frequency regulation capacity of the aggregator, multi-dimensional operational constraints are introduced to construct an electric vehicle charging and discharging optimization scheduling model.
[0181] Specifically, the goal of electric vehicle aggregators participating in frequency regulation and formulating charging and discharging plans is to maximize their overall benefits from participating in frequency regulation services while meeting user travel and charging needs and grid frequency regulation performance requirements. Therefore, the model's objective function consists of several parts:
[0182] (16)
[0183] In the formula, and These are the prices for frequency modulation capacity and frequency modulation mileage, respectively. For frequency modulation mileage; For aggregated frequency modulation capacity; The unit price of electricity; This refers to the actual charging power. These are the weighting coefficients; for Time assigned to the first The commanded power of an electric vehicle; This represents the actual response power of the electric vehicle at that moment.
[0184] The objective function consists of three parts, with the first term representing the frequency modulation revenue obtained by the aggregator. Secondary frequency modulation revenue typically comprises two parts: frequency modulation capacity revenue and frequency modulation mileage revenue. Since the frequency modulation market usually requires aggregators to provide symmetrical up and down modulation capacities, the aggregated frequency modulation capacity... Take the minimum value of the capacity in both directions. The second term is the net charge / discharge cost. The time indicates the electricity cost incurred during charging. The term represents the revenue generated from electricity sales during discharge. To ensure the quality of frequency regulation services and prevent aggregators from falsely reporting their frequency regulation capacity, the third term is a frequency regulation accuracy term introduced into the model to incentivize aggregators to pursue better frequency regulation performance.
[0185] The above three factors comprehensively reflect the aggregator's consideration of balancing economics and service quality. Furthermore, in practical applications, a battery degradation penalty term can be further introduced into the objective function as needed to achieve a balance between frequency modulation benefits and long-term battery health.
[0186] In this embodiment, to ensure that the scheduling decisions obtained by the model are feasible in various real-world scenarios, the model introduces the following constraints:
[0187] (17)
[0188] (18)
[0189] (19)
[0190] (20)
[0191] (twenty one)
[0192] (twenty two)
[0193] In the above formula, constraint (17) represents the evolution of the electric vehicle's state of charge with charge and discharge power, initially... for Constraint (18) ensures that the state of charge of each electric vehicle remains within the operating domain throughout the entire cycle. Constraint (19) requires that the actual charging and discharging power does not exceed the corresponding upper and lower limits of the maximum power, where and This refers to the charging and discharging state of an electric vehicle when the user is charging. The value is 1 when not charging and 0 when discharging. The value is 1 when not discharging and 0 when not discharging. Constraint (20) is a uniqueness constraint for charging and discharging, ensuring that the user can only be in either charging or discharging state within a cycle. To prevent the frequency regulation service from affecting the user's normal charging needs, the model also introduces a charging demand constraint, which requires that when the user leaves the charging station, their charge level should meet the expected charge level set by the model. Finally, constraint (22) limits the deviation between the actual output and the frequency regulation command signal to prevent aggregators from seeking excessive profits by overstating capacity, where The threshold set for the model.
[0194] In this embodiment, in step S6, the electric vehicle charging and discharging optimization scheduling model is transformed into a mixed integer linear programming model and solved by setting a solver to obtain the optimal charging and discharging scheduling plan; the optimal charging and discharging scheduling plan is issued to all electric vehicles for execution, and the overall available frequency regulation capacity is reported to the power grid secondary frequency regulation market.
[0195] Specifically, after establishing the charging and discharging optimization scheduling model, the problem is transformed into a mixed-integer linear programming problem, which can be solved using the Gurobi commercial solver. The complete day-ahead scheduling process is as follows: First, the charging behavior prediction model for all electric vehicles is used to predict the charging behavior of all electric vehicles the following day. Then, based on the prediction results, the expected charge level of each electric vehicle is calculated and the operating domain is determined. An optimization scheduling model is then established and the solver is called to formulate the corresponding charging and discharging scheduling plan. Finally, the scheduling plan is distributed to each electric vehicle for execution, and the corresponding available frequency regulation capacity is declared to the frequency regulation market.
[0196] In one possible implementation, a verification example is provided as follows:
[0197] In this embodiment, the number of electric vehicles and their charging behavior parameters in the simulation are output by the electric vehicle charging behavior prediction model, totaling 207 vehicles. The frequency modulation signal uses historical RegD signal data published by PJM in November 2015, with a sampling interval of 2 seconds and a total of 302,400 frequency modulation commands. The electricity price, frequency modulation capacity price, and frequency modulation mileage price for each time period are also taken from real historical data from PJM. The battery parameters are set as follows: the upper and lower limits of the state of charge are 95% and 10%, respectively; the charging and discharging efficiency is 95%; the maximum charging power and maximum discharging power are 7kW and 5kW, respectively; and the rated charging power is 5kW. The optimization model is solved using the Gurobi solver.
[0198] like Figure 4 The diagram shows the scheduling results for a specific electric vehicle in the fleet. It demonstrates that the scheduled state-of-charge (SOC) trajectory remained within the upper and lower boundaries of the operating domain, and the SOC at departure time precisely reached 80%, accurately meeting the desired SOC requirement. Throughout the entire stopover period, the scheduling model arranged 36 charging periods and 23 discharging periods. Discharging was concentrated during the high-price period from 19:00 to 24:00, while charging was prioritized during the low-price period from 07:00 to 14:00, fully reflecting the economic value of V2G.
[0199] Furthermore, to verify the effectiveness of the scheduling strategy proposed in this invention, this patent was compared with other benchmark scheduling strategies, and the comparison results are shown in Table 1: Optimize scheduling methods Frequency modulation revenue / USD Electricity purchase cost / USD Net income / USD FM performance score Average Off-Site State of Charge Disorderly charging 0.00 197.94 -197.94 \ 59.6% Fast charging 0.00 153.76 -153.76 \ 54.4% Energy arbitrage only 0.00 94.80 -94.80 \ 50.0% The desired state of charge is fixed at 80%. 283.29 180.73 102.56 86.1 56.4% Target without frequency modulation accuracy 301.28 165.23 136.06 86.7 54.4% No desired state of charge constraint 336.19 0.00 336.19 98.4 34.8% This article's method 288.22 158.03 130.19 87.7 54.4%
[0200] Table 1 Comparison Results of Scheduling Strategies
[0201] Among these, "disordered charging" means that electric vehicles continuously charge at rated power to the upper limit during their stay at the charging station, without participating in the frequency regulation market. "Fast charging" means that after arriving at the station, electric vehicles do not participate in frequency regulation services, but only charge quickly to the desired state of charge (SOC). "Energy arbitrage only" involves aggregators using V2G capabilities for energy arbitrage, but without participating in the frequency regulation market. "Desired SOC fixed at 80%" means that aggregators uniformly set the expected SOC of all vehicles to 80%, and if the electric vehicle's stay time is insufficient, it charges at maximum power until leaving the station. "No frequency regulation accuracy target" means removing the frequency regulation accuracy term from the objective function. "No expected SOC constraint" means that there are no restrictions on the user's SOC when leaving the station.
[0202] As shown in Table 1, compared with the three strategies of disordered charging, fast charging, and energy arbitrage only (which do not participate in frequency regulation), this invention achieves the highest net profit of $130.19 by offsetting electricity purchase costs with frequency regulation revenue. Compared with the fixed 80% state of charge strategy, this invention has better net profit and performance score, indicating that the differentiated expected state of charge calculation method can fully tap the frequency regulation capacity of short-staying vehicles. Compared with the strategy of removing the frequency regulation accuracy term, although this invention is more conservative in reporting capacity and has slightly lower revenue, it has a higher performance score, indicating that the frequency regulation accuracy term can effectively improve the actual frequency regulation service quality and prevent false capacity reporting. Although removing the state of charge constraint increases the revenue to $336.19, the average off-site state of charge is only 34.8%, which cannot meet the charging needs of most users, thus proving the necessity of the state of charge constraint. The above results verify the effectiveness of the differentiated expected state of charge constraint and frequency regulation accuracy term designed in this invention.
[0203] The application scenarios of this invention are as follows:
[0204] In scenarios where electric vehicle aggregators act as agents for a large number of private electric vehicles to participate in the secondary frequency regulation auxiliary services of the power grid, this invention autonomously calculates the expected charge of users based on the prediction results of vehicle charging behavior, classifies the adjustable operating range of vehicles by type, aggregates the frequency regulation capacity of the fleet, and constructs a scheduling model that takes into account both revenue and frequency regulation service quality, so as to realize unified charging and discharging management of electric vehicles on a large scale.
[0205] In operational scenarios where multiple V2G interactive electric vehicles are gathered at park charging stations and public fast charging stations, this invention eliminates the need for users to manually set target power levels. It adaptively matches the charging needs of different vehicle dwell times, ensuring users' travel power needs while exploring the vehicle's frequency adjustment space.
[0206] In the operational scenario of reporting capacity before the power ancillary services date, this invention aggregates the frequency regulation capacity of a single vehicle through the Minkowski method, improves the scheduling model based on frequency regulation accuracy constraints, and reduces the deviation between the capacity reported by aggregators to the frequency regulation market and the actual adjustable capacity.
[0207] In the scenario of power grid operation where time-of-use electricity prices and frequency regulation prices fluctuate dynamically over multiple time periods, this invention comprehensively considers the cost of purchasing and selling electricity, frequency regulation revenue, and frequency regulation response deviation loss, optimizes the scheduling of vehicle charging and discharging times, and improves the overall operating revenue of aggregators.
[0208] In the daily scheduling scenario of charging stations where vehicle arrival and departure times fluctuate randomly, this invention divides the operating domains based on predicted charging parameters, distinguishes the adjustable capabilities of different vehicles, and formulates vehicle scheduling strategies to reduce the probability of frequency regulation failure caused by users leaving the site early.
[0209] In scenarios where the power grid needs to continuously acquire large-scale flexible and adjustable resources to smooth power fluctuations, this invention simultaneously constrains the minimum power requirement for vehicles leaving the station and the frequency regulation output response deviation, balancing the power grid's frequency regulation needs with the charging experience of electric vehicle users.
[0210] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.
[0211] It should be noted that the above description describes some embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0212] Example 2
[0213] See Figure 5 Embodiment 2 of the present invention also provides an electric vehicle charging and discharging optimization scheduling device, comprising:
[0214] The charging behavior parameter acquisition module 001 is used by electric vehicle aggregators to collect historical charging data of local electric vehicles, and to train a charging behavior prediction model based on the historical charging data to obtain the trained charging behavior prediction model; and to predict and output the charging behavior parameters of electric vehicles through the trained charging behavior prediction model.
[0215] The expected state of charge module 002 is used to calculate the theoretical off-site charge value of each vehicle under the rated power charging condition based on the charging behavior parameters of the electric vehicle, and adaptively solve the expected state of charge of each electric vehicle in combination with the preset charging level threshold.
[0216] The vehicle operation domain division module 003 is used to calculate the dynamic upper and lower boundaries of the single vehicle's state of charge on a time-by-time basis, based on the charging behavior parameters of the electric vehicle and the expected state of charge, combined with the inherent charging and discharging power limit of the electric vehicle and the upper and lower limits of the battery's state of charge parameters, and to divide the vehicle operation domain into several types.
[0217] The aggregator's overall available frequency modulation capacity acquisition module 004 is used to calculate the up-frequency modulation capacity and down-frequency modulation capacity of a single electric vehicle based on the upper and lower boundaries of the vehicle operating domain; and to obtain the aggregator's overall available frequency modulation capacity by aggregating the frequency modulation capacity of all vehicles through Minkowski sum.
[0218] The electric vehicle charging and discharging optimization scheduling model construction module 005 is used to construct an electric vehicle charging and discharging optimization scheduling model based on the expected state of charge and the overall available frequency regulation capacity of the aggregator, by introducing multi-dimensional operational constraints.
[0219] The optimal charging and discharging scheduling plan acquisition and execution module 006 is used to transform the electric vehicle charging and discharging optimization scheduling model into a mixed integer linear programming model and solve it by setting a solver to obtain the optimal charging and discharging scheduling plan; issue instructions for the optimal charging and discharging scheduling plan to all electric vehicles for execution; and report the overall available frequency regulation capacity to the power grid secondary frequency regulation market.
[0220] In this embodiment, the charging behavior parameter acquisition module 001 includes the electric vehicle's access time, departure time, and initial state of charge.
[0221] The expression for the charging behavior parameter is:
[0222]
[0223] In the formula, For the first Charging behavior parameters of electric vehicles; For the predicted access time; For the predicted departure time; This represents the predicted initial state of charge.
[0224] In this embodiment, in the desired state of charge module 002, the theoretical off-site charge value of the vehicle under rated power charging conditions is:
[0225]
[0226] In the formula, For the first The state of charge of an electric vehicle when it is off-grid; This is the initial state of charge; For battery charging efficiency; Rated charging power; This refers to the departure time; For access time; Battery capacity;
[0227] The expression for the desired state of charge of each electric vehicle is:
[0228]
[0229] In the formula, The desired state of charge; This is the preset charging level threshold.
[0230] In this embodiment, the vehicle operating domain division module 003 divides the vehicle operating domain into four categories:
[0231] The first type of vehicle operating domain: When charging, users can charge to the maximum state of charge or discharge to the minimum state of charge;
[0232] The formulas for calculating the upper and lower boundaries of the operating domain for the first type of vehicle are:
[0233]
[0234]
[0235] The second type of vehicle operating domain: When charging, the user can charge to the maximum state of charge, but when discharging, the user either reaches or cannot reduce to the minimum state of charge.
[0236] The calculation formulas for the upper and lower boundaries of the operating domain of the second type of vehicle are as follows:
[0237]
[0238]
[0239] The third type of vehicle operating domain: when the user is charging, the maximum state of charge may be reached or may not be reached, but the discharge may reduce the state of charge to the minimum.
[0240] The formulas for calculating the upper and lower boundaries of the operating domain for the third type of vehicle are as follows:
[0241]
[0242]
[0243] The fourth type of vehicle operating domain: when the user is charging, the user may be unable to reach the maximum state of charge, or when the user is discharging, the user may be unable to reach the minimum state of charge.
[0244] The formula for calculating the upper and lower boundaries of the operating domain of the fourth type of vehicle is:
[0245]
[0246]
[0247] In the formula, and The first electric vehicles The upper and lower boundaries of the runtime domain at any given time; and These are the upper and lower limits of the state of charge, respectively; and These are charging efficiency and discharging efficiency, respectively. and These are the maximum charging power and the maximum discharging power, respectively. This refers to the current position of the electric vehicle within the charging station.
[0248] In this embodiment, in the overall available frequency modulation capacity acquisition module 004 of the aggregator, the calculation formulas for the upward frequency modulation capacity and the downward frequency modulation capacity of a single electric vehicle are as follows:
[0249]
[0250]
[0251] In the formula, and The first electric vehicles The up and down frequency modulation capacity at specific times; For the electric vehicle in The actual power at any given time, with positive values during charging and negative values during discharging; The state of charge level of the electric vehicle; This refers to the duration of the frequency modulation response;
[0252] The formula for calculating the overall available frequency modulation capacity of the aggregator is as follows:
[0253]
[0254]
[0255] In the formula, and For aggregators Overall adjustment of frequency modulation capacity at different times; For Minkowski and operators.
[0256] In this embodiment, in the electric vehicle charging and discharging optimization scheduling model construction module 005, the objective function expression of the electric vehicle charging and discharging optimization scheduling model is:
[0257]
[0258] In the formula, and These are the prices for frequency modulation capacity and frequency modulation mileage, respectively. For frequency modulation mileage; For aggregated frequency modulation capacity; The unit price of electricity; This refers to the actual charging power. These are the weighting coefficients; for Time assigned to the first The commanded power of an electric vehicle; This represents the actual response power of the electric vehicle at that moment;
[0259] The expression for the multi-dimensional operational constraints is:
[0260]
[0261]
[0262]
[0263]
[0264]
[0265]
[0266] In the formula, For the first electric vehicles The state of charge at any given moment; For the first The state of charge of an electric vehicle at time t+1; , The first electric vehicles The actual charging and discharging power at any given moment; and These represent the charging and discharging states of the electric vehicle. The threshold set for the model.
[0267] It should be noted that the information interaction and execution process between the modules of the above system are based on the same concept as the method embodiment in Embodiment 1 of this application, and the resulting technical effects are the same as those in the method embodiment of this application. For details, please refer to the description in the method embodiment shown above in this application, and it will not be repeated here.
[0268] Example 3
[0269] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium storing program code for an electric vehicle charging and discharging optimization scheduling method. The program code includes instructions for executing the electric vehicle charging and discharging optimization scheduling method of Embodiment 1 or any possible implementation thereof.
[0270] Computer-readable storage media can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
[0271] Example 4
[0272] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;
[0273] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor can execute the electric vehicle charging and discharging optimization scheduling method of Embodiment 1 or any possible implementation thereof by calling the program instructions.
[0274] Specifically, a processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor that reads software code stored in memory. This memory can be integrated into the processor or located outside the processor and exist independently.
[0275] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable system. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0276] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing systems. They can be centralized on a single computing system or distributed across a network of multiple computing systems. Optionally, they can be implemented using program code executable by a computing system, thereby storing them in a storage system for execution by the computing system. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0277] Although the present invention has been described in detail above with general descriptions and specific embodiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.
Claims
1. A method for optimizing the charging and discharging schedule of electric vehicles, characterized in that, include: Electric vehicle aggregators collect historical charging data of local electric vehicles and train a charging behavior prediction model based on the historical charging data to obtain the trained charging behavior prediction model; using the trained charging behavior prediction model, they predict and output the charging behavior parameters of electric vehicles. Based on the charging behavior parameters of electric vehicles, the theoretical off-site charge value of each vehicle under rated power charging conditions is calculated, and the expected state of charge of each electric vehicle is adaptively solved by combining the preset charging level threshold. Based on the charging behavior parameters of electric vehicles and the desired state of charge, combined with the inherent charging and discharging power limits of electric vehicles and the upper and lower limits of battery state of charge parameters, the dynamic upper and lower boundaries of the state of charge of a single vehicle are calculated at each time step, and several types of vehicle operating domains are divided. Based on the upper and lower boundaries of the vehicle operating domain, the up-modulation capacity and down-modulation capacity of a single electric vehicle are calculated respectively. The overall available frequency modulation capacity of the aggregator is obtained by aggregating the frequency modulation capacity of all vehicles using Minkowski and other methods. Based on the desired state of charge and the overall available frequency regulation capacity of the aggregator, a multi-dimensional operational constraint is introduced to construct an electric vehicle charging and discharging optimization scheduling model. The electric vehicle charging and discharging optimization scheduling model is transformed into a mixed integer linear programming model and solved by setting a solver to obtain the optimal charging and discharging scheduling plan; the optimal charging and discharging scheduling plan is issued to all electric vehicles for execution, and the overall available frequency regulation capacity is reported to the power grid secondary frequency regulation market.
2. The electric vehicle charging and discharging optimization scheduling method according to claim 1, characterized in that, The charging behavior parameters of the electric vehicle include the electric vehicle's access time, departure time, and initial state of charge. The expression for the charging behavior parameter is: ; In the formula, For the first Charging behavior parameters of electric vehicles; For the predicted access time; For the predicted departure time; The initial state of charge is the predicted value.
3. The electric vehicle charging and discharging optimization scheduling method according to claim 2, characterized in that, The theoretical off-site charge value of the vehicle under rated power charging conditions is: ; In the formula, For the first The state of charge of an electric vehicle when it is off-grid; This is the initial state of charge; For battery charging efficiency; Rated charging power; This refers to the departure time; For access time; Battery capacity; The expression for the desired state of charge of each electric vehicle is: ; In the formula, The desired state of charge; This is the preset charging level threshold.
4. The electric vehicle charging and discharging optimization scheduling method according to claim 3, characterized in that, The vehicle operating domain is divided into four categories: The first type of vehicle operating domain: When charging, users can charge to the maximum state of charge or discharge to the minimum state of charge; The formulas for calculating the upper and lower boundaries of the operating domain for the first type of vehicle are: ; ; The second type of vehicle operating domain: When charging, the user can charge to the maximum state of charge, but when discharging, the user either reaches or cannot reduce to the minimum state of charge. The calculation formulas for the upper and lower boundaries of the operating domain of the second type of vehicle are as follows: ; ; The third type of vehicle operating domain: when the user is charging, the maximum state of charge may be reached or may not be reached, but the discharge may reduce the state of charge to the minimum. The formulas for calculating the upper and lower boundaries of the operating domain for the third type of vehicle are as follows: ; ; The fourth type of vehicle operating domain: when the user is charging, the user may be unable to reach the maximum state of charge, or when the user is discharging, the user may be unable to reach the minimum state of charge. The formula for calculating the upper and lower boundaries of the operating domain of the fourth type of vehicle is: ; ; In the formula, and The first electric vehicles The upper and lower boundaries of the runtime domain at any given time; and These are the upper and lower limits of the state of charge, respectively; and These are charging efficiency and discharging efficiency, respectively. and These are the maximum charging power and the maximum discharging power, respectively. This refers to the current position of the electric vehicle within the charging station.
5. The electric vehicle charging and discharging optimization scheduling method according to claim 4, characterized in that, The calculation formulas for the upward and downward frequency modulation capacities of a single electric vehicle are as follows: ; ; In the formula, and The first electric vehicles The up and down frequency modulation capacity at specific times; For the electric vehicle in The actual power at any given time, with positive values during charging and negative values during discharging; The state of charge level of the electric vehicle; This refers to the duration of the frequency modulation response; The formula for calculating the overall available frequency modulation capacity of the aggregator is as follows: ; ; In the formula, and For aggregators Overall adjustment of frequency modulation capacity at different times; For Minkowski and operators.
6. The electric vehicle charging and discharging optimization scheduling method according to claim 5, characterized in that, The objective function expression of the electric vehicle charging and discharging optimization scheduling model is: ; In the formula, and These are the prices for frequency modulation capacity and frequency modulation mileage, respectively. For frequency modulation mileage; For aggregated frequency modulation capacity; The unit price of electricity; This refers to the actual charging power. These are the weighting coefficients; for Time assigned to the first The commanded power of an electric vehicle; This represents the actual response power of the electric vehicle at that moment; The expression for the multi-dimensional operational constraints is: ; ; ; ; ; ; In the formula, For the first electric vehicles The state of charge at any given moment; For the first The state of charge of an electric vehicle at time t+1; , The first electric vehicles The actual charging and discharging power at any given time; and These represent the charging and discharging states of the electric vehicle. The threshold set for the model.
7. An electric vehicle charging and discharging optimization scheduling device, employing the electric vehicle charging and discharging optimization scheduling method according to any one of claims 1-6, characterized in that, include: The charging behavior parameter acquisition module is used by electric vehicle aggregators to collect historical charging data of local electric vehicles, and to train a charging behavior prediction model based on the historical charging data to obtain the trained charging behavior prediction model; and to predict and output the charging behavior parameters of electric vehicles through the trained charging behavior prediction model. The expected state of charge module is used to calculate the theoretical off-site charge value of each vehicle under rated power charging conditions based on the charging behavior parameters of the electric vehicle, and adaptively solve the expected state of charge of each electric vehicle in combination with a preset charging level threshold. The vehicle operation domain division module is used to calculate the dynamic upper and lower boundaries of the single vehicle's state of charge on a time-by-time basis, based on the charging behavior parameters of the electric vehicle and the expected state of charge, combined with the inherent charging and discharging power limit of the electric vehicle and the upper and lower limits of the battery's state of charge parameters, and to divide the vehicle operation domain into several types. The module for obtaining the overall available frequency modulation capacity of the aggregator is used to calculate the up-modulation and down-modulation capacity of a single electric vehicle based on the upper and lower boundaries of the vehicle operating domain; and to obtain the overall available frequency modulation capacity of the aggregator by aggregating the frequency modulation capacity of all vehicles through Minkowski sum. The electric vehicle charging and discharging optimization scheduling model construction module is used to construct an electric vehicle charging and discharging optimization scheduling model based on the expected state of charge and the overall available frequency regulation capacity of the aggregator, and by introducing multi-dimensional operational constraints. The optimal charging and discharging scheduling plan acquisition and execution module is used to transform the electric vehicle charging and discharging optimization scheduling model into a mixed integer linear programming model and solve it by setting a solver to obtain the optimal charging and discharging scheduling plan; issue instructions for the optimal charging and discharging scheduling plan to all electric vehicles for execution; and report the overall available frequency regulation capacity to the power grid secondary frequency regulation market.
8. The electric vehicle charging and discharging optimization scheduling device according to claim 7, characterized in that, In the charging behavior parameter acquisition module, the charging behavior parameters of the electric vehicle include the electric vehicle's access time, departure time, and initial state of charge. The expression for the charging behavior parameter is: ; In the formula, For the first Charging behavior parameters of electric vehicles; For the predicted access time; For the predicted departure time; The initial state of charge is the predicted value.
9. The electric vehicle charging and discharging optimization scheduling device according to claim 8, characterized in that, In the desired state of charge module, the theoretical off-site charge value of the vehicle under rated power charging conditions is: ; In the formula, For the first The state of charge of an electric vehicle when it is off-grid; This is the initial state of charge; For battery charging efficiency; Rated charging power; This refers to the departure time; For access time; Battery capacity; The expression for the desired state of charge of each electric vehicle is: ; In the formula, The desired state of charge; This is the preset charging level threshold.
10. The electric vehicle charging and discharging optimization scheduling device according to claim 9, characterized in that, In the vehicle operating domain segmentation module, the vehicle operating domain is divided into four categories: The first type of vehicle operating domain: When charging, users can charge to the maximum state of charge or discharge to the minimum state of charge; The formulas for calculating the upper and lower boundaries of the operating domain for the first type of vehicle are: ; ; The second type of vehicle operating domain: When charging, the user can charge to the maximum state of charge, but when discharging, the user either reaches or cannot reduce to the minimum state of charge. The calculation formulas for the upper and lower boundaries of the operating domain of the second type of vehicle are as follows: ; ; The third type of vehicle operating domain: when the user is charging, the maximum state of charge may be reached or may not be reached, but the discharge may reduce the state of charge to the minimum. The formulas for calculating the upper and lower boundaries of the operating domain for the third type of vehicle are as follows: ; ; The fourth type of vehicle operating domain: when the user is charging, the user may be unable to reach the maximum state of charge, or when the user is discharging, the user may be unable to reach the minimum state of charge. The formula for calculating the upper and lower boundaries of the operating domain of the fourth type of vehicle is: ; ; In the formula, and The first electric vehicles The upper and lower boundaries of the runtime domain at any given time; and These are the upper and lower limits of the state of charge, respectively; and These are charging efficiency and discharging efficiency, respectively. and These are the maximum charging power and the maximum discharging power, respectively. The time at which the electric vehicle is located within the charging station; In the overall available frequency modulation capacity acquisition module of the aggregator, the calculation formulas for the upward and downward frequency modulation capacity of a single electric vehicle are as follows: ; ; In the formula, and The first electric vehicles The up and down frequency modulation capacity at specific times; For the electric vehicle in The actual power at any given time, with positive values during charging and negative values during discharging; The state of charge level of the electric vehicle; This refers to the duration of the frequency modulation response; The formula for calculating the overall available frequency modulation capacity of the aggregator is as follows: ; ; In the formula, and For aggregators Overall adjustment of frequency modulation capacity at different times; For Minkowski and operators; In the electric vehicle charging and discharging optimization scheduling model construction module, the objective function expression of the electric vehicle charging and discharging optimization scheduling model is: ; In the formula, and These are the prices for frequency modulation capacity and frequency modulation mileage, respectively. For frequency modulation mileage; For aggregated frequency modulation capacity; The unit price of electricity; This refers to the actual charging power. These are the weighting coefficients; for Time assigned to the first The commanded power of an electric vehicle; This represents the actual response power of the electric vehicle at that moment; The expression for the multi-dimensional operational constraints is: ; ; ; ; ; ; In the formula, For the first electric vehicles The state of charge at any given moment; For the first The state of charge of an electric vehicle at time t+1; , The first electric vehicles The actual charging and discharging power at any given time; and These represent the charging and discharging states of the electric vehicle. The threshold set for the model.
