Charging scheduling method and device based on deep reinforcement learning, equipment and medium

The deep reinforcement learning model is used to match vehicles and charging equipment in the intelligent charging system, which solves the efficiency problem of traditional methods in large-scale charging situations and achieves more efficient charging scheduling.

CN118735722AActive Publication Date: 2024-10-01SHENZHEN RES INST OF BIG DATA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410720423.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-01
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Traditional operations optimization methods are difficult to accurately find the optimal charging decision-making solution within a limited time in the case of large-scale vehicles to be charged, resulting in poor charging scheduling efficiency of smart charging equipment.

Method used

Using a charging scheduling method based on deep reinforcement learning, by obtaining information about the selected vehicles and charging equipment, the pre-trained deep reinforcement learning model is used to select the target device from multiple charging devices, and determine the charging action based on the charging demand and resource information. and vehicle sequence to generate target charging sequences to improve charging efficiency.

Benefits of technology

It improves the charging scheduling efficiency of intelligent charging robots, can better match vehicles and charging equipment without increasing computing resources, and improves charging efficiency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735722A_ABST
    Figure CN118735722A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a charging scheduling method and device based on deep reinforcement learning, equipment and a medium, and belongs to the technical field of artificial intelligence. The method comprises the following steps: acquiring charging demand information and equipment resource information; when the to-be-selected vehicle is not completely selected, target charging equipment is selected from the multiple to-be-selected charging equipment, a target charging action corresponding to the target charging equipment is determined, and the target charging action comprises one of inward charging and outward charging; if the target charging action is outward charging, selecting a corresponding target vehicle for the target charging equipment based on the current charging demand information and the equipment resource information from the remaining to-be-selected vehicles, and updating the corresponding equipment resource information and the charging demand information; and when all the to-be-selected vehicles are selected, generating a corresponding target charging sequence based on the selection sequence of the plurality of target charging actions under each target charging device. The charging scheduling efficiency of the intelligent charging robot can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a charging scheduling method, device, equipment and medium based on deep reinforcement learning. Background Art

[0002] At present, new energy vehicles are developing rapidly, especially electric vehicles driven by electricity. However, as the number of electric vehicles increases, users have higher requirements for the timeliness of charging electric vehicles.

[0003] In the related art, operations research optimization methods are used to select the best decision-making plan in the discrete decision space of vehicles to determine the matching relationship between multiple smart charging devices and multiple vehicles to be charged. However, with the continuous expansion of the discrete decision space of vehicles and the personalized requirements for real-time solutions, traditional operations research optimization methods are facing huge computational pressure and it is difficult to accurately find the best decision-making plan within a limited time. That is, when there are a large number of vehicles to be charged, the related art has the problem of poor charging scheduling efficiency for smart charging devices. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a charging scheduling method, device, equipment and medium based on deep reinforcement learning. The present application can improve the charging scheduling efficiency of the intelligent charging robot.

[0005] To achieve the above objectives, a first aspect of an embodiment of the present application proposes a charging scheduling method based on deep reinforcement learning, the method comprising:

[0006] Obtaining charging demand information of multiple selected vehicles in a target area and device resource information of multiple selected charging devices;

[0007] Input charging demand information and device resource information into a pre-trained deep reinforcement learning model. When all the selected vehicles have not been selected, select a target charging device from multiple selected charging devices, and determine a target charging action corresponding to the target charging device, wherein the target charging action includes one of inward charging and outward charging.

[0008] If the target charging action is external charging, a corresponding target vehicle is selected for the target charging device from the remaining multiple vehicles to be selected based on the current charging demand information and device resource information, and the corresponding device resource information and charging demand information are updated;

[0009] When all the vehicles to be selected have been selected, a corresponding target charging sequence is generated based on the selection order of multiple target charging actions under each target charging device;

[0010] Based on each target charging sequence, the corresponding target charging equipment is scheduled to perform the target charging action in the selected order to complete the charging of the target vehicle.

[0011] In some embodiments, the device resource information includes a current remaining power value, a current accumulated working time, and a current charging sequence, wherein the current charging sequence is a subset of the target charging sequence;

[0012] A target charging device is selected from multiple candidate charging devices, including:

[0013] According to the preset first decoder parameters, all current residual power values ​​and current accumulated working time are linearly transformed and activated to obtain device status characteristics;

[0014] Generate a high-dimensional mapping sequence according to the current charging sequence corresponding to each selected charging device, and perform linear transformation and activation processing on all high-dimensional mapping sequences according to the preset second decoder parameters to obtain sequence state features;

[0015] The concatenation result of the device state feature and the sequence state feature is linearly transformed and activated to obtain the device selection probability value corresponding to the candidate charging device, and the target charging device is selected from multiple candidate charging devices according to the device selection probability value.

[0016] In some embodiments, generating a high-dimensional mapping sequence according to the current charging sequence corresponding to each to-be-selected charging device includes:

[0017] According to the preset encoder parameters, the charging demand information corresponding to each selected vehicle and the device resource information corresponding to all the selected charging devices are spliced ​​to obtain the initial features;

[0018] Using the preset first attention mechanism as a constraint, the initial features are enhanced to obtain updated initial features.

[0019] Perform feed-forward propagation processing on the updated initial features to obtain high-dimensional mapping features corresponding to the selected vehicle;

[0020] For the selection order of each candidate vehicle indicated in the current charging sequence corresponding to each candidate charging device, the corresponding high-dimensional mapping features are sequentially spliced ​​to obtain a high-dimensional mapping sequence.

[0021] In some embodiments, selecting a corresponding target vehicle for a target charging device based on current charging demand information and device resource information includes:

[0022] Fuse all high-dimensional mapping features to obtain global feature information;

[0023] Determine the device resource information corresponding to the target charging device, and use the preset second attention mechanism as a constraint condition to enhance the features of the device resource information, global feature information, and the result of concatenating the high-dimensional mapping sequence to obtain the vehicle state features;

[0024] The vehicle state features are subjected to feature extraction and activation processing to obtain a vehicle selection probability value corresponding to the candidate vehicle, and a target vehicle corresponding to the target charging device is determined from a plurality of candidate vehicles according to the vehicle selection probability value.

[0025] In some embodiments, the charging requirement information includes charging start and end values ​​and dwell time;

[0026] Update the corresponding device resource information, including:

[0027] Obtain the device resource information corresponding to the currently selected target charging device and the charging demand information corresponding to the target vehicle;

[0028] The power difference is calculated based on the current remaining power value and the charging start and end values, and the total time is calculated based on the current accumulated working time and stay time;

[0029] The current remaining power value is updated according to the power difference, the current accumulated working time is updated according to the total time value, and the current charging sequence is updated according to the selected order of the target vehicles.

[0030] In some embodiments, the deep reinforcement learning model is trained by the following steps:

[0031] Obtaining sample charging demand information of multiple sample candidate vehicles in a sample area, and sample device resource information of multiple sample candidate charging devices;

[0032] The sample charging demand information and the sample equipment resource information are input into the deep reinforcement learning model. When the sample candidate vehicles have not been selected, a sample target charging device is selected from multiple sample candidate charging devices, and a sample target charging action corresponding to the sample target charging device is determined, wherein the sample target charging action includes one of inward charging and outward charging.

[0033] If the sample target charging action is external charging, a corresponding sample target vehicle is selected for the sample target charging device from the remaining multiple sample candidate vehicles based on the current sample charging demand information and sample device resource information, and the corresponding sample device resource information and sample charging demand information are updated;

[0034] When all sample vehicles to be selected have been selected, a corresponding sample target charging sequence is generated based on the selection order of multiple sample target charging actions under each sample target charging device;

