A safety-first short-board mapping driven vehicle-network collaborative district iteration optimization method and system
By generating a four-dimensional bottleneck vector through unified modeling of resources and data in the transformer area, initializing the parameter mapping matrix and hierarchical rewards using power flow sensitivity, and combining it with a multi-agent near-end policy optimization algorithm, the problem of insufficient quantitative basis for parameter adjustment and inadequate policy security when multiple bottlenecks occur concurrently is solved, and the generation and stable execution of a safety-first policy are achieved.
Patent Information
- Application Number
- CN202611571749.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-12
- Publication Date
- 2026-12-01
AI Technical Summary
Existing technologies lack quantitative basis for parameter adjustment when multiple bottlenecks occur concurrently, the learning strategy has insufficient safety priority, the training under risky conditions is inadequate, and the strategy lacks verification and rollback mechanisms, leading to competition between safety and economic objectives, and posing risks of field exploration.
By uniformly modeling the resources and data of the transformer area, a four-dimensional bottleneck vector is generated. The parameter mapping matrix is initialized using power flow sensitivity. A hierarchical reward and risk penalty are adopted, and a multi-agent near-end policy optimization algorithm is combined to generate candidate policies. Power flow simulation and policy backoff are then performed to form a closed-loop optimization.
The system enables safety-first parameter adjustments, improves strategy security when multiple bottlenecks occur concurrently, reduces the risk of on-site exploration, and ensures the reliability and stability of the strategy.
Smart Images

