Electric vehicle charging method, device, equipment, storage medium and program product
By constructing an objective function to optimize the electric vehicle charging plan, the problem of power system load fluctuation is solved, and the stability of the power system and the optimization of charging costs are achieved.
Patent Information
- Application Number
- CN202211500118.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-11-28
AI Technical Summary
The existing electric vehicle charging method has not been properly planned, resulting in power system load fluctuations and affecting stability.
By constructing an objective function, the vehicle charging plan is optimized based on the number of charging time periods, unit charging cost, rated output power of the charging pile and vehicle charging status, combined with the power constraints of the power system, charging time and charging demand conditions.
The stability of the power system during electric vehicle charging is improved, and charging costs are reduced under constraint conditions.
Smart Images

Figure CN115709654B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power technology, and in particular to an electric vehicle charging method, device, equipment, storage medium and program product. Background Art
[0002] New energy electric vehicles are vehicles powered by an onboard electrical system, with motors driving the wheels. Compared to traditional vehicles, new energy electric vehicles are powered by electricity and have a lower environmental impact. Their prospects are widely optimistic, and as electric vehicles become increasingly popular, the issue of charging them is also drawing increasing attention.
[0003] Existing electric vehicles are not properly planned when connected to charging piles for charging. When electric vehicles are charged disorderly, they may cause load fluctuations in the power system and affect the stability of the power system. Summary of the Invention
[0004] Based on this, it is necessary to provide an electric vehicle charging method, device, equipment, storage medium and program product that can improve the stability of the power system when the electric vehicle is charging, in order to address the above technical problems.
[0005] In a first aspect, the present application provides a method for charging an electric vehicle. The method comprises:
[0006] Determine a first number of charging time periods corresponding to each vehicle in the current charging time period;
[0007] Constructing an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0008] The objective function is solved according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0009] In one embodiment, the objective function is constructed based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each charging time period of the first number of vehicles, the charging time period, the rated output power of the charging pile, and the vehicle charging state corresponding to each charging time period of the first number of vehicles, including:
[0010] For each vehicle, determine the product of the unit charging cost corresponding to each charging time period, the vehicle charging status, the charging time corresponding to the charging time period, and the rated output power of the charging pile during the current charging time period;
[0011] Summing the product results corresponding to each charging time period of the vehicle during the current charging time period to obtain a first summation result;
[0012] The first summation results corresponding to the vehicles in the current charging time period are summed to obtain a second summation result, and the objective function is constructed according to the second summation result.
[0013] In one embodiment, the objective function is expressed by the following first formula:
[0014]
[0015] Where N is the total number of vehicles connected to the charging pile in the current charging time period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C t is the unit charging cost of the vehicle in each charging time period during the current charging time period, X i,t The vehicle charging status corresponding to each charging time period during the current charging time period.
[0016] In one embodiment, determining a first number of charging time periods corresponding to each vehicle in the current charging time period includes:
[0017] For each vehicle, determining a ratio of a total charging time of the vehicle to a charging time corresponding to the charging time period;
[0018] A first number of charging time periods corresponding to the vehicle is determined according to a ratio of a total charging time period of the vehicle to a charging time period corresponding to the charging time period.
[0019] In one embodiment, the power constraint is expressed by the following second formula:
[0020]
[0021] Among them, P 0,t is the power of other loads in the power system except the charging pile, P max is the maximum active power of the distribution transformer of the power system.
[0022] In one embodiment, the charging time constraint is expressed by the following third formula:
[0023]
[0024] Among them, T end,i is the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i;
[0025] The charging requirement condition is expressed by the following fourth formula:
[0026]
[0027] In a second aspect, the present application also provides an electric vehicle charging device. The device includes:
[0028] A first determining module is configured to determine a first number of charging time periods corresponding to each vehicle in a current charging time period;
[0029] a function construction module, configured to construct an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each charging time period of the first number of vehicles, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each charging time period of the first number of vehicles;
[0030] The second determination module is used to solve the objective function according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0031] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed:
[0032] Determine a first number of charging time periods corresponding to each vehicle in the current charging time period;
[0033] Constructing an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0034] The objective function is solved according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0035] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:
[0036] Determine a first number of charging time periods corresponding to each vehicle in the current charging time period;
[0037] Constructing an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0038] The objective function is solved according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0039] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:
[0040] Determine a first number of charging time periods corresponding to each vehicle in the current charging time period;
[0041] Constructing an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0042] The objective function is solved according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0043] The above-mentioned electric vehicle charging method, device, equipment, storage medium and program product determine the first number of charging time periods corresponding to each vehicle in the current charging time period, construct an objective function based on the first number of charging time periods corresponding to each vehicle in the current charging time period, the unit charging cost corresponding to each charging time period of each vehicle in the first number, the charging time period, the rated output power of the charging pile, and the vehicle charging state corresponding to each charging time period of each vehicle in the first number, and solve the objective function according to the constraint conditions of the objective function to determine the vehicle charging plan for each vehicle; the constraint conditions include at least one of the power constraint conditions of the power system, the charging time constraint conditions of each vehicle, and the charging demand conditions of the vehicle. In the present application, the charging of electric vehicles is planned through the constraint conditions, and the vehicle charging state and charging time corresponding to each charging time period are adjusted, thereby improving the stability of the power system after the electric vehicle is connected to the charging pile. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is an internal structure diagram of a computer device provided in an embodiment of the present application;
[0045] Figure 2 This is a flow chart of an electric vehicle charging method provided in an embodiment of the present application;
[0046] Figure 3 This is a flow chart of a method for constructing an objective function provided in an embodiment of the present application;
[0047] Figure 4 This is a flowchart of a first quantity determination method provided in an embodiment of the present application;
[0048] Figure 5 This is a structural block diagram of the electric vehicle charging device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0050] The embodiments provided in this application can be applied to Figure 1 On the computer device shown, refer to Figure 1 , Figure 1: This is an internal structure diagram of a computer device provided in an embodiment of the present application. The computer device may be a terminal. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a resource scaling method is implemented. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse.
[0051] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0052] In one embodiment, Figure 2 As shown, Figure 2 This is a flow chart of an electric vehicle charging method provided in an embodiment of the present application, in which the method is applied to Figure 1 The computer device in the example is used to illustrate the process, including the following steps:
[0053] S201, determining a first number of charging time periods corresponding to each vehicle in a current charging time period.
[0054] The charging time period is equal to the time interval between two adjacent units of charging fees. For example, if the charging fee changes every 30 minutes, 30 minutes is considered as a charging time period.
[0055] Exemplarily, a first number of charging time periods corresponding to each vehicle in the current charging time period is determined based on the total charging time of each vehicle and the charging time corresponding to the charging time period. Typically, the unit charging cost of the next charging time period will vary from the current time period. Therefore, the first number of charging time periods within the total charging time period of the vehicle is equal to the number of charging cost changes within that total charging time period, thus determining the number of charging cost changes within the charging time period corresponding to each vehicle. For example, assuming that the charging time for vehicle i in current time period t1 is 90 minutes and the charging cost changes every 30 minutes, the first number of times for vehicle i in current time period t1 is 3. When a new vehicle is connected in the next charging time period t2, the total output power of each charging pile will change. To ensure stable operation of the power system, the charging time of each vehicle needs to be readjusted based on the power constraints of the power system. Assuming that the charging time for vehicle i in time period t2 is adjusted to 120 minutes, the first number of times for vehicle i in time period t2 becomes 4.
[0056] S202, construct an objective function based on the first number of charging time periods corresponding to each vehicle in the current charging time period, the unit charging cost corresponding to each charging time period of the first number of each vehicle, the charging time period, the rated output power of the charging pile, and the vehicle charging status corresponding to each charging time period of the first number of each vehicle.
[0057] For example, according to the first number y of charging time periods corresponding to each vehicle in the current charging time period, i,t , the unit charging cost C corresponding to each charging time period of each vehicle in the first number t , the duration Δt corresponding to the charging time period, the rated output power P of the charging pile r , the vehicle charging state X corresponding to each charging time period of the first number of vehicles i,t , construct the objective function. This objective function represents the total charging cost of each vehicle from the beginning to the end of charging in the current charging time period.
[0058] S203, solving the objective function according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0059] For example, the vehicle charging state X corresponding to each charging time period of the vehicle in the current charging time period in the objective function is calculated based on the power constraint of the power system, the charging time constraint of each vehicle, and the charging demand condition of the vehicle. i,t The first number y of charging time periods corresponding to each vehicle in the charging time period i,tUnder the constraints, the objective function is solved to determine the minimum solution of the objective function, which is the minimum sum of charging costs for each vehicle.
[0060] Optionally, the minimum total charging cost of each vehicle may be determined based on a product obtained by multiplying the minimum solution of the objective function by a first preset coefficient.
[0061] In the above-mentioned electric vehicle charging method, a first number of charging time periods corresponding to each vehicle in the current charging time period is determined. An objective function is constructed based on the first number of charging time periods corresponding to each vehicle in the current charging time period, the unit charging cost corresponding to each vehicle in the first number of charging time periods, the charging time period, the rated output power of the charging pile, and the vehicle charging state corresponding to each vehicle in the first number of charging time periods. The objective function is then solved based on the constraints of the objective function to determine a vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle. The charging of the electric vehicle is planned based on the constraints, and the vehicle charging state and charging time corresponding to each charging time period are adjusted, thereby improving the stability of the power system after the electric vehicle is connected to the charging pile. The objective function is then solved under the constraints to minimize the charging cost for each vehicle under the stable operation of the power system.
[0062] Figure 3 This is a flow chart of a method for constructing an objective function provided by an embodiment of the present application. This embodiment involves how to construct an objective function based on the first number of charging time periods corresponding to each vehicle in the current charging time period, the unit charging cost corresponding to each charging time period of each vehicle in the first number, the charging time period, the rated output power of the charging pile, and the vehicle charging status corresponding to each charging time period of each vehicle in the first number. On the basis of the above embodiment, as Figure 3 As shown, the above S202 includes:
[0063] S301, for each vehicle, determine the product of the unit charging cost corresponding to each charging time period, the vehicle charging status, the charging time corresponding to the charging time period, and the rated output power of the charging pile during the current charging time period.
[0064] For example, for each vehicle i, the unit charging cost C corresponding to each charging time period t of the vehicle in the current charging time period is determined. t 、Vehicle charging status X i,t , the charging time Δt corresponding to the charging time period t, the rated output power P of the charging pile r The product result f1 between them can be expressed by the following relationship.
[0065] f1=Pr ΔtC t X i,t
[0066] The product result can be used as the charging cost of vehicle i in the tth charging time period.
[0067] S302: summing the product results corresponding to each charging time period of the vehicle in the current charging time period to obtain a first summation result.
[0068] For example, according to the first number y of charging time periods corresponding to each vehicle in the current charging time period, i,t , sum the above product results to obtain the first summation result f2, which can be expressed by the following relationship:
[0069]
[0070] The summation result can be used as the charging cost of vehicle i from the start to the end of charging in the current time period. Taking the above embodiment as an example, since the first number y of vehicles i corresponding to each time period is i,t will change, therefore, the summation result f2 of vehicle i corresponding to each time period will change, that is, the charging cost of vehicle i corresponding to each time period from the start to the end of charging will also change.
[0071] S303 , summing the first summation results corresponding to the vehicles in the current charging time period to obtain a second summation result, and constructing an objective function according to the second summation result.
[0072] Exemplarily, based on the total number of vehicles connected to the charging pile in the current charging time period, the first summation results corresponding to each vehicle in the current charging time period are summed to obtain a second summation result. The second summation result can be used as the objective function, and the objective function is used as the total charging cost of each vehicle from the start to the end of charging in the current charging time period.
[0073] Optionally, a product obtained by multiplying the second summation result by a second preset coefficient may be used as the objective function.
[0074] In the embodiment of the present application, for each vehicle, the product of the unit charging cost corresponding to each charging time period, the vehicle's charging status, the charging duration corresponding to the charging time period, and the rated output power of the charging pile is determined. The product results corresponding to each charging time period of the vehicle in the current charging time period are summed to obtain a first summation result. The first summation results corresponding to each vehicle in the current charging time period are summed to obtain a second summation result, and an objective function is constructed based on the second summation result. This provides a prerequisite for solving the minimum charging cost for each electric vehicle in the current charging time period.
[0075] In one embodiment, the objective function can be constructed as follows:
[0076]
[0077] Where N is the total number of vehicles connected to the charging pile in the current charging period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C t is the unit charging cost of the vehicle in each charging time period during the current charging time period, X i,t The vehicle charging status corresponding to each charging time period during the current charging time period.
[0078] For example, according to the total number of vehicles N connected to the charging pile in the current charging time period, the first number y of charging time periods corresponding to vehicle i in the current charging time period is i,t , the rated output power P of the charging pile r , the charging time Δt corresponding to the charging time period, the unit charging cost C corresponding to each charging time period of the vehicle in the current charging time period t , the vehicle charging status X corresponding to each charging time period during the current charging time period i,t , construct the objective function minF:
[0079]
[0080] Optionally, the product obtained by multiplying the obtained minF by the third preset coefficient may be used as the objective function.
[0081] In this embodiment, the objective function is constructed based on the total number of vehicles connected to the charging pile in the current charging time period, the first number of charging time periods corresponding to vehicle i in the current charging time period, the rated output power of the charging pile, the charging time corresponding to the charging time period, the unit charging cost corresponding to each charging time period of the vehicle in the current charging time period, and the vehicle charging status corresponding to each charging time period of the vehicle in the current charging time period, which provides a prerequisite for solving the minimum charging cost of each electric vehicle in the current charging time period.
[0082] Figure 4 This is a flow chart of a method for determining a first number provided in an embodiment of the present application. This embodiment relates to a possible implementation method for determining a first number of charging time periods corresponding to each vehicle in the current charging time period. Based on the above embodiment, Figure 4 As shown, the above S201 includes:
[0083] S401, for each vehicle, determining a ratio of the total charging time of the vehicle to the charging time corresponding to the charging time period;
[0084] For example, for each vehicle, the total charging time T of the vehicle is determined. i,0 The ratio q1 of the charging time Δt corresponding to the charging time period t:
[0085]
[0086] S402 : Determine a first number of charging time periods corresponding to the vehicle according to a ratio of a total charging time period of the vehicle to a charging time period corresponding to the charging time period.
[0087] For example, the obtained ratio q1 is rounded up, and the result is used as the first number y of the charging time period corresponding to the vehicle. i,t .
[0088] Optionally, the obtained ratio q1 may be multiplied by the fourth preset coefficient to obtain a product, and the product is rounded up to obtain the first quantity y. i,t .
[0089] In an embodiment of the present application, for each vehicle, the ratio of the total charging time of the vehicle to the charging time corresponding to the charging time period is determined. Based on the ratio of the total charging time of the vehicle to the charging time corresponding to the charging time period, the first number of charging time periods corresponding to the vehicle is determined, which provides a prerequisite for constructing the objective function.
[0090] In one embodiment, the power constraint condition may be expressed by the following second formula:
[0091]
[0092] Among them, P 0,t is the power of other loads in the power system except the charging pile, P max It is the maximum active power of the distribution transformer of the power system.
[0093] For example, according to the total number of vehicles N connected to the charging station in the current time period, the rated output power P of the charging pile r And the vehicle charging status X corresponding to each charging time period during the current charging time period i,t , determine the total output power P1 of the charging piles working in the current time period, which can be expressed by the following relationship:
[0094]
[0095] The total output power P1 of the charging piles working in the current time period and the power P of other loads in the power system except the charging piles 0,t Constrain it to be less than or equal to the maximum active power P of the distribution transformer of the power system max , and determine X based on this constraint i,t The first value range of is expressed by the following second formula:
[0096]
[0097] In an embodiment of the present application, the total output power of the charging piles working in the current time period and the power of other loads in the power system except the charging piles are constrained so that they are less than or equal to the maximum active power of the distribution transformer of the power system, thereby improving the stability of the power system when the electric vehicle is charging.
[0098] In one embodiment, the charging duration constraint and the charging demand constraint can be implemented as follows:
[0099] The charging time constraint is expressed by the following third formula:
[0100]
[0101] Among them, T end,i is the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i.
[0102] For example, according to the charging end time T of vehicle i end,i , the charging start time T of vehicle i st,i , the percentage of the desired state of charge SOC of vehicle i e,i , the percentage of the initial state of charge SOC of vehicle i b,i , the battery capacity B of vehicle i i , the rated output power P of the charging pile r , determine the charging time constraint of each vehicle, and determine the charging end time T of each vehicle based on the charging time constraint end,i The value range of can be expressed by the following third formula:
[0103]
[0104] Optionally, a charging time threshold T0 may be set. When the electric vehicle exceeds the charging time threshold T0, charging of the electric vehicle is stopped for the time period after the charging time threshold T0 is exceeded.
[0105] The charging requirement condition is expressed by the following fourth formula:
[0106]
[0107] For example, the percentage of the desired state of charge SOC of vehicle i is e,i , the percentage of the initial state of charge SOC of vehicle i b,i , the battery capacity B of vehicle i i , the rated output power P of the charging pile r , the charging time Δt corresponding to the charging time period, the vehicle charging state X corresponding to each charging time period during the previous charging time period i,t , the first number y of charging time periods corresponding to vehicle i in the current charging time period i,t , determine the charging requirement conditions of each vehicle, and determine the first quantity y of each vehicle according to the charging requirement conditions of each vehicle i,t The value range of X i,t The second value range of , the charging demand condition is expressed by the following fourth formula:
[0108]
[0109] The X obtained above i,t Take the intersection of the first value range and the second value range to determine X i,t The third value range, and according to X i,t The third value range of and the first number y of each vehicle i,t The objective function is solved within the value range of , and the minimum solution of the objective function within the above value range is determined.
[0110] In the embodiment of the present application, by constraining the charging time and charging demand of each vehicle in the current charging time period, the charging time of each vehicle in the current charging time period is greater than or equal to the time it takes for each vehicle to be charged to the expected charge state, and the charge state of each vehicle after charging is completed is greater than or equal to the expected charge state, thereby ensuring that each vehicle can be charged to the expected value or a state greater than the expected value under stable operation of the power system.
[0111] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0112] Based on the same inventive concept, embodiments of the present application also provide a vehicle charging device for implementing the aforementioned vehicle charging method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more vehicle charging device embodiments provided below can be found in the above-described limitations of the vehicle charging method and will not be further elaborated here.
[0113] In one embodiment, Figure 5 As shown, a vehicle charging device 500 is provided, comprising: a first determination module 501, a function construction module 502, and a second determination module 503, wherein:
[0114] A first determining module 501 is configured to determine a first number of charging time periods corresponding to each vehicle in a current charging time period;
[0115] A function construction module 502 is configured to construct an objective function based on a first number of charging time periods corresponding to each vehicle in a current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0116] The second determination module 503 is used to solve the objective function according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0117] In one embodiment, the function building module 502 includes:
[0118] A first determining unit is configured to determine, for each vehicle, a product of a unit charging cost corresponding to each charging time period, a vehicle charging state, a charging time corresponding to the charging time period, and a rated output power of the charging pile during a current charging time period;
[0119] A second determining unit is configured to sum the product results corresponding to each charging time period of the vehicle during the current charging time period to obtain a first summation result;
[0120] The function construction unit is configured to sum the first summation results corresponding to the vehicles in the current charging time period to obtain a second summation result, and to construct an objective function according to the second summation result.
[0121] In one embodiment, the function construction unit is specifically configured to express the objective function by the following first formula:
[0122]
[0123] Where N is the total number of vehicles connected to the charging pile in the current charging period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C t is the unit charging cost of the vehicle in each charging time period during the current charging time period, X i,t The vehicle charging status corresponding to each charging time period during the current charging time period.
[0124] In one embodiment, the first determining module 501 includes:
[0125] a third determining unit, configured to determine, for each vehicle, a ratio of a total charging time of the vehicle to a charging time corresponding to a charging time period;
[0126] The fourth determining unit is configured to determine a first number of charging time periods corresponding to the vehicle according to a ratio of a total charging time period of the vehicle to a charging time period corresponding to the charging time period.
[0127] In one embodiment, the function construction unit is specifically used to express the power constraint condition by the following second formula:
[0128]
[0129] Among them, P 0,t is the power of other loads in the power system except the charging pile, P max It is the maximum active power of the distribution transformer of the power system.
[0130] In one embodiment, the function construction unit is specifically used to express the charging time constraint condition by the following third formula:
[0131]
[0132] Among them, T end,i is the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i;
[0133] The charging requirement condition is expressed by the following fourth formula:
[0134]
[0135] Each module in the above-mentioned electric vehicle charging device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0136] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0137] Determine a first number of charging time periods corresponding to each vehicle in the current charging time period;
[0138] Constructing an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0139] The objective function is solved according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0140] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0141] For each vehicle, determine the product of the unit charging cost corresponding to each charging time period, the vehicle's charging status, the charging time corresponding to the charging time period, and the rated output power of the charging pile during the current charging time period;
[0142] Summing the product results corresponding to each charging time period of the vehicle during the current charging time period to obtain a first summation result;
[0143] The first summation results corresponding to the vehicles in the current charging time period are summed to obtain a second summation result, and an objective function is constructed according to the second summation result.
[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0145] The objective function is expressed by the following first formula:
[0146]
[0147] Where N is the total number of vehicles connected to the charging pile in the current charging period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C t is the unit charging cost of the vehicle in each charging time period during the current charging time period, X i,t The vehicle charging status corresponding to each charging time period during the current charging time period.
[0148] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0149] For each vehicle, determining a ratio of the total charging time of the vehicle to the charging time corresponding to the charging time period;
[0150] A first number of charging time periods corresponding to the vehicle is determined according to a ratio of a total charging time period of the vehicle to a charging time period corresponding to the charging time period.
[0151] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0152] The power constraint is expressed by the following second formula:
[0153]
[0154] Among them, P 0,t is the power of other loads in the power system except the charging pile, P max It is the maximum active power of the distribution transformer of the power system.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] The charging time constraint is expressed by the following third formula:
[0157]
[0158] Among them, T end,iis the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i;
[0159] The charging requirement condition is expressed by the following fourth formula:
[0160]
[0161] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0162] Determine a first number of charging time periods corresponding to each vehicle in the current charging time period;
[0163] Constructing an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0164] The objective function is solved according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0165] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0166] For each vehicle, determine the product of the unit charging cost corresponding to each charging time period, the vehicle's charging status, the charging time corresponding to the charging time period, and the rated output power of the charging pile during the current charging time period;
[0167] Summing the product results corresponding to each charging time period of the vehicle during the current charging time period to obtain a first summation result;
[0168] The first summation results corresponding to the vehicles in the current charging time period are summed to obtain a second summation result, and an objective function is constructed according to the second summation result.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0170] The objective function is expressed by the following first formula:
[0171]
[0172] Where N is the total number of vehicles connected to the charging pile in the current charging period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C t is the unit charging cost of the vehicle in each charging time period during the current charging time period, X i,t The vehicle charging status corresponding to each charging time period during the current charging time period.
[0173] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0174] For each vehicle, determining a ratio of the total charging time of the vehicle to the charging time corresponding to the charging time period;
[0175] A first number of charging time periods corresponding to the vehicle is determined according to a ratio of a total charging time period of the vehicle to a charging time period corresponding to the charging time period.
[0176] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0177] The power constraint is expressed by the following second formula:
[0178]
[0179] Among them, P 0,t is the power of other loads in the power system except the charging pile, P max It is the maximum active power of the distribution transformer of the power system.
[0180] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0181] The charging time constraint is expressed by the following third formula:
[0182]
[0183] Among them, T end,i is the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i;
[0184] The charging requirement condition is expressed by the following fourth formula:
[0185]
[0186] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0187] Determine a first number of charging time periods corresponding to each vehicle in the current charging time period;
[0188] Constructing an objective function based on a first number of charging time periods corresponding to each vehicle in the current charging time period, a unit charging cost corresponding to each of the first number of charging time periods for each vehicle, the charging time period, a rated output power of the charging pile, and a vehicle charging state corresponding to each of the first number of charging time periods for each vehicle;
[0189] The objective function is solved according to the constraints of the objective function to determine the vehicle charging plan for each vehicle; the constraints include at least one of the power constraints of the power system, the charging time constraints of each vehicle, and the charging demand conditions of the vehicle.
[0190] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0191] For each vehicle, determine the product of the unit charging cost corresponding to each charging time period, the vehicle's charging status, the charging time corresponding to the charging time period, and the rated output power of the charging pile during the current charging time period;
[0192] Summing the product results corresponding to each charging time period of the vehicle during the current charging time period to obtain a first summation result;
[0193] The first summation results corresponding to the vehicles in the current charging time period are summed to obtain a second summation result, and an objective function is constructed according to the second summation result.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0195] The objective function is expressed by the following first formula:
[0196]
[0197] Where N is the total number of vehicles connected to the charging pile in the current charging period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C tis the unit charging cost of the vehicle in each charging time period during the current charging time period, X i,t The vehicle charging status corresponding to each charging time period during the current charging time period.
[0198] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0199] For each vehicle, determining a ratio of the total charging time of the vehicle to the charging time corresponding to the charging time period;
[0200] A first number of charging time periods corresponding to the vehicle is determined according to a ratio of a total charging time period of the vehicle to a charging time period corresponding to the charging time period.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0202] The power constraint is expressed by the following second formula:
[0203]
[0204] Among them, P 0,t is the power of other loads in the power system except the charging pile, P max It is the maximum active power of the distribution transformer of the power system.
[0205] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0206] The charging time constraint is expressed by the following third formula:
[0207]
[0208] Among them, T end,i is the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i;
[0209] The charging requirement condition is expressed by the following fourth formula:
[0210]
[0211] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0212] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0213] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0214] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for charging an electric vehicle, characterized in that: The method comprises: Determine a first number of charging time periods corresponding to each vehicle in the current charging time period, where the charging time period is equal to the time interval between two adjacent unit charging costs; the first number is used to indicate the number of times the charging cost changes within the charging time corresponding to each vehicle; For each of the vehicles, determining a product of the unit charging cost corresponding to each of the charging time periods, the vehicle charging state, the charging duration corresponding to the charging time period, and the rated output power of the charging pile during the current charging time period; summing the product results corresponding to each of the charging time periods for the vehicles during the current charging time period to obtain a first summation result; summing the first summation results corresponding to each of the vehicles during the current charging time period to obtain a second summation result, and constructing an objective function based on the second summation result, the objective function being used to represent the total charging cost of each of the vehicles from the start to the end of charging during the current charging time period; The objective function is expressed by the following first formula: Wherein, N is the total number of vehicles connected to the charging pile in the current charging time period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C t is the unit charging cost corresponding to each charging time period of the vehicle during the current charging time period, X i,t The vehicle charging status of the vehicle corresponding to each charging time period during the current charging time period; The charging time constraint condition is expressed by the following third formula: Among them, T end,i is the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i; The charging requirement condition is expressed by the following fourth formula: The objective function is solved according to the constraints of the objective function to determine a vehicle charging plan for each of the vehicles, wherein the vehicle charging plan is used to adjust the vehicle charging status and charging duration corresponding to each of the charging time periods; the constraints include at least one of the power constraints of the power system, the charging duration constraints of each of the vehicles, and the charging demand conditions of the vehicles.
2. The method according to claim 1, characterized in that The determining a first number of charging time periods corresponding to each vehicle in the current charging time period includes: For each of the vehicles, determining a ratio of a total charging time of the vehicle to a charging time corresponding to the charging time period; A first number of charging time periods corresponding to the vehicle is determined according to a ratio of a total charging time period of the vehicle to a charging time period corresponding to the charging time period.
3. The method according to claim 1, characterized in that The power constraint condition is expressed by the following second formula: Among them, P 0,t is the power of other loads in the power system except the charging pile, P max is the maximum active power of the distribution transformer of the power system.
4. The method according to claim 1, wherein The charging time period is the time interval between two adjacent unit charging fees.
5. The method according to claim 2, characterized in that The determining, based on a ratio of a total charging time duration of the vehicle to a charging time duration corresponding to the charging time duration, a first number of charging time durations corresponding to the vehicle includes: A round-up operation is performed on the ratio, and the operation result is determined as the first number.
6. The method according to claim 2, characterized in that The determining, based on a ratio of a total charging time duration of the vehicle to a charging time duration corresponding to the charging time duration, a first number of charging time durations corresponding to the vehicle includes: The ratio is multiplied by a fourth preset coefficient to determine the first quantity.
7. An electric vehicle charging device, characterized in that: The device comprises: a first determining module configured to determine a first number of charging time periods corresponding to each vehicle in a current charging time period, wherein the charging time period is equal to the time interval between two adjacent units of charging costs; the first number is used to indicate the number of times the charging cost changes within the charging time corresponding to each vehicle; A first determining unit is configured to determine, for each vehicle, a product of a unit charging cost corresponding to each charging time period, a vehicle charging state, a charging time corresponding to the charging time period, and a rated output power of the charging pile during a current charging time period; A second determining unit is configured to sum the product results corresponding to each charging time period of the vehicle during the current charging time period to obtain a first summation result; A function construction unit is configured to sum the first summation results corresponding to each vehicle in the current charging time period to obtain a second summation result, and to construct an objective function based on the second summation result, wherein the objective function is used to represent the total charging cost of each vehicle from the start to the end of charging in the current charging time period; the objective function is represented by the following first formula: Wherein, N is the total number of vehicles connected to the charging pile in the current charging time period, y i,t is the first number of charging time periods corresponding to vehicle i in the current charging time period, P r The rated output power of the charging pile, Δt is the charging time corresponding to the charging time period, C t is the unit charging cost corresponding to each charging time period of the vehicle during the current charging time period, X i,t The vehicle charging status of the vehicle corresponding to each charging time period during the current charging time period; The charging time constraint condition is expressed by the following third formula: Among them, T end,i is the charging end time of vehicle i, T st,i is the charging start time of vehicle i, SOC e,i is the percentage of the desired state of charge of vehicle i, SOC b,i is the percentage of the initial state of charge of vehicle i, B i is the battery capacity of vehicle i; The charging requirement condition is expressed by the following fourth formula: The second determination module is used to solve the objective function according to the constraints of the objective function to determine a vehicle charging plan for each of the vehicles, wherein the vehicle charging plan is used to adjust the vehicle charging status and charging duration corresponding to each of the charging time periods; the constraints include at least one of the power constraints of the power system, the charging duration constraints of each of the vehicles, and the charging demand conditions of the vehicles.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method, device and equipment for electric vehicle charging regulation
CN110979085A