[0035] A sample reward value is determined according to the sample target charging sequence, and the parameters of the deep reinforcement learning model are adjusted based on the sample reward value to obtain a trained deep reinforcement learning model.

[0036] In some embodiments, the sample target charging device in the sample target charging sequence is determined according to the sample device selection probability value, each sample target vehicle corresponding to the sample target charging device is determined according to the sample vehicle selection probability value, and the sample reward value includes a first sample reward value and a second sample reward value;

[0037] Determine a sample reward value based on a sample target charging sequence, including:

[0038] If the sample target charging device is determined based on the maximum sample device selection probability value, and each sample target vehicle corresponding to the sample target charging device is determined based on the maximum sample vehicle selection probability value, determine the first charging quantity of the sample target vehicle matched by each sample target charging device and the first charging quantity released by each corresponding sample target vehicle according to the sample target charging sequence;

[0039] Obtaining a first sample reward value according to a total value of all first charging quantities and / or a total value of the first charging power;

[0040] If the sample target charging device is determined based on a random sample device selection probability value, and each sample target vehicle corresponding to the sample target charging device is determined based on a random sample vehicle selection probability value, the second charging quantity of the sample target vehicle matched by each sample target charging device and the corresponding second charging quantity released by each sample target vehicle are determined based on the sample target charging sequence;

[0041] A second sample reward value is obtained according to a total value of all second charging quantities and / or a total value of the second charging electrical quantities.

[0042] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a charging scheduling device based on deep reinforcement learning, the device comprising:

[0043] An acquisition module is used to acquire charging demand information of multiple selected vehicles in a target area and device resource information of multiple selected charging devices;

[0044] A target charging action determination module is used to input charging demand information and device resource information into a pre-trained deep reinforcement learning model. When all the selected vehicles have not been selected, a target charging device is selected from multiple selected charging devices, and a target charging action corresponding to the target charging device is determined, wherein the target charging action includes one of inward charging and outward charging;

[0045] A target vehicle determination module, for selecting a corresponding target vehicle for a target charging device from the remaining multiple vehicles to be selected based on the current charging demand information and device resource information if the target charging action is external charging, and updating the corresponding device resource information and charging demand information;

[0046] A target charging sequence determination module is used to generate a corresponding target charging sequence based on the selection order of multiple target charging actions under each target charging device until all the vehicles to be selected have been selected;

[0047] The target execution module is used to schedule the corresponding target charging equipment to execute the target charging action in the selected order based on each target charging sequence to complete the charging of the target vehicle.

[0048] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the charging scheduling method based on deep reinforcement learning of the above-mentioned first aspect is implemented.

[0049] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the charging scheduling method based on deep reinforcement learning of the above-mentioned first aspect.

[0050] The present application proposes a charging scheduling method, device, equipment and medium based on deep reinforcement learning. The method first obtains charging demand information of multiple vehicles to be selected in a target area, and equipment resource information of multiple charging devices to be selected; then, the charging demand information and equipment resource information are input into a pre-trained deep reinforcement learning model. When the vehicles to be selected have not been selected, a target charging device is selected from the multiple charging devices to be selected, and a target charging action corresponding to the target charging device is determined, wherein the target charging action includes one of inward charging and outward charging, and the target charging device can serve more target vehicles to the greatest extent by considering both the inward charging and outward charging actions; and if the target charging action is outward charging, a corresponding target vehicle is selected for the target charging device from the remaining multiple vehicles to be selected based on the current charging demand information and equipment resource information, and the corresponding equipment resource information and charging demand information are updated; until all the vehicles to be selected have been selected, a corresponding target charging sequence is generated based on the selection order of multiple target charging actions under each target charging device; based on each target charging sequence, the corresponding target charging device is scheduled to perform the target charging action in the selected order to complete the charging of the target vehicle. That is, with the purpose of maximizing power output or serving as many vehicles as possible, a target charging sequence based on two charging actions is generated. In this way, each charging device can be better scheduled according to the target charging sequence, thereby improving the charging scheduling efficiency of the charging equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of an application scenario of a charging scheduling device based on deep reinforcement learning provided in an embodiment of the present application;

[0052] Figure 2 is an optional flow chart of a charging scheduling method based on deep reinforcement learning provided in an embodiment of the present application;

[0053] Figure 3 It is a schematic diagram of an optional functional module of a charging scheduling device based on deep reinforcement learning provided in an embodiment of the present application;

[0054] Figure 4 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0058] First, some nouns involved in this application are analyzed:

[0059] Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robots, language recognition, image recognition, natural language processing and expert systems. AI can simulate the information process of human consciousness and thinking. AI is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0060] New energy vehicles refer to vehicles that use unconventional vehicle fuels as a power source (or use conventional vehicle fuels and adopt new vehicle power devices), and integrate advanced technologies in vehicle power control and drive to form vehicles with advanced technical principles, new technologies, and new structures. New energy vehicles include pure electric vehicles, extended-range electric vehicles, hybrid vehicles, fuel cell electric vehicles, hydrogen engine vehicles, etc.

[0061] At present, new energy vehicles are developing rapidly, especially electric vehicles driven by electricity. However, as the number of electric vehicles increases, users have higher requirements for the timeliness of charging electric vehicles.

[0062] In the related art, operations research optimization methods are used to select the best decision-making plan in the discrete decision space of vehicles to determine the matching relationship between multiple smart charging devices and multiple vehicles to be charged. However, with the continuous expansion of the discrete decision space of vehicles and the personalized requirements for real-time solutions, traditional operations research optimization methods are facing huge computational pressure and it is difficult to accurately find the best decision-making plan within a limited time. That is, when there are a large number of vehicles to be charged, the related art has the problem of poor charging scheduling efficiency for smart charging devices.

[0063] Based on this, the present application proposes a charging scheduling method, device, equipment and medium based on deep reinforcement learning, which can improve the charging scheduling efficiency of intelligent charging robots.

[0064] It should be noted first that in the embodiments of the present application, when it comes to information such as the charging demand information of the vehicle related to the user, the user's geographic location information, etc., the user's permission or consent will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the embodiments of the present application need to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained first. After the user's separate permission or consent is clearly obtained, the necessary data for the normal operation of the embodiments of the present application will be obtained. For example, the charging scheduling device based on deep reinforcement learning in the present application needs to obtain the geographic location of each vehicle and the corresponding charging demand information in order to realize the charging of vehicles parked in a certain target area. The consent of the relevant users will be obtained first. Only when the user's permission or consent is obtained, the charging demand information required by the embodiments of the present application will be obtained.

[0065] The charging scheduling method, device, equipment and medium based on deep reinforcement learning provided in the embodiments of the present application are specifically described through the following embodiments. First, the application scenario of the charging scheduling device based on deep reinforcement learning in the embodiments of the present application is described, such as Figure 1 As shown, Figure 1: is a schematic diagram of an application scenario of a charging scheduling device based on deep reinforcement learning provided in an embodiment of the present application, wherein a charging scheduling method based on deep reinforcement learning provided in an embodiment of the present application (for the convenience of description, it may also be referred to as a "charging scheduling method" hereinafter) may be applied to a charging scheduling device based on deep reinforcement learning (for the convenience of description, it may also be referred to as a "charging scheduling device" hereinafter). In an application scenario, a target area includes a candidate vehicle A, a candidate vehicle B, and a candidate vehicle C waiting to be charged. The three candidate vehicles respectively send their corresponding charging demand information to the charging scheduling device. At the same time, the charging scheduling device obtains the device resource information corresponding to the candidate charging device. Then, the charging scheduling device generates a target charging sequence according to the charging demand information and the device resource information. The target charging sequence indicates that the selected candidate charging device is a target charging device and indicates the charging action of the target charging device. The charging action includes two types: inward charging and outward charging. When the charging action is outward charging, the target charging sequence indicates that the target charging device charges the selected candidate vehicle according to a certain charging sequence. In this way, each target charging device can perform corresponding charging actions based on the target charging sequence, output power to the maximum extent, and meet the charging needs of each selected vehicle in the target area.

