Electric vehicle charging strategy construction method and system considering user charging behavior
By employing a two-layer optimization strategy combining structured tensor parallel factorization and xLSTM model with sparrow search algorithm, the problem of grid overload caused by the overlap of electric vehicle charging and residential electricity consumption peaks is solved, thereby improving user satisfaction and charging efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- STATE GRID TIANJIN ELECTRIC POWER CO CHENGXI POWER SUPPLY BRANCH
- Filing Date
- 2026-02-02
- Publication Date
- 2026-05-12
AI Technical Summary
The current practice of charging electric vehicles coincides with peak residential electricity consumption, leading to grid overload and insufficient distribution network capacity, resulting in low charging efficiency and poor user satisfaction.
A data repair and prediction method based on structured tensor parallel factor decomposition and xLSTM model is adopted, combined with a two-layer optimization strategy of sparrow search algorithm, to calculate the optimal charging power allocation and charging decision for each electric vehicle, and incorporate load constraints to optimize user satisfaction.
It effectively solves the problem of grid overload, increases user satisfaction by 2.77%, reduces the number of electric vehicles that cannot reach the target SOC by 50%, and improves the charging experience.
Smart Images

Figure CN121615519B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electric vehicle charging technology, specifically to a method and system for constructing an electric vehicle charging strategy that takes into account user charging behavior. Background Technology
[0002] In recent years, the global new energy vehicle industry has developed rapidly, and the number of electric vehicles on the road has increased significantly. Correspondingly, the demand for electricity for electric vehicle charging has also grown substantially. This growth trend has placed a heavy load on existing power generation and supply infrastructure.
[0003] Currently, electric vehicle (EV) users' charging behavior exhibits a significant concentration during peak hours, often coinciding with peak residential electricity consumption periods. This overlap easily leads to overload of the power distribution network, affecting not only the reliability of the power grid but also disrupting normal residential and commercial electricity use. Simultaneously, the increasing number of EVs is driving up the demand for power distribution network capacity. However, given the current fixed capacity of the existing power distribution network, the growing number of EVs will directly result in some EVs not being able to complete a full charge, significantly reducing the charging experience and efficiency. Particularly noteworthy is that the initial design of existing residential power distribution networks did not adequately consider the charging load demands of EVs, resulting in relatively low distribution capacity and making residential areas a high-risk area for incomplete charging.
[0004] Therefore, how to scientifically and rationally manage the charging behavior of electric vehicles and coordinate the contradiction between charging demand and grid carrying capacity has become an urgent technical problem to be solved. Summary of the Invention
[0005] In view of the technical problems mentioned in the background, the purpose of this invention is to provide a method and system for constructing electric vehicle charging strategies that take into account user charging behavior.
[0006] To achieve the objectives of this invention, the technical solution provided by this invention is as follows:
[0007] First aspect
[0008] This application provides a method for constructing an electric vehicle charging strategy that takes into account user charging behavior, including the following steps:
[0009] Step 1: Collect raw multidimensional data;
[0010] The original multidimensional data includes electric vehicle charging load data, historical observation data of electric vehicle arrival time and historical observation data of electric vehicle departure time, meteorological data, battery state of charge data, and target SOC;
[0011] Step 2: Using the electric vehicle load data repair model based on structured tensor parallel factor decomposition, repair the electric vehicle charging load data in the original multidimensional data to obtain complete electric vehicle charging load data.
[0012] Step 3: Perform dimensionality reduction processing on the original multidimensional data to obtain dimensionality-reduced data; based on the dimensionality-reduced data, use the electric vehicle travel time prediction model based on xLSTM to make predictions and obtain electric vehicle travel time prediction data.
[0013] Step 4: Based on the complete electric vehicle charging load data and the electric vehicle travel time prediction data, a two-layer optimization strategy combining the sparrow search algorithm is used to calculate the optimal charging power allocation for each electric vehicle and the charging or not charging decision for each electric vehicle at each time step.
[0014] Second aspect
[0015] This application provides an electric vehicle charging strategy construction system that takes into account user charging behavior, used to implement the electric vehicle charging strategy construction method that takes into account user charging behavior, including the following units: a data acquisition unit, a data repair unit, a prediction data calculation unit, and a two-layer optimization strategy calculation unit.
[0016] The data acquisition unit is used to acquire raw multidimensional data;
[0017] The original multidimensional data includes electric vehicle charging load data, historical observation data of electric vehicle arrival time and historical observation data of electric vehicle departure time, meteorological data, battery state of charge data, and target SOC;
[0018] The data repair unit is used to repair the electric vehicle charging load data in the original multidimensional data using an electric vehicle load data repair model based on structured tensor parallel factor decomposition, so as to obtain complete electric vehicle charging load data.
[0019] The prediction data calculation unit is used to perform dimensionality reduction processing on the original multidimensional data to obtain dimensionality-reduced data; based on the dimensionality-reduced data, an electric vehicle travel time prediction model based on xLSTM is used to make predictions to obtain electric vehicle travel time prediction data.
[0020] The two-layer optimization strategy calculation unit is used to calculate the optimal charging power allocation for each electric vehicle and the charging or not charging decision for each electric vehicle at each time step based on the complete electric vehicle charging load data and the electric vehicle travel time prediction data, using a two-layer optimization strategy combined with the sparrow search algorithm.
[0021] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0022] This invention employs a two-layer optimization strategy that incorporates load constraints from the residential power distribution network. By constraining charging volume and charging power across multiple dimensions, it strictly controls the total charging load to ensure it does not exceed the grid's capacity limit. This effectively addresses the grid overload problem caused by the overlap of peak electric vehicle charging and residential electricity consumption, guaranteeing stable grid operation and normal electricity use for residents. Furthermore, with user satisfaction as the core optimization objective, it achieves precise decision-making through a two-layer progressive optimization: the first layer determines the optimal charging power allocation, ensuring that vehicles participating in the scheduling maximize their charging needs under power constraints; the second layer clarifies the charging / non-charging decision at each time step, adapting to the predicted vehicle departure time.
[0023] Experimental results show that, compared to the traditional grid selection method GPM, this scheme reduces the number of electric vehicles that cannot reach the target SOC by 50%, increases overall user satisfaction by 2.77%, and significantly improves the user charging experience. Attached Figure Description
[0024] Figure 1 A schematic flowchart of an electric vehicle charging strategy construction method that takes into account user charging behavior provided in an embodiment of the present invention;
[0025] Figure 2 The figure shows the experimental results comparing the method of this invention with those of the grid selection method (GPM). Detailed Implementation
[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0027] like Figure 1 As shown, this embodiment provides a method for constructing an electric vehicle charging strategy that takes into account user charging behavior, including the following steps:
[0028] Step 1: Collect raw multidimensional data;
[0029] The original multidimensional data includes electric vehicle charging load data, historical observation data of electric vehicle arrival time and historical observation data of electric vehicle departure time, meteorological data, battery state of charge data, and target SOC;
[0030] Step 2: Using the electric vehicle load data repair model based on structured tensor parallel factor decomposition, repair the electric vehicle charging load data in the original multidimensional data to obtain complete electric vehicle charging load data.
[0031] It should be noted that electric vehicle charging load data is correlated with historical observation data of electric vehicle arrival time and departure time, meteorological data (temperature, humidity, air pressure), battery state of charge data throughout the charging period, target SOC and other multi-dimensional data. Therefore, an electric vehicle charging load data repair method based on multi-dimensional tensor parallel factor decomposition (dataset dimension is 11520×1) is adopted to obtain high-quality complete electric vehicle charging load data.
[0032] The objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is as follows:
[0033] ;
[0034] In the formula, It is the repaired data tensor used to represent the predicted charging load data; g r Indicates the adaptive calculation factor. It is the first factor in the factor matrix. It is the second factor in the factor matrix. It is the Nth factor in the factor matrix; A tensor representing the raw electric vehicle load data; This represents the Frobenius norm, used to calculate the error of a matrix or tensor. This represents the observation portion of the data; These are used to control parameters during tensor decomposition. It is a factor matrix in tensor decomposition, used as a low-dimensional representation of charging load data; This is the error term.
[0035] The objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is solved using hierarchical least squares method to obtain complete electric vehicle charging load data. It should be noted that using hierarchical least squares method is a prior art solution, and its principle will not be detailed here.
[0036] Step 3: Perform dimensionality reduction processing on the original multidimensional data to obtain dimensionality-reduced data; based on the dimensionality-reduced data, use the electric vehicle travel time prediction model based on xLSTM to make predictions and obtain electric vehicle travel time prediction data.
[0037] It should be noted that considering the long training time of multidimensional data input into neural network models, we first use the existing dimensionality reduction method based on elastic network regression to reduce the amount of input data, and then establish an electric vehicle travel time prediction model based on xLSTM.
[0038] It should be noted that the electric vehicle travel time prediction model based on xLSTM includes: an input feature construction module, an mLSTM sub-network, an sLSTM sub-network, a feature fusion module, and a regression output module.
[0039] The input feature construction module is used to construct an input sequence of length T from the dimensionality-reduced data in chronological order.
[0040] The mLSTM subnetwork is used to perform temporal modeling on the input sequence and output the first hidden feature sequence;
[0041] The sLSTM subnetwork is used to perform temporal modeling on the input sequence and output a second hidden feature sequence;
[0042] The feature fusion module is used to concatenate or weightedly fuse the first hidden feature sequence and the second hidden feature sequence to obtain fused features;
[0043] The regression output module is used to output electric vehicle travel time prediction data based on the fusion features.
[0044] Step 4: Based on the complete electric vehicle charging load data and the electric vehicle travel time prediction data, a two-layer optimization strategy combining the sparrow search algorithm is used to calculate the optimal charging power allocation for each electric vehicle and the charging or not charging decision for each electric vehicle at each time step.
[0045] It should be noted that in existing charging solutions, meeting users' charging needs is the primary prerequisite for all charging strategies. However, with the increasing number of electric vehicles, meeting users' charging needs is no longer the primary prerequisite, especially in older residential areas. The two-layer optimization strategy proposed in this invention uses user satisfaction as the global optimization objective in the calculation.
[0046] In the first optimization strategy, the power allocation for each electric vehicle is treated as a variable. To meet the constraints of safe operation of the power distribution network, assuming no more vehicles will be added, the optimal charging power allocation for each electric vehicle is obtained with the total user satisfaction of existing vehicles as the objective function.
[0047] In the second-level optimization strategy, the results of the first optimization strategy are combined to participate in the current charging cycle. The average user satisfaction rate of the number of vehicles is used as the objective function to obtain the charging or not charging decision for each electric vehicle at each time step.
[0048] Specifically, the two-layer optimization strategy combining the sparrow search algorithm includes a first-layer optimization strategy and a second-layer optimization strategy;
[0049] The first-level optimization strategy includes the following:
[0050] (1.1) First decision variable Q t First decision variable Q t It is time t Time to give N t The power allocated to the vehicle is calculated using the following formula:
[0051] ;
[0052] In the formula, Q t j It is time t Vehicle j The power allocation value, j The value is 1- N t , N t It is time t The number of vehicles willing to participate in optimization at that time , It is time t The total number of vehicles at that time It is time t The number of vehicles not participating in optimization;
[0053] (1.2) First objective function The first objective function is time. t The formula for overall user satisfaction is as follows:
[0054] ;
[0055] In the formula, S j It is a vehicle j The state of satisfaction. ,when F j When it exceeds 80%, a single user S j Set to 1, F j yes and proportion, ;C j It is a vehicle j Battery capacity, It is a vehicle j The charging needs, It is a vehicle j Target SOC It is a vehicle j The initial SOC;
[0056] (1.3) The first model constraint includes the following:
[0057] (1.3.1) The charging amount constraint is:
[0058] ;
[0059] in, For time t After deducting the base load and the load of electric vehicles not participating in dispatch, the remaining allocable charging power of the residential power distribution network that can be used for dispatched vehicles is given by the following formula:
[0060] ;
[0061] In the formula, This is the upper limit of the residential power distribution network; This is the predicted value of the base load for this charging cycle. It is the total charging load of electric vehicles that do not participate in the scheduling. The total charging load of electric vehicles that do not participate in the scheduling is the sum of the load corresponding to the set of vehicles that do not participate in the scheduling, which is obtained from the complete electric vehicle charging load data according to the user's wishes. It is derived data formed by filtering the complete charging load data according to "vehicles that do not participate in the scheduling" and summarizing it hourly in the time dimension. yes The average number of vehicles included in the user's predicted departure time is calculated using the following formula:
[0062] ;
[0063] In the formula, It is a vehicle j The predicted departure time is obtained from electric vehicle travel time prediction data;
[0064] in, The calculation formula is as follows:
[0065] ;
[0066] In the formula, For time i EV loads that do not participate in scheduling This is the start time of this charging cycle.
[0067] This is the end time of this charging cycle;
[0068] ;
[0069] In the formula, A not It is a sequence of EV numbers that does not participate in scheduling. It is a vehicle j The charging power;
[0070] (1.3.2) The charging power constraint is:
[0071] ;
[0072] (1.3.3) The charging demand constraint is:
[0073] ;
[0074] In the formula, For the target SOC of this charging cycle, This represents the initial SOC for this charging cycle.
[0075] (1.4) Solving the problem using the sparrow search algorithm. Q t As decision variables, with Given an optimization problem with an objective function that satisfies the first model constraint, we obtain: ,according to To allocate the optimal charging power to each electric vehicle;
[0076] The second-level optimization strategy includes the following:
[0077] (2.1) Second decision variable The details are as follows:
[0078] ;
[0079] in, w t It is a matrix of decision variables. Indicates vehicle j In time i Charge, Indicates vehicle j In time i Not charged ;
[0080] (2.2) Second objective function The second objective function is To participate in the current charging cycle The average user satisfaction rate based on the number of vehicles is calculated using the following formula:
[0081] ;
[0082] ;
[0083] ;
[0084] In the formula, Indicates vehicle The amount of electricity / charge that can be obtained within the charging time window, where the charging time window refers to the period from time... To its predicted departure time Obtained from electric vehicle travel time prediction data; Indicates vehicle The target electricity demand; For vehicles The charging completion rate, among which, This refers to the amount of charge per unit time step or the increase in charge corresponding to the charging power. For single-bike satisfaction, a threshold rule is used to determine: when Time to take Otherwise take ;
[0085] (2.3) The second model constraints include the following:
[0086] (2.3.1) Obtaining energy constraints:
[0087] ;
[0088] (2.3.2) Total power allocation constraint:
[0089] ;
[0090] In the formula, It is time i Basic load value at time, It is time i The total charging load of electric vehicles that do not participate in the scheduling process;
[0091] (2.4) Solving the problem using the Sparrow Search algorithm As decision variables, with Given an optimization problem with an objective function that satisfies the second model constraint, we obtain: ,according to The system obtains the charging or non-charging decision for each electric vehicle at each time step.
[0092] This invention was experimentally verified using a real dataset of electric vehicles from a northern city and employed a local time-of-use electricity pricing mechanism. A comparative experiment was conducted using the grid selection method (GPM) for comparison. Figure 2 The figure shown is a comparison of experimental results between the method of this invention and the grid selection method (GPM). Figure 2 In the case of using the method of the present invention, 4 electric vehicles failed to reach the target SOC, while using the GPM method, 8 electric vehicles failed to reach the target SOC, and 2 electric vehicles deviated from the target SOC.
[0093] In addition, calculations show that the method of this invention improves overall user satisfaction (GPM) by 2.77% compared to the comparative method.
[0094] In addition, this embodiment also provides an electric vehicle charging strategy construction system that takes into account user charging behavior, used to implement the electric vehicle charging strategy construction method that takes into account user charging behavior, including the following units: data acquisition unit, data repair unit, prediction data calculation unit, and two-layer optimization strategy calculation unit;
[0095] The data acquisition unit is used to acquire raw multidimensional data;
[0096] The original multidimensional data includes electric vehicle charging load data, historical observation data of electric vehicle arrival time and historical observation data of electric vehicle departure time, meteorological data, battery state of charge data, and target SOC;
[0097] The data repair unit is used to repair the electric vehicle charging load data in the original multidimensional data using an electric vehicle load data repair model based on structured tensor parallel factor decomposition, so as to obtain complete electric vehicle charging load data.
[0098] The prediction data calculation unit is used to perform dimensionality reduction processing on the original multidimensional data to obtain dimensionality-reduced data; based on the dimensionality-reduced data, an electric vehicle travel time prediction model based on xLSTM is used to make predictions to obtain electric vehicle travel time prediction data.
[0099] The two-layer optimization strategy calculation unit is used to calculate the optimal charging power allocation for each electric vehicle and the charging or not charging decision for each electric vehicle at each time step based on the complete electric vehicle charging load data and the electric vehicle travel time prediction data, using a two-layer optimization strategy combined with the sparrow search algorithm.
[0100] The objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is as follows:
[0101] ;
[0102] In the formula, It is the repaired data tensor used to represent the predicted charging load data; g r Indicates the adaptive calculation factor. It is the first factor in the factor matrix. It is the second factor in the factor matrix. It is the Nth factor in the factor matrix; A tensor representing the raw electric vehicle load data; This represents the Frobenius norm, used to calculate the error of a matrix or tensor. This represents the observation portion of the data; These are used to control parameters during tensor decomposition. It is a factor matrix in tensor decomposition, used as a low-dimensional representation of charging load data; This is the error term.
[0103] Specifically, the objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is solved using the hierarchical least squares method to obtain complete electric vehicle charging load data.
[0104] The electric vehicle travel time prediction model based on xLSTM includes: an input feature construction module, an mLSTM sub-network, an sLSTM sub-network, a feature fusion module, and a regression output module.
[0105] The input feature construction module is used to construct an input sequence of length T from the dimensionality-reduced data in chronological order.
[0106] The mLSTM subnetwork is used to perform temporal modeling on the input sequence and output the first hidden feature sequence;
[0107] The sLSTM subnetwork is used to perform temporal modeling on the input sequence and output a second hidden feature sequence;
[0108] The feature fusion module is used to concatenate or weightedly fuse the first hidden feature sequence and the second hidden feature sequence to obtain fused features;
[0109] The regression output module is used to output electric vehicle travel time prediction data based on the fusion features.
[0110] The two-layer optimization strategy combining the sparrow search algorithm includes a first-layer optimization strategy and a second-layer optimization strategy.
[0111] The first-level optimization strategy includes the following:
[0112] (1.1) First decision variableQ t First decision variable Q t It is time t Time to give N t The power allocated to the vehicle is calculated using the following formula:
[0113] ;
[0114] In the formula, Q t j It is time t Vehicle j The power allocation value, j The value is 1- N t , N t It is time t The number of vehicles willing to participate in optimization at that time , It is time t The total number of vehicles at that time It is time t The number of vehicles not participating in optimization;
[0115] (1.2) First objective function The first objective function is time. t The formula for overall user satisfaction is as follows:
[0116] ;
[0117] In the formula, S j It is a vehicle j The state of satisfaction. ,when F j When it exceeds 80%, a single user S j Set to 1, F j yes and proportion, ; C j It is a vehicle j Battery capacity, It is a vehicle j The charging needs, It is a vehicle j Target SOC It is a vehicle j The initial SOC;
[0118] (1.3) The first model constraint includes the following:
[0119] (1.3.1) The charging amount constraint is:
[0120] ;
[0121] in, For time t After deducting the base load and the load of electric vehicles not participating in dispatch, the remaining allocable charging power of the residential power distribution network that can be used for dispatched vehicles is given by the following formula:
[0122] ;
[0123] In the formula, This is the upper limit of the residential power distribution network; This is the predicted value of the base load for this charging cycle. It is the total charging load of electric vehicles that do not participate in the scheduling. The total charging load of electric vehicles that do not participate in the scheduling is the sum of the load corresponding to the set of vehicles that do not participate in the scheduling, which is obtained from the complete electric vehicle charging load data according to the user's wishes. yes The average number of vehicles included in the user's predicted departure time is calculated using the following formula:
[0124] ;
[0125] In the formula, It is a vehicle j The predicted departure time is obtained from electric vehicle travel time prediction data;
[0126] in, The calculation formula is as follows:
[0127] ;
[0128] In the formula, For time i EV loads that do not participate in scheduling This is the start time of this charging cycle.
[0129] This is the end time of this charging cycle;
[0130] ;
[0131] In the formula, A not It is a sequence of EV numbers that does not participate in scheduling. It is a vehicle j The charging power;
[0132] (1.3.2) The charging power constraint is:
[0133] ;
[0134] (1.3.3) The charging demand constraint is:
[0135] ;
[0136] In the formula, For the target SOC of this charging cycle, This represents the initial SOC for this charging cycle.
[0137] (1.4) Solving the problem using the sparrow search algorithm. Q t As decision variables, with Given an optimization problem with an objective function that satisfies the first model constraint, we obtain: ,according to To allocate the optimal charging power to each electric vehicle;
[0138] The second-level optimization strategy includes the following:
[0139] (2.1) Second decision variable The details are as follows:
[0140] ;
[0141] in, w t It is a matrix of decision variables. Indicates vehicle j In time i Charge, Indicates vehicle j In time i Not charged ;
[0142] (2.2) Second objective function The second objective function is To participate in the current charging cycle The average user satisfaction rate based on the number of vehicles is calculated using the following formula:
[0143] ;
[0144] ;
[0145] ;
[0146] In the formula, Indicates vehicle The amount of electricity / charge that can be obtained within the charging time window, where the charging time window refers to the period from time... To its predicted departure time Obtained from electric vehicle travel time prediction data; Indicates vehicle The target electricity demand; For vehicles The charging completion rate, among which, This refers to the amount of charge per unit time step or the increase in charge corresponding to the charging power. For single-bike satisfaction, a threshold rule is used to determine: when Time to take Otherwise take ;
[0147] (2.3) The second model constraints include the following:
[0148] (2.3.1) Obtaining energy constraints:
[0149] ;
[0150] (2.3.2) Total power allocation constraint:
[0151] ;
[0152] In the formula, It is time i Basic load value at time, It is time i The total charging load of electric vehicles that do not participate in the scheduling process;
[0153] (2.4) Solving the problem using the Sparrow Search algorithm As decision variables, with Given an optimization problem with an objective function that satisfies the second model constraint, we obtain: ,according to The system obtains the charging or non-charging decision for each electric vehicle at each time step.
[0154] Finally, it should be noted that the above embodiments are merely illustrative and explanatory of the present invention, and are not intended to limit the present invention to the scope of the described embodiments. Furthermore, those skilled in the art will understand that the present invention is not limited to the above embodiments, and many more variations and modifications can be made based on the teachings of the present invention, all of which fall within the scope of protection claimed by the present invention.
Claims
1. A method for constructing an electric vehicle charging strategy that takes into account user charging behavior, characterized in that, Includes the following steps: Step 1: Collect raw multidimensional data; The original multidimensional data includes electric vehicle charging load data, historical observation data of electric vehicle arrival time and historical observation data of electric vehicle departure time, meteorological data, battery state of charge data, and target SOC; Step 2: Using the electric vehicle load data repair model based on structured tensor parallel factor decomposition, repair the electric vehicle charging load data in the original multidimensional data to obtain complete electric vehicle charging load data. Step 3: Perform dimensionality reduction processing on the original multidimensional data to obtain dimensionality-reduced data; based on the dimensionality-reduced data, use the electric vehicle travel time prediction model based on xLSTM to make predictions and obtain electric vehicle travel time prediction data. Step 4: Based on the complete electric vehicle charging load data and the electric vehicle travel time prediction data, a two-layer optimization strategy combining the sparrow search algorithm is used to calculate the optimal charging power allocation for each electric vehicle and the charging or not charging decision for each electric vehicle at each time step. The two-layer optimization strategy combining the sparrow search algorithm includes a first-layer optimization strategy and a second-layer optimization strategy. The first-level optimization strategy includes the following: (1.1) First decision variable Q t First decision variable Q t It is time t Time to give N t The power allocated to the vehicle is calculated using the following formula: ; In the formula, Q t j It is time t Vehicle j The power allocation value, j The value is 1- N t , N t It is time t The number of vehicles willing to participate in optimization at that time , It is time t The total number of vehicles at that time It is time t The number of vehicles not participating in optimization; (1.2) First objective function The first objective function is time. t The formula for overall user satisfaction is as follows: ; In the formula, S j It is a vehicle j The state of satisfaction. ,when F j When it exceeds 80%, a single user S j Set to 1, F j yes and proportion, ; C j It is a vehicle j Battery capacity, It is a vehicle j The charging needs, It is a vehicle j Target SOC It is a vehicle j The initial SOC; (1.3) The first model constraint includes the following: (1.3.1) The charging amount constraint is: ; in, For time t After deducting the base load and the load of electric vehicles not participating in dispatch, the remaining allocable charging power of the residential power distribution network that can be used for dispatched vehicles is given by the following formula: ; In the formula, This is the upper limit of the residential power distribution network; This is the predicted value of the base load for this charging cycle. It is the total charging load of electric vehicles that do not participate in the scheduling. The total charging load of electric vehicles that do not participate in the scheduling is the sum of the load corresponding to the set of vehicles that do not participate in the scheduling, which is obtained from the complete electric vehicle charging load data according to the user's wishes. yes The average number of vehicles included in the user's predicted departure time is calculated using the following formula: ; In the formula, It is a vehicle j The predicted departure time is obtained from electric vehicle travel time prediction data; in, The calculation formula is as follows: ; In the formula, For time i EV loads that do not participate in scheduling This is the start time of this charging cycle. This is the end time of this charging cycle; ; In the formula, A not It is a sequence of EV numbers that does not participate in scheduling. It is a vehicle j The charging power; (1.3.2) The charging power constraint is: ; (1.3.3) The charging demand constraint is: ; In the formula, For the target SOC of this charging cycle, This represents the initial SOC for this charging cycle. (1.4) Solving the problem using the sparrow search algorithm. Q t As decision variables, with Given an optimization problem with an objective function that satisfies the first model constraint, we obtain: ,according to To allocate the optimal charging power to each electric vehicle; The second-level optimization strategy includes the following: (2.1) Second decision variable The details are as follows: ; in, w t It is a matrix of decision variables. Indicates vehicle j In time i Charge, Indicates vehicle j In time i Not charged ; (2.2) Second objective function The second objective function is To participate in the current charging cycle The average user satisfaction rate based on the number of vehicles is calculated using the following formula: ; ; ; In the formula, Indicates vehicle The amount of electricity / charge that can be obtained within the charging time window, where the charging time window refers to the period from time... To its predicted departure time , Obtained from electric vehicle travel time prediction data; Indicates vehicle The target electricity demand; For vehicles The charging completion rate, among which, This refers to the amount of charge per unit time step or the increase in charge corresponding to the charging power. For single-bike satisfaction, a threshold rule is used to determine: when Time to take Otherwise take ; (2.3) The second model constraints include the following: (2.3.1) Obtaining energy constraints: ; (2.3.2) Total power allocation constraint: ; In the formula, It is time i Basic load value at time, It is time i The total charging load of electric vehicles that do not participate in the scheduling process; (2.4) Solving the problem using the Sparrow Search algorithm As decision variables, with Given an optimization problem with an objective function that satisfies the second model constraint, we obtain: ,according to The system obtains the charging or non-charging decision for each electric vehicle at each time step.
2. The method for constructing an electric vehicle charging strategy considering user charging behavior according to claim 1, characterized in that, In step 2, the objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is as follows: ; In the formula, It is the repaired data tensor used to represent the predicted charging load data; g r Indicates the adaptive calculation factor. It is the first factor in the factor matrix. It is the second factor in the factor matrix. It is the Nth factor in the factor matrix; A tensor representing the original electric vehicle load data; This represents the Frobenius norm, used to calculate the error of a matrix or tensor. This represents the observation portion of the data; These are used to control parameters during tensor decomposition. It is a factor matrix in tensor decomposition, used as a low-dimensional representation of charging load data; This is the error term.
3. The method for constructing an electric vehicle charging strategy that takes into account user charging behavior according to claim 2, characterized in that, The objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is solved using the hierarchical least squares method to obtain complete electric vehicle charging load data.
4. The method for constructing an electric vehicle charging strategy that takes into account user charging behavior according to claim 3, characterized in that, In step 3, the electric vehicle travel time prediction model based on xLSTM includes: an input feature construction module, an mLSTM sub-network, an sLSTM sub-network, a feature fusion module, and a regression output module; The input feature construction module is used to construct an input sequence of length T from the dimensionality-reduced data in chronological order. The mLSTM subnetwork is used to perform temporal modeling on the input sequence and output the first hidden feature sequence; The sLSTM subnetwork is used to perform temporal modeling on the input sequence and output a second hidden feature sequence; The feature fusion module is used to concatenate or weightedly fuse the first hidden feature sequence and the second hidden feature sequence to obtain fused features; The regression output module is used to output electric vehicle travel time prediction data based on the fusion features.
5. A system for constructing an electric vehicle charging strategy that takes into account user charging behavior, used to implement the method for constructing an electric vehicle charging strategy that takes into account user charging behavior as described in any one of claims 1-4, characterized in that, It includes the following units: data acquisition unit, data repair unit, predictive data calculation unit, and two-layer optimization strategy calculation unit; The data acquisition unit is used to acquire raw multidimensional data; The original multidimensional data includes electric vehicle charging load data, historical observation data of electric vehicle arrival time and historical observation data of electric vehicle departure time, meteorological data, battery state of charge data, and target SOC; The data repair unit is used to repair the electric vehicle charging load data in the original multidimensional data using an electric vehicle load data repair model based on structured tensor parallel factor decomposition, so as to obtain complete electric vehicle charging load data. The prediction data calculation unit is used to perform dimensionality reduction processing on the original multidimensional data to obtain dimensionality-reduced data; based on the dimensionality-reduced data, an electric vehicle travel time prediction model based on xLSTM is used to make predictions to obtain electric vehicle travel time prediction data. The two-layer optimization strategy calculation unit is used to calculate the optimal charging power allocation for each electric vehicle and the charging or not charging decision for each electric vehicle at each time step based on the complete electric vehicle charging load data and the electric vehicle travel time prediction data, using a two-layer optimization strategy combined with the sparrow search algorithm.
6. The electric vehicle charging strategy construction system considering user charging behavior according to claim 5, characterized in that, The objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is as follows: ; In the formula, It is the repaired data tensor used to represent the predicted charging load data; g r Indicates the adaptive calculation factor. It is the first factor in the factor matrix. It is the second factor in the factor matrix. It is the Nth factor in the factor matrix; A tensor representing the original electric vehicle load data; This represents the Frobenius norm, used to calculate the error of a matrix or tensor. This represents the observation portion of the data; These are used to control parameters during tensor decomposition. It is a factor matrix in tensor decomposition, used as a low-dimensional representation of charging load data; This is the error term.
7. The electric vehicle charging strategy construction system considering user charging behavior according to claim 6, characterized in that, The objective function of the electric vehicle load data repair model based on structured tensor parallel factor decomposition is solved using the hierarchical least squares method to obtain complete electric vehicle charging load data.
8. The electric vehicle charging strategy construction system considering user charging behavior according to claim 7, characterized in that, The electric vehicle travel time prediction model based on xLSTM includes: an input feature construction module, an mLSTM sub-network, an sLSTM sub-network, a feature fusion module, and a regression output module; The input feature construction module is used to construct an input sequence of length T from the dimensionality-reduced data in chronological order. The mLSTM subnetwork is used to perform temporal modeling on the input sequence and output the first hidden feature sequence; The sLSTM subnetwork is used to perform temporal modeling on the input sequence and output a second hidden feature sequence; The feature fusion module is used to concatenate or weightedly fuse the first hidden feature sequence and the second hidden feature sequence to obtain fused features; The regression output module is used to output electric vehicle travel time prediction data based on the fusion features.
9. The electric vehicle charging strategy construction system considering user charging behavior according to claim 8, characterized in that, The two-layer optimization strategy combining the sparrow search algorithm includes a first-layer optimization strategy and a second-layer optimization strategy. The first-level optimization strategy includes the following: (1.1) First decision variable Q t First decision variable Q t It is time t Time to give N t The power allocated to the vehicle is calculated using the following formula: ; In the formula, Q t j It is time t Vehicle j The power allocation value, j The value is 1- N t , N t It is time t The number of vehicles willing to participate in optimization at that time , It is time t The total number of vehicles at that time It is time t The number of vehicles not participating in optimization; (1.2) First objective function The first objective function is time. t The formula for overall user satisfaction is as follows: ; In the formula, S j It is a vehicle j The state of satisfaction. ,when F j When it exceeds 80%, a single user S j Set to 1, F j yes and proportion, ; C j It is a vehicle j Battery capacity, It is a vehicle j The charging needs, It is a vehicle j Target SOC It is a vehicle j The initial SOC; (1.3) The first model constraint includes the following: (1.3.1) The charging amount constraint is: ; in, For time t After deducting the base load and the load of electric vehicles not participating in dispatch, the remaining allocable charging power of the residential power distribution network that can be used for dispatched vehicles is given by the following formula: ; In the formula, This is the upper limit of the residential power distribution network; This is the predicted value of the base load for this charging cycle. It is the total charging load of electric vehicles that do not participate in the scheduling. The total charging load of electric vehicles that do not participate in the scheduling is the sum of the load corresponding to the set of vehicles that do not participate in the scheduling, which is obtained from the complete electric vehicle charging load data according to the user's wishes. yes The average number of vehicles included in the user's predicted departure time is calculated using the following formula: ; In the formula, It is a vehicle j The predicted departure time is obtained from electric vehicle travel time prediction data; in, The calculation formula is as follows: ; In the formula, For time i EV loads that do not participate in scheduling This is the start time of this charging cycle. This is the end time of this charging cycle; ; In the formula, A not It is a sequence of EV numbers that does not participate in scheduling. It is a vehicle j The charging power; (1.3.2) The charging power constraint is: ; (1.3.3) The charging demand constraint is: ; In the formula, For the target SOC of this charging cycle, This represents the initial SOC for this charging cycle. (1.4) Solving the problem using the sparrow search algorithm. Q t As decision variables, with Given an optimization problem with an objective function that satisfies the first model constraint, we obtain: ,according to To allocate the optimal charging power to each electric vehicle; The second-level optimization strategy includes the following: (2.1) Second decision variable The details are as follows: ; in, w t It is a matrix of decision variables. Indicates vehicle j In time i Charge, Indicates vehicle j In time i Not charged ; (2.2) Second objective function The second objective function is To participate in the current charging cycle The average user satisfaction rate based on the number of vehicles is calculated using the following formula: ; ; ; In the formula, Indicates vehicle The amount of electricity / charge that can be obtained within the charging time window, where the charging time window refers to the period from time... To its predicted departure time , Obtained from electric vehicle travel time prediction data; Indicates vehicle The target electricity demand; For vehicles The charging completion rate, among which, This refers to the amount of charge per unit time step or the increase in charge corresponding to the charging power. For single-bike satisfaction, a threshold rule is used to determine: when Time to take Otherwise take ; (2.3) The second model constraints include the following: (2.3.1) Obtaining energy constraints: ; (2.3.2) Total power allocation constraint: ; In the formula, It is time i Basic load value at time, It is time i The total charging load of electric vehicles that do not participate in the scheduling process; (2.4) Solving the problem using the Sparrow Search algorithm As decision variables, with Given an optimization problem with an objective function that satisfies the second model constraint, we obtain: ,according to The system obtains the charging or non-charging decision for each electric vehicle at each time step.