Electric heavy truck battery replacement scheduling method based on non-cooperative game
Through non-cooperative game model and deep neural network optimization, the problem of uneven resource utilization during the battery replacement process of electric heavy trucks is solved, efficient battery replacement scheduling is achieved, and waiting time and operating costs are reduced.
Patent Information
- Application Number
- CN202410952647.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing technology cannot effectively solve the problem of uneven utilization of resources during the battery swapping process of electric heavy trucks, leading to congestion and increased waiting time at battery swapping stations, and does not consider the competitive relationship between heavy trucks, affecting operational efficiency.
An electric heavy-duty truck power replacement dispatching method based on non-cooperative game is adopted, and the Jacobi optimal response algorithm and deep neural network combined with the branch-cutting method are used to optimize the strategy iteration between heavy-duty trucks, achieve Nash equilibrium, and shorten the solution time of each iteration.
It improves system operation efficiency, reduces driver waiting time, simplifies the power replacement decision-making problem of a single electric heavy truck, and achieves efficient operation of the power replacement process.
Smart Images

Figure CN118798682A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of heavy truck battery replacement, and in particular to a battery replacement scheduling method for electric heavy trucks based on non-cooperative game. Background Art
[0002] Compared with fuel heavy trucks, electric heavy trucks have weaker endurance and strong demand for energy replenishment. At present, the energy replenishment modes of pure electric heavy trucks include two categories: charging and battery swapping. Compared with charging, battery swapping has the advantages of short energy replenishment time and reduced vehicle purchase costs, which can improve the operating efficiency of heavy trucks. However, with the large-scale promotion of battery swapping heavy trucks and battery swapping stations, if electric heavy trucks are allowed to go directly to the battery swapping stations in an unorderly manner, it may cause congestion and queues at some battery swapping stations, while other battery swapping stations are idling. This uneven use of resources not only increases the waiting time of heavy trucks in congested battery swapping stations and affects operational efficiency, but also may cause drivers to have to drive to other battery swapping stations to try to swap batteries when the battery supply is insufficient, thereby greatly reducing the battery swapping experience. Moreover, since each electric heavy truck may belong to a different operator, in order to reduce the congestion time of the battery swapping station and the battery swapping cost of heavy truck drivers, it is urgent to establish a non-cooperative game model between heavy truck drivers.
[0003] At present, most existing studies focus on the guidance problem of electric vehicle charging stations. However, the charging station guidance model does not need to consider the availability of batteries, that is, the number of batteries available in the station. If the same guidance method is used directly, electric vehicles may be guided to stations with insufficient batteries, resulting in battery replacement failure. The few guidance problems for electric vehicle battery replacement are often optimized in a centralized or distributed manner from the perspective of battery replacement station operators, without considering the possible competitive relationship between battery replacement vehicles.
[0004] On the one hand, in the non-cooperative game guided by the electric vehicle battery swap station, each heavy truck (driver) tries to minimize the battery swap cost, driving distance and waiting time by choosing the best strategy, and the choice of these strategies affects each other. Therefore, it is necessary to iterate the strategies of each heavy truck multiple times to reach an equilibrium state. On the other hand, each heavy truck needs to solve its own optimal strategy in each iteration, and the corresponding relationship between the heavy truck and the station needs to be represented by a 0-1 variable. This discrete strategy set may lead to a long solution time. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an electric heavy-duty truck battery replacement scheduling method based on non-cooperative game, which iterates the optimal strategy between heavy-duty trucks through the Jacobi optimal response algorithm to achieve Nash equilibrium, and uses a deep neural network combined with a branch-and-cut method to accelerate the solution of the optimal strategy of each electric heavy-duty truck in each iteration, so as to achieve efficient operation of the battery replacement process and reduce the driver's waiting time for battery replacement.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, comprising the following steps: S1. The cloud system collects battery swap reservation information and battery swap station information, takes the total driving distance of all electric heavy trucks as the objective function, establishes a centralized scheduling model, and uses the result as the initial solution of the non-cooperative game model; S2. Take each electric heavy truck as the game subject, and use its battery replacement price, driving distance and queuing time as the objective function to establish a non-cooperative game model; S3. Establish a non-cooperative game solving framework based on Jacobi optimal response method.
[0007] S4. Design and train a deep neural network based on historical data, and use the branch-and-cut method to solve the optimal strategy for each electric heavy truck in each iteration.
[0008] Preferably, the step S1 is specifically as follows: A centralized battery swap scheduling model for electric heavy trucks is established, and the objective function is to minimize the driving distance of all vehicles: ; (1) In the formula, Indicates electric heavy truck Go to the battery swap station driving distance.
[0009] The guidance constraints of the battery swap station are as follows: ; (2) ; (3) Formula (2) indicates that each electric heavy truck It can only be directed to a battery swap station for battery swap. Formula (3) indicates that it is directed to a battery swap station. The number of heavy trucks cannot exceed the number of available batteries .
[0010] The battery-swapping heavy trucks that request battery swapping are usually about to run out of power and have limited driving distance. It is necessary to ensure that the assigned battery swap station must be within the heavy truck's drivable mileage. The maximum range constraints of heavy trucks are as follows: ; (4) In the formula, Indicates electric heavy truck The remaining power, Indicates the conversion factor between battery power and driving distance.
[0011] Finally, the branch-and-cut method is used to solve the integer programming problem, and the optimal solution obtained is used as the initial solution for iteratively solving the Nash equilibrium in step S3.
[0012] Preferably, in step S1, before establishing the centralized battery swap scheduling model for electric heavy trucks, the battery swap request information of the electric heavy trucks, including the location and remaining power, is collected, and the platform calculates the driving distance and time to reach each battery swap station. Indicates the index set of electric heavy trucks that request battery replacement. Represents the index set of the battery swap station, defining the vector Indicates electric heavy truck The guiding relationship of the swap station, the decision variables A 0-1 variable, indicating an electric heavy truck With battery swap station The guiding relationship, 1 represents an electric heavy truck Guided to the battery swap station Replace the battery, 0 means there is no guidance between the two.
[0013] Preferably, scheduling is performed once every time period to update the centralized battery replacement scheduling model for electric heavy trucks.
[0014] Preferably, the step S2 is specifically as follows: Assuming that all electric heavy trucks are rational, they will choose appropriate battery swap stations to minimize their comprehensive battery swap costs, and non-cooperative games will be played among heavy trucks. , and its decision model is as follows: The objective function is to minimize the comprehensive battery replacement cost, including driving distance, battery replacement price and waiting time: ; (5) In the formula, Indicates battery replacement station The price of battery replacement, Indicates heavy truck The waiting time, and are the cost conversion factors for driving distance and waiting time, respectively. Indicates the battery power of the electric heavy truck after battery replacement; The guidance constraints of the battery swap station are as follows: ; (6) ; (7) The maximum travel constraints of heavy trucks are as follows: ; (8) Formula (6) is similar to (2), indicating that the electric heavy truck a can only be directed to one battery swap station for battery swap. Formula (7) is similar to (3), indicating that when considering being directed to a battery swap station In the case of other electric heavy trucks, the decision of a must ensure that the total number of heavy trucks does not exceed the number of available batteries. Formula (8) is similar to (4), indicating that the guided battery swap station To be in heavy truck within the maximum drivable range; The waiting time constraints for heavy truck battery replacement are as follows: ; (9) ; (10) ; (11) Formula (9) represents the electric heavy truck At the battery swap station The battery replacement start time is not less than the arrival time, where: Indicates electric heavy truck The battery replacement start time, Indicates electric heavy truck Drive to the battery swap station The arrival time of each electric heavy truck at the battery swap station should be greater than the normal battery swap time. represents the time required for battery replacement operation; Formula (11) represents the time required for electric heavy truck The waiting time is equal to the difference between the start time and the arrival time of the battery replacement. Indicates electric heavy truck waiting time in queues; Formula (10) contains logical OR, which is a nonlinear constraint. It is linearized using the Big M method: ; (12) ; (13) In the formula, is a sufficiently large positive number, is an auxiliary 0-1 variable; According to the above constraints, for each electric heavy truck , its feasible domain is as follows: ; (14) In the formula, Indicates electric heavy truck The feasible domain of decision making, similarly, we can use Represents the feasible domain of all electric heavy truck decisions; The total cost of battery replacement for each electric heavy truck depends not only on its own choice, but also on the choices of other electric heavy trucks. In order to describe the non-cooperative game relationship between all electric heavy trucks, the following game is constructed: ; (15) In the formula, For the participants in the game, that is, all electric heavy trucks; is the strategy set of each electric heavy truck, which is non-empty and discrete; Electric heavy truck The utility function (1) is abbreviated as : ; (16) In the formula, In addition to electric heavy trucks strategies of other actors; The goal of non-cooperative games is to find a Nash equilibrium, that is, to find a set of So that the following formula holds: ; (17) ; (18).
[0015] That is, our goal is to determine a set of strategies for all electric heavy trucks, while no participant has the motivation to unilaterally deviate from it. So far, the non-cooperative game model has been established.
[0016] Preferably, step S3 comprises the following steps: S31. Use the optimal solution calculated in step 1 as the initial solution of the non-cooperative game model, and calculate the utility function value of each electric heavy truck under the initial solution. Set the number of iterations ; S32. Selecting a subset of game participants , i.e., the subset of electric heavy trucks. In each iteration, a part of the participants is selected to update their strategies, mainly the participants with larger objective function values in the previous iteration. The decisions of multiple participants in the process of updating strategies are independent of each other, so parallel computing methods can be used; S33, calculating the optimal response, for the participant subset selected in step S32, calculating their optimal response when the strategies of other participants are fixed, and finding the strategy that minimizes the objective function of the participant, that is, which battery swap station to go to for battery swap; ; (19) In the formula, Electric heavy truck In the The best decision in the iteration; S34, update the strategy, update the participant's own strategy to the optimal strategy calculated in step S33, keep the strategies of other participants unchanged, and then update the iteration cycle; ; (20) ;(twenty one) ;(twenty two) S35, check Nash equilibrium, repeat steps S32 to S34 until the strategy does not change in one iteration, and judge whether the current strategy is the Nash equilibrium solution of the non-cooperative game, that is, judge Whether formula (17) and (18) are satisfied, if Nash equilibrium is reached, the iteration is terminated, otherwise, it returns to step S32.
[0017] For the Nash equilibrium problem with discrete strategy sets in the present invention, the algorithm can quickly update the strategy and converge to a set of Nash equilibrium solutions by iteratively calculating the equilibrium decision of the electric heavy truck.
[0018] Preferably, step S4 comprises the following steps: S41, generation of data set: for each electric heavy truck, collect historical data, including the decisions and arrival times of other electric heavy trucks in the past, use branch-cut to calculate the optimal decision of the electric heavy truck in each set of data, and then organize it into a data set, and divide it into a training set and a test set; S42. In the offline training phase, based on the collected data, a fully connected deep neural network with three hidden layers is designed. The input of this network is the arrival time of all participants and the decisions of the remaining electric heavy trucks except the target participant, and the output is the decision and waiting time of the target participant in this dispatch. A loss function that considers both the target value and the constraint satisfaction is set, which consists of two parts: the error part, that is, the weighted sum of squares of the variable errors; the regularization part, that is, the penalty term for violating the constraints; the expression of the loss function is as follows: ;(twenty three) In the formula, is the output value of the deep neural network, i.e., the predicted value of the optimal decision of the electric heavy truck a; is the target value obtained from the solver in advance; the first term of the loss function is the mean square error, which is used to learn the target value of the variable; the second term is the regularization term for binary variables. Since the predicted value obtained by the prediction model is a continuous real number between 0 and 1, this term will be introduced when it is not 0 and 1, so as to adjust the prediction result to 0 or 1; the third term is the penalty term for violating the matching relationship between the electric heavy truck and the station; the fourth and fifth terms are the penalty terms for violating the station capacity constraint and violating the maximum driving distance constraint respectively. The gradient of the loss function relative to the neural network weights is calculated, and then the back propagation algorithm is used to update these weights; S43, real-time solution stage, in order to deal with special situations where the predicted value may not be feasible and to improve model performance, new data obtained in daily scheduling is used to supplement learning. When the model predicts successfully, the predicted value can be used as the learning target of online learning, and the gradient derived from the loss function is used to update the network model weights; when the prediction result is not feasible, the solver is called to solve the model, and the result is used to update the model.
[0019] In step S32, the above-mentioned deep neural network model is used to predict the battery swap station decision of each electric heavy truck, shortening the time for each iterative decision update, and ultimately achieving a fast solution to the Nash equilibrium.
[0020] The present invention provides a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, which has the following beneficial effects: 1. Considering the competitive relationship among heavy trucks, a non-cooperative game model for heavy truck battery swap scheduling was established, and the battery swap cost, driving distance and waiting time of each heavy truck were comprehensively considered, aiming to improve the overall operational efficiency of the system; 2. Use Jacobi optimal response algorithm to solve the non-cooperative game model, select a subset of participants for simultaneous optimization, and iterate to make the strategies of each heavy truck converge to Nash equilibrium; 3. Use a deep neural network model to learn and predict the battery swap station selection of electric heavy trucks, thereby simplifying the battery swap decision-making problem of a single electric heavy truck and shortening the strategy update time in each iteration. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The present invention will be further described below in conjunction with the accompanying drawings and embodiments: Figure 1 It is an overall schematic diagram of the electric heavy truck battery replacement scheduling method based on non-cooperative game of the present invention; Figure 2 This is a basic structural diagram of the guidance optimization model for an electric heavy truck to arrive at a battery swap station according to the present invention; Figure 3 It is a flow chart of the Nash equilibrium solution based on Jacobi optimal response algorithm of the present invention; Figure 4 It is a schematic diagram of the present invention designing and training a deep neural network based on historical data. DETAILED DESCRIPTION
[0022] like Figure 1-2 As shown in the figure, a battery replacement scheduling method for electric heavy trucks based on non-cooperative game is shown. The specific steps are as follows: S1: Construct a centralized dispatching model for electric heavy trucks to generate an initial feasible solution for a set of non-cooperative game models.
[0023] Consider scheduling once every period, for example, 10 minutes. Before scheduling begins, collect the battery swap request information of electric heavy trucks, including location and remaining power. The platform calculates the driving distance and time to reach each battery swap station. Indicates the index set of electric heavy trucks that request battery replacement. Represents the index set of the battery swap station. Define the vector Indicates electric heavy truck The guiding relationship of the swap station, the decision variables A 0-1 variable, indicating an electric heavy truck With battery swap station The guiding relationship, 1 represents an electric heavy truck Guided to the battery swap station Replace the battery, 0 means there is no guidance between the two.
[0024] When using the Jacobi optimal response algorithm, a set of initial solutions is required to start the iteration. In order to quickly obtain the initial solution while ensuring the quality of the initial solution, the present invention establishes a centralized battery replacement scheduling model for electric heavy trucks, and the objective function is to minimize the driving distance of all vehicles: ; (1) In the formula, Indicates electric heavy truck Go to the battery swap station driving distance.
[0025] The guidance constraints of the battery swap station are as follows: ; (2) ; (3) Formula (2) indicates that each electric heavy truck It can only be directed to a battery swap station for battery swap. Formula (3) indicates that it is directed to a battery swap station. The number of heavy trucks cannot exceed the number of available batteries .
[0026] The heavy-duty trucks that request battery swapping are usually about to run out of power and have limited driving distance. It is necessary to ensure that the assigned battery swap station is within the heavy-duty truck's driving range. The maximum range constraints for heavy-duty trucks are as follows: ; (4) In the formula, Indicates electric heavy truck The remaining power, Indicates the conversion factor between battery power and driving distance.
[0027] Finally, the branch-and-cut method is used to solve the integer programming problem, and the optimal solution obtained will be used as the initial solution for iteratively solving the Nash equilibrium in step S3.
[0028] S2: Construct a non-cooperative game model for electric heavy trucks.
[0029] Assuming that all electric heavy trucks are rational, they will choose appropriate battery swap stations to minimize their comprehensive battery swap costs, and each heavy truck will engage in non-cooperative game. , and its decision model is as follows: The objective function is to minimize the comprehensive battery replacement cost, including driving distance, battery replacement price and waiting time: ; (5) In the formula, Indicates battery replacement station The price of battery replacement, Indicates heavy truck The waiting time, and are the cost conversion factors for driving distance and waiting time, respectively. Indicates the battery capacity of the electric heavy truck after battery replacement.
[0030] The guidance constraints of the battery swap station are as follows: ; (6) ; (7) The maximum travel constraints of heavy trucks are as follows: ; (8) Formula (6) is similar to (2), indicating that electric heavy truck a can only be directed to one battery swap station for battery swap. Formula (7) is similar to (3), indicating that when considering being directed to a battery swap station In the case of other electric heavy trucks, the decision of a must ensure that the total number of heavy trucks does not exceed the number of available batteries. Formula (8) is similar to (4), indicating that the guided battery swap station To be in heavy truck within the maximum drivable range.
[0031] The waiting time constraints for heavy truck battery replacement are as follows: ; (9) ; (10) ; (11) Formula (9) represents the electric heavy truck At the battery swap station The battery replacement start time is not less than the arrival time, where: Indicates electric heavy truck The battery replacement start time, Indicates electric heavy truck Drive to the battery swap station Formula (10) indicates that the time interval for each electric heavy truck to start battery replacement at the battery replacement station should be greater than the normal battery replacement time. Indicates the time required for battery replacement operation. Formula (11) indicates that the electric heavy truck The waiting time is equal to the difference between the start time and the arrival time of the battery replacement. Indicates electric heavy truck of waiting time in queue.
[0032] Formula (10) contains logical OR, which is a nonlinear constraint. It is linearized using the Big M method: ; (12) ; (13) In the formula, is a sufficiently large positive number, Auxiliary 0-1 variable.
[0033] According to the above constraints, for each electric heavy truck , its feasible domain is as follows: ; (14) In the formula, Indicates electric heavy truck The feasible domain of decision making, similarly, we can use Represents the feasible domain of all electric heavy truck decisions.
[0034] The total cost of battery replacement for each electric heavy truck depends not only on its own choice, but also on the choices of other electric heavy trucks. In order to describe the non-cooperative game relationship between all electric heavy trucks, the following game is constructed: ; (15) In the formula, For the participants in the game, that is, all electric heavy trucks; is the strategy set of each electric heavy truck, which is non-empty and discrete; Electric heavy truck The utility function (1) is abbreviated as : ; (16) In the formula, In addition to electric heavy trucks strategies of other participants.
[0035] The goal of non-cooperative games is to find a Nash equilibrium, that is, to find a set of So that the following formula holds: ; (17) ; (18) That is, our goal is to determine a set of strategies for all electric heavy trucks, while no participant has the motivation to unilaterally deviate from it. So far, the non-cooperative game model has been established.
[0036] S3: Figure 3 The schematic diagram of the solution framework based on the Jacobi optimal response algorithm of the present invention is given, and the specific contents are as follows: S31: Use the optimal solution calculated in step 1 as the initial solution of the non-cooperative game model, and calculate the utility function value of each electric heavy truck under the initial solution. Set the number of iterations .
[0037] S32: Selecting a subset of game players , that is, the subset of electric heavy trucks. In each iteration, a part of the participants is selected to update their strategies. The participants with larger objective function values in the previous iteration are mainly selected. The decisions of multiple participants in the process of updating strategies are independent of each other, so parallel computing methods can be used.
[0038] S33: Calculate the optimal response. The detailed calculation method will be given in step 4. For the subset of participants selected in step S32, calculate their optimal response when the strategies of other participants are fixed. Find the strategy that minimizes the objective function of the participant, that is, which battery swap station to go to for battery swap.
[0039] ; (19) In the formula, Electric heavy truck In the The best decision in the iteration.
[0040] S34: Update strategy. The participant's own strategy is updated to the optimal strategy calculated in step S33, and the strategies of other participants remain unchanged, and then the iteration cycle is updated.
[0041] ; (20) ;(twenty one) ;(twenty two) S35: Check Nash equilibrium. Repeat steps S32 to S34 until the strategy does not change in one iteration, and determine whether the current strategy is the Nash equilibrium solution of the non-cooperative game. Whether formula (17) and (18) are satisfied. If Nash equilibrium is reached, the iteration is terminated, otherwise it returns to step S32.
[0042] For the Nash equilibrium problem with discrete strategy sets in the present invention, the algorithm can quickly update the strategy and converge to a set of Nash equilibrium solutions by iteratively calculating the equilibrium decision of the electric heavy truck.
[0043] S4: Figure 4 A schematic diagram of designing and training a deep neural network based on historical data is given. The details are as follows: S41: Generation of data sets. For each electric heavy truck, collect historical data, including the decisions and arrival times of other electric heavy trucks in the past. Use branch-cut to calculate the optimal decision of the electric heavy truck in each set of data, and then organize it into a data set, and divide it into a training set and a test set.
[0044] S42: Offline training phase. Based on the collected data, a fully connected deep neural network with three hidden layers is designed. The input of this network is the arrival time of all participants and the decisions of the remaining electric heavy trucks other than the target participant, and the output is the decision and waiting time of the target participant in this dispatch. In addition, the present invention specially designs a loss function that takes into account both the target value and the constraint satisfaction. It consists of two parts: the error part, that is, the weighted square sum of the variable errors; the regularization part, that is, the penalty term for violating the constraints. The expression of the loss function is as follows: ;(twenty three) In the formula, is the output value of the deep neural network, i.e., the predicted value of the optimal decision of the electric heavy truck a; is the target value obtained from the solver in advance. The first term of the loss function is the mean square error, which is used to learn the target value of the variable; the second term is the regularization term for binary variables. Since the predicted value obtained by the prediction model is a continuous real number between 0 and 1, this term will be introduced when it is not 0 or 1, prompting the prediction result to be adjusted to 0 or 1; the third term is the penalty term for violating the matching relationship between electric heavy trucks and stations; the fourth and fifth terms are penalty terms for violating station capacity constraints and violating maximum driving distance constraints, respectively. The gradient of the loss function relative to the neural network weights is calculated, and then the back propagation algorithm is used to update these weights.
[0045] S43: Real-time solution phase. In order to cope with special situations where the predicted value may not be feasible and to improve model performance, new data obtained in daily scheduling is used to supplement learning. When the model predicts successfully, the predicted value can be used as the learning target of online learning, and the gradient derived from the loss function is used to update the network model weights; when the prediction result is not feasible, the solver is called to solve the model, and the result is used to update the model.
[0046] In step S32, the above-mentioned deep neural network model is used to predict the battery swap station decision of each electric heavy truck, shortening the time for each iterative decision update, and ultimately achieving a fast solution to the Nash equilibrium.
[0047] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.
Claims
1. A method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, characterized in that: The following steps are involved: S1. The cloud system collects battery swap reservation information and battery swap station information, takes the total driving distance of all electric heavy trucks as the objective function, establishes a centralized scheduling model, and uses the result as the initial solution of the non-cooperative game model; S2. Take each electric heavy truck as the game subject, and use its battery replacement price, driving distance and queuing time as the objective function to establish a non-cooperative game model; S3. Establish a non-cooperative game solving framework based on Jacobi optimal response method; S4. Design and train a deep neural network based on historical data, and use the branch-and-cut method to solve the optimal strategy for each electric heavy truck in each iteration.
2. According to claim 1, a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, characterized in that: The step S1 is specifically as follows: A centralized battery swap scheduling model for electric heavy trucks is established, and the objective function is to minimize the driving distance of all vehicles: ; (1) In the formula, Indicates electric heavy truck Go to the battery swap station driving distance; The guidance constraints of the battery swap station are as follows: ;(2) ;(3) Formula (2) indicates that each electric heavy truck Can only be directed to one battery swap station for battery swap; Formula (3) indicates that The number of heavy trucks cannot exceed the number of available batteries ; The battery-swapping heavy trucks that request battery swapping are usually about to run out of power and have limited driving distance. It is necessary to ensure that the assigned battery swap station must be within the heavy truck's drivable mileage. The maximum range constraints of heavy trucks are as follows: ; (4) In the formula, Indicates electric heavy truck The remaining power, Indicates the conversion factor between power and driving distance; Finally, the branch-and-cut method is used to solve the integer programming problem, and the optimal solution obtained is used as the initial solution for iteratively solving the Nash equilibrium in step S3.
3. According to claim 2, a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, characterized in that: In step S1, before establishing the centralized battery swap scheduling model for electric heavy trucks, the battery swap request information of electric heavy trucks, including the location and remaining power, is collected. The platform calculates the driving distance and time to reach each battery swap station. Indicates the index set of electric heavy trucks that request battery replacement. Represents the index set of the battery swap station, defining the vector Indicates electric heavy truck The guiding relationship of the swap station, the decision variables A 0-1 variable, indicating an electric heavy truck With battery swap station The guiding relationship, 1 represents an electric heavy truck Be directed to the battery swap station Replace the battery, 0 means there is no guidance between the two.
4. According to claim 3, a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, characterized in that: Scheduling is carried out once every time period to update the centralized battery replacement scheduling model for electric heavy trucks.
5. According to claim 1, a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, characterized in that: The step S2 is specifically as follows: Assuming that all electric heavy trucks are rational, they will choose appropriate battery swap stations to minimize their comprehensive battery swap costs, and non-cooperative games will be played among heavy trucks. , and its decision model is as follows: The objective function is to minimize the comprehensive battery replacement cost, including driving distance, battery replacement price and waiting time: ; (5) In the formula, Indicates battery replacement station The price of battery replacement, Indicates heavy truck The waiting time, and are the cost conversion factors for driving distance and waiting time, respectively. Indicates the battery power of the electric heavy truck after battery replacement; The guidance constraints of the battery swap station are as follows: ;(6) ;(7) The maximum travel constraints of heavy trucks are as follows: ; (8) Formula (6) indicates that electric heavy truck a can only be directed to one battery swap station for battery swapping. Formula (7) indicates that when considering being directed to a battery swap station In the case of other electric heavy trucks, the decision of a must ensure that the total number of heavy trucks does not exceed the number of available batteries. Formula (8) represents the guided battery swap station To be in heavy truck within the maximum drivable range; The waiting time constraints for heavy truck battery replacement are as follows: ;(9) ;(10) ;(11) Formula (9) represents the electric heavy truck At the battery swap station The battery replacement start time is not less than the arrival time, where: Indicates electric heavy truck The battery replacement start time, Indicates electric heavy truck Drive to the battery swap station The arrival time of each electric heavy truck at the battery swap station should be greater than the normal battery swap time. represents the time required for battery replacement operation; Formula (11) represents the time required for electric heavy truck The waiting time is equal to the difference between the start time and the arrival time of the battery replacement. Indicates electric heavy truck waiting time in queues; Formula (10) contains logical OR, which is a nonlinear constraint. It is linearized using the Big M method: ;(12) ; (13) In the formula, is a sufficiently large positive number, is an auxiliary 0-1 variable; According to the above constraints, for each electric heavy truck , its feasible domain is as follows: ; (14) In the formula, Indicates electric heavy truck The feasible domain of decision making, similarly, we can use Represents the feasible domain of all electric heavy truck decisions; The total cost of battery replacement for each electric heavy truck depends not only on its own choice, but also on the choices of other electric heavy trucks. In order to describe the non-cooperative game relationship between all electric heavy trucks, the following game is constructed: ; (15) In the formula, For the participants in the game, that is, all electric heavy trucks; is the strategy set of each electric heavy truck, which is non-empty and discrete; Electric heavy truck The utility function (1) is abbreviated as : ; (16) In the formula, In addition to electric heavy trucks strategies of other actors; The goal of non-cooperative games is to find a Nash equilibrium, that is, to find a set of So that the following formula holds: ;(17) ;(18)。 6. According to claim 2, a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, characterized in that: The step S3 comprises the following steps: S31, using the optimal solution calculated in step 1 as the initial solution of the non-cooperative game model, and calculating the utility function value of each electric heavy truck under the initial solution; setting the number of iterations ; S32. Selecting a subset of game participants , i.e., the subset of electric heavy trucks. In each iteration, a part of the participants is selected to update their strategies, mainly the participants with larger objective function values in the previous iteration. The decisions of multiple participants in the process of updating strategies are independent of each other, so parallel computing methods can be used; S33, calculating the optimal response, for the participant subset selected in step S32, calculating their optimal response when the strategies of other participants are fixed, and finding the strategy that minimizes the objective function of the participant, that is, which battery swap station to go to for battery swap; ;(19) In the formula, Electric heavy truck In the The best decision in the iteration; S34, update the strategy, update the participant's own strategy to the optimal strategy calculated in step 3-3, keep the strategies of other participants unchanged, and then update the iteration cycle; ;(20) ;(21) ;(22) S35, check Nash equilibrium, repeat steps S32 to S34 until the strategy does not change in one iteration, and judge whether the current strategy is the Nash equilibrium solution of the non-cooperative game, that is, judge Whether formula (17) and (18) are satisfied, if Nash equilibrium is reached, the iteration is terminated, otherwise, it returns to step S32.
7. According to claim 1, a method for scheduling battery replacement of electric heavy trucks based on non-cooperative game, characterized in that: The step S4 comprises the following steps: S41, generation of data set: for each electric heavy truck, collect historical data, including the decisions and arrival times of other electric heavy trucks in the past, use branch-cut to calculate the optimal decision of the electric heavy truck in each set of data, and then organize it into a data set, and divide it into a training set and a test set; S42. In the offline training phase, based on the collected data, a fully connected deep neural network with three hidden layers is designed. The input of this network is the arrival time of all participants and the decisions of the remaining electric heavy trucks except the target participant, and the output is the decision and waiting time of the target participant in this dispatch. A loss function that considers both the target value and the constraint satisfaction is set, which consists of two parts: the error part, that is, the weighted sum of squares of the variable errors; the regularization part, that is, the penalty term for violating the constraints; the expression of the loss function is as follows: ;(23) In the formula, is the output value of the deep neural network, i.e., the predicted value of the optimal decision of the electric heavy truck a; is the target value obtained from the solver in advance; the first term of the loss function is the mean square error, which is used to learn the target value of the variable; the second term is the regularization term for binary variables. Since the predicted value obtained by the prediction model is a continuous real number between 0 and 1, this term will be introduced when it is not 0 and 1, so as to adjust the prediction result to 0 or 1; the third term is the penalty term for violating the matching relationship between the electric heavy truck and the station; the fourth and fifth terms are the penalty terms for violating the station capacity constraint and violating the maximum driving distance constraint respectively. The gradient of the loss function relative to the neural network weights is calculated, and then the back propagation algorithm is used to update these weights; S43, real-time solution stage, in order to deal with special situations where the predicted value may not be feasible and to improve model performance, new data obtained in daily scheduling is used to supplement learning. When the model predicts successfully, the predicted value can be used as the learning target of online learning, and the gradient derived from the loss function is used to update the network model weights; when the prediction result is not feasible, the solver is called to solve the model, and the result is used to update the model.
Citation Information
Patent Citations
Multi-microgrid game optimization method based on generation prediction in cloud energy storage environment
CN109190802A
Vehicle pickup scheduling method and system based on non-cooperative game
CN116070874A
Method for scheduling multi agent and unmanned electric vehicle battery swap based on internet of vehicles
US20220126725A1
Cited By
Electric heavy truck charging and discharging scheduling collaborative optimization method and system
CN121660287A
An electric heavy truck charging and discharging scheduling cooperative optimization method and system
CN121660287B