[0066] Next, the charging scheduling method based on deep reinforcement learning in the embodiment of the present application is specifically described through the following examples.

[0067] In the embodiment of the present application, the charging scheduling device will be described from the perspective of the charging scheduling device, which can be integrated into a computer device, such as a server. Figure 2 As shown, Figure 2 is an optional flowchart of a charging scheduling method based on deep reinforcement learning provided in an embodiment of the present application. Figure 2 The method in the embodiment may include but is not limited to the following steps 101 to 105, wherein the charging scheduling device performs the charging scheduling method in the following specific process. It should be noted that the present embodiment Figure 2 The order of step 101 to step 105 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0068] Step 101: obtain charging demand information of multiple selected vehicles and device resource information of multiple selected charging devices in a target area.

[0069] The following is a detailed description of step 101.

[0070] In some embodiments, in order to determine the charging order, charging value and charging time of the selected charging equipment for multiple selected vehicles in the target area, the charging scheduling device needs to first obtain the charging demand information of the multiple selected vehicles in the target area and the equipment resource information corresponding to each selected charging equipment.

[0071] The size of the target area can be preset by the charging scheduling device. For example, a parking lot includes two areas, area A and area B. The charging scheduling device can obtain the charging demand information of each candidate vehicle a in area A and then generate a target charging sequence a. The target charging sequence a indicates that the selected candidate charging device serves each candidate vehicle a according to the target charging sequence a; the charging scheduling device can also obtain the charging demand information of each candidate vehicle b in area B and then generate a target charging sequence b. The target charging sequence b indicates that the selected candidate charging device serves each candidate vehicle b according to the target charging sequence b.

[0072] Among them, the selected vehicle (Electric Vehicle, EV) is driven by electricity. After obtaining the consent of the relevant users, the charging scheduling device usually also obtains the geographical location of the selected vehicle (for the convenience of description, it can also be referred to as "vehicle" below) so that the target charging device can find the corresponding target vehicle according to the geographical location and charge it. The number of selected vehicles is usually multiple. When there are multiple selected vehicles to be charged in the target area, the charging scheduling device can schedule a limited number of selected charging devices (for the convenience of description, it can also be referred to as "charging devices" below) based on the acquired information to maximize the output of electricity or maximize the number of vehicles serving the target area; of course, the number of selected vehicles can also be only one. At this time, the charging scheduling device can select the most suitable one from the multiple selected charging devices based on the acquired information to charge it.

[0073] Among them, the charging demand information includes the charging start and end values ​​and the stay time. The charging start and end values ​​indicate the current remaining power of the corresponding vehicle and the power that is expected to be reached after charging is completed. For example, the charging start and end values ​​of a vehicle A are [20,100], which indicates that the current remaining power of vehicle A is 20%, and it is expected to reach a full charge state after the charging device completes charging. Alternatively, the charging start and end values ​​can indicate the power that the corresponding vehicle expects to input. For example, when the charging start and end values ​​are 20%, it means that 20% of the electric energy needs to be charged to the target vehicle.

[0074] Among them, the selected charging device can be an intelligent charging robot (ICR), which is a robot with autonomous navigation and intelligent charging functions, and is usually designed to provide convenient charging services for electric devices such as electric vehicles, mobile devices or robots. The intelligent charging robot can be vehicle-mounted or flying, and can be set according to actual conditions. However, no matter which one, it can complete the charging action of the selected vehicle in the target area based on the target charging sequence output by the charging scheduling device provided in the embodiment of the present application.

[0075] Among them, the device resource information includes the current remaining power value, the current accumulated working time and the current charging sequence. Furthermore, the current remaining power value is used to indicate the current remaining power value of the charging device. According to the specific value of the current remaining power value, the charging device will take different operations. It may charge the corresponding target vehicle according to the charging demand information of the target vehicle, or charging the vehicle is not the best choice for the charging device at this time. Then the charging device will first self-charge, and then serve the vehicle after completing self-charging, so as to meet the charging needs of each vehicle to the greatest extent.

[0076] Further, the scheduling conditions that need to be met in the embodiments of the present application are described:

[0077] (1) Each ICR can only charge EVs whose charging demand does not exceed the current remaining power of the ICR;

[0078] (2) The charging completion time for each EV should not exceed the EV’s dwell time;

[0079] (3) Each EV can only be served by one ICR once. Once the charging process starts, it cannot be interrupted, so as to improve the overall service efficiency and service quality of the charging equipment and avoid the waste of computing resources caused by scheduling and planning the charging equipment.

[0080] (4) ICR can self-charge during working intervals until the maximum battery capacity E is reached;

[0081] (5) During the scheduling process, the time and power consumption required for ICR movement are ignored.

[0082] Step 102, input the charging demand information and device resource information into a pre-trained deep reinforcement learning model. When all the vehicles to be selected have not been selected, select a target charging device from multiple charging devices to be selected, and determine a target charging action corresponding to the target charging device, wherein the target charging action includes one of inward charging and outward charging.

[0083] The following is a detailed description of step 102.

[0084] In some embodiments, a pre-trained deep reinforcement learning model may be provided in the charging scheduling device. After obtaining the charging demand information and the equipment resource information, the two are input into the pre-trained deep reinforcement learning model. Since the purpose of this scheme is to charge all the selected vehicles in the target area, the model first determines whether the selected vehicles have corresponding charging equipment to charge them. When there are still selected vehicles that have not been selected, first one is selected from multiple selected charging devices as the target charging device, and the target charging action corresponding to the target charging device is determined.

[0085] Among them, the target charging action includes one of inward charging and outward charging. Inward charging refers to the self-charging operation of the charging device, that is, inputting power into the charging device. Inward charging means that the current remaining power of the charging device is too low and is not suitable for charging the vehicle. In other words, the charging device first charges itself and then serves the vehicle to achieve the maximum charging effect; outward charging refers to the charging device releasing power to the corresponding vehicle to charge the vehicle. When the target charging action is outward charging, it is necessary to clarify the number of vehicles that the target charging device needs to serve, as well as the service order of each vehicle, so that the target charging device can charge the corresponding vehicles based on the charging demand information in sequence.

[0086] Among them, the maximum charging effect means that the total amount of electricity released by the charging equipment within a certain period of time is the largest, or the number of vehicles that the charging equipment can serve within a certain period of time is the largest. The specific service indicators can be set according to actual conditions, and the embodiments of this application do not make specific requirements.

[0087] It should be noted that the target charging sequence formed by the related technology based on the charging demand information of the selected vehicle and the equipment resource information of the selected charging equipment only indicates the order in which the charging equipment serves the vehicle, that is, the target charging action of the charging equipment in the related technology only includes outward charging. As a result, the related technology cannot achieve the maximum charging effect.

