Battery swapping station emergency resource scheduling method and system based on capability tag matching
By constructing emergency demand and resource capability labels, calculating compliance scores and adjusting penalty weights, and generating scheduling plans, the problem of resource and demand mismatch in emergency resource scheduling is solved, achieving more efficient resource allocation and scheduling accuracy.
Patent Information
- Application Number
- CN202611446972.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-27
AI Technical Summary
Existing emergency resource allocation methods struggle to assess the match between resources and actual needs in urgent or changing circumstances, leading to discrepancies between allocation results and on-site requirements.
Construct emergency demand tags and resource capability tags, calculate compliance scores through matching matrices, combine time compliance coefficients and penalty weight adjustments, calculate scenario replacement costs, generate scheduling plans, and optimize resource allocation.
It improves the adaptability and feasibility of emergency resource allocation, ensuring that resource allocation is more in line with actual needs in emergency situations, and enhances the accuracy and stability of allocation results.
Smart Images

Figure CN123180790A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of battery swapping station resource scheduling, and in particular relates to a method and system for emergency resource scheduling of battery swapping stations based on capability tag matching. Background Technology
[0002] With the rapid development of the new energy vehicle industry, battery swapping has been widely adopted due to its high energy replenishment efficiency. As crucial energy service nodes, battery swapping stations require timely emergency resource scheduling to maintain the stable operation of the battery swapping network in the event of sudden equipment failures, localized power outages caused by extreme weather, or a surge in short-term battery swapping demand. Existing emergency scheduling solutions largely rely on operations research planning or basic heuristic algorithms, typically allocating rescue vehicles, mobile charging vehicles, or backup battery packs based on the distance between the faulty node and available resources, aiming for the shortest spatial distance or response time. However, real-world emergency scenarios are often influenced by multiple factors, including time windows, road conditions, environmental status, and resource performance. Existing conventional scheduling methods often directly map specific types of emergency demands to specific types of emergency resources when matching resource supply and demand, making it difficult to assess the true matching degree of resources under specific operational constraints. When the scheduling time window is tight or environmental parameters change, the resource scheduling results can easily mismatch with the actual on-site needs. Summary of the Invention
[0003] According to a first aspect of the present invention, an emergency resource scheduling method for battery swapping stations based on capability tag matching is proposed to address the problem that existing methods easily lead to deviations between resource scheduling results and actual on-site needs, comprising the following steps: Based on the real-time status and environmental data of the battery swapping station, an emergency demand tag is constructed that includes core requirements, operational parameters, and execution constraints. Capability tags with the same structure are also constructed for schedulable emergency resources. A matching matrix is constructed based on the emergency demand tags and the capability tags of each emergency resource, and the compliance score of each element is calculated. A time compliance coefficient is determined based on the time redundancy ratio between the demand time window duration and the resource's full-process prediction time. The penalty weight corresponding to the deviation of the operational parameter values is adjusted according to the time compliance coefficient, and the compliance score is obtained by combining the penalty weight. When the compliance scores of the matching core requirements in the matching matrix are all lower than the matching threshold, candidate resources that meet the replacement conditions are obtained, and the performance depreciation value of the candidate resources is determined according to the resource capability replacement rule base; the scenario replacement cost is calculated based on the performance depreciation value and the time compliance coefficient; the compliance scores of the candidate resources are negatively adjusted according to the scenario replacement cost to obtain the updated matching matrix; A set of scheduling plans is generated based on the matching results that meet the conditions in the updated matching matrix; the system service resilience index, which is derived from the impact of the simulation plan execution on the topology of the entire network resource redundancy, is weighted and calculated with the experience execution reliability score derived from historical records to obtain the comprehensive feasibility index of each plan in the set of scheduling plans; the target scheduling plan is selected and issued based on the comprehensive feasibility index.
[0004] Optionally, the emergency demand tag, constructed based on the real-time status and environmental data of the battery swapping station, includes core requirements, operational parameters, and execution constraints, and comprises: The system calls the IoT interface to obtain the total number of available backup batteries in the faulty battery swapping station and obtains real-time rainfall data through environmental sensors. Obtain the emergency supplies number that need to be replaced or replenished, and store it as a core requirement in the core requirement attribute layer of the emergency requirement tag; The deadline for emergency repairs must be determined based on the total number of available backup batteries and real-time rainfall data, and recorded in the operational parameter attribute layer. The maximum permissible weight limit for heavy rescue vehicles in the accident area is obtained from the cloud map system and stored in the execution constraint attribute layer. The emergency requirement tag is generated by encapsulating the core requirement attribute layer, the operation parameter attribute layer, and the execution constraint attribute layer.
[0005] Optionally, the determination of the time compliance coefficient based on the time redundancy ratio between the demand time window duration and the total resource forecast time includes: Calculate the required time window duration for the task based on the latest arrival deadline and the initial trigger time of the emergency report in the system work order. Calculate the estimated travel time based on the distance between the resource and the target site and the estimated average speed of the rescue vehicle; The estimated travel time is added to the standard time specified for warehouse material preparation to obtain the total predicted time. Subtract the total prediction time from the duration of the demand time window to obtain the remaining redundant time; If the remaining redundant time is less than 0, the time compliance coefficient is set to 0; if the remaining redundant time is greater than or equal to 0, the remaining redundant time is divided by the required time window duration to obtain the time compliance coefficient.
[0006] Optionally, the step of adjusting the penalty weight corresponding to the deviation of the operational parameter values based on the time compliance coefficient, and obtaining the compliance score by combining the penalty weight, includes: In a pre-defined reference array library containing nonlinear attenuation relationship mappings, a conversion constant corresponding to the time compliance coefficient is matched. Obtain the preset initial fixed penalty weight for situations where operational parameters are completely unmet; The updated penalty weight is obtained by multiplying the initial fixed penalty weight by the converted constant. The updated penalty weights are used to calculate the compliance score.
[0007] Optionally, the calculation of the scenario replacement cost based on the performance degradation value and the time compliance coefficient includes: From the built-in resource replacement rule data model, the fixed base reduction loss index parameter is extracted when non-standard supply equipment is used to replace the core damaged components, and is used as the performance loss value. The fixed base reduction loss index parameter is a dimensionless deduction parameter pre-calculated to the compliance score scale. Subtracting the time compliance coefficient from 1 and then adding it back to 1 yields the time urgency factor; Multiply the efficiency loss value, the time urgency factor, and the preset first permutation constant to obtain the overall product value; The total product value is used as the scenario replacement cost.
[0008] Optionally, the system service resilience index derived from the impact of the simulated contingency plan execution on the overall network resource redundancy topology is weighted and calculated with the empirical execution reliability score derived from historical records to obtain the comprehensive feasibility index of each contingency plan in the scheduling contingency plan set, including: Obtain the first weighting coefficient of the preset system service resilience index and the second weighting coefficient of the empirical execution reliability score; Extract the system service resilience index corresponding to the contingency plan, normalize the index, and multiply it by the first weighting coefficient to obtain the first reference score; Based on the on-time rate and fault-free availability rate of each facility and human team called upon in the contingency plan in historical emergency response tasks, the empirical execution reliability score is calculated. After normalizing the score, it is multiplied by the second weighting coefficient to obtain the second reference score. The first reference score and the second reference score are added together to obtain the comprehensive feasibility index of the proposed plan.
[0009] Optionally, the system service resilience index derived from the impact of the simulated contingency plan execution on the overall network resource redundancy topology includes: Extract the total number of guaranteed nodes that are running normally in the initial state of the entire network, and use it as the initial baseline value; The simulation calculations were performed to simulate the execution of candidate scheduling plans. The number of manpower teams and mechanical equipment occupied by the plan were deducted from the current corresponding resource reserves in the virtual environment, and the stock inventory of the corresponding standby points was deducted simultaneously. After the virtual execution of the aforementioned plan is completed, the total number of health protection nodes in the entire network area whose resource redundancy is not lower than the preset risk trigger threshold is counted. The total number of health protection nodes is divided by the initial baseline value to obtain the health retention ratio, and the health retention ratio is used as the system service resilience index.
[0010] According to a second aspect of the present invention, an emergency resource scheduling system for battery swapping stations based on capability tag matching is proposed, comprising the following modules: The module is used to construct emergency demand tags containing core requirements, operational parameters, and execution constraints based on real-time status and environmental data of the battery swapping station, and to construct capability tags with the same structure for schedulable emergency resources; to construct a matching matrix and calculate the compliance score of each element based on the emergency demand tags and the capability tags of each emergency resource; to determine the time compliance coefficient based on the time redundancy ratio between the demand time window duration and the resource full-process prediction time; to adjust the penalty weight corresponding to the deviation of the operational parameter values according to the time compliance coefficient, and to obtain the compliance score by combining the penalty weight. The calculation module is used to: obtain candidate resources that meet the replacement conditions when the compliance scores of the matching core requirements in the matching matrix are all lower than the matching threshold; determine the performance depreciation value of the candidate resources according to the resource capability replacement rule base; calculate the scenario replacement cost based on the performance depreciation value and the time compliance coefficient; and negatively adjust the compliance scores of the candidate resources according to the scenario replacement cost to obtain the updated matching matrix. The generation module is used to generate a set of scheduling plans based on the matching results that meet the conditions in the updated matching matrix; the system service resilience index obtained by simulating the impact of the execution of the plan on the topology of the entire network resource redundancy is weighted and calculated with the experience execution reliability score obtained based on historical records to obtain the comprehensive feasibility index of each plan in the set of scheduling plans; and the target scheduling plan is selected and issued according to the comprehensive feasibility index.
[0011] Preferably, the emergency demand tag, constructed based on the real-time status and environmental data of the battery swapping station, includes core requirements, operational parameters, and execution constraints, and comprises: The system calls the IoT interface to obtain the total number of available backup batteries in the faulty battery swapping station and obtains real-time rainfall data through environmental sensors. Obtain the emergency supplies number that need to be replaced or replenished, and store it as a core requirement in the core requirement attribute layer of the emergency requirement tag; The deadline for emergency repairs must be determined based on the total number of available backup batteries and real-time rainfall data, and recorded in the operational parameter attribute layer. The maximum permissible weight limit for heavy rescue vehicles in the accident area is obtained from the cloud map system and stored in the execution constraint attribute layer. The emergency requirement tag is generated by encapsulating the core requirement attribute layer, the operation parameter attribute layer, and the execution constraint attribute layer.
[0012] Preferably, the determination of the time compliance coefficient based on the time redundancy ratio between the demand time window duration and the overall resource forecast time includes: Calculate the required time window duration for the task based on the latest arrival deadline and the initial trigger time of the emergency report in the system work order. Calculate the estimated travel time based on the distance between the resource and the target site and the estimated average speed of the rescue vehicle; The estimated travel time is added to the standard time specified for warehouse material preparation to obtain the total predicted time. Subtract the total prediction time from the duration of the demand time window to obtain the remaining redundant time; If the remaining redundant time is less than 0, the time compliance coefficient is set to 0; if the remaining redundant time is greater than or equal to 0, the remaining redundant time is divided by the required time window duration to obtain the time compliance coefficient.
[0013] Preferably, the step of adjusting the penalty weight corresponding to the deviation of the operational parameter values according to the time compliance coefficient, and obtaining the compliance score by combining the penalty weight, includes: In a pre-defined reference array library containing nonlinear attenuation relationship mappings, a conversion constant corresponding to the time compliance coefficient is matched. Obtain the preset initial fixed penalty weight for situations where operational parameters are completely unmet; The updated penalty weight is obtained by multiplying the initial fixed penalty weight by the converted constant. The updated penalty weights are used to calculate the compliance score.
[0014] Preferably, the calculation of the scenario replacement cost based on the performance degradation value and the time compliance coefficient includes: From the built-in resource replacement rule data model, the fixed base reduction loss index parameter is extracted when non-standard supply equipment is used to replace the core damaged components, and is used as the performance loss value. The fixed base reduction loss index parameter is a dimensionless deduction parameter pre-calculated to the compliance score scale. Subtracting the time compliance coefficient from 1 and then adding it back to 1 yields the time urgency factor; Multiply the efficiency loss value, the time urgency factor, and the preset first permutation constant to obtain the overall product value; The total product value is used as the scenario replacement cost.
[0015] Preferably, the system service resilience index derived from the impact of the simulated contingency plan execution on the overall network resource redundancy topology is weighted and calculated with the empirical execution reliability score derived from historical records to obtain the comprehensive feasibility index of each plan in the scheduling contingency plan set, including: Obtain the first weighting coefficient of the preset system service resilience index and the second weighting coefficient of the empirical execution reliability score; Extract the system service resilience index corresponding to the contingency plan, normalize the index, and multiply it by the first weighting coefficient to obtain the first reference score; Based on the on-time rate and fault-free availability rate of each facility and human team called upon in the contingency plan in historical emergency response tasks, the empirical execution reliability score is calculated. After normalizing the score, it is multiplied by the second weighting coefficient to obtain the second reference score. The first reference score and the second reference score are added together to obtain the comprehensive feasibility index of the proposed plan.
[0016] Preferably, the system service resilience index derived from the impact of the simulation plan execution on the overall network resource redundancy topology includes: Extract the total number of guaranteed nodes that are running normally in the initial state of the entire network, and use it as the initial baseline value; The simulation calculations were performed to simulate the execution of candidate scheduling plans. The number of manpower teams and mechanical equipment occupied by the plan were deducted from the current corresponding resource reserves in the virtual environment, and the stock inventory of the corresponding standby points was deducted simultaneously. After the virtual execution of the aforementioned plan is completed, the total number of health protection nodes in the entire network area whose resource redundancy is not lower than the preset risk trigger threshold is counted. The total number of health protection nodes is divided by the initial baseline value to obtain the health retention ratio, and the health retention ratio is used as the system service resilience index.
[0017] This invention constructs a multi-dimensional tagging system that includes core requirements, operational parameters, and execution constraints to structurally represent the emergency needs and resource capabilities of battery swapping stations. In the matching calculation, the operational parameter deviation penalty weight is adjusted based on the time redundancy ratio between the demand time window duration and the overall resource prediction time, making the matching results more aligned with emergency timeliness requirements. When core needs cannot be directly met, a resource capability replacement mechanism is used to calculate the efficiency loss value and scenario replacement cost of candidate resources, and the matching score is negatively adjusted to reduce the impact of resource shortages on scheduling. In the contingency plan optimization stage, the system service resilience index and empirical execution reliability score are combined to screen scheduling plans that balance local emergency needs, overall network resource stability, and practical execution feasibility, improving the adaptability and executability of the scheduling results. Attached Figure Description
[0018] Figure 1 A flowchart of the first embodiment; Figure 2 This is a schematic diagram of the downgrade permutation and matrix update process; Figure 3 This is a schematic diagram of the feasibility assessment process for the dispatch plan. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] In the first embodiment, the present invention proposes an emergency resource scheduling method for battery swapping stations based on capability tag matching, such as... Figure 1 It includes the following steps: S1. Based on the real-time status and environmental data of the battery swapping station, an emergency demand label containing core requirements, operational parameters, and execution constraints is constructed, and capability labels with the same structure are constructed for schedulable emergency resources. According to the emergency demand labels and the capability labels of each emergency resource, a matching matrix is constructed and the compliance score of each element is calculated. The time compliance coefficient is determined based on the time redundancy ratio between the demand time window duration and the resource full-process prediction time. The penalty weight corresponding to the deviation of the operational parameter values is adjusted according to the time compliance coefficient, and the compliance score is obtained by combining the penalty weight.
[0021] The battery swapping station collects equipment operation status data through internal IoT sensors and a battery management system, and obtains surrounding environmental data by connecting to data interfaces with meteorological and transportation departments. This equipment operation status data and environmental data are input into a pre-defined natural language processing and feature extraction model to identify the type of emergency scenario currently facing the station. Based on the emergency scenario type, the core requirements for resolving the current emergency, the operational parameters required to maintain the basic operation of the station, and the execution constraints restricting emergency actions are extracted. Core requirements include backup power access requirements or specific battery pack replenishment requirements; operational parameters include rated voltage range, maximum discharge power, and battery pack capacity; execution constraints include vehicle weight limits, height limits, and available unloading space area. These core requirements, operational parameters, and execution constraints are structured and encoded in key-value pairs to generate emergency requirement tags. The resource database is traversed, examining idle or available mobile battery swapping vehicles, emergency power vehicles, and spare parts warehouses, among other dispatchable emergency resources. Their inherent attributes, current performance indicators, and real-time location information are read, and a capability tag containing core functions, upper and lower limits of performance parameters, and size and driving restriction parameters is generated using the same encoding structure as the emergency requirement tag, ensuring a correspondence between the data structures on the demand side and the resource side.
[0022] Emergency demand tags are extracted as row vectors in a matrix, and capability tags for each schedulable emergency resource are extracted as column vectors. An initial two-dimensional matching matrix is established through row-column intersection relationships. For each matching element in the matrix, the estimated travel time from the current location to the battery swapping station is calculated using a preset path planning method, and this time is added to the resource preparation time to obtain the total predicted time. The duration between the initial trigger time of the emergency report and the latest arrival deadline is defined as the demand time window duration. The remaining redundancy time is obtained by subtracting the total predicted time from the demand time window duration. If the remaining redundancy time is less than 0, the time compliance coefficient is set to 0; if the remaining redundancy time is greater than or equal to 0, the remaining redundancy time is divided by the demand time window duration to obtain a time compliance coefficient between 0 and 1.
[0023] The operational parameter requirements in the emergency demand label are compared item by item with the corresponding parameters in the resource capability label, and the percentage of numerical deviation is calculated. The execution constraint requirements in the emergency demand label are also compared item by item with the size, weight, passage, and loading / unloading conditions in the resource capability label. When the weight of the resource vehicle exceeds the maximum permissible weight limit of the road, the vehicle's external dimensions exceed the height limit, or the loading / unloading space requirement exceeds the available unloading space area of the battery swapping station, the corresponding matching element is marked as not meeting the execution constraint, and a preset execution constraint deduction is deducted. For cases where hard constraints are not met, the compliance score of the matching element is set to 0. The time compliance coefficient is input into a preset adjustment function, so that the penalty weight is lower when there is more time and higher when there is more time. The percentage of numerical deviation is multiplied by the penalty weight to obtain the operational parameter penalty item. The core demand mismatch deduction, execution constraint deduction, and each operational parameter penalty item are deducted from the basic matching full score. After normalization, the compliance score between resources and demands is obtained, and this score is written into the corresponding position in the matching matrix.
[0024] In an optional embodiment, the construction of an emergency demand tag based on the real-time status and environmental data of the battery swapping station, which includes core requirements, operational parameters, and execution constraints, includes: The system calls the IoT interface to obtain the total number of available backup batteries in the faulty battery swapping station and obtains real-time rainfall data through environmental sensors. Obtain the emergency supplies number that need to be replaced or replenished, and store it as a core requirement in the core requirement attribute layer of the emergency requirement tag; The deadline for emergency repairs must be determined based on the total number of available backup batteries and real-time rainfall data, and recorded in the operational parameter attribute layer. The maximum permissible weight limit for heavy rescue vehicles in the accident area is obtained from the cloud map system and stored in the execution constraint attribute layer. The emergency requirement tag is generated by encapsulating the core requirement attribute layer, the operation parameter attribute layer, and the execution constraint attribute layer.
[0025] The system calls the IoT interface within the battery swapping station to read the number of backup batteries with the status word "available," for example, to read the total number of available backup batteries. =15 blocks, using rain gauge sensors deployed on the roof of the station to obtain the cumulative rainfall data for the current hour, for example. =25.5 mm. By matching the fault diagnosis log with the BOM list, the specific codes of the damaged modules are extracted, such as the transformer module number "TRF-2023-A01" and the charger module number "CHR-A500-02". These are converted into JSON format key-value pairs and stored in the "CoreRequirement" attribute layer of the emergency requirement tag. The repair deadline is calculated based on a preset attenuation formula, for example, according to an empirical formula. The time conversion factor α = 30 minutes / block, and the rainfall penalty factor β = 5 minutes / mm. Substituting these values, the countdown to repair time is calculated to be 30 × 15 - 5 × 25.5 = 322.5 minutes. Adding this countdown to the current timestamp yields the deadline, such as 17:22:30 for the current day, and records it in the "OperationParams" attribute layer. A request containing latitude and longitude coordinates is sent to the cloud map service via API to query the load-bearing attributes of key bridges and roads within a 2km radius outside the station, extracting the maximum permissible weight limit. =30 tons, and this parameter is stored in the "ExecutionConstraint" attribute layer. The data objects from the above three attribute layers are assembled and concatenated to encapsulate and generate an emergency demand tag data packet instance containing a nested structure that can be read and parsed by the scheduling algorithm.
[0026] In an optional embodiment, determining the time compliance coefficient based on the time redundancy ratio between the demand time window duration and the total resource forecast time includes: Calculate the required time window duration for the task based on the latest arrival deadline and the initial trigger time of the emergency report in the system work order. Calculate the estimated travel time based on the distance between the resource and the target site and the estimated average speed of the rescue vehicle; The estimated travel time is added to the standard time specified for warehouse material preparation to obtain the total predicted time. Subtract the total prediction time from the duration of the demand time window to obtain the remaining redundant time; If the remaining redundant time is less than 0, the time compliance coefficient is set to 0; if the remaining redundant time is greater than or equal to 0, the remaining redundant time is divided by the required time window duration to obtain the time compliance coefficient.
[0027] The system scheduling service parses the work unit data generated by the emergency system and extracts the latest arrival deadline represented in Unix timestamp format. For example, a timestamp representing 15:00:00 and the initial trigger time for an emergency report. For example, a timestamp representing 12:00:00 can be subtracted from the timestamp to obtain the required time window duration for the task. =180 minutes. The map route planning method is invoked, taking into account the latitude and longitude coordinates of the current warehouse and the target latitude and longitude coordinates of the faulty battery swapping station. The calculation returns the distance D=45 km to avoid congested sections. Combined with real-time traffic flow data from the road network, the estimated average speed of the heavy-duty rescue vehicle is calculated as V=60 km / h. These values are then substituted into the formula to calculate the estimated travel time. =(45 / 60)×60=45 minutes. Access the warehouse management system interface to retrieve the standard time limit set for loading and unloading heavy materials for this type of operation. =15 minutes, sum the travel time and preparation time to get the total predicted time. =45 + 15 = 60 minutes. Perform the subtraction operation: subtract the total predicted time of 60 minutes from the calculated required time window of 180 minutes to calculate the remaining redundancy time. =120 minutes. Based on the boundary condition that 120 ≥ 0 is true, the normal proportional calculation is performed, and the time compliance coefficient is calculated. =120 / 180≈0.67; If the preceding steps calculate that the total predicted time reaches 200 minutes, causing the calculated remaining redundancy time to become -20 minutes, then... The value is assigned to 0.
[0028] In an optional embodiment, the step of adjusting the penalty weight corresponding to the deviation of the operational parameter value according to the time compliance coefficient, and obtaining the compliance score by combining the penalty weight, includes: In a pre-defined reference array library containing nonlinear attenuation relationship mappings, a conversion constant corresponding to the time compliance coefficient is matched. Obtain the preset initial fixed penalty weight for situations where operational parameters are completely unmet; The updated penalty weight is obtained by multiplying the initial fixed penalty weight by the converted constant. The updated penalty weights are used to calculate the compliance score.
[0029] A two-column, multi-row floating-point matrix table is maintained in the preset configuration data as a reference array library. This library records the time compliance coefficients from 0.0 to 1.0 and their corresponding attenuation conversion constants, such as data points of a quadratic inverse attenuation curve. For example, when inputting the time compliance coefficients... When the value is 0.67, the interval [0.60, 0.70) is locked using binary search and interval interpolation. The corresponding converted constant λ = 0.85 is extracted, indicating that when there is sufficient time margin for emergency repairs, the system is allowed to relax its tolerance for deviations in other material parameters. The initial fixed penalty weight corresponding to a certain operational parameter is read from the preset parameter table. For example, when replacing the initial fixed penalty weight when the rated power of the charger is insufficient, this parameter is obtained through historical accident review tests. In this example, the constant value loaded is 10.0. The extracted converted constant 0.85 is multiplied by this initial fixed penalty weight of 10.0 to calculate and output the updated penalty weight. =10.0 × 0.85 = 8.5. When constructing the matching score equation for a candidate resource, the absolute deviation difference of the parameter feature values is used. Assuming the difference between the material's power and the demand index is calculated to be 0.2, this is substituted into the formula. The updated penalty weight is then applied for a score reduction calculation. For example, the calculated penalty loss is 8.5 × 0.2 = 1.7 points, which is deducted from the baseline score of 100 points to obtain a compliance score of 98.3 points for the resource. When the overall compliance score of resources within the matching matrix fails to meet the standard, a downgrade replacement and matrix update logic is triggered. The downgrade replacement and matrix update process is as follows: Figure 2 As shown.
[0030] S2, when the compliance scores of the matching core requirements in the matching matrix are all lower than the matching threshold, candidate resources that meet the replacement conditions are obtained, and the performance depreciation value of the candidate resources is determined according to the resource capability replacement rule base; the scenario replacement cost is calculated based on the performance depreciation value and the time compliance coefficient; the compliance score of the candidate resources is negatively adjusted according to the scenario replacement cost to obtain the updated matching matrix.
[0031] The matching matrix is iterated to assess the compliance scores of each resource relative to the core requirements of the battery swapping station, and the minimum score required to ensure basic compliance with emergency tasks is set as the matching threshold. When the compliance scores of all available resources are lower than the matching threshold, a resource degradation and replacement mechanism is triggered. Subsequently, candidate resources that do not fully meet the core requirements but whose functional subsets can cover some of the core requirements are selected from the resource database. For example, multiple low-power mobile energy storage vehicles can be connected in parallel to replace a single high-power emergency power supply vehicle.
[0032] The system invokes a resource capability replacement rule base pre-built based on historical engineering experience and simulation data. It inputs the difference between the actual parameters of candidate resources and the original core requirement parameters, and calculates the degree of system efficiency reduction or energy loss increase caused by the alternative solution through table lookup and interpolation. The calculation result is set as the performance degradation value. A time urgency factor is constructed based on the time compliance coefficient, such that the lower the time compliance coefficient, the larger the time urgency factor. The performance degradation value, the time urgency factor, and the preset first replacement constant are then combined to calculate the scenario replacement cost.
[0033] Extract the matching score of the candidate resource obtained in the initial calculation phase and deduct the scenario substitution cost; if the deduction result is less than 0, correct it to 0. Write the adjusted matching score into the corresponding position in the matching matrix to generate the updated matching matrix.
[0034] In an optional embodiment, calculating the scenario replacement cost based on the performance degradation value and the time compliance coefficient includes: From the built-in resource replacement rule data model, the fixed base reduction loss index parameter is extracted when non-standard supply equipment is used to replace the core damaged components, and is used as the performance loss value. The fixed base reduction loss index parameter is a dimensionless deduction parameter pre-calculated to the compliance score scale. Subtracting the time compliance coefficient from 1 and then adding it back to 1 yields the time urgency factor; Multiply the efficiency loss value, the time urgency factor, and the preset first permutation constant to obtain the overall product value; The total product value is used as the scenario replacement cost.
[0035] The system invokes a pre-defined resource replacement rule model, inputting a query vector containing the original equipment failure and replacement resource attributes, such as "Type of core damaged component to be replaced: Fixed 120kW fast charging pile", or "Type of non-standard replenishment equipment requested: Mobile 100kW charging vehicle". The model performs a correlation search based on the rule nodes and outputs an estimated value representing the decrease in work efficiency caused by replacing different types of equipment, such as extracting parameters for fixed foundation reduction loss indicators. =15.5, this parameter is used as the performance penalty value. Retrieve the task environment context variables and call the determined task time compliance coefficient. =0.67, and simultaneously extracts the scaling factor for the permutation calculation, i.e., the preset first permutation constant, from the preset parameter table. The empirical calibration example value is 0.67. =1.2.
[0036] First, calculate the time urgency factor, that is... =1 + (1 - 0.67) = 1.33; then perform the multiplication operation, that is, use the formula The calculation result is 15.5 × 1.33 × 1.2, outputting a value of 24.738, thus completing the generation of the overall product value. This product result of 24.738 is determined as the current scenario's replacement cost. After updating the matching matrix, a feasibility assessment is conducted on the generated set of scheduling plans, as follows: Figure 3 As shown.
[0037] S3. Generate a set of scheduling plans based on the matching results that meet the conditions in the updated matching matrix; calculate the comprehensive feasibility index of each plan in the set of scheduling plans by weighting the system service resilience index obtained from the impact of the simulation plan execution on the topology of the entire network resource redundancy with the experience execution reliability score obtained from historical records; select the target scheduling plan and issue it according to the comprehensive feasibility index.
[0038] In the updated matching matrix, a minimum score is set for the inclusion of contingency plans. Resource combinations with a compliance score higher than this minimum score are selected, and each resource combination, along with its corresponding travel path and execution sequence, is encapsulated as a scheduling plan, forming a set of scheduling plans. For each scheduling plan, a network-wide emergency resource distribution topology is constructed, and the resources occupied by the plan are virtually deducted from this topology to simulate the network-wide state after resource allocation. Subsequently, the total number of healthy nodes with resource redundancy not lower than a preset risk trigger threshold is counted, and this number is divided by the total number of normally operating nodes in the initial state of the network to obtain the health retention ratio. This health retention ratio is used as the system service resilience index.
[0039] Further query historical execution records to extract records that match the emergency resource teams, similar road conditions, and characteristics of similar tasks involved in the current dispatch plan. Statistical analysis of the on-time arrival rate, task completion rate, and equipment failure rate of historical tasks is conducted. The expected probability of successful completion of the current plan in actual execution is calculated and used as the empirical execution reliability score. A mapping relationship between power grid stability levels and weighting coefficients is pre-set. When the power grid stability level of the area where the battery swapping station is located is low, the first weighting coefficient corresponding to the system service resilience index is increased; when the power grid stability level is high, the second weighting coefficient corresponding to the empirical execution reliability score is increased, and the sum of the first and second weighting coefficients at each level is 1.
[0040] Based on the grid stability level of the area where the battery swapping station is located, the weighting coefficients corresponding to the system service resilience index and the empirical execution reliability score are read, and the two are weighted and summed to obtain the comprehensive feasibility index of each dispatch plan. The dispatch plans in the set are sorted in descending order according to their comprehensive feasibility index, and the dispatch plan ranked first is selected as the target dispatch plan. This plan is then parsed into equipment control commands and personnel navigation routes, and transmitted via an encrypted wireless communication network to the vehicle-mounted terminals of the corresponding emergency resources or the handheld smart devices of the personnel.
[0041] In an optional embodiment, the system service resilience index derived from the impact of the simulated contingency plan execution on the overall network resource redundancy topology is weighted and calculated with the empirical execution reliability score derived from historical records to obtain the comprehensive feasibility index of each contingency plan in the scheduling contingency plan set, including: Obtain the first weighting coefficient of the preset system service resilience index and the second weighting coefficient of the empirical execution reliability score; Extract the system service resilience index corresponding to the contingency plan, normalize the index, and multiply it by the first weighting coefficient to obtain the first reference score; Based on the on-time rate and fault-free availability rate of each facility and human team called upon in the contingency plan in historical emergency response tasks, the empirical execution reliability score is calculated. After normalizing the score, it is multiplied by the second weighting coefficient to obtain the second reference score. The first reference score and the second reference score are added together to obtain the comprehensive feasibility index of the proposed plan.
[0042] When conducting multidimensional evaluation, the grid stability level of the area where the current battery swapping station is located is read, and the first weight coefficient corresponding to the system service resilience index and the second weight coefficient corresponding to the empirical execution reliability score are determined according to the preset mapping relationship between grid stability level and weight coefficient. For example, when the grid stability level of the current area is medium, the first weight coefficient ω1 is 0.6, the second weight coefficient ω2 is 0.4, and the sum of the two is 1.
[0043] Obtain the system service resilience index calculation result corresponding to the current candidate plan. For example, if the system service resilience index is 0.85, after normalization, it becomes 0.850. Multiply this value by the first weighting coefficient of 0.6 to obtain the first reference score S1 = 0.510. At the same time, extract the on-time arrival rate of the maintenance and support team involved in the plan in the historical emergency records, as well as the historical fault-free integrity rate of key equipment. For example, if the on-time arrival rate is 0.95 and the historical fault-free integrity rate is 0.90, multiply the two to obtain the composite reliability score of 0.855. After normalization, this score becomes 0.860, which is then multiplied by the second weighting coefficient of 0.4 to obtain the second reference score S2 = 0.344.
[0044] The first reference score and the second reference score are added together to obtain the comprehensive feasibility index S = S1 + S2 = 0.510 + 0.344 = 0.854, and this comprehensive feasibility index is used to prioritize the scheduling plan.
[0045] In an optional embodiment, the system service resilience index derived from the impact of the simulated contingency plan execution on the overall network resource redundancy topology includes: Extract the total number of guaranteed nodes that are running normally in the initial state of the entire network, and use it as the initial baseline value; The simulation calculations were performed to simulate the execution of candidate scheduling plans. The number of manpower teams and mechanical equipment occupied by the plan were deducted from the current corresponding resource reserves in the virtual environment, and the stock inventory of the corresponding standby points was deducted simultaneously. After the virtual execution of the aforementioned plan is completed, the total number of health protection nodes in the entire network area whose resource redundancy is not lower than the preset risk trigger threshold is counted. The total number of health protection nodes is divided by the initial baseline value to obtain the health retention ratio, and the health retention ratio is used as the system service resilience index.
[0046] The backup resources of the city's battery swapping station topology network are statistically analyzed to obtain the number of backup maintenance sites and transfer depots that are in a normal idle standby state before the emergency dispatch order is generated. This number is used as the initial baseline value, for example, denoted as . =50. Establish an isolated virtual environment corresponding to the current resource status, and simulate the execution of a specific scheduling plan within it. If the plan requires dispatching 2 repair teams and 1 emergency generator from node C, and allocating 10 replacement wiring harness assemblies from node D, then the number of personnel and mechanical equipment at node C will be reduced accordingly in the virtual environment. For example, the number of personnel remaining at node C will be reduced from 3 to 1, and the number of available equipment will be reduced from 2 to 1. At the same time, the inventory of node D will be reduced by 10 to represent the status change after the resources are transferred across regions.
[0047] After completing the virtual allocation, the remaining resource status of all nodes in the network is statistically analyzed, and it is determined whether it falls below the preset risk trigger threshold. For example, a risk threshold is triggered when any node has fewer than 2 maintenance work orders on standby and the corresponding spare parts inventory is less than 5 pieces. If it is detected that 3 support sites fall below this threshold due to resource allocation in this contingency plan, the remaining 47 nodes still meet the resource redundancy requirements and are counted as the total number of healthy support nodes. =47. Dividing the total number of health protection nodes, 47, by the initial baseline value of 50, yields a health retention rate of 0.94. This health retention rate is used as a system service resilience index to evaluate the ability of the rescue system to maintain service after the implementation of the plan.
[0048] In the second embodiment, the present invention also proposes an emergency resource scheduling system for battery swapping stations based on capability tag matching, comprising the following modules: The module is used to construct emergency demand tags containing core requirements, operational parameters, and execution constraints based on real-time status and environmental data of the battery swapping station, and to construct capability tags with the same structure for schedulable emergency resources; to construct a matching matrix and calculate the compliance score of each element based on the emergency demand tags and the capability tags of each emergency resource; to determine the time compliance coefficient based on the time redundancy ratio between the demand time window duration and the resource full-process prediction time; to adjust the penalty weight corresponding to the deviation of the operational parameter values according to the time compliance coefficient, and to obtain the compliance score by combining the penalty weight. The calculation module is used to: obtain candidate resources that meet the replacement conditions when the compliance scores of the matching core requirements in the matching matrix are all lower than the matching threshold; determine the performance depreciation value of the candidate resources according to the resource capability replacement rule base; calculate the scenario replacement cost based on the performance depreciation value and the time compliance coefficient; and negatively adjust the compliance scores of the candidate resources according to the scenario replacement cost to obtain the updated matching matrix. The generation module is used to generate a set of scheduling plans based on the matching results that meet the conditions in the updated matching matrix; the system service resilience index obtained by simulating the impact of the execution of the plan on the topology of the entire network resource redundancy is weighted and calculated with the experience execution reliability score obtained based on historical records to obtain the comprehensive feasibility index of each plan in the set of scheduling plans; and the target scheduling plan is selected and issued according to the comprehensive feasibility index.
[0049] The above description represents the preferred embodiments of the present invention. It should be noted that, for those skilled in the art, various improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for emergency resource scheduling of battery swapping stations based on capability tag matching, characterized in that, include: Based on the real-time status and environmental data of the battery swapping station, an emergency demand label containing core requirements, operational parameters, and execution constraints is constructed, and a capability label with the same structure is constructed for the schedulable emergency resources; according to the emergency demand label and the capability label of each emergency resource, a matching matrix is constructed and the conformity score of each element is calculated. The time compliance coefficient is determined based on the time redundancy ratio between the demand time window duration and the resource full-process forecast time; the penalty weight corresponding to the deviation of the operation parameter values is adjusted according to the time compliance coefficient, and the compliance score is obtained by combining the penalty weight. When the compliance scores of the matching core requirements in the matching matrix are all lower than the matching threshold, candidate resources that meet the replacement conditions are obtained, and the performance depreciation value of the candidate resources is determined according to the resource capability replacement rule base; the scenario replacement cost is calculated based on the performance depreciation value and the time compliance coefficient; the compliance scores of the candidate resources are negatively adjusted according to the scenario replacement cost to obtain the updated matching matrix; A set of scheduling plans is generated based on the matching results that meet the conditions in the updated matching matrix; The system service resilience index, derived from the impact of the simulated plan execution on the overall network resource redundancy topology, is weighted with the experience execution reliability score derived from historical records to obtain the comprehensive feasibility index of each plan in the scheduling plan set; based on the comprehensive feasibility index, the target scheduling plan is selected and issued.
2. The method according to claim 1, characterized in that, Based on the real-time status and environmental data of the battery swapping station, an emergency demand tag is constructed, which includes core requirements, operational parameters, and execution constraints, including: The system calls the IoT interface to obtain the total number of available backup batteries in the faulty battery swapping station and obtains real-time rainfall data through environmental sensors. Obtain the emergency supplies number that need to be replaced or replenished, and store it as a core requirement in the core requirement attribute layer of the emergency requirement tag; The deadline for emergency repairs must be determined based on the total number of available backup batteries and real-time rainfall data, and recorded in the operational parameter attribute layer. The maximum permissible weight limit for heavy rescue vehicles in the accident area is obtained from the cloud map system and stored in the execution constraint attribute layer. The emergency requirement tag is generated by encapsulating the core requirement attribute layer, the operation parameter attribute layer, and the execution constraint attribute layer.
3. The method according to claim 1, characterized in that, The determination of the time compliance coefficient based on the time redundancy ratio between the demand time window duration and the overall resource forecast time includes: Calculate the required time window duration for the task based on the latest arrival deadline and the initial trigger time of the emergency report in the system work order. Calculate the estimated travel time based on the distance between the resource and the target site and the estimated average speed of the rescue vehicle; The estimated travel time is added to the standard time specified for warehouse material preparation to obtain the total predicted time. Subtract the total prediction time from the duration of the demand time window to obtain the remaining redundant time; If the remaining redundant time is less than 0, the time compliance coefficient is set to 0; if the remaining redundant time is greater than or equal to 0, the remaining redundant time is divided by the required time window duration to obtain the time compliance coefficient.
4. The method according to claim 3, characterized in that, The step of adjusting the penalty weight corresponding to the deviation of the operational parameter values according to the time compliance coefficient, and obtaining the compliance score by combining the penalty weight, includes: In a pre-defined reference array library containing nonlinear attenuation relationship mappings, a conversion constant corresponding to the time compliance coefficient is matched. Obtain the preset initial fixed penalty weight for situations where operational parameters are completely unmet; The updated penalty weight is obtained by multiplying the initial fixed penalty weight by the converted constant. The updated penalty weights are used to calculate the compliance score.
5. The method according to claim 1, characterized in that, The calculation of scenario replacement cost based on the performance loss value and the time compliance coefficient includes: From the built-in resource replacement rule data model, the fixed base reduction loss index parameter is extracted when non-standard supply equipment is used to replace the core damaged components, and is used as the performance loss value. The fixed base reduction loss index parameter is a dimensionless deduction parameter pre-calculated to the compliance score scale. Subtracting the time compliance coefficient from 1 and then adding it back to 1 yields the time urgency factor; Multiply the efficiency loss value, the time urgency factor, and the preset first permutation constant to obtain the overall product value; The total product value is used as the cost of the scenario replacement.
6. The method according to claim 1 or 5, characterized in that, The system service resilience index, derived from the impact of the simulated contingency plan execution on the overall network resource redundancy topology, is weighted and calculated with the empirical execution reliability score derived from historical records to obtain the comprehensive feasibility index of each plan in the scheduling plan set, including: Obtain the first weighting coefficient of the preset system service resilience index and the second weighting coefficient of the empirical execution reliability score; Extract the system service resilience index corresponding to the contingency plan, normalize the index, and multiply it by the first weighting coefficient to obtain the first reference score; Based on the on-time rate and fault-free availability rate of each facility and human team called upon in the contingency plan in historical emergency response tasks, the empirical execution reliability score is calculated. After normalizing the score, it is multiplied by the second weighting coefficient to obtain the second reference score. The first reference score and the second reference score are added together to obtain the comprehensive feasibility index of the proposed plan.
7. The method according to claim 1, characterized in that, The system service resilience index derived from the impact of the simulated contingency plan execution on the overall network resource redundancy topology includes: Extract the total number of guaranteed nodes that are running normally in the initial state of the entire network, and use it as the initial baseline value; The simulation calculations were performed to simulate the execution of candidate scheduling plans. The number of manpower teams and mechanical equipment occupied by the plan were deducted from the current corresponding resource reserves in the virtual environment, and the stock inventory of the corresponding standby points was deducted simultaneously. After the virtual execution of the aforementioned plan is completed, the total number of health protection nodes in the entire network area whose resource redundancy is not lower than the preset risk trigger threshold is counted. The total number of health protection nodes is divided by the initial baseline value to obtain the health retention ratio, and the health retention ratio is used as the system service resilience index.
8. A battery swapping station emergency resource dispatching system based on capability tag matching, characterized in that, include: The module is used to construct emergency demand tags containing core requirements, operational parameters, and execution constraints based on the real-time status and environmental data of the battery swapping station, and to construct capability tags with the same structure for schedulable emergency resources; based on the emergency demand tags and the capability tags of each emergency resource, a matching matrix is constructed and the conformity score of each element is calculated; The time compliance coefficient is determined based on the time redundancy ratio between the demand time window duration and the resource full-process forecast time; the penalty weight corresponding to the deviation of the operation parameter values is adjusted according to the time compliance coefficient, and the compliance score is obtained by combining the penalty weight. The calculation module is used to: obtain candidate resources that meet the replacement conditions when the compliance scores of the matching core requirements in the matching matrix are all lower than the matching threshold; determine the performance depreciation value of the candidate resources according to the resource capability replacement rule base; calculate the scenario replacement cost based on the performance depreciation value and the time compliance coefficient; and negatively adjust the compliance scores of the candidate resources according to the scenario replacement cost to obtain the updated matching matrix. The generation module is used to generate a set of scheduling plans based on the matching results that meet the conditions in the updated matching matrix; The system service resilience index, derived from the impact of the simulated plan execution on the overall network resource redundancy topology, is weighted with the experience execution reliability score derived from historical records to obtain the comprehensive feasibility index of each plan in the scheduling plan set; based on the comprehensive feasibility index, the target scheduling plan is selected and issued.
9. The system according to claim 8, characterized in that, Based on the real-time status and environmental data of the battery swapping station, an emergency demand tag is constructed, which includes core requirements, operational parameters, and execution constraints, including: The system calls the IoT interface to obtain the total number of available backup batteries in the faulty battery swapping station and obtains real-time rainfall data through environmental sensors. Obtain the emergency supplies number that need to be replaced or replenished, and store it as a core requirement in the core requirement attribute layer of the emergency requirement tag; The deadline for emergency repairs must be determined based on the total number of available backup batteries and real-time rainfall data, and recorded in the operational parameter attribute layer. The maximum permissible weight limit for heavy rescue vehicles in the accident area is obtained from the cloud map system and stored in the execution constraint attribute layer. The emergency requirement tag is generated by encapsulating the core requirement attribute layer, the operation parameter attribute layer, and the execution constraint attribute layer.
10. The system according to claim 8, characterized in that, The determination of the time compliance coefficient based on the time redundancy ratio between the demand time window duration and the overall resource forecast time includes: Calculate the required time window duration for the task based on the latest arrival deadline and the initial trigger time of the emergency report in the system work order. Calculate the estimated travel time based on the distance between the resource and the target site and the estimated average speed of the rescue vehicle; The estimated travel time is added to the standard time specified for warehouse material preparation to obtain the total predicted time. Subtract the total prediction time from the duration of the demand time window to obtain the remaining redundant time; If the remaining redundant time is less than 0, the time compliance coefficient is set to 0; if the remaining redundant time is greater than or equal to 0, the remaining redundant time is divided by the required time window duration to obtain the time compliance coefficient.