Figure CN123203003A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power distribution network source-grid-load-vehicle coordinated control technology, specifically to a safety-priority-short-board mapping-driven vehicle-grid coordinated transformer area iterative optimization method and system. Background Technology
[0002] With the large-scale integration of distributed photovoltaic, decentralized wind power, electrochemical energy storage, and electric vehicles into low-voltage distribution substations, these substations are transforming from traditional unidirectional power receiving units into integrated energy units that couple multiple resources, including sources, grid, loads, vehicles, and storage. Distributed energy output is characterized by fluctuations and intermittency. The charging and discharging behavior of electric vehicles is influenced by vehicle arrival and departure times, initial state of charge, target state of charge, and electricity prices, exhibiting both randomness and clustering. The combined effect of these factors alters the power flow, node voltage, line losses, transformer load factor, and reverse power flow status within the substation.
[0003] Existing orderly charging or V2G multi-objective optimization methods typically employ fixed objective weights. The evaluation results after strategy execution are mostly used for report display or manual review, lacking a calculable feedback path from specific shortcomings to objective weights, constraint boundaries, and control thresholds. When shortcomings such as voltage exceeding limits, transformer overload, insufficient distributed energy consumption, and unmet user charging demands occur concurrently, the balancing correction can easily lead to competition between safety objectives and economic and consumption objectives.
[0004] Existing reinforcement learning schemes, if constrained solely by general penalty terms, cannot directly deduce from the relative magnitudes of penalty weights that a policy necessarily satisfies hard constraints. Furthermore, near-end policy optimization algorithms are in-policy algorithms; directly replaying from a long-term cross-policy experience pool introduces policy distribution bias. Directly issuing candidate policies also carries the risk of in-situ exploration.
[0005] Therefore, it is necessary to establish a vehicle-network cooperative transformer area iterative optimization method that can encode multidimensional evaluation results into a bottleneck vector, map optimization parameters in a safety-first manner, correct the mapping relationship according to the actual response, and form a closed loop through hierarchical rewards, risk sample training, and power flow simulation hard verification. Summary of the Invention
[0006] The purpose of this invention is to provide a vehicle-to-grid cooperative area iterative optimization method and system driven by safety priority short-board mapping, in order to solve the problems of lack of quantitative basis for parameter adjustment, insufficient safety priority of learning strategy, insufficient training under risk conditions, and lack of verification, rollback and solidification mechanism for strategy when multiple short-boards are running concurrently.
[0007] The steps of the vehicle-to-grid cooperative transformer area iterative optimization method driven by safety priority and short-board mapping according to the present invention are as follows:
[0008] S1. Perform unified modeling of resources, data, and constraints in the transformer area, and carry out data governance;
[0009] S2. Perform a four-dimensional evaluation on the established model and generate a weakness vector;
[0010] S3. Initialize the parameter mapping matrix with power flow sensitivity, and prioritize the correction of safety-related parameters by amplifying the matrix through the safety dimension when multiple weak boards are running concurrently.
[0011] S4. Based on the actual bottleneck response after the candidate strategy is executed, the mapping matrix is updated in a bounded manner;
[0012] S5. A tiered reward system is adopted, consisting of penalties for exceeding safety limits, penalties for risk levels, and penalties for execution deviations.
[0013] S6. Incorporate the weakness vector into the agent's state to generate candidate policies;
[0014] S7. Perform all-time safety verification through power flow simulation;
[0015] S8. Complete the closed loop by backtracking from the previous feasible strategy and solidifying the steady state.
[0016] Specifically, S1. Unifies the modeling of resources, data, and constraints in the transformer area and performs data governance as follows:
[0017] Establish a resource object model for the transformer area; the resource object model for the transformer area includes distributed energy, distribution network, conventional and adjustable loads, electric vehicle charging and discharging resources, and energy storage resources.
[0018] Distributed energy resources include controllable or observable power sources such as photovoltaic and wind power within the distribution area; the power distribution network includes distribution transformers, busbars, lines, and switches; loads include conventional loads and adjustable loads; electric vehicle resources include charging facilities, vehicle charging and discharging capacity, and user demand; and energy storage resources include independent energy storage and adjustable energy storage devices. The relationships between the above-mentioned devices and measurement points, control points, and operational constraints are established respectively.
[0019] The data collected includes baseline evaluation data before strategy implementation and performance evaluation data after strategy implementation. The data is then subjected to time alignment, missing data repair, anomaly identification, standardization, and data reliability assessment.
[0020] In step S1, dynamic data from different sources are uniformly resampled to the same time granularity. The dynamic data includes at least node voltage, branch current, active power, reactive power, distribution transformer load rate, distributed energy output, electric vehicle charging and discharging power and state of charge, energy storage power and state of charge, and control command feedback data. Interpolation is used to repair continuous missing data for no more than two sampling periods, and similar daily data is used to complete long-term missing data with periodic characteristics. Outliers are identified by combining statistical boundaries and equipment physical boundaries. The data reliability coefficient is calculated based on data integrity rate, timeliness, and outlier rate.
[0021] The time granularity is defined as a period of 5 to 15 minutes.
[0022] S2. Perform a four-dimensional evaluation on the established model and generate the bottleneck vector as follows:
[0023] A four-dimensional evaluation index system is constructed, which includes security, economy, absorption capacity and operation and maintenance quality. The final weight of the index is calculated based on subjective weight, objective weight, scenario correction coefficient and data credibility coefficient.
[0024] Standardization is performed according to the indicator attributes: positive indicators with larger values are standardized in the positive direction, negative indicators with smaller values are standardized in the negative direction, and indicators with target ranges are standardized according to their deviation from the target range. All indicators are uniformly converted into benefit-type standardized indicators with the same value range and larger values indicating better operating status. A shortcoming vector is generated based on the degree of non-compliance of the standardized indicators, the degree of deterioration in adjacent evaluation periods, and data uncertainty.
[0025] The safety assessment indicators in step S2 include node voltage compliance rate, transformer load rate compliance rate, branch current over-limit degree, and reverse power flow over-limit degree.
[0026] Economic evaluation indicators include electricity purchase cost, line loss cost, and V2G revenue;
[0027] The evaluation indicators for energy absorption capacity include distributed energy absorption rate, curtailment rate, and source-load timing matching degree;
[0028] The evaluation indicators for operation and maintenance quality include the timeliness of response to control commands, the accuracy rate of prediction, equipment availability, and policy execution deviation.
[0029] In step S2, the benefit-oriented standardized index refers to an index whose larger value indicates a better operating status after being standardized in a forward, reverse, or target range manner. For standardized indices with data credibility not lower than the credibility threshold, the non-compliance component and the deterioration trend component increase as the index deviates from the compliance threshold and the decline in adjacent periods; for safety indices with data credibility lower than the credibility threshold, an uncertainty component is added, and conservative operating parameters are triggered.
[0030] S3. A power flow calculation model for the transformer area is formed by initializing the parameter mapping matrix based on power flow sensitivity. When multiple fault boards are running concurrently, safety-related parameters are preferentially corrected through a safety dimension amplification matrix. This constitutes a multi-objective optimization model for the vehicle-to-grid cooperative transformer area.
[0031] The power flow calculation model for the transformer substation is an electrical calculation model established based on the transformer substation topology, line impedance, distribution transformer parameters, distributed energy equipment parameters, electric vehicle charging and discharging facility parameters, energy storage parameters, and load data.
[0032] The vehicle-to-grid (V2G) cooperative distribution area multi-objective optimization model aims at safety, economy, absorption capacity, and operation and maintenance quality, and is constrained by transformer capacity, node voltage, branch current, equipment power, state of charge, and user demand. The model calculates the sensitivity of each bottleneck index relative to the parameters of the V2G cooperative distribution area multi-objective optimization model using a distribution area power flow calculation model, and initializes the mapping matrix from bottleneck vectors to multi-objective optimization model parameters. When a bottleneck in the safety dimension and at least one bottleneck in the non-safety dimension simultaneously exceed their corresponding trigger thresholds, an amplification factor greater than that for the non-safety dimension is applied to the column in the mapping matrix corresponding to the bottleneck in the safety dimension. The amplified bottleneck vector is then mapped to a parameter correction value, and the updated multi-objective optimization model parameters are obtained by projection through the safe feasible region.
[0033] In step S3, the optimized model parameters include at least: safety target weight, economic target weight, absorption capacity target weight, operation and maintenance quality target weight, V2G trigger threshold, charging and discharging power boundary, reactive power adjustment boundary, user charging completion rate constraint, and rolling optimization cycle; the safe feasible domain projection makes the target weights satisfy the normalization constraint and makes the power boundary, state of charge boundary, voltage boundary, current boundary, and transformer capacity boundary within a preset range.
[0034] S4. Based on the actual bottleneck response after the candidate strategy is implemented, the mapping matrix is updated in a bounded manner as follows:
[0035] When there is a candidate strategy execution record from the previous complete evaluation period, the mapping matrix is updated with step size upper limit and element boundary based on the response residual between the actual change of the short-board vector and the predicted change of the mapping matrix from the previous complete evaluation period. The initial mapping matrix is used in the first iteration.
[0036] When the data credibility of any key security measurement point or any key security indicator calculated from it is lower than the credibility threshold, the mapping matrix is stopped from being updated and conservative parameters are enabled; when a security alarm occurs, the transformer topology or equipment parameters change, or the response residual exceeds the residual threshold, the mapping matrix is stopped from being updated and the power flow sensitivity is recalculated or conservative parameters are used.
[0037] In step S4, when the topology of the transformer area changes, the rated parameters of the equipment change, or the response residual continuously exceeds the threshold, the power flow sensitivity is recalculated and the mapping matrix is reset.
[0038] S5. A tiered reward system is established using penalties for exceeding safety limits, penalties based on risk levels, and penalties for execution deviations:
[0039] Construct a multi-agent shared reward function, taking the changes in comprehensive evaluation scores, changes in grades, and improvements in shortcomings as positive terms, and taking violations of safety constraints and deviations in control execution as penalty terms;
[0040] Bounded normalization is applied to each term, and the penalty weight for exceeding the safety limit is set to be greater than the maximum possible sum of all positive terms in a single decision step.
[0041] The bottleneck vector is embedded into the agent's state space, and the policy network is trained using a centralized training and distributed execution approach.
[0042] When using the Multi-Agent Proximal Policy Optimization (MAPPO) algorithm in step S5, a shared reward function is constructed for the multiple agents. The shared reward value is calculated based on the joint state, joint action, and environmental feedback of each agent. The advantage function is estimated based on the shared reward value, and the policy network is updated using a policy objective with importance ratio limiting. Trajectories containing at least one risk event among node voltage over-limit, transformer overload, branch current over-limit, reverse power flow over-limit, or unmet user charging demand are identified as high-risk trajectories. The training trajectories for this round are collected using the current policy, and the high-risk trajectories are sampled hierarchically according to risk level within the current trajectory buffer to construct training batches. When using the off-policy reinforcement learning algorithm, the high-risk trajectories are replayed from the experience pool according to risk priority, and the sampling bias caused by non-uniform sampling is corrected using importance sampling weights.
[0043] S6. Incorporate the weakness vector into the agent's state to generate candidate policies as follows:
[0044] Based on the updated optimization model parameters and strategy network, candidate strategies including orderly charging of electric vehicles, V2G charging and discharging, active and reactive power regulation of distributed energy and energy storage regulation are generated.
[0045] In the training batch, high-risk trajectories containing node voltage over-limit, transformer overload, branch current over-limit, unmet user charging demand, or reverse power flow over-limit are sampled in a stratified manner, and importance correction or amplitude limiting correction is introduced for non-uniform sampling.
[0046] S7. All-time safety verification is performed using power flow simulation:
[0047] Input the generated candidate strategies into the power flow calculation model or digital simulation environment of the transformer area.
[0048] The digital simulation environment for the distribution area is constructed based on the distribution area topology, line impedance, parameters of distribution transformers and controllable equipment, load and distributed energy prediction scenarios, and control interfaces, and performs time-series power flow calculations. According to the safety margin determined based on load prediction error, distributed energy prediction error, and power flow model error, the capacity of distribution transformers, node voltage, branch current, state of charge of electric vehicles, target state of charge when users leave the station, V2G user authorization status, battery allowable charge and discharge boundaries, reverse power flow, and the executability of control commands are verified time by time.
[0049] If any hard constraint condition is not met, the candidate strategy generated in step S6 is intercepted and the process returns to step S3; execution can only be initiated when all hard constraints are met and the prediction evaluation result is not lower than the executable strategy that has recently passed all hard constraint verifications and been saved in step S7.
[0050] S8. The closed loop is completed by rolling back the most recently verified executable strategy and solidifying the steady state:
[0051] Collect the actual execution results of the candidate strategies and re-execute steps S2 to S7; when the actual execution triggers a security alarm, the evaluation level drops, the overall score drops beyond the rollback threshold, or the execution deviation exceeds the deviation threshold, roll back to the most recent executable strategy that has passed all hard constraint verifications in step S7 and been saved.
[0052] When a candidate strategy reaches the target level for multiple consecutive evaluation cycles and the fluctuations in key security indicators and user requirement completion rates meet steady-state conditions, the strategy parameters are solidified.
[0053] The current iteration is terminated when the improvement in the overall score over multiple consecutive evaluation periods is less than the convergence threshold.
[0054] In step S8, the steady-state conditions include: reaching the target level for at least three consecutive evaluation cycles; the node voltage fluctuation amplitude not exceeding the preset voltage fluctuation threshold; the distribution transformer load rate fluctuation amplitude not exceeding the preset load rate fluctuation threshold; and the user charging completion rate fluctuation amplitude not exceeding the preset completion rate fluctuation threshold. The convergence condition includes that the improvement in the comprehensive score for at least two consecutive evaluation cycles is less than the preset convergence threshold.
[0055] A vehicle-to-grid (V2G) cooperative service area iterative optimization system driven by a safety-first, short-board mapping mechanism includes a data acquisition and management module, a multi-dimensional evaluation module, a short-board diagnosis module, a short-board parameter mapping module, a multi-agent evolution module, a safety verification module, a policy execution module, and a policy solidification and rollback module. Each module is configured to execute the aforementioned safety-first, short-board mapping-driven V2G cooperative service area iterative optimization method. The output of the data acquisition and management module is connected to the multi-dimensional evaluation module, and the output of the multi-dimensional evaluation module is connected to the short-board diagnosis module and the policy solidification and rollback module, respectively. The short-board diagnosis module, short-board parameter mapping module, multi-agent evolution module, safety verification module, and policy execution module are configured sequentially. The policy execution module's execution feedback end is connected to the data acquisition and governance module, forming a closed loop. The bottleneck parameter mapping module includes a power flow sensitivity initialization unit, a safety priority amplification unit, a safe feasible region projection unit, and a bounded update unit for the mapping matrix. The output ends of the power flow sensitivity initialization unit and the safety priority amplification unit are connected to the safe feasible region projection unit, and the feedback end of the safe feasible region projection unit and the policy execution module is connected to the bounded update unit for the mapping matrix. The multi-agent evolution module includes a hierarchical reward unit, a bottleneck state embedding unit, and a high-risk trajectory hierarchical sampling unit. These three units jointly provide rewards, states, and training samples to the policy network training process.
[0056] The multi-agent evolution module and security verification module are deployed on a cloud platform, while the data acquisition and governance module, policy execution module, and the storage unit for the most recently verified executable policy are deployed on the smart distribution terminal. The cloud platform and the smart distribution terminal are connected via a communication network. The smart distribution terminal collects data from distribution transformers, lines, and distributed energy sources through the smart distribution transformer terminal interface and interacts with electric vehicle charging and discharging facilities through the Open Charge Point Protocol (OCPP) interface. The cloud platform synchronizes the verified policy network and parameters to the smart distribution terminal according to the evaluation cycle. In the event of communication interruption, security alarm, or insufficient credibility of key data, the smart distribution terminal switches to the most recently verified executable policy or a preset conservative policy.
[0057] The data flow sequentially passes through data acquisition and governance, multi-dimensional evaluation, bottleneck diagnosis, bottleneck parameter mapping, multi-agent evolution, security verification, and policy execution. The policy execution results are then fed back to the data acquisition and governance module and the multi-dimensional evaluation module. The policy solidification and rollback module simultaneously receives evaluation results, security alarms, and execution deviations. When steady-state conditions are met, the parameters are solidified. When rollback conditions are triggered, the most recently verified executable policy is sent to the policy execution module.
[0058] Unlike methods that only compare the weights of individual rewards, this invention first restricts each reward item to a known range, and then makes the penalty weight for safety limit violation indication greater than the maximum possible sum of all positive items in a single decision step, so as to ensure that actions that violate safety limits are inferior to actions without violations at the reward level; at the same time, it retains power flow simulation hard verification as an independent engineering safety gate.
[0059] Unlike the approach of directly applying Proximal Policy Optimization (PPO) to cross-policy experience replay, this invention, when employing the Multi-Agent Proximal Policy Optimization (MAPPO) algorithm, only performs stratified sampling of high-risk trajectories within the trajectory buffer generated by the current policy and applies importance ratio limiting; when prioritizing replay of long-term experience pools, it switches to an off-policy algorithm with importance sampling correction, thereby reducing sampling bias.
[0060] The short-board parameter mapping employs a mechanism combining power flow sensitivity initialization, safety dimension weighted amplification, and bounded update of actual response. Power flow sensitivity is used to determine the initial mapping direction from the short board to the parameters; a safety amplification matrix is applied when safe and unsafe short boards occur concurrently; the actual short board response of the previous complete cycle is used to limit, project, and reinitialize the mapping matrix as necessary, ensuring that parameter correction has a physical basis, safety priority, and online adaptability.
[0061] The shared reward adopts a hierarchical safety structure with a computable upper bound for the positive reward. Each reward item is first bounded and normalized. The penalty for exceeding the safety limit is greater than the maximum possible sum of all positive items in a single step, and penalties for exceeding the limit amplitude, duration, and execution deviation are added. This forms a verifiable safety priority relationship, while the power flow simulation hard constraint verification is used as an independent engineering safety gate.
[0062] The bottleneck vector simultaneously encodes the degree of non-compliance, the trend of continuous deterioration, and the uncertainty of key safety data, and embeds them into the agent's state space. When using the Multi-Agent Proximal Policy Optimization (MAPPO) algorithm, high-risk stratified sampling and ratio limiting are performed within the current policy trajectory batch; when using the off-policy algorithm, long-term experience pool priority replay and importance correction are used to ensure that the risk sample training mechanism is consistent with the policy update algorithm.
[0063] Strategy management employs robust safety margins and differentiated quantification thresholds. Candidate strategies are validated with hard constraints on a time-by-time basis after setting safety margins based on prediction errors and power flow model residuals. After execution, rollbacks are implemented based on safety alarms, assessment declines, and execution deviations. Strategies are solidified based on continuous target levels and key indicator fluctuations. Convergence termination occurs when the improvement amount for multiple consecutive cycles falls below the threshold. In cases where data, communication, or the model is unreliable, the strategy switches to the most recently validated executable strategy or a conservative strategy.
[0064] The beneficial effects of this invention are as follows: the short-board vector enables the localization of operational defects; sensitivity mapping and bounded updates make parameter adjustments traceable; the safety dimension amplification matrix prioritizes the correction of safety-related parameters when multiple short-boards occur concurrently; hierarchical rewards and risk trajectory sampling enhance the learning intensity of risky operating conditions; and power flow simulation, backoff, and solidification mechanisms prevent unverified candidate strategies from directly entering the field. The specific magnitude of the above effects depends on the transformer topology, resource scale, sample size, and parameter settings, and is not generally limited to a fixed percentage. Attached Figure Description
[0065] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings are briefly described below. The drawings are all schematic diagrams and do not represent the actual device size and scale.
[0066] Figure 1 This is a flowchart illustrating the overall iterative optimization method of the present invention.
[0067] Figure 2 This is a flowchart illustrating the process of short-board vector generation, safety priority parameter mapping, bounded update, and risk perception training in this invention.
[0068] Figure 3 This is a flowchart illustrating the robust security verification, rollback, solidification, and convergence management process for the candidate strategies of this invention.
[0069] Figure 4 This is a schematic diagram of the overall system architecture of the present invention. Detailed Implementation
[0070] The following is in conjunction with the appendix Figure 1-4 The invention will be further illustrated by the examples and embodiments. Figure 1 As shown, the method of the present invention includes steps S1 to S8. The numerical values in the embodiments are used to illustrate an implementable configuration and do not constitute a limitation on the scope of protection. Those skilled in the art can make equivalent adjustments to the number of indicators, evaluation cycle, amplification factor, learning algorithm, and threshold based on the transformer area topology, equipment capacity, operating procedures, and data quality.
[0071] S1. Perform unified modeling of resources, data, and constraints in the transformer area, and carry out data governance;
[0072] S2. Perform a four-dimensional evaluation on the established model and generate a weakness vector;
[0073] S3. Initialize the parameter mapping matrix with power flow sensitivity, and prioritize the correction of safety-related parameters by amplifying the matrix through the safety dimension when multiple weak boards are running concurrently.
[0074] S4. Based on the actual bottleneck response after the candidate strategy is executed, the mapping matrix is updated in a bounded manner;
[0075] S5. A tiered reward system is adopted, consisting of penalties for exceeding safety limits, penalties for risk levels, and penalties for execution deviations.
[0076] S6. Incorporate the weakness vector into the agent's state to generate candidate policies;
[0077] S7. Perform all-time safety verification through power flow simulation;
[0078] S8. Complete the closed loop by backtracking from the previous feasible strategy and solidifying the steady state.
[0079] Example 1:
[0080] Method flow and algorithm parameter configuration
[0081] like Figure 4 As shown, the system comprises a distribution area resource and data layer, a data acquisition and governance layer, a multi-dimensional assessment and bottleneck diagnosis layer, a bottleneck parameter mapping and strategy evolution layer, and a security verification and execution layer. The cloud platform is responsible for maintaining the assessment model, updating the mapping matrix, training strategies, and performing power flow simulation; the distribution area intelligent terminals are responsible for data acquisition, executing candidate strategies, monitoring alarms, and saving the most recently verified executable strategy. The cloud platform and the distribution area intelligent terminals are connected via a communication network. The distribution area intelligent terminals connect to distribution-side equipment and electric vehicle charging / discharging facilities through the distribution area intelligent transformer terminal interface and the OCPP interface.
[0082] S1. Perform unified modeling of resources, data, and constraints in the transformer area, and carry out data governance;
[0083] Establish the relationships between equipment objects, measurement point objects, control point objects, and constraint objects. Equipment objects include at least distribution transformers, lines, distributed energy inverters, charging facilities, energy storage, and reactive power compensation equipment; measurement points include node voltage, branch current, active power, reactive power, distributed energy output, and vehicle state of charge; control points include charging power, V2G discharge power, inverter active and reactive power setpoints, and energy storage power; constraint objects include capacity, voltage, current, state of charge, arrival and departure time, reverse power flow, and power change rate boundaries.
[0084] Dynamic data is preferably aligned at a 15-minute granularity. Short-term missing data is filled using interpolation, while periodic long-term missing data is filled using similar days of the same type. Statistical anomaly detection is used in conjunction with physical rules such as equipment rated parameters and power flow boundaries. Data reliability is calculated based on completeness, timeliness, and anomaly rate, with a value range of [0,1]. When the reliability of any key safety measurement point or the key safety indicator calculated from it is lower than the reliability threshold, aggressive parameter updates are not performed based on that measurement point; instead, conservative boundaries or the previous feasible strategy are activated.
[0085] S2. Perform a four-dimensional evaluation on the established model and generate a weakness vector;
[0086] like Figure 2 As shown, the positive, negative, and target interval indicators are standardized using a benefit-based method, resulting in values ∈ [0,1], where a larger value indicates a better operational state. Subjective weights are obtained using the analytic hierarchy process (AHP), and objective weights are obtained using the entropy weight method. A fusion coefficient is used to form the basic weights, which are then corrected and normalized using scenario correction coefficients and data credibility coefficients to obtain the final weights. The comprehensive evaluation score is the weighted sum of all standardized indicators and is mapped to excellent, good, satisfactory, and need-to-optimize levels.
[0087]
[0088] Let the threshold for the i-th indicator be... The trend amplification factor is The safety uncertainty coefficient is To avoid excessively long individual formulas, we first define the deviation trend components under the condition of reliable data. Then calculate the short board component. :
[0089]
[0090] Among them, non-safety indicators A value of 0 is acceptable; for safety indicators A positive value is used to identify uncertainties and weaknesses when the reliability of key measurement points is insufficient. (This is achieved by various...) This constitutes the shortest path vector B(t). This method avoids relying solely on... Multiplying by the level of non-compliance simply weakens the credibility of security data.
[0091] S3. Initialize the parameter mapping matrix with power flow sensitivity, and prioritize the correction of safety-related parameters by amplifying the matrix through the safety dimension when multiple weak boards are running concurrently.
[0092] like Figure 2 As shown, the charging and discharging power boundaries, reactive power setpoints, target weights, V2G trigger thresholds, and rolling cycles are disturbed near the base operating conditions of the transformer substation. The local sensitivity of node voltage, transformer load rate, branch current, absorption rate, and user charging completion rate to the parameters is calculated, and an initial mapping matrix is constructed accordingly. To unify different dimensions, the sensitivity and parameter correction values are normalized according to the allowable variation range.
[0093] Construct a diagonal magnification matrix A(t). When at least one security flaw and at least one non-security flaw simultaneously exceed their respective trigger thresholds, the diagonal elements corresponding to the security flaw are... Take a value greater than 1, and take 1 for the remaining diagonal elements; in one implementation The initial value is 1.8, but it can be configured within a preset range based on the risk level of the transformer area; the parameter is updated as follows:
[0094]
[0095] in, For the safe and feasible domain projection operator, Ω simultaneously limits the target weight normalization, equipment capacity, voltage, current, power, state of charge, and user requirement boundaries. The safety-priority amplification effect applies to the parameter correction direction and magnitude, but does not replace the power flow simulation hard verification in step S7.
[0096] S4. Based on the actual bottleneck response after the candidate strategy is executed, the mapping matrix is updated in a bounded manner;
[0097] Except for the first iteration, the system uses the previous complete evaluation cycle to calculate the actual changes in the bottleneck. And use the local response model to calculate and predict the changes in the weakest link. The difference between the two is used to construct the response residual e(t), and a one-step constrained gradient update is performed on the loss function as shown in the following equation; the power flow sensitivity initialization matrix is directly used in the first iteration. :
[0098]
[0099] in, To update the step size, For gradient limiting, Project the matrix elements onto the preset boundary. The constraint matrix deviates from the initial value obtained based on power flow sensitivity. M is only updated when data reliability, policy execution integrity, and power flow model residuals meet the conditions; otherwise, M remains unchanged and conservative parameters are used. When the transformer topology, equipment rated parameters change, or response residuals continuously exceed limits, the power flow sensitivity is recalculated and reset. This avoids erroneous attributions and parameter oscillations caused by simply scaling up or down the matrix based on the sum of the weakest points.
[0100] S5. A tiered reward system is adopted, consisting of penalties for exceeding safety limits, penalties for risk levels, and penalties for execution deviations.
[0101] Charging facilities, distributed energy inverters, energy storage, and other adjustable devices are modeled as intelligent agents. The state space includes local demand, state of charge, predicted output, real-time electricity price, transformer operating parameters, assessment level, data reliability, and bottleneck vector; the action space includes charging and discharging power, V2G triggering timing, active and reactive power output, and energy storage power.
[0102] Changes in overall score, level improvement, improvement of weaknesses, degree of safety violation, and execution deviation are normalized to [-1,1] or [0,1], respectively. One form of shared reward is:
[0103]
[0104] in This is an indication of whether any safety hard constraint has been exceeded. To normalize the amplitude and duration of the over-limit, To implement deviations. (Settings) The reward is greater than the maximum possible sum of positive terms in a single step, making the reward for any out-of-limit action lower than that for any action without out-of-limit action; Further penalties are imposed based on the degree of violation. This reward constraint, together with the safe feasible region projection and power flow simulation hard verification, constitutes a hierarchical constraint.
[0105] When employing the Multi-Agent Proximal Policy Optimization (MAPPO) algorithm, the current policy collects the trajectory in the simulation environment. Trajectories containing at least one of the following risk events—voltage overrun, transformer overload, branch current overrun, reverse power flow overrun, or unmet user requirements—are marked as high-risk trajectories. These trajectories are then stratified into training batches within the current trajectory buffer according to their risk level, ideally with high-risk trajectories accounting for 50% to 70%, and are subject to importance ratio limiting using Proximal Policy Optimization (PPO). If a Multi-Agent Soft Actor-Critic Plasmatic Policy algorithm is used, priority replay can be performed in the long-term experience pool, and non-uniform sampling bias can be corrected through importance sampling weights.
[0106] S6. Incorporate the weakness vector into the agent's state to generate candidate policies;
[0107] The strategy network outputs candidate strategies for coordinated charging, V2G, distributed energy, and energy storage. These candidate strategies are not explored unconstrained on-site; instead, they are first input into the distribution area power flow calculation model or the distribution area digital simulation environment. The distribution area digital simulation environment is constructed based on the distribution area topology, line impedance, distribution transformer and controllable equipment parameters, load and distributed energy prediction scenarios, and control interfaces, and performs time-series power flow calculations. The system sets safety margins based on load prediction errors, distributed energy prediction errors, and power flow model residuals, and then verifies, at the control granularity, distribution transformer capacity, node voltage, branch current, vehicle state of charge, user off-site target state of charge, V2G user authorized status, battery allowable charge / discharge boundaries, reverse power flow, and equipment control capabilities on a time-by-time basis.
[0108] S7. Perform all-time safety verification through power flow simulation;
[0109] If any hard constraint is not met, the system will be blocked, and the failure scenario will be fed back to the short-board parameter mapping and risk trajectory set. Only when all constraints are met and the prediction evaluation result is not lower than the executable strategy that has passed all hard constraint verifications and been saved in step S7 the most recent time will the system enter the distribution queue.
[0110] S8. Complete the closed loop by rolling back the most recently verified executable strategy and solidifying the steady state.
[0111] like Figure 3 As shown, after the candidate strategy is issued, the actual power, planned power, operating status, and user demand fulfillment are reassessed. When a safety alarm occurs, the evaluation level drops, the overall score drops by more than a threshold, or the execution deviation exceeds a threshold, the smart terminal in the distribution area switches to the executable strategy that has most recently passed all hard constraint verifications in step S7 and been saved, and records the failure condition; when communication is interrupted or the credibility of key data is insufficient, it switches to the preset conservative strategy.
[0112] In one implementation, strategy parameters are solidified when three consecutive complete evaluation cycles achieve an excellent rating, and the node voltage fluctuation amplitude does not exceed 0.02 pu, the distribution transformer load rate fluctuation amplitude does not exceed 5%, and the user charging completion rate fluctuation amplitude does not exceed 3%. To avoid premature termination due to random fluctuations in a single cycle, the convergence condition for this round is only determined when the comprehensive score improvement is less than 0.5 points for at least two consecutive evaluation cycles. The above thresholds can be configured separately for residential, industrial and commercial, and high distributed energy penetration areas.
[0113] Example 2:
[0114] Simulation example of a 400kVA residential transformer substation;
[0115] A low-voltage distribution area with a rated capacity of 400kVA, connected to a 120kW distributed photovoltaic system and 20 7kW AC charging piles was selected. The evaluation period was one day, and the control granularity was 15 minutes. The overall assessment level under the initial strategy was qualified. The main shortcomings were insufficient distributed energy consumption at noon and high transformer load rate during the evening peak. The initial value of the safety amplification factor was 1.8. The maximum single-step positive sum of the positive reward weights α, β, and γ, after normalization, did not exceed 4.5. The safety over-limit indication penalty weight... Take 10.
[0116] The bottleneck parameter mapping module increases the weight of safety and absorption targets, tightens the upper limit of charging power during the evening peak, relaxes the boundary of charging power that can absorb photovoltaic power during midday, and configures the V2G discharge triggering period to be during the evening peak. Candidate strategies are only issued after a 15-minute granular power flow verification, provided that the voltage of each node, transformer capacity, vehicle state of charge, and user off-site demand all meet the constraints. After execution, the mapping matrix is updated based on actual bottleneck changes; if the response residual exceeds the limit, the matrix is not updated and the most recently verified executable parameters are restored.
[0117] Under the same simulation model, the same load and photovoltaic scenario set, and the same training termination criteria, the scheme of this invention can be compared with the ordinary multi-agent scheme with fixed weight optimization and no bottleneck mapping, the bottleneck mapping scheme without safety priority amplification, and the scheme of this invention. The results of 68 rounds, 94 rounds, and 126 rounds given in the revised draft can be used as records under this specific simulation configuration, but their convergence improvement is not a necessary effect applicable to all transformer areas; in engineering applications, the scenario set, random seed, baseline algorithm parameters, and statistical interval should be retained.
[0118] Example 3:
[0119] Multiple bottlenecks and extreme operating conditions;
[0120] In scenarios involving midday solar curtailment and evening peak low-voltage concurrency, the safety dimension amplification matrix first increases the correction magnitude of the low-voltage bottleneck on power boundaries and reactive power setpoints, and then increases the weight of the absorption target within the safe and feasible domain. Compared with equal-amplitude correction for each bottleneck, this approach prioritizes eliminating voltage exceedances in candidate strategies; if exceedances still exist, the safety verification module directly intercepts them, rather than offsetting safety non-compliance with the increase in absorption rate.
[0121] In scenarios where continuous rain leads to zero photovoltaic output and charging piles are concentrated during the evening peak, the bottleneck vector manifests as distribution transformer load and node voltage safety bottlenecks. The mapping module tightens the charging power boundary and increases V2G or energy storage discharge demand. If vehicle availability, state of charge, or user authorization does not support V2G, the system only adopts orderly charging, energy storage, or reactive power regulation, and uses the user's target state of charge upon leaving the station as a hard constraint to avoid assuming that all vehicles can discharge.
[0122] The above embodiments are illustrative of the present invention and not intended to limit the invention. Equivalent substitutions made without departing from the technical concepts of multidimensional bottleneck coding, security priority parameter mapping, bounded response updating, hierarchical security training, and simulation backoff loop closure should all fall within the protection scope of the present invention.
Claims
1. A safety-priority, short-board mapping-driven iterative optimization method for vehicle-to-grid cooperative transformer substations, characterized in that, S1. Perform unified modeling of resources, data, and constraints in the transformer area, and carry out data governance; S2. Perform a four-dimensional evaluation on the established model and generate a weakness vector; S3. Initialize the parameter mapping matrix with power flow sensitivity, and prioritize the correction of safety-related parameters by amplifying the matrix through the safety dimension when multiple weak boards are running concurrently. S4. Based on the actual bottleneck response after the candidate strategy is executed, the mapping matrix is updated in a bounded manner; S5. A tiered reward system is adopted, consisting of penalties for exceeding safety limits, penalties for risk levels, and penalties for execution deviations. S6. Incorporate the weakness vector into the agent's state to generate candidate policies; S7. Perform all-time safety verification through power flow simulation; S8. Complete the closed loop by backtracking from the previous feasible strategy and solidifying the steady state.
2. The vehicle-to-grid cooperative area iterative optimization method driven by safety priority bottleneck mapping according to claim 1, characterized in that, S1. A unified model is established for the resources, data, and constraints of the transformer area, and data governance is performed as follows: Establish a resource object model for the transformer area; the resource object model for the transformer area includes distributed energy, distribution network, conventional and adjustable loads, electric vehicle charging and discharging resources, and energy storage resources. Distributed energy includes controllable or observable photovoltaic and wind power sources within the distribution area; the power distribution network includes distribution transformers, busbars, lines, and switches; the load includes conventional loads and adjustable loads; electric vehicle resources include charging facilities, vehicle charging and discharging capabilities, and user demand; energy storage resources include independent energy storage and adjustable energy storage devices; and the relationships between the above devices and measurement points, control points, and operational constraints are established respectively. The data includes baseline evaluation period data before strategy execution and effect evaluation period data after strategy execution; the data is then subjected to time alignment, missing data repair, anomaly identification, standardization, and data credibility calibration.
3. The vehicle-to-grid cooperative area iterative optimization method driven by safety priority bottleneck mapping according to claim 2, characterized in that, In step S1, dynamic data from different sources are uniformly resampled to the same time granularity. The dynamic data includes at least node voltage, branch current, active power, reactive power, distribution transformer load rate, distributed energy output, electric vehicle charging and discharging power and state of charge, energy storage power and state of charge, and control command feedback data. Interpolation is used to repair continuous missing data for no more than two sampling periods, and similar daily data is used to complete long-term missing data with periodic characteristics. Outliers are identified by combining statistical boundaries and equipment physical boundaries. The data reliability coefficient is calculated based on data integrity rate, timeliness, and outlier rate.
4. The vehicle-to-grid cooperative area iterative optimization method driven by safety priority bottleneck mapping according to claim 1, characterized in that, S2. Perform a four-dimensional evaluation on the established model and generate the bottleneck vector as follows: A four-dimensional evaluation index system is constructed, which includes security, economy, absorption capacity and operation and maintenance quality. The final weight of the index is calculated based on subjective weight, objective weight, scenario correction coefficient and data credibility coefficient. Standardization is performed according to the indicator attributes: positive indicators with larger values are standardized in the positive direction, negative indicators with smaller values are standardized in the negative direction, and indicators with target ranges are standardized according to their deviation from the target range. All indicators are uniformly converted into benefit-type standardized indicators with the same value range and larger values indicating better operating status. A shortcoming vector is generated based on the degree of non-compliance of the standardized indicators, the degree of deterioration in adjacent evaluation periods, and data uncertainty.
5. The vehicle-to-grid cooperative area iterative optimization method driven by safety priority bottleneck mapping according to claim 4, characterized in that, The safety assessment indicators in step S2 include node voltage compliance rate, transformer load rate compliance rate, branch current over-limit degree, and reverse power flow over-limit degree. Economic evaluation indicators include electricity purchase cost, line loss cost, and V2G revenue; The evaluation indicators for energy absorption capacity include distributed energy absorption rate, curtailment rate, and source-load timing matching degree; The evaluation indicators for operation and maintenance quality include the timeliness of response to control commands, the accuracy rate of prediction, equipment availability, and policy execution deviation. In step S2, the benefit-type standardized index refers to the index whose larger value indicates a better operating status after being standardized in a positive, negative or target range manner; for standardized indices whose data credibility is not lower than the credibility threshold, the non-compliance component and the deterioration trend component increase as the index deviates from the compliance threshold and the decline in adjacent periods; for safety indices whose data credibility is lower than the credibility threshold, the uncertainty component is added and conservative operating parameters are triggered.
6. The vehicle-to-grid cooperative area iterative optimization method driven by safety priority bottleneck mapping according to claim 1, characterized in that, S3. A power flow calculation model for the transformer area is formed by initializing the parameter mapping matrix based on power flow sensitivity. When multiple fault boards are running concurrently, safety-related parameters are preferentially corrected through a safety dimension amplification matrix. This constitutes a multi-objective optimization model for the vehicle-to-grid cooperative transformer area. The power flow calculation model for the transformer substation is an electrical calculation model established based on the transformer substation topology, line impedance, distribution transformer parameters, distributed energy equipment parameters, electric vehicle charging and discharging facility parameters, energy storage parameters, and load data. The vehicle-to-grid (V2G) cooperative distribution area multi-objective optimization model aims at safety, economy, absorption capacity, and operation and maintenance quality, and is constrained by transformer capacity, node voltage, branch current, equipment power, state of charge, and user demand. The model calculates the sensitivity of each bottleneck index relative to the parameters of the V2G cooperative distribution area multi-objective optimization model using a distribution area power flow calculation model, and initializes the mapping matrix from bottleneck vectors to multi-objective optimization model parameters. When a bottleneck in the safety dimension and at least one bottleneck in the non-safety dimension simultaneously exceed their corresponding trigger thresholds, an amplification factor greater than that for the non-safety dimension is applied to the column in the mapping matrix corresponding to the bottleneck in the safety dimension. The amplified bottleneck vector is then mapped to a parameter correction value, and the updated multi-objective optimization model parameters are obtained by projection through the safe feasible region.
7. The vehicle-to-grid cooperative area iterative optimization method driven by safety priority bottleneck mapping according to claim 1, characterized in that, S4. Based on the actual bottleneck response after the candidate strategy is implemented, the mapping matrix is updated in a bounded manner as follows: When there is a candidate strategy execution record from the previous complete evaluation period, the mapping matrix is updated with step size upper limit and element boundary based on the response residual between the actual change of the short-board vector and the predicted change of the mapping matrix from the previous complete evaluation period. The initial mapping matrix is used in the first iteration. When the data credibility of any key security measurement point or any key security indicator calculated from it is lower than the credibility threshold, stop updating the mapping matrix and enable conservative parameters. When a safety alarm occurs, the topology of the transformer area or the parameters of the equipment change, or the response residual exceeds the residual threshold, the mapping matrix is stopped from being updated, and the power flow sensitivity is recalculated or conservative parameters are used. In step S4, when the topology of the transformer area changes, the rated parameters of the equipment change, or the response residual continuously exceeds the threshold, the power flow sensitivity is recalculated and the mapping matrix is reset.
8. The method for iterative optimization of vehicle-to-grid cooperative substations driven by safety priority and short-board mapping according to claim 1, characterized in that, S5. A tiered reward system is established using penalties for exceeding safety limits, penalties based on risk levels, and penalties for execution deviations: Construct a multi-agent shared reward function, taking the changes in comprehensive evaluation scores, changes in grades, and improvements in shortcomings as positive terms, and taking violations of safety constraints and deviations in control execution as penalty terms; Bounded normalization is applied to each term, and the penalty weight for exceeding the safety limit is set to be greater than the maximum possible sum of all positive terms in a single decision step. The bottleneck vector is embedded into the agent's state space, and the policy network is trained using a centralized training and distributed execution approach.
9. The vehicle-to-grid cooperative area iterative optimization method driven by safety priority bottleneck mapping according to claim 8, characterized in that, When using the multi-agent near-end policy optimization algorithm in step S5, a multi-agent shared reward function is constructed. The shared reward value is calculated based on the joint state, joint action, and environmental feedback of each agent. The advantage function is estimated based on the shared reward value, and the policy network is updated with a policy objective that uses importance ratio limiting. Trajectories containing at least one risk event among node voltage over-limit, transformer overload, branch current over-limit, reverse power flow over-limit, or unmet user charging demand are identified as high-risk trajectories. The training trajectory for this round is collected using the current strategy, and the high-risk trajectory is sampled in layers according to risk level within the current trajectory buffer to construct a training batch. When using the off-policy reinforcement learning algorithm, the high-risk trajectory is replayed from the experience pool according to risk priority, and the sampling bias caused by non-uniform sampling is corrected by using importance sampling weights.
10. The safety-priority short-board mapping driven vehicle-to-network cooperative area iterative optimization method according to claim 1, characterized in that, S6. Incorporate the weakness vector into the agent's state to generate candidate policies as follows: Based on the updated optimization model parameters and strategy network, candidate strategies including orderly charging of electric vehicles, V2G charging and discharging, active and reactive power regulation of distributed energy and energy storage regulation are generated. In the training batch, high-risk trajectories containing node voltage over-limit, transformer overload, branch current over-limit, unmet user charging demand, or reverse power flow over-limit are sampled in a stratified manner, and importance correction or amplitude limiting correction is introduced for non-uniform sampling. S7. All-time safety verification is performed using power flow simulation: Input the generated candidate strategies into the power flow calculation model of the transformer area or the digital simulation environment of the transformer area; The digital simulation environment for the distribution area is constructed based on the distribution area topology, line impedance, parameters of distribution transformers and controllable equipment, load and distributed energy prediction scenarios, and control interfaces, and performs time-series power flow calculations. According to the safety margin determined based on load prediction error, distributed energy prediction error, and power flow model error, the capacity of distribution transformers, node voltage, branch current, state of charge of electric vehicles, target state of charge when users leave the station, V2G user authorization status, battery allowable charge and discharge boundaries, reverse power flow, and the executability of control commands are verified time by time. If any hard constraint condition is not met, the candidate strategy generated in step S6 is intercepted and the process returns to step S3; execution can only be initiated when all hard constraints are met and the prediction evaluation result is not lower than the most recent executable strategy that has passed all hard constraint verifications in step S7 and has been saved. S8. The closed loop is completed by rolling back the most recently verified executable strategy and solidifying the steady state: Collect the actual execution results of the candidate strategies and re-execute steps S2 to S7; when the actual execution triggers a security alarm, the evaluation level drops, the overall score drops beyond the rollback threshold, or the execution deviation exceeds the deviation threshold, roll back to the most recent executable strategy that has passed all hard constraint verifications in step S7 and been saved. When a candidate strategy reaches the target level for multiple consecutive evaluation cycles and the fluctuations in key security indicators and user requirement completion rates meet steady-state conditions, the strategy parameters are solidified. The current iteration is terminated when the improvement in the overall score over multiple consecutive evaluation periods is less than the convergence threshold.
11. The safety-priority short-board mapping driven vehicle-to-network cooperative area iterative optimization method according to claim 10, characterized in that, In step S8, the steady-state conditions include: reaching the target level for at least three consecutive evaluation cycles; the node voltage fluctuation amplitude not exceeding the preset voltage fluctuation threshold; the distribution transformer load rate fluctuation amplitude not exceeding the preset load rate fluctuation threshold; and the user charging completion rate fluctuation amplitude not exceeding the preset completion rate fluctuation threshold. The convergence condition includes that the improvement in the comprehensive score for at least two consecutive evaluation cycles is less than the preset convergence threshold.
12. The iterative optimization method according to any one of claims 1-11, utilizing a safety-priority short-board mapping-driven vehicle-network cooperative area iterative optimization system, characterized in that, It includes a data acquisition and governance module, a multi-dimensional evaluation module, a shortcoming diagnosis module, a shortcoming parameter mapping module, a multi-agent evolution module, a safety verification module, a policy execution module, and a policy solidification and rollback module. Each module is configured to execute the above-mentioned vehicle-to-grid cooperative area iterative optimization method driven by the safety-first shortcoming mapping. The output of the data acquisition and governance module is connected to the multi-dimensional evaluation module. The output of the multi-dimensional evaluation module is connected to the bottleneck diagnosis module and the policy solidification and rollback module. The bottleneck diagnosis module, bottleneck parameter mapping module, multi-agent evolution module, safety verification module, and policy execution module are connected in sequence. The execution feedback of the policy execution module is connected to the data acquisition and governance module, forming a closed loop. The bottleneck parameter mapping module includes a power flow sensitivity initialization unit, a safety priority amplification unit, a safe feasible region projection unit, and a bounded update unit for the mapping matrix. The outputs of the power flow sensitivity initialization unit and the safety priority amplification unit are connected to the safe feasible region projection unit. The feedback of the safe feasible region projection unit and the policy execution module is connected to the bounded update unit for the mapping matrix. The multi-agent evolution module includes a hierarchical reward unit, a bottleneck state embedding unit, and a high-risk trajectory hierarchical sampling unit. The three of them jointly provide rewards, states, and training samples to the policy network training process. The multi-agent evolution module and security verification module are deployed on a cloud platform, while the data acquisition and governance module, policy execution module, and the storage unit for the most recently verified executable policy are deployed on the smart distribution terminal. The cloud platform and the smart distribution terminal are connected via a communication network. The smart distribution terminal collects data from distribution transformers, lines, and distributed energy sources through the smart distribution transformer terminal interface and interacts with electric vehicle charging and discharging facilities through an open charging protocol interface. The cloud platform synchronizes the verified policy network and parameters to the smart distribution terminal according to the evaluation cycle. In the event of communication interruption, security alarm, or insufficient credibility of key data, the smart distribution terminal switches to the most recently verified executable policy or a preset conservative policy.