[0088] For example, Figure 1The scenario includes charging equipment A and charging equipment B, vehicles A, vehicle B and vehicle C, among which the charging power of charging equipment A and charging equipment B are both 6KW / h, and charging equipment A: the current remaining power value is 10 kilowatt-hours (KWh), and the cumulative working time is 0; charging equipment B: the current remaining power value is 4KWh, and the cumulative working time is 0; vehicle A: charging start and end values ​​5KWh, and the stay time is 90 minutes (min); vehicle B: charging start and end values ​​7KWh, and the stay time is 120min; vehicle C: charging start and end values ​​2KWh, and the stay time is 60min. For this scenario, under the relevant scheduling conditions proposed in the embodiment of the present application, the target charging sequence given according to the relevant technology is charging equipment A-vehicle B (service time 70 minutes), charging equipment B-vehicle C (service time 20 minutes), while the target charging sequence given according to the charging scheduling method in the embodiment of the present application is charging equipment A-vehicle C (service time 20 minutes)-vehicle B (service time 70 minutes), charging equipment B-self-charging (self-charging time 40 minutes)-vehicle A (service time 50 minutes). When each vehicle is charged with the expected amount of electricity during its stay time, the total electricity value output by the relevant technology is 9KWh, while the total electricity value output by the embodiment of the present application is 14KWh, that is, the charging scheme of the embodiment of the present application is better.

[0089] In some embodiments, selecting a target charging device from a plurality of charging devices to be selected includes the following steps 201 to 203:

[0090] Step 201, according to the preset first decoder parameters, linear transformation and activation processing are performed on all current remaining power values ​​and current accumulated working time to obtain device status characteristics.

[0091] The following is a detailed description of step 201.

[0092] In some embodiments, the deep reinforcement learning model (hereinafter referred to as the "model" for ease of description) includes an encoder and a decoder, wherein the decoder further includes an ICR selection decoder and an EV selection decoder. To select a target charging device from multiple charging devices to be selected, the ICR selection decoder needs to determine the device state characteristics and sequence state characteristics of each charging device based on the charging demand information and the device resource information.

[0093] Furthermore, the charging demand information and device resource information are vectorized. For example, the total device resource information can be expressed as Among them, r represents a corresponding device resource information, m represents a total of m charging devices; t represents the tth selection process, and a selection process includes the selection of the target charging device and the corresponding target vehicle; E represents the current remaining power value; T represents the current accumulated working time; G represents the current charging sequence. In this way, the model can perform efficient data processing operations based on the vectorized information.

[0094] Further, the I CR selection decoder obtains the first context state feature based on the device resource information corresponding to each charging device

[0095]

[0096] in, Indicates step t-1 r m The corresponding current remaining power value, Indicates step t-1 r m Corresponding to the current accumulated working time, the E values ​​and T values ​​of the m charging devices are concatenated to obtain a first context state feature.

[0097] Furthermore, the first context state feature is linearly transformed and activated based on the preset first decoder parameter to obtain the device state feature, specifically, as shown in the following formula (1):

[0098]

[0099] Among them, W2 and b1 are both preset first decoder parameters, FF is the feedforward propagation processing operation of the feedforward layer (FF layer) in the model, the FF layer is a 512-dimensional neural network processing layer with a ReLU activation function, and the FF layer generally includes a fully connected layer, a convolutional layer, a pooling layer, etc. Moreover, the FF layers mentioned in the embodiments of the present application have the same meaning as explained here, and will not be repeated in the following text.

[0100] Among them, the rectified linear function (ReLU) is a commonly used neural network activation function, which improves the expressiveness and training efficiency of the neural network model by introducing nonlinear mapping and alleviating the gradient vanishing problem.

[0101] Further, The device state feature. That is, the first context state feature is linearly transformed based on the first decoder parameter, and then activated according to the result of the linear transformation, so as to obtain the device state feature. In the embodiment of the present application, the linear transformation can be linear projection, and the FF layer completes the activation processing operation on the data to obtain the device state feature.

[0102] Step 202: Generate a high-dimensional mapping sequence based on the current charging sequences corresponding to the candidate charging devices, and perform linear transformation and activation processing on all the high-dimensional mapping sequences according to the preset second decoder parameters to obtain sequence state features.

[0103] The following provides a detailed description of step 202.

[0104] In some embodiments, to select the target charging device, in addition to the device state features, it is also necessary to obtain the current charging sequences corresponding to the charging devices, so as to determine the sequence state features based on the current charging sequences later, and determine the target charging device from multiple candidate charging devices based on the device state features and the sequence state features.

[0105] Among them, the current charging sequence is used to indicate the target vehicles selected by each charging device during the previous t selection processes, and the charging order between these target vehicles. The current charging sequence can provide directional guidance for the selection of the target vehicle at the (t + 1)-th time later. For example, assume that all candidate vehicles need to be selected in T selection processes, and the target charging sequence corresponding to charging vehicle a is [A, B, C]. At the t-th selection process, the current charging sequence corresponding to charging vehicle a is [A, B], where t < T. It can be understood that the current charging sequence is a subset of the target charging sequence.

[0106] Among them, the high-dimensional mapping sequence is a mapping and representation of the current charging sequence in a higher-dimensional space. To obtain the high-dimensional mapping sequence, first determine the vehicles included in the current charging sequence. Each vehicle has its own corresponding high-dimensional mapping feature. Concatenate the corresponding high-dimensional mapping features of each vehicle in the order of selection of the vehicles in the current charging sequence to obtain the high-dimensional mapping sequence.

[0107] Further, the ICR selection decoder continues to obtain the second context state feature based on the device resource information corresponding to each charging device.

[0108]

[0109] Among them, represents the high-dimensional mapping feature corresponding to the (t - 1)-th charging device in the current charging sequence. Connect all the high-dimensional mapping features in the current charging sequence to obtain the second context state feature.

[0110] Further, as shown in the following formula (2), after determining the second state context feature, perform linear transformation and activation processing according to the preset second decoder parameters to obtain the sequence state feature.

[0111]

[0112] Wherein, W2 and b2 are both preset second decoder parameters; The second context state feature of the FF layer based on the input The result obtained after the maximum pooling and aggregation processing is specifically, as shown in the following formula (3) and formula (4), performing the maximum pooling and aggregation operations:

[0113]

[0114]

[0115] Among them, max is the maximum pooling operation, The aggregated result is obtained by aggregating the results of the maximum pooling processing of each second state context feature.

[0116] In some embodiments, generating a high-dimensional mapping sequence according to the current charging sequence corresponding to each of the to-be-selected charging devices includes the following steps 301 to 304:

[0117] Step 301 , according to preset encoder parameters, the charging requirement information corresponding to each candidate vehicle and the device resource information corresponding to all candidate charging devices are spliced ​​to obtain initial features.

[0118] The following is a detailed description of step 301.

[0119] In some embodiments, in order to better determine the relationship between each selected vehicle and each charging device, it is necessary to obtain high-dimensional mapping features that characterize the characteristics of the selected charging devices and the characteristics of the selected vehicles, so as to form a high-dimensional mapping sequence based on the current charging sequence and the high-dimensional mapping features corresponding to each vehicle.

[0120] In some embodiments, the high-dimensional mapping feature characterizes the association relationship between each to-be-selected vehicle and all to-be-selected charging devices. Therefore, in order to determine the high-dimensional mapping sequence, it is first necessary to determine the high-dimensional mapping feature corresponding to each vehicle.

[0121] Furthermore, the purpose of splicing charging demand information and equipment resource information is to integrate vehicle characteristics and equipment characteristics, and to obtain more comprehensive and rich feature data by fusing information from different sources. This enables the decision to be made not only from the vehicle or equipment perspective when determining the target charging equipment, but also to fuse information from multiple data sources to make up for the shortcomings of a single data source, and comprehensively consider the data correlation between vehicles and equipment, so as to make more reasonable and reliable decisions on the selection of target charging equipment in the future.

[0122] For example, the encoder in the model embeds the acquired charging demand information and device resource information into a 128-dimensional vector to obtain the initial feature h i As shown in the following formula (5):

[0123]

[0124] Among them, Concat is a concatenation operation, and Σ is a summation operation.

[0125] in, E j Indicates the current remaining power value of any selected charging device, T j Indicates the current cumulative working time corresponding to the selected charging device; t i represents the dwell time of any candidate vehicle, d i Indicates the charging start and end values ​​corresponding to the selected vehicle. evt , W evd and W cr are the preset encoder parameters.

[0126] Step 302, using the preset first attention mechanism as a constraint condition, the initial features are enhanced to obtain updated initial features.

[0127] Step 302 is described in detail below.

[0128] In some embodiments, a first attention module with a first attention mechanism as a constraint condition is provided in the encoder. After obtaining the initial features, the initial features are enhanced based on the first attention module to update the initial features. Based on the first attention mechanism, the model can selectively focus on more important parts of the initial data to improve the accuracy of subsequent selection of target charging equipment and target vehicles.

[0129] Further, as shown in the following formula (6), the initial feature h i Input into the first attention module to enhance the initial features and obtain the updated initial features

[0130]

[0131] Among them, softmax is an activation function in the model; W Q , W K and W V are independent trainable parameters between different encoder sublayers in the model; typically, d k =16.

[0132] Step 303 , performing feedforward propagation processing on the updated initial features to obtain high-dimensional mapping features corresponding to the selected vehicle.

[0133] Furthermore, the model in the embodiment of the present application includes three autoencoder sublayers, and each sublayer includes an attention module and a feedforward propagation module connected to each other. The attention module processes the data as shown in the following formula (7):

[0134]

[0135] Where MHA represents the first attention layer processing operation; the layer index η indicates that each encoder sublayer does not share parameters; BN represents batch normalization, and the encoder layer uses a skip connection processing method; h i i is the first input h i It can be understood that the h obtained in step 301 i After that, the updated initial features are obtained through processing according to formula (6). Then, as shown in formula (8), all the updated initial features are concatenated and then processed by the first attention module to obtain the attention feature

[0136]

[0137] Among them, Concat is a concatenation operation.

[0138] Furthermore, in formula (7) is the output of the previous feedforward propagation module connected to the current first attention module, and the attention feature output by the first attention module It will be input into the feedforward propagation module of the next connection. Specifically, the feedforward propagation module processes the data as shown in the following formula (9):

[0139]

[0140] Furthermore, the feedforward processing operation in equation (9) is as shown in equation (10):

[0141]

[0142] Among them, W F1 , W F2 、b F1 and b F2 Represents trainable parameters; after linear processing based on the trainable parameters, the attention feature is activated by the ReLu function on the linear feedforward propagation layer with a hidden sublayer dimension of 512.

[0143] Furthermore, through the mutual cooperation between multiple attention modules and feedforward propagation modules, important information and contextual relationships of charging demand information and device resource information are captured, and the feedforward propagation module of the last encoder sublayer outputs high-dimensional mapping features corresponding to each candidate vehicle.

[0144] It should be noted that since the decoder of the model also includes an attention module, in order to better distinguish, the attention module in the encoder of the embodiment of the present application is the first attention module, and the attention module in the decoder is the second attention module.

[0145] Step 304 , for each candidate charging device corresponding to the selection order of each candidate vehicle indicated in the current charging sequence, the corresponding high-dimensional mapping features are sequentially concatenated to obtain a high-dimensional mapping sequence.

[0146] In some embodiments, after the high-dimensional mapping features corresponding to each candidate vehicle are determined, the high-dimensional mapping features of the corresponding candidate vehicles can be spliced ​​according to the current charging sequence to obtain a high-dimensional mapping sequence.

[0147] Furthermore, each high-dimensional mapping feature may be processed again according to a preset weight parameter, and the processed results may be concatenated to obtain a high-dimensional mapping sequence.

[0148] Step 203 , linear transformation and activation processing are performed on the result of concatenating the device state feature and the sequence state feature to obtain a device selection probability value corresponding to the candidate charging device, and a target charging device is selected from multiple candidate charging devices according to the device selection probability value.

[0149] The following is a detailed description of step 203.

[0150] In some embodiments, based on device status characteristics that characterize the current power level and service time characteristics of the selected charging device, and sequence status characteristics formed according to the current charging sequence that characterize the characteristics of vehicles that the selected charging device is ready to serve, a comprehensive evaluation is performed on the current service status of the selected charging device to better select a target charging device from multiple selected charging devices.

[0151] Furthermore, as shown in the following equations (11) and (12), the splicing device state characteristics and sequence state characteristics And perform linear transformation and activation processing on the spliced ​​results:

[0152]

[0153]

[0154] Among them, W3 and b3 are trainable parameters; softmax is the activation function; p t Select a probability value for the device.

[0155] Further, after obtaining the device selection probability values ​​corresponding to each candidate charging device, the candidate charging device corresponding to the largest device selection probability value is selected as the target charging device; or, the candidate charging device corresponding to the largest device selection probability value is randomly selected as the target charging device; the specific method can be adjusted according to different model selection strategies, and the embodiments of the present application do not make specific restrictions.

[0156] It can be understood that, compared with the related art that uses only one encoder to simultaneously determine the target charging device and the target vehicle, the embodiment of the present application subdivides the decoder into an I CR selection decoder and an EV selection decoder, so that the model's tasks are modularized and the model is easier to understand and debug the decoder parameters during the training process; and the I CR selection decoder can focus more on processing information related to the selected charging device, while the EV selection decoder can focus more on processing information related to the selected vehicle, thereby improving the accuracy, efficiency and flexibility of the model's decision-making.

[0157] Step 103 : if the target charging action is external charging, a corresponding target vehicle is selected for the target charging device from the remaining multiple vehicles to be selected based on the current charging demand information and device resource information, and the corresponding device resource information and charging demand information are updated.

[0158] The following is a detailed description of step 103.

[0159] Furthermore, if the target charging action is internal charging, the target charging device does not charge any selected vehicle, but replenishes its own power so that the vehicle charging operation can be better performed later.

[0160] In some embodiments, selecting a corresponding target vehicle for a target charging device based on current charging demand information and device resource information includes the following steps 401 to 403:

[0161] Step 401, fuse all high-dimensional mapping features to obtain global feature information.

[0162] The following is a detailed description of step 401.

[0163] In some embodiments, if the target charging action is external charging, it is necessary to select a corresponding target vehicle for the determined target charging device. In order to help the model better understand the data and improve the accuracy of target vehicle selection, in addition to the current device resource information of the target charging device and the charging demand information corresponding to each selected vehicle, it is also necessary to obtain global feature information based on high-dimensional mapping features.

[0164] Furthermore, as shown in the following formula (13), all high-dimensional mapping features are fused, and the fused results are averaged to obtain the global feature information H N :

[0165]

[0166] Step 402, determine the device resource information corresponding to the target charging device, and use the preset second attention mechanism as a constraint condition to perform feature enhancement on the result of splicing the device resource information, global feature information and high-dimensional mapping sequence to obtain vehicle state features.

[0167] Step 402 is described in detail below.

[0168] In some embodiments, the encoder is further provided with a second attention module with a second attention mechanism as a constraint condition, as shown in the following equations (14) and (15), based on the second attention module, the vehicle state feature is obtained

[0169]

[0170]

[0171] in, and They are the current accumulated working time and the current remaining power value in the device resource information corresponding to the target charging device; is the last high-dimensional mapping feature in the current high-dimensional mapping sequence. Of course, It can also be the result of weight processing of multiple high-dimensional mapping features; H N is the global feature information; and is a trainable parameter; it can be understood that the second attention mechanism (MHA) is used to enhance the features of the device resource information, global feature information, and the result of concatenating the high-dimensional mapping sequence to obtain the vehicle state features.

[0172] Step 403 , extracting and activating the vehicle state features to obtain a vehicle selection probability value corresponding to the candidate vehicle, and determining a target vehicle corresponding to the target charging device from the plurality of candidate vehicles according to the vehicle selection probability value.

[0173] The following is a detailed description of step 403.

[0174] Furthermore, as shown in the following equations (16) to (19), the vehicle selection probability value corresponding to the to-be-selected vehicle is obtained based on the vehicle state characteristics:

[0175]

[0176]

[0177]

[0178]

[0179] Where C is the control first intermediate value u t The entropy is usually set to 10; the second intermediate value q t and the third intermediate value k t Can be obtained through training; combined with the mask rule Mask t And the first intermediate value u is obtained based on the vehicle state characteristics t , the vehicle selection probability value corresponding to each candidate vehicle is output through the softmax function; among them, Z is usually a large negative number.

[0180] Furthermore, after obtaining the vehicle selection probability values ​​corresponding to each candidate vehicle, the candidate vehicle corresponding to the largest vehicle selection probability value is selected as the target vehicle; or, the candidate vehicle corresponding to the largest vehicle selection probability value is randomly selected as the target vehicle; the specific method can be adjusted according to different model selection strategies, and the embodiments of the present application do not impose specific restrictions.

[0181] In some embodiments, updating the corresponding device resource information includes the following steps 501 to 504:

[0182] Step 501, obtaining device resource information corresponding to the currently selected target charging device and charging demand information corresponding to the target vehicle.

[0183] The following is a detailed description of step 501.

[0184] In some embodiments, in order to enable the model to better understand the information status changes of each charging device and vehicle to ensure the smooth execution of the charging task and the effective use of resources, the device resource information and charging demand information need to be updated.

[0185] Furthermore, for each selected vehicle, its own charging demand information remains unchanged; but for the model of the embodiment of the present application, once a vehicle is selected, its charging demand information does not need to be considered anymore, but the charging demand information of other selected vehicles is continuously analyzed to realize the charging work for all selected vehicles in the target area. Therefore, the updated charging demand information in the embodiment of the present application is to delete the charging demand information corresponding to the selected target vehicle from the total charging demand information. For example, the target area includes vehicles A, B and C. Assuming that the total charging demand information formed according to the charging demand information of each vehicle is [A, B, C], if vehicle C is selected as the target vehicle in a certain round, the updated charging demand information relative to the model is [A, B].

[0186] Furthermore, in order to update the device resource information, it is first necessary to obtain the device resource information corresponding to the target charging device selected in the current round, and the charging demand information corresponding to the target vehicle.

[0187] Step 502, the power difference is calculated based on the current remaining power value and the charging start and end values, and the total time value is calculated based on the current accumulated working time and stay time.

[0188] Step 503, update the current remaining power value according to the power difference, update the current accumulated working time according to the total time value, and update the current charging sequence according to the selected order of the target vehicles.

[0189] The following describes steps 502 to 503 by way of example.

[0190] For example, the target charging devices selected in a certain round are target charging device A and target vehicle A. Among them, the device resource information corresponding to the target charging device A is the current remaining power value of 70%, the cumulative working time of 70 minutes, and the current charging sequence [B, C]; the charging demand information corresponding to the target vehicle A is the charging start and end value of 50%, and the stay time of 150 minutes. Then it can be determined that the updated current remaining power value is (70%-50%)=20%; the charging time required for the target charging device A to charge the target vehicle A is calculated according to the charging power. Assuming that the required charging time at this time is 50 minutes, it can be determined that the updated current cumulative working time is (70+50)=120 minutes; the updated current charging sequence is determined to be [B,C,A].

[0191] Step 104 : until all the vehicles to be selected have been selected, a corresponding target charging sequence is generated based on the selection order of multiple target charging actions under each target charging device.

[0192] Step 104 is described in detail below.

[0193] In some embodiments, when all the selected vehicles have been selected, a target charging sequence is formed according to the target charging action corresponding to each target charging device and the order corresponding to each target charging action. When the target charging action indicates that the charging device is charging externally, the target slave vehicles corresponding to the target charging and the selection order corresponding to each target vehicle are determined to form a target charging sequence.

[0194] For example, a charging device selects multiple target charging actions according to the selected order as [inward charging, outward charging, outward charging]. Further, according to the target vehicle selected by the charging device when performing the outward charging action, the target charging sequence of the charging device is determined to be [inward charging, vehicle A, vehicle B]. Alternatively, when the charging device only performs the outward charging action, the target charging sequence including the charging order of the corresponding target vehicles is output.

[0195] Step 105 , based on each target charging sequence, scheduling the corresponding target charging equipment to perform the target charging action in the selected order to complete the charging of the target vehicle.

[0196] The following is a detailed description of step 105.

[0197] In some embodiments, after determining the target charging sequence corresponding to each charging device, the target charging device can be scheduled according to the target charging action indicated by the target charging sequence to complete the charging of the target vehicle. It can be understood that the deep reinforcement learning model can intelligently output the target charging sequence based on the charging demand information and device resource information. For users, only the relevant charging start and end values ​​and the stay time are required to obtain a vehicle charged to a specified power within the expected time; for charging equipment, it can maximize the power output, thereby improving the overall charging efficiency.

[0198] Furthermore, for all charging devices in the target area, in the absence of machine failure, all charging devices will act to execute the target charging actions in their respective target charging sequences; and for individual charging devices, they will continue to execute the next action after completing the current action. In this way, each charging device can charge each vehicle in the target area in an orderly manner, avoiding conflicts and delays caused by resource competition between multiple charging devices, and ensuring the smooth progress of the charging process. By pre-determining the target execution actions for each charging device, and the corresponding charging sequence for each target vehicle when charging externally, it can help improve charging efficiency, reduce system operating costs, and enhance user experience, while also helping to optimize system stability and resource utilization.

[0199] In some embodiments, the deep reinforcement learning model is trained by following steps 601 to 605:

[0200] Step 601 : obtaining sample charging demand information of a plurality of sample vehicles to be selected in a sample area, and sample device resource information of a plurality of sample charging devices to be selected.

[0201] Step 602, sample charging demand information and sample device resource information are input into the deep reinforcement learning model. When the sample candidate vehicles have not been selected, a sample target charging device is selected from multiple sample candidate charging devices, and a sample target charging action corresponding to the sample target charging device is determined, wherein the sample target charging action includes one of inward charging and outward charging.

[0202] Step 603, if the sample target charging action is external charging, select a corresponding sample target vehicle for the sample target charging device from the remaining multiple sample vehicles to be selected based on the current sample charging demand information and sample device resource information, and update the corresponding sample device resource information and sample charging demand information.

[0203] Step 604 : until all sample vehicles to be selected have been selected, a corresponding sample target charging sequence is generated based on the selection order of multiple sample target charging actions under each sample target charging device.

[0204] Step 605: determine a sample reward value according to the sample target charging sequence, and adjust the parameters of the deep reinforcement learning model based on the sample reward value to obtain a trained deep reinforcement learning model.

[0205] Steps 601 to 605 are described in detail below.

[0206] In some embodiments, in order to enable the deep reinforcement learning model to output a more accurate target charging sequence in actual application, the deep reinforcement learning model needs to be pre-trained. Among them, similar to the target area, the size of the sample area can also be set according to the actual needs of the training; the sample candidate vehicle is also an electrically driven vehicle, and the sample candidate charging device can also be an intelligent charging robot, that is, the sample charging demand information and sample device resource information obtained by the deep reinforcement learning model during the training process, and the method of processing the obtained sample charging demand information and sample device resource information to obtain the sample target charging sequence is similar to steps 101 to 105, which will not be repeated here. The difference is that after determining the sample target charging sequence, the sample reward value will be determined based on the sample target charging sequence, so as to adjust the parameters of the deep reinforcement learning model according to the sample reward value, so that the trained deep reinforcement learning model can better adapt to specific tasks and environments, improve performance and generalization capabilities, and thus better solve the charging scheduling problem in practical applications.

[0207] In some embodiments, determining a sample reward value according to a sample target charging sequence includes the following steps 701 to 704:

[0208] Step 701, if the sample target charging device is determined based on the maximum sample device selection probability value, and each sample target vehicle corresponding to the sample target charging device is determined based on the maximum sample vehicle selection probability value, determine the first charging quantity of the sample target vehicle matched by each sample target charging device according to the sample target charging sequence, and the first charging quantity released by each corresponding sample target vehicle.

[0209] Step 702: Obtain a first sample reward value according to a total value of all first charging quantities and / or a total value of first charging quantities.

[0210] Step 703, if the sample target charging device is determined based on a random sample device selection probability value, and each sample target vehicle corresponding to the sample target charging device is determined based on a random sample vehicle selection probability value, determine the second charging quantity of the sample target vehicle matched by each sample target charging device according to the sample target charging sequence, and the corresponding second charging quantity released by each sample target vehicle.

[0211] Step 704: Obtain a second sample reward value according to the total value of all second charging quantities and / or the total value of the second charging power.

[0212] Steps 701 to 704 are described in detail below.

[0213] In some embodiments, similar to steps 201 to 203 and steps 401 to 403, the sample target charging devices in the sample target charging sequence are determined based on the sample device selection probability value, and each sample target vehicle corresponding to the sample target charging device is determined based on the sample vehicle selection probability value.

[0214] Furthermore, the model includes two different strategy networks, and different strategy networks determine the sample device selection probability value and the sample vehicle selection probability value in different ways. One strategy network uses a greedy algorithm to select the sample device selection probability value and the sample vehicle selection probability value with the largest value; while the other strategy network uses a random method to randomly select one from multiple sample device selection probability values ​​and sample vehicle selection probability values ​​to determine the sample target charging device and sample target vehicle. Then, the first sample reward value and the second sample reward value corresponding to different strategy networks are obtained respectively.

[0215] Furthermore, after obtaining multiple sample device selection probability values ​​and vehicle selection probability values, if the charging device corresponding to the device selection probability value with the largest numerical value is selected as the target charging device, and the charging device corresponding to the vehicle selection probability value with the largest numerical value is selected as the target vehicle, then the total value of the first charging quantity and the total value of the first charging power under this strategy are determined.

[0216] Furthermore, the first sample reward value can be determined based on the total value of the first charging quantity, for example, the larger the total value of the first charging quantity is, the larger the first sample reward value is; or the first sample reward value can be determined based on the total value of the first charging power, for example, the larger the total value of the first charging power is, the larger the first sample reward value is; or, the total value of the first charging quantity and the total value of the first charging power are added according to a preset weight value to determine the first sample reward value.

[0217] Furthermore, after obtaining multiple sample device selection probability values ​​and vehicle selection probability values, if a charging device corresponding to a device selection probability value is randomly selected as the target charging device, and a charging device corresponding to a vehicle selection probability value is randomly selected as the target vehicle, then the total value of the second charging quantity and the total value of the second charging power under the strategy are determined.

[0218] Furthermore, the second sample reward value can be determined based on the total value of the second charging quantity, for example, the larger the total value of the second charging quantity, the larger the second sample reward value; or the second sample reward value can be determined based on the total value of the second charging power, for example, the larger the total value of the second charging power, the larger the second sample reward value; or, the total value of the second charging quantity and the total value of the second charging power are added according to a preset weight value to determine the second sample reward value.

[0219] Furthermore, the parameters of different strategy networks are adjusted according to the first sample reward value and the second sample reward value respectively. The parameters of the strategy network include the weight values ​​of the connections between neurons, the bias items of each neuron, the parameters of each hidden layer, the parameters of each activation function, etc. The parameters that need to be adjusted can be determined according to actual conditions, and the embodiments of the present application do not impose specific limitations.

[0220] Furthermore, in order to speed up the adjustment of parameters, the parameters of the policy network with higher sample reward values ​​can also be selected and replaced in another policy network. In addition, after each round of training based on instance data, sampling evaluation will be performed again based on new instance data to avoid overfitting of the model. In this way, through the iterative update of the two policy networks, the model can be trained in the direction of achieving a better solution.

[0221] like Figure 3 As shown, Figure 3: is an optional functional module diagram of a charging scheduling device based on deep reinforcement learning provided in an embodiment of the present application, wherein the charging scheduling device may include:

[0222] The acquisition module 801 is used to acquire the charging demand information of multiple selected vehicles and the device resource information of multiple selected charging devices in the target area.

[0223] The target charging action determination module 802 is used to input the charging demand information and the equipment resource information into a pre-trained deep reinforcement learning model. When all the vehicles to be selected have not been selected, a target charging device is selected from multiple charging devices to be selected, and a target charging action corresponding to the target charging device is determined, wherein the target charging action includes one of inward charging and outward charging.

[0224] The target vehicle determination module 803 is used to select a corresponding target vehicle for the target charging device from the remaining multiple vehicles to be selected based on the current charging demand information and device resource information if the target charging action is external charging, and update the corresponding device resource information and charging demand information.

[0225] The target charging sequence determination module 804 is used to generate a corresponding target charging sequence based on the selection order of multiple target charging actions under each target charging device until all the vehicles to be selected have been selected.

[0226] The target execution module 805 is used to schedule the corresponding target charging equipment to execute the target charging action in the selected order based on each target charging sequence to complete the charging of the target vehicle.

[0227] The present application proposes a charging scheduling method, device, equipment and medium based on deep reinforcement learning. The method first obtains charging demand information of multiple vehicles to be selected in a target area, and equipment resource information of multiple charging devices to be selected; then, the charging demand information and equipment resource information are input into a pre-trained deep reinforcement learning model. When the vehicles to be selected have not been selected, a target charging device is selected from the multiple charging devices to be selected, and a target charging action corresponding to the target charging device is determined, wherein the target charging action includes one of inward charging and outward charging, and the target charging device can serve more target vehicles to the greatest extent by considering both the inward charging and outward charging actions; and if the target charging action is outward charging, a corresponding target vehicle is selected for the target charging device from the remaining multiple vehicles to be selected based on the current charging demand information and equipment resource information, and the corresponding equipment resource information and charging demand information are updated; until all the vehicles to be selected have been selected, a corresponding target charging sequence is generated based on the selection order of multiple target charging actions under each target charging device; based on each target charging sequence, the corresponding target charging device is scheduled to perform the target charging action in the selected order to complete the charging of the target vehicle. That is, with the purpose of maximizing power output or serving as many vehicles as possible, a target charging sequence based on two charging actions is generated. In this way, each charging device can be better scheduled according to the target charging sequence, thereby improving the charging scheduling efficiency of the charging equipment.

[0228] The specific implementation of the charging scheduling device based on deep reinforcement learning is basically the same as the specific implementation of the charging scheduling method based on deep reinforcement learning mentioned above, and will not be repeated here.

[0229] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned charging scheduling method based on deep reinforcement learning when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0230] like Figure 4 As shown, Figure 4 : is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application, the electronic device includes:

[0231] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0232] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the charging scheduling method based on deep reinforcement learning in the embodiment of this application;

[0233] Input / output interface 903, used to implement information input and output;

[0234] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);

[0235] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0236] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0237] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned charging scheduling method based on deep reinforcement learning is implemented.

[0238] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0239] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0240] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0241] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0242] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0243] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0244] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0245] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0246] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0247] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0248] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0249] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A charging scheduling method based on deep reinforcement learning, characterized in that: include: Obtaining charging demand information of multiple selected vehicles in a target area and device resource information of multiple selected charging devices; Input the charging demand information and the device resource information into a pre-trained deep reinforcement learning model, and when the selected vehicles have not been fully selected, select a target charging device from the multiple selected charging devices, and determine a target charging action corresponding to the target charging device, wherein the target charging action includes one of inward charging and outward charging; If the target charging action is the external charging, a corresponding target vehicle is selected for the target charging device from the remaining multiple vehicles to be selected based on the current charging demand information and the device resource information, and the corresponding device resource information and the charging demand information are updated; When all the to-be-selected vehicles have been selected, a corresponding target charging sequence is generated based on the selection order of the multiple target charging actions under each target charging device; Based on each of the target charging sequences, the corresponding target charging devices are scheduled to perform the target charging actions in the selected order to complete charging of the target vehicle.

2. The method according to claim 1, characterized in that The device resource information includes the current remaining power value, the current accumulated working time and the current charging sequence, wherein the current charging sequence is a subset of the target charging sequence; The step of selecting a target charging device from a plurality of charging devices to be selected comprises: According to the preset first decoder parameter, linear transformation and activation processing are performed on all the current remaining power values ​​and the current accumulated working time to obtain device status characteristics; Generate a high-dimensional mapping sequence according to the current charging sequence corresponding to each of the selected charging devices, and perform linear transformation and activation processing on all the high-dimensional mapping sequences according to the preset second decoder parameters to obtain sequence state features; The result of concatenating the device state feature and the sequence state feature is linearly transformed and activated to obtain a device selection probability value corresponding to the candidate charging device, and a target charging device is selected from the plurality of candidate charging devices according to the device selection probability value.

3. The method according to claim 2, characterized in that The generating a high-dimensional mapping sequence according to the current charging sequence corresponding to each of the to-be-selected charging devices includes: According to preset encoder parameters, the charging requirement information corresponding to each of the selected vehicles and the device resource information corresponding to all the selected charging devices are spliced ​​to obtain an initial feature; Taking the preset first attention mechanism as a constraint condition, the initial features are enhanced to obtain updated initial features; Performing feedforward propagation processing on the updated initial features to obtain high-dimensional mapping features corresponding to the candidate vehicle; With respect to the selection order of each of the to-be-selected vehicles indicated in the current charging sequence corresponding to each of the to-be-selected charging devices, the corresponding high-dimensional mapping features are sequentially concatenated to obtain a high-dimensional mapping sequence.

4. The method according to claim 3, characterized in that The selecting a corresponding target vehicle for the target charging device based on the current charging demand information and the device resource information includes: Fusing all the high-dimensional mapping features to obtain global feature information; Determine the device resource information corresponding to the target charging device, and use a preset second attention mechanism as a constraint condition to perform feature enhancement on the result of splicing the device resource information, the global feature information, and the high-dimensional mapping sequence to obtain a vehicle state feature; Feature extraction and activation processing are performed on the vehicle state features to obtain a vehicle selection probability value corresponding to the candidate vehicle, and a target vehicle corresponding to the target charging device is determined from the multiple candidate vehicles according to the vehicle selection probability value.

5. The method according to claim 2, characterized in that: The charging demand information includes charging start and end values ​​and stay time; The device resource information corresponding to the update includes: Acquire the device resource information corresponding to the currently selected target charging device and the charging demand information corresponding to the target vehicle; The power difference is calculated based on the current remaining power value and the charging start and end values, and the total time value is calculated based on the current accumulated working time and the stay time; The current remaining power value is updated according to the power difference value, the current accumulated working time is updated according to the total time value, and the current charging sequence is updated according to the selected order of the target vehicles.

6. The method according to claim 1, characterized in that The deep reinforcement learning model is trained by the following steps: Obtaining sample charging demand information of multiple sample candidate vehicles in a sample area, and sample device resource information of multiple sample candidate charging devices; The sample charging demand information and the sample device resource information are input into the deep reinforcement learning model. When the sample candidate vehicles have not been selected, a sample target charging device is selected from a plurality of the sample candidate charging devices, and a sample target charging action corresponding to the sample target charging device is determined, wherein the sample target charging action includes one of inward charging and outward charging; If the sample target charging action is the outward charging, a corresponding sample target vehicle is selected for the sample target charging device from the remaining plurality of sample selected vehicles based on the current sample charging demand information and the sample device resource information, and the corresponding sample device resource information and the sample charging demand information are updated; When all the sample vehicles to be selected have been selected, a corresponding sample target charging sequence is generated based on the selection order of the plurality of sample target charging actions under each of the sample target charging devices; A sample reward value is determined according to the sample target charging sequence, and parameters of the deep reinforcement learning model are adjusted based on the sample reward value to obtain the trained deep reinforcement learning model.

7. The method according to claim 6, characterized in that The sample target charging devices in the sample target charging sequence are determined according to the sample device selection probability value, each of the sample target vehicles corresponding to the sample target charging devices is determined according to the sample vehicle selection probability value, and the sample reward value includes a first sample reward value and a second sample reward value; The determining of the sample reward value according to the sample target charging sequence comprises: If the sample target charging device is determined based on the maximum sample device selection probability value, and each of the sample target vehicles corresponding to the sample target charging device is determined based on the maximum sample vehicle selection probability value, determine the first charging quantity of the sample target vehicle matched by each of the sample target charging devices and the first charging quantity released by each of the corresponding sample target vehicles according to the sample target charging sequence; Obtaining a first sample reward value according to a total value of all the first charging quantities and / or a total value of the first charging quantities; If the sample target charging device is determined based on the random sample device selection probability value, and each of the sample target vehicles corresponding to the sample target charging device is determined based on the random sample vehicle selection probability value, the second charging quantity of the sample target vehicle matched by each of the sample target charging devices and the corresponding second charging quantity released by each of the sample target vehicles are determined based on the sample target charging sequence; A second sample reward value is obtained according to a total value of all the second charging quantities and / or a total value of the second charging power.

8. A charging scheduling device based on deep reinforcement learning, characterized in that: The device comprises: An acquisition module is used to acquire charging demand information of multiple selected vehicles in a target area and device resource information of multiple selected charging devices; a target charging action determination module, configured to input the charging demand information and the device resource information into a pre-trained deep reinforcement learning model, and when the selected vehicles have not been fully selected, select a target charging device from the plurality of selected charging devices, and determine a target charging action corresponding to the target charging device, wherein the target charging action includes one of inward charging and outward charging; a target vehicle determination module, configured to select a corresponding target vehicle for the target charging device from the remaining plurality of the selected vehicles based on the current charging demand information and the device resource information if the target charging action is the outward charging, and to update the corresponding device resource information and the charging demand information; A target charging sequence determination module, configured to generate a corresponding target charging sequence based on the selection order of the plurality of target charging actions under each target charging device until all the vehicles to be selected have been selected; The target execution module is used to schedule the corresponding target charging equipment to execute the target charging action in the selected order based on each target charging sequence to complete the charging of the target vehicle.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the charging scheduling method based on deep reinforcement learning as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the charging scheduling method based on deep reinforcement learning described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • WRSN target k coverage charging scheduling method based on deep reinforcement learning

    CN117979305A

  • Methods, computer programs and systems for assigning vehicles to vehicular tasks and for providing a machine-learning model

    EP3806007A1

  • Charge station queue management

    US20160019492A1