Port micro-grid peak shaving control method and system based on refrigerated container cluster response
By adopting a peak-shaving control method for port microgrids based on refrigerated container cluster response, the problems of unutilized individual container differences and uncoordinated energy storage were solved. This method achieved coordinated peak shaving between refrigerated containers and energy storage, avoiding secondary peaks and temperature safety risks, and improving the peak-shaving efficiency and stability of the port microgrid.
Patent Information
- Application Number
- CN202611674126.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
The existing peak-shaving control method for cold storage containers in the port area microgrid fails to effectively utilize the individual differences of cold storage containers, resulting in a static overestimation of cluster capacity, unconstrained load recovery, and a lack of coordination between cold storage containers and energy storage, leading to peak-shaving safety and secondary peak issues.
The peak-shaving control method for port microgrids based on refrigerated container cluster response collects port area and refrigerated container operation data, establishes an electrothermal coupling model, estimates thermal state and temperature safety margin, predicts control trajectory, forms adjustable power and response capability of a single container, aggregates cluster power-duration guarantee envelope, coordinates refrigerated containers and energy storage to jointly undertake peak shaving, and constructs an optimization model to achieve safe and smooth peak-shaving control.
It achieves sustainable response capability relay of refrigerated containers, avoids overestimation of capacity, reduces deep energy storage cycles, suppresses secondary peaks, ensures cargo temperature safety, and achieves stability and efficiency of peak shaving through rolling correction and local protection.
Smart Images

Figure CN123184074A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of integrated energy and cold chain load control technology in ports, and in particular to a peak-shaving control method and system for port microgrids based on refrigerated container cluster response. Background Technology
[0002] With the continuous integration of port electrification equipment, distributed new energy sources, and energy storage devices, the peak load of the port microgrid is gradually being formed by loading and unloading equipment, vehicle charging, shore power, refrigerated container refrigeration, and production auxiliary systems. Refrigerated containers are typically arranged in rows in the yard and centrally powered by refrigerated container socket boxes or distribution boxes. While the rated power of a single container is not high, when hundreds to thousands of refrigerated containers are operating, defrosting, or resuming refrigeration simultaneously, the aggregated power can constitute a considerable continuous load in the port area, potentially overlapping with peak operations of quay cranes, yard cranes, and charging facilities. The short-term thermal inertia formed by the insulation structure of the refrigerated container body, the heat capacity of the cargo, and the allowable temperature range gives it the potential to participate in peak shaving of the port microgrid as a flexible load.
[0003] Current port energy management systems often incorporate refrigerated container power into historical total load forecasting, or estimate electricity demand solely based on rated power and the number of containers, treating refrigerated containers as uncontrollable fixed loads that can only be addressed by utilizing energy storage for peak shaving after peak loads are reached. When refrigeration load is directly used as a general demand response resource, refrigeration power is typically reduced according to a uniform ratio or duration, or the cluster's peak-shaving capacity is represented solely by the sum of adjustable power. Some solutions employ model predictive control, virtual power plants, or general flexible load aggregation technologies to provide a rolling optimization and resource aggregation framework, describing the adjustable range using upper and lower load bounds.
[0004] The aforementioned existing technologies have the following shortcomings: Different refrigerated containers have varying cargo types, target temperatures, arrival times, internal temperatures, environmental exposure, door operations, defrosting stages, compressor status, and equipment health conditions. Uniformly reducing these parameters can easily cause refrigerated containers with unfavorable thermal conditions to exceed the safe upper limit for cargo temperature. Furthermore, the responsiveness of refrigerated containers exhibits significant time coupling; simply adding the rated power or instantaneous adjustable power of all individual containers statically overestimates the continuous peak-shaving capability and fails to answer how long the cluster can continuously respond at a given power. Finally, the load recovery after peak shaving lacks constraints, and the simultaneous recovery of a large number of refrigerated containers can lead to problems. Cold may create a secondary peak with an amplitude similar to the original peak, and existing methods usually do not record the delayed cooling power and do not include recovery demand in subsequent scheduling; in addition, the monitoring data of the cold storage box and the operation data of the microgrid come from different systems, with inconsistent sampling periods and time scales. If communication interruptions, sensor anomalies and defrosting processes are not effectively eliminated, thermal model parameters and responsiveness will be distorted; there is also a lack of coordination between the cold storage box and energy storage. If the continuous peak is fully borne by the energy storage, it will increase the depth of charge and discharge and the equivalent cycle number. If the response is fully relied on the cold storage box, it will be difficult to compensate for execution differences and short-term power fluctuations. Summary of the Invention
[0005] To address the issues of peak shaving safety and secondary peak load caused by fixed loads of refrigerated containers, unutilized individual container differences, static overestimation of cluster capacity, unconstrained recovery loads, and incoordination with energy storage, this invention provides a peak shaving control method and system for port microgrids based on refrigerated container cluster response.
[0006] The technical solution adopted by this invention to solve its technical problem is: a peak-shaving control method for port microgrids based on refrigerated container cluster response. Preferably, S1: collect port operation data and refrigerated container operation data; S2: establish an electrothermal coupling model for each refrigerated container, estimate the current thermal state and determine the temperature safety margin, predict two control trajectories: normal cooling and peak-shaving response, and form a single-container response capability consisting of adjustable power per container, sustainable response duration per container, and unpaid recovery demand; S3: within the rolling prediction time domain, based on the available state, temperature trajectory, and cumulative response constraints of each refrigerated container for each time period, aggregate to form a cluster power-duration guarantee envelope that supports group relay; S4: calculate the target peak-shaving power of the port microgrid, and determine the peak-shaving power to be controlled by the refrigerated containers, provided that the upper limit of the safe grid-connected power of the equipment is not exceeded. S5: Construct a collaborative peak-shaving optimization model for refrigerated container clusters and energy storage, with the goals of grid-connected peak cost, electricity purchase and energy storage operation cost, temperature deviation, response fairness, and recovery smoothness cost. Under the soft constraints of cargo temperature safety, energy storage state of charge, peak-shaving target grid-connected power, and equipment safety grid-connected power, solve for the refrigerated container response command and energy storage power; S6: Issue and execute the refrigerated container response command and energy storage power. When the actual response of the refrigerated container cluster is lower than the planned response, the energy storage compensates for the rapid deviation within its safety boundary; S7: Based on the temperature, power, and grid connection point status feedback after execution, update the single container response capability, cluster power-duration guarantee envelope, unpaid recovery demand, and recovery plan when the preset conditions are met, and perform rolling re-optimization.
[0007] Preferably, in S1, the data from the refrigerated container monitoring system, the port microgrid energy management system, the photovoltaic monitoring system, the energy storage battery management system, and the grid-connected metering device are aligned with a unified timestamp, and data from different sampling periods are mapped to a unified scheduling period and quality indicators are retained; the port operation data includes the port load after removing the refrigerated container cooling power, the output of new energy sources, the energy storage operation status, the grid connection point power, the upper limit of the peak-shaving target grid connection power, and the upper limit of the safe grid connection power of the equipment; the refrigerated container operation data includes the container temperature, target temperature, ambient temperature, cooling power, compressor status, cargo category, cargo temperature sensitivity level or response authority, alarm status, and communication status.
[0008] Preferably, in the S2 electrothermal coupling model, the equivalent heat capacity and equivalent thermal resistance characterize the heat storage and heat transfer of the container, cargo, and air inside the container. The inputs include ambient temperature, container temperature, cargo additional heat load, door opening or defrosting additional heat load, and refrigeration power. The control quantity of the fixed-frequency unit is the compressor start-stop variable, and the control quantity of the variable-frequency unit is the normalized refrigeration ratio from 0 to 1. The model parameters are identified from historical temperature and power sequences and corrected by rolling residuals. When the container door is opened, defrosting, or loading and unloading occurs, it is marked as a non-stationary thermal disturbance period, and the stable heat transfer parameters are not updated to improve the prediction uncertainty margin.
[0009] Preferably, in step S2, the difference between the upper limit of temperature safety and the current chamber temperature is defined as the temperature safety margin, and the lower limit of temperature safety is the recovery hard constraint; the adjustable power of a single chamber is: ; in, For the first The first refrigerator Adjustable power per unit during different time periods For the first The first refrigerator Normal cooling baseline power during the period, For the first The first refrigerator Candidate peak-shaving command power for the time period; Sustainable response time per unit: ; in, For the sustainable response time of a single container, For continuous scheduling steps, The length of the scheduling period. For the first box future The conservative upper side temperature prediction value of the step, The upper limit of temperature safety; the outstanding recovery requirements are: ; in, For the first Box No. The demand for recovery of outstanding debts during the period The actual or planned cooling capacity is used; a single container response priority is generated based on temperature safety margin, duration of operation, adjustable power, communication availability, cargo sensitivity level, recent cumulative response duration, and outstanding recovery requirements.
[0010] Preferably, in S3, the cluster power-duration guarantee envelope is the adjustable power of a single container that meets local availability conditions, aggregated time-by-time within the rolling prediction time domain. For a given continuous response duration, response participation variables for each container in each future time period are introduced. Under the constraints of single-box temperature safety, continuous duration, minimum compressor start-up and shutdown, and maximum continuous response, the minimum value of the aggregate adjustable power in the continuous time domain is taken and then maximized, that is: ; in, For clusters in time periods future Power-duration guarantee envelope for each time period, This represents the total number of refrigerated containers. For the first The box in the future The response variables for each time period take values from 0 to 1. For the first box future Adjustable power per unit during a given time period; allows different refrigerated units to be grouped and rotated or relayed; aggregates the equivalent heat that each unit can absorb from its current temperature to the safe upper limit into the equivalent thermal energy storage capacity of the cluster, and constructs a virtual thermal energy storage state of the cluster to characterize the remaining reduction capacity, but does not replace the hard constraint of temperature safety for each unit.
[0011] Preferably, in step S4, the predicted non-refrigerated container port area load is added to the normal refrigeration baseline of refrigerated containers, and the predicted output of new energy sources is subtracted to obtain the predicted grid-connected power before peak shaving; a peak shaving target grid-connected power limit is set not higher than the upper limit of the safe grid-connected power of the equipment. The portion of the predicted grid-connected power exceeding this upper limit will be defined as the target peak-shaving power. ; in, For the first Target peak-shaving power for the period To predict the non-refrigerated container port load, For the first The normal cooling baseline power of the box Contribute to new energy forecasting The upper limit of the grid-connected power for peak shaving targets is determined; and the time-sharing load is determined based on the cluster guarantee envelope, available discharge power of energy storage, and energy.
[0012] Preferably, the objective function of the collaborative peak-shaving optimization model in S5 is: ; in, For the overall target value, For peak grid connection costs, The cost of purchasing electricity and operating energy storage, The costs associated with temperature deviation and recovery; hard constraints include: ; in, The lower limit of temperature safety, The temperature inside the chamber. To the upper limit of temperature safety, In the state of energy storage charge, and These are the upper and lower limits of the state of charge, respectively. For grid-connected power, To eliminate the peak-shaving gap, The model also satisfies the following constraints: temperature state transition, minimum compressor start-up and shutdown time, maximum continuous response time of a single unit, recovery interval, maximum response power of the cluster, upper limit of recovery power, ramp-up, and mutual exclusion constraints for energy storage charging and discharging.
[0013] Preferably, in S6 and S7, participating containers are selected based on the priority of single-container response and rotated in groups; when local rejection occurs, temperature approaches the upper limit, or actual adjustable power is insufficient, candidate containers fill the gap, and the remaining gap is compensated by energy storage; an account for unpaid recovery demand is established for each container, accumulating with response and clearing with recovery, and used as a rolling state quantity; after response, recovery is carried out in batches according to the grid-connected power margin, and the cluster recovery power and ramp-up rate are limited; a rolling update combining fixed period and event triggering is adopted, and when temperature prediction deviation, cluster response deviation, environmental or operational changes, grid connection approaches the protection threshold, energy storage available power changes, or the number of participating containers changes exceed the threshold, immediate reassessment and optimization are carried out; the control process is divided into four states: normal cooling, peak shaving preparation, cluster response, and recovery operation; when sensors are abnormal, communication is interrupted, model credibility is low, or instructions are not confirmed, the corresponding container is removed; when resources are insufficient, the unresolved peak shaving gap is retained and an alarm is triggered, and the cargo temperature safety boundary is not relaxed.
[0014] On the other hand, the port area microgrid peak-shaving control system based on refrigerated container cluster response includes: a data acquisition module for collecting port area operation data and refrigerated container operation data; a single container response capability assessment module for establishing an electrothermal coupling model for each refrigerated container, estimating the current thermal state and determining the temperature safety margin, predicting two control trajectories: normal cooling and peak-shaving response, and forming a single container response capability consisting of adjustable power, sustainable response duration, and unpaid recovery demand; a cluster peak-shaving capability aggregation module for aggregating and forming a cluster power-duration guarantee envelope that supports group relay within the rolling prediction time domain, based on the available status, temperature trajectory, and cumulative response constraints of each refrigerated container in each time period; and a peak-shaving demand calculation module for calculating the target peak-shaving power of the port area microgrid and, under the condition that the upper limit of the safe grid-connected power of the equipment is not exceeded, determining the peak-shaving demand of the refrigerated container cluster. The system comprises four modules: a time-sharing peak-shaving power shared by the refrigerated container cluster and energy storage; a collaborative optimization module for constructing a collaborative peak-shaving optimization model between the refrigerated container cluster and energy storage, aiming at grid-connected peak cost, electricity purchase and energy storage operation cost, temperature deviation, response fairness, and recovery smoothness cost, and solving for refrigerated container response commands and energy storage power under soft constraints of cargo temperature safety, energy storage state of charge, peak-shaving target grid-connected power, and equipment safety grid-connected power; a command issuance and execution module for issuing and executing the refrigerated container response commands and energy storage power, and for compensating for rapid deviations within its safety boundary when the actual response of the refrigerated container cluster is lower than the planned response; and a rolling correction module for updating the single-container response capability, cluster power-duration guarantee envelope, unpaid recovery needs, and recovery plan based on the temperature, power, and grid connection point status feedback after execution, and performing rolling re-optimization when preset conditions are met.
[0015] The beneficial effects of this invention are that it transforms the thermal inertia of the refrigerated container into a response capability with power, duration, and recovery requirements, and achieves group relay through a cluster power-duration guarantee envelope to avoid overestimation of capability; the refrigerated container and energy storage work together, with energy storage only compensating for gaps and rapid deviations, reducing deep cycling; the unpaid recovery requirement account and recovery power ramp-up constraint suppress secondary peaks; rolling correction and local protection ensure the safety of cargo temperature. Attached Figure Description
[0016] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely exemplary, and those skilled in the art can derive other embodiments based on the provided drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of the optimal embodiment of the port area microgrid peak-shaving control method based on refrigerated container cluster response of the present invention; Figure 2 This is a schematic diagram of the optimal embodiment of the port area microgrid peak-shaving control system based on refrigerated container cluster response of the present invention; Figure 3 This is a schematic diagram illustrating the process of forming virtual peak-shaving resources from a single-box thermal state according to the present invention; Figure 4 This is a schematic diagram illustrating typical temperature changes in a single chamber during the normal, response, and recovery phases of this invention. Detailed Implementation The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] This invention provides a method and system for peak-shaving control of port microgrids based on refrigerated container cluster response. The method is applicable to container terminals, cold chain yards, logistics parks, and other port areas with large-scale temperature-controlled loads, equipped with grouped refrigerated container sockets, remote monitoring systems for refrigerated containers, distributed photovoltaic systems, energy storage systems, port production loads, and grid-connected transformers. The refrigerated containers referred to in this invention are refrigerated containers that are powered by an external power source during storage in the port area, refrigerated by a compressor, and maintain their temperature using the thermal inertia of the container and cargo. The cluster response in this invention does not involve synchronously shutting down all refrigerated containers. Instead, it establishes verifiable time-varying peak-shaving capabilities based on the temperature safety margin, sustainable response duration, and outstanding recovery needs of each refrigerated container, and then works in conjunction with energy storage to achieve grid-connected peak control.
[0019] Example 1 Figure 1 A general flowchart of the peak-shaving control method for port microgrids based on refrigerated container cluster response, according to an embodiment of the present invention, is shown. Figure 1 As shown, the method of the present invention includes steps S1 to S7. Each step is described in detail below.
[0020] S1 collects port operation data and refrigerated container operation data.
[0021] In this step, refrigerated container objects, cargo location objects, power supply zone objects, energy storage objects, and port area load objects are established. The refrigerated container object includes at least the refrigerated container number, cargo location, target temperature, lower safe temperature limit, upper safe temperature limit, measured temperature, input power, compressor status, refrigeration unit type, rated power, door status, defrosting status, alarm status, and communication timestamp. The cargo location object records the mapping relationship between the yard area, socket box, distribution branch, and upstream transformer, used to determine which grid connection boundary each refrigerated container affects after participating in peak shaving. The power supply zone object records the zone load, photovoltaic access point, transformer rated capacity, operating limits, and reserve margin. The energy storage object records the state of charge, health status, temperature, allowable charge / discharge power, equivalent available capacity, and alarms. The port area load object records the port area load, photovoltaic output, grid-connected power, and prediction results after removing the refrigerated containers.
[0022] In a preferred implementation, in S1, data from the refrigerated container monitoring system, port microgrid energy management system, photovoltaic monitoring system, energy storage battery management system, and grid-connected metering devices are aligned using a unified timestamp. Each data source uses either the port's local standard time or Coordinated Universal Time (UTC) to establish a unified timeline. For data with different sampling periods, hold, aggregate, or interpolate methods are used to map them to a unified scheduling period, retaining the original values, quality flags, equipment numbers, cargo location numbers, and data update times. Second-level power data can be averaged or quantile-level within the scheduling period. Minute-level temperature data retains the most recent valid value and records the data age. Event-based alarms are not interpolated but remain valid from the time the event occurs until a cancellation message is received. All data that has undergone interpolation, hold, or anomaly repair retains a quality flag, and allowable quality levels are set for model training and online evaluation.
[0023] Port operation data includes port load excluding refrigerated container cooling capacity, renewable energy output, energy storage operation status, grid connection point power, peak-shaving target grid connection power limit, and equipment safe grid connection power limit. Refrigerated container operation data includes internal temperature, target temperature, ambient temperature, cooling capacity, compressor status, cargo category, cargo temperature sensitivity level or response authority, alarm status, and communication status. The alarm status includes one or more of the following: high temperature alarm, low temperature alarm, sensor malfunction, compressor failure, defrosting status, door open status, and communication interruption status.
[0024] To avoid the same refrigerated container power appearing simultaneously in both the port area load and the aggregated refrigerated container power, the aggregated refrigerated container power is preferentially deducted from the total port area load through dedicated refrigerated container branch metering. If there is no independent branch metering, corrections can be made based on the sum of the power of communicable individual containers and the socket branch summary meter. If the deduction error exceeds a threshold, it increases the uncertainty of the port area's basic load forecast and reduces the current cluster peak-shaving target.
[0025] When a temperature sensor exhibits a constant value, sudden spikes, exceeds its range, or shows abnormal differences compared to adjacent sensors, the corresponding refrigerator will be marked as having a sensor malfunction. If the communication data age exceeds a set value, the communication status will be set to unavailable. The aforementioned refrigerators do not participate in upper-level peak shaving, but local temperature control continues to maintain normal cooling. This process ensures that data loss only reduces available peak shaving resources and does not expand declarable capacity.
[0026] S2: Establish an electrothermal coupling model for each refrigerated container, estimate the current thermal state and determine the temperature safety margin, predict two control trajectories: normal cooling and peak-shaving response, and form a single-container response capability consisting of adjustable power of a single container, sustainable response time of a single container, and unpaid recovery demand.
[0027] like Figure 3 and Figure 4 As shown, the electrothermal coupling model characterizes the heat storage and transfer of the container, cargo, and internal air using equivalent heat capacity and equivalent thermal resistance. Inputs include ambient temperature, internal temperature, additional heat load from the cargo, additional heat load from door opening or defrosting, and cooling power. A preferred first-order electrothermal coupling state model is as follows: ; in, For the first The refrigerator was in the first The temperature inside the box at the start of each time period represents the temperature. For the first The refrigerator was in the first The temperature inside the box at the start of each time period represents the temperature. The length of a single scheduling period. For the first The equivalent heat capacity of a refrigerated container and its cargo. For the first The ambient temperature at each time period For the first The equivalent thermal resistance between the environment and the interior of the refrigerator. For the first The first refrigerator The equivalent heat load generated by cargo respiration, initial temperature difference, or other internal heat sources during a given time period. For the first The first refrigerator Additional heat load caused by door opening, loading / unloading, or defrosting during certain periods. For the first The equivalent coefficient for converting the electrical power input to the refrigeration unit of a refrigerator into its effective cooling capacity. For the first The effective rated input power of the refrigeration unit for each refrigerator. For the first The first refrigerator Normalized refrigeration control quantity for each time period. For fixed-frequency refrigeration units. Take either 0 or 1. For variable frequency chiller units, Take a value between 0 and 1, and have it converted by the local controller into a compressor frequency or cooling power setting.
[0028] The first-order model is not limited to a single structure. For scenarios requiring differentiation between the internal air temperature and the core cargo temperature, it can be extended to a two-node or multi-node thermal network. Regardless of the order used, the future internal temperature trajectory should be output, maintaining the physical correspondence between ambient heat input, cooling power, and cargo thermal inertia.
[0029] To reduce long-term drift caused by variations in enclosure dimensions, sensor bias, and unknown thermal disturbances, the controller uses the latest measured temperature to perform residual correction on the model results. Residual correction employs a first-order filtering method, recursively applying a smoothing coefficient to the equivalent temperature deviation from the previous time period and then adding it to the model output. When model reliability decreases or the status of door operation or defrosting is uncertain, the uncertainty margin of temperature prediction is increased, thereby reducing the salient response time.
[0030] When a new refrigerated container is first connected, initial values for equivalent heat capacity, equivalent thermal resistance, and coefficient of performance (COP) are selected from the parameter library based on the container type, target temperature zone, and cargo category. After obtaining normal operating data for at least a preset duration, the parameters are individually identified using the temperature response caused by compressor start-stop and the ambient temperature difference. Parameter identification samples should exclude periods of door opening, loading / unloading, active defrosting, high / low temperature alarms, sensor malfunctions, and prolonged communication interruptions. If the compressor status is available but the single-container power is unavailable, the effective rated power can be multiplied by the status or inverter ratio to approximate the single-container power, with the temperature prediction error scale increased accordingly. If both power and status are unavailable, individual adjustable power is not calculated, and only local normal temperature control is retained.
[0031] The difference between the upper limit of the safe temperature and the current chamber temperature is defined as the temperature safety margin, and the lower limit of the safe temperature is the recovery hard constraint. The temperature safety margin is expressed as: ; in, For the first The refrigerator was in the first This time period can be used to reduce the temperature safety margin for cooling. For the first The upper limit of the safe temperature for a refrigerator. For the first The first refrigerator The current internal temperature of the container during a given time period. The upper temperature safety limit is determined by the type of goods, cold chain regulations, or user settings. The lower temperature safety limit... The main constraints are on pre-cooling that may be implemented during the peak-shaving preparation phase and recovery cooling after the response; no control shall allow the temperature to fall below this lower limit.
[0032] The markings available for a single container are: ; in, For the first The refrigerator was in the first The available flag for each time period is set to 1 if all conditions are met, otherwise it is set to 0. Indicates an indicator function, For the first The communication availability status of each refrigerator is 1 when it is normal. For the first The warning sign indicates that the refrigerated container is affecting peak load regulation. For the first A sign indicating whether the refrigerated container door is open or for loading / unloading operations. For the first A defrost status indicator for the refrigerator. For the first Each refrigerated container allows for the minimum temperature margin required to participate in the response. This indicates that all conditions are met simultaneously. When the goods are set to prohibit response, a direct order is issued. It is 0.
[0033] Using the normal cooling baseline of the refrigerator when it is not participating in peak shaving as a reference, the adjustable power of a single refrigerator is: ; in, For the first The first refrigerator Adjustable power per unit during different time periods This is the normal cooling baseline power. The power is the candidate peak-shaving command power. The normal cooling baseline power is obtained based on the target temperature, current thermal state, and normal temperature control logic. The max function in the formula ensures that the adjustable power is not less than 0. If the fixed-frequency unit should be shut down in the current period, the normal cooling baseline power is 0, and its rated power is not falsely reported as the power that can be reduced.
[0034] Starting from the current time period, temperature trajectories are recursively extrapolated for candidate peak-shaving commands, and a conservative upper-side temperature is used instead of a single-point prediction to verify the safety boundary. The sustainable response time for a single container is: ; in, For the sustainable response time of a single container, For continuous scheduling steps, The length of the scheduling period. For the first box future The conservative upper side temperature prediction value of the step, To the upper limit of temperature safety, This is the prediction step number. Besides temperature conditions, the maximum value search is also constrained by the compressor's minimum downtime, the maximum allowed continuous downtime, and the user-defined response upper limit. A single-compartment peak-shaving response window is formed from the current moment to the end of the maximum time period.
[0035] To prevent reductions without subsequent recovery, an outstanding recovery demand account is established for each refrigerator unit. The account is represented by the delayed baseline cooling power consumption, and its status is updated as follows: ; in, For the first The first refrigerator The outstanding recovery needs for each period For the first The first refrigerator The outstanding recovery needs for each period The length of the scheduling period. For the first The first refrigerator Normal cooling baseline power during the period, For the first The first refrigerator Actual or planned cooling power for a given time period. Unpaid recovery demand is updated on a rolling basis between adjacent scheduling periods, measured in electrical energy. When the actual or planned cooling input power is lower than the normal cooling baseline, the unpaid recovery demand increases. When the recovery phase is higher than the normal cooling baseline, the account is gradually cleared. The max function in the formula ensures that the unpaid recovery demand does not take a negative value. This account only represents the power migration required for scheduling and does not replace the direct temperature verification of the thermal model.
[0036] The unpaid recovery demand is the cooling power that was delayed during the peak-shaving response period minus the cooling power that was compensated before the end of the response, and is converted into a recovery cooling plan after the response, which is constrained by the recovery duration and grid-connected power margin.
[0037] To balance safety margin, response contribution, and rotation fairness, a single-container response priority is constructed: ; in, For the first The first refrigerator The response priority for a given time period is limited to a value between 0 and 1. For the first The first refrigerator Available markers for time periods, This represents a limiting function that restricts the value to the range of 0 to 1. As a weight for temperature safety margin, For the first The first refrigerator Temperature safety margin during the period For the first Temperature bandwidth benchmark for a refrigerator Weighting for sustainable response time, For the first The first refrigerator Sustainable response duration over a given period For the first The response time benchmark for a refrigerator. For adjustable power weighting, For the first The first refrigerator Adjustable power per unit during different time periods For the first The rated power of each refrigerator. To restore the demand weight, For the first The first refrigerator The demand for recovery of outstanding debts during the period For the first The baseline for the recovery needs of a single refrigerator. Weighting historical responses For the first The first refrigerator The recent cumulative response time for the period, For the first Historical response time benchmarks for each refrigerated container. Temperature safety margin, sustainable response time, adjustable power per container, outstanding recovery needs, and recent cumulative response time are all uniformly taken from the current rolling scheduling period's state values, and normalized according to temperature bandwidth, response time benchmark, rated power, recovery needs benchmark, and historical response time benchmark, respectively. Five non-negative weights correspond to temperature margin, duration, adjustable power, recovery needs, and historical response burden, respectively. Cargo risk level can be reflected by adjusting the corresponding weights or directly restricting the available flags for a single container.
[0038] Each refrigerated container forms the following response capability triplet at any given scheduling moment: ; in, For the first The first refrigerator Description of response capability over a given time period For the first The first refrigerator Adjustable power per unit during different time periods For the first The first refrigerator Sustainable response duration over a given period For the first The first refrigerator The outstanding recovery needs during the time period. This triple simultaneously constrains the magnitude, duration, and subsequent recovery costs of the response.
[0039] S3: In the rolling prediction time domain, based on the availability status, temperature trajectory and cumulative response constraints of each refrigerated container in each time period, a cluster power-duration guarantee envelope that can support group relay is formed.
[0040] First, an available set is formed based on the availability flags of individual containers. Then, these containers are sorted from highest to lowest response priority. Sorting does not mean that the same batch of refrigerated containers with the largest temperature margin will always be used, as recent cumulative response time and outstanding recovery requests will increase with each response and lower subsequent priority. Through this feedback, refrigerated containers with similar safety conditions can be grouped and rotated, reducing excessive start-ups and shutdowns of local equipment.
[0041] Time period The instantaneous adjustable power of the cluster is: ; in, For the refrigerated box cluster in the first Instantaneous adjustable power for each time period The total number of refrigerated containers included in the target power supply zone or the same optimization model. For the first The first refrigerator The adjustable power of a single unit during a given time period. In this formula... It already includes available flags and the current thermal state impact.
[0042] To avoid overestimating the cross-period capability by instantaneous summation, further calculations are performed on future continuous time intervals. The set of single-bins that can maintain a response within a certain time period yields the cluster power-duration guarantee envelope: ; in, For clusters in time periods future Power-duration guarantee envelope for each time period, In response to the set of participating variables, Number the prediction step. For continuous scheduling steps, This represents the total number of refrigerated containers. For the first The next refrigerator Adjustable power per unit during different time periods For the first The refrigerator will be the first in the future The response participation variable for each time period takes a value from 0 to 1. This formula means that, within a given continuous forecast time domain, for all single-container relay allocation schemes that satisfy the constraints, first calculate the aggregate response power for each future scheduling time period and take the minimum value, then maximize this minimum value. Fixed-frequency units take a value of 0 or 1, while variable-frequency units can take a value within the range of 0 to 1. The cumulative participation time of each refrigerated container in the forecast time domain must not exceed its sustainable response time, and must simultaneously satisfy constraints on time-by-time availability, temperature state transition, minimum start-up and shutdown time, and maximum continuous response time. Therefore, after the first group of refrigerated containers exits, other refrigerated containers that still have thermal margin can take over, and it is no longer required that the same batch of refrigerated containers cover the entire peak range.
[0043] For a given target response power The cluster can guarantee a response time defined as follows: ; in, For cluster-guaranteed response duration, it represents the longest continuous time that can be covered within the rolling prediction time domain while ensuring that the power-duration guarantee envelope is not less than a given target response power. For continuous scheduling steps, The length of the scheduling period. For clusters in time periods future Power-duration guarantee envelope for each time period, Given a target response power, as the required duration increases, the available refrigeration unit, cumulative response time, and relay combination become more constrained, so the guaranteed power typically does not increase.
[0044] Different refrigerated containers can be grouped and rotated or relayed. During relay, the first group responds at the initial peak and gradually exits before approaching its own temperature or continuous response boundary. Subsequent groups enter before the previous group exits, allowing an executable handover of the effective response windows of different refrigerated containers within the rolling time domain. The entry, exit, and overlap of each group are determined by response-related variables, and energy storage only compensates for short-term ramps caused by group switching and actual execution deviations. The recovery plans for all exiting refrigerated containers are still constrained by recovery power and recovery ramp, and mutually canceling ineffective power cycles with refrigerated containers entering the response are not permitted.
[0045] The equivalent heat absorbed by each container as it rises from its current temperature to the safe upper limit is aggregated into the cluster's equivalent thermal energy storage capacity, and a virtual thermal energy storage state is constructed to characterize the remaining reduction capacity. The cluster's virtual thermal energy storage state is as follows: ; in, This represents the virtual thermal energy storage state of the cluster, and its value is typically limited to between 0 and 1. This represents the total number of refrigerated containers. For the first The equivalent heat capacity of a refrigerated container and its cargo. For the first The upper limit of the safe temperature for a refrigerator. For the first The first refrigerator The temperature inside the chamber during the period, For the first The lower limit of the temperature safety limit for each refrigerator compartment. The numerator represents the sum of the equivalent heat that each refrigerator compartment can still absorb. The denominator represents the maximum equivalent heat capacity from the lower limit to the upper limit of the temperature safety limit. The larger this value is, the more sufficient the heat margin is for the entire cluster to continue reducing its cooling power, but no cluster value can replace the safety check of a single compartment.
[0046] The maximum transferable cooling capacity that the cluster can provide under the current assessment results can be expressed as: ; in, This is the upper bound of the transferable cooling power of the cluster, based on the current single-container capacity. This represents the total number of refrigerated containers. For the first The first refrigerator Adjustable power per unit during different time periods For the first The first refrigerator The sustainable response duration for a given period. This upper bound is used for energy-scale screening; the actual executable power is still determined by the power-duration guarantee envelope and subsequent co-optimization.
[0047] S4: Calculate the target peak-shaving power of the port area microgrid, and determine the time-sharing peak-shaving power to be jointly undertaken by the refrigerated container cluster and energy storage, provided that the upper limit of the safe grid-connected power of the equipment is not exceeded.
[0048] Peak-shaving demand of the port area microgrid is calculated within a unified forecast time domain. To prevent double metering, other loads in the port area, excluding the separately modeled refrigerated container cooling power, are modeled separately from the normal cooling baseline of each refrigerated container. A further distinction is made between the peak-shaving target grid-connected power limit and the equipment safety grid-connected power limit. The former is used for contract demand control, economic peak shaving, or operational targets, allowing for soft constraints through unresolved peak-shaving gap variables when resources are insufficient. The latter is determined by transformer, line, or protection settings and is a hard boundary that cannot be breached. Normal settings ensure that the peak-shaving target grid-connected power limit does not exceed the equipment safety grid-connected power limit.
[0049] Add the predicted non-refrigerated container port load to the normal refrigerated container refrigeration baseline, subtract the predicted output of renewable energy sources, and obtain the predicted grid-connected power under non-peak-shaving conditions. Set a peak-shaving target grid-connected power limit that does not exceed the upper limit of the equipment's safe grid-connected power. The portion of the predicted grid-connected power exceeding this upper limit will be defined as the target peak-shaving power. ; in, For the first Target peak-shaving power for the period To predict the non-refrigerated container port load, This represents the total number of refrigerated containers. For the first Box No. Normal cooling baseline power during the period, Contribute to new energy forecasting The upper limit of the grid-connected power for peak shaving targets. Other load forecasts for the port area do not include the refrigeration power of refrigerated containers, which have been modeled separately. The normal refrigeration baseline for refrigerated containers is the sum of the normal control trajectories of each individual container. The predicted output of renewable energy is deducted from the net load. The upper limit of the grid-connected power for peak shaving targets is used for peak reduction targets, while the upper limit of the safe grid-connected power for equipment is treated as an independent hard constraint in subsequent constraints.
[0050] Refrigerated container clusters prioritize peak shaving within their guaranteed duration, while energy storage handles any remaining shortfalls and rapid fluctuations exceeding the cluster's capacity. For each time period, the peak shaving power allocation is as follows: ; in, For the first Target peak-shaving power for the period For the first The target power reduction for refrigerated container clusters during certain periods. For the first Time-of-use energy storage discharge power, For the first Time-of-use energy storage charging power, For the first The peak-shaving gap was not eliminated during the period. The target peak-shaving power reduction for the refrigerated container cluster and the net discharge power of energy storage share the target peak-shaving power. The uneliminated peak-shaving gap is a non-negative relaxation amount, which only indicates that the peak-shaving target has not been fully achieved and is subject to higher penalties and risk warnings. This relaxation amount can only relax the grid connection boundary of the peak-shaving target, not the hard boundary of the safe grid connection power of the equipment. Energy storage charging is usually not scheduled during peak-shaving periods, but charging is allowed when the output of new energy exceeds the load and the grid connection power has a margin.
[0051] The time-sharing allocation of peak load is determined based on the cluster's guaranteed envelope and the available discharge power and energy of the energy storage system. Peak load prediction outputs not only the maximum target peak load but also the peak start time, end time, duration, and uncertainty interval. The preparation time before the peak load begins should at least cover data updates, optimization solutions, command issuance, and minimum compressor start / stop constraints. When prediction uncertainty is high, peak load preparation can begin earlier, but significant pre-cooling is not necessary. If the predicted net load is only slightly higher than the peak load target grid-connected power limit for a short period, rapid smoothing by energy storage is prioritized. If the peak duration is long and the refrigerated container cluster has a corresponding guaranteed envelope, the cluster should be prioritized for the predictable portion. The specific allocation is determined by collaborative optimization.
[0052] S5: Construct a collaborative peak-shaving optimization model for refrigerated container clusters and energy storage. With the goals of grid-connected peak cost, electricity purchase and energy storage operation cost, temperature deviation, response fairness and recovery smoothing cost, and under the soft constraints of cargo temperature safety, energy storage state of charge, peak-shaving target grid-connected power and equipment safety grid-connected power, solve the refrigerated container response command and energy storage power.
[0053] Collaborative optimization aims at the sum of three types of costs, and its general expression is: ; in, For the overall target value, For peak grid connection costs, The cost of purchasing electricity and operating energy storage, The cost of temperature deviation and recovery; hard constraints include.
[0054] The peak load cost considers both the extent to which the power exceeds the allowable upper limit and the unresolved peak shaving gap. It is calculated by multiplying the square of the positive portion of the grid-connected power exceeding the peak shaving target's upper limit by an over-limit penalty coefficient, adding the square of the unresolved peak shaving gap by a gap penalty coefficient, and then summing these values over the optimization time domain. The first penalty penalizes the degree to which the actual grid-connected power exceeds the peak shaving target's upper limit, while the second penalty penalizes the gap in the target peak shaving power that has not yet been eliminated by the refrigerated container cluster and energy storage. Both are soft costs at the peak shaving target level. Even with a large penalty coefficient, the hard constraints on cargo temperature, energy storage safety boundaries, and the hard upper limit of the safe grid-connected power of the equipment must not be altered.
[0055] The costs of electricity purchase and energy storage operation consist of time-of-use electricity purchase costs and energy storage charging and discharging losses or lifetime costs. Time-of-use electricity purchase costs are calculated by multiplying the electricity purchase price for each time period by the grid-connected power and the dispatch period length. Energy storage operation costs are calculated by multiplying the equivalent loss or lifetime cost coefficient per unit charge / discharge capacity of the energy storage by the sum of the energy storage charging and discharging power and the dispatch period length. If the port area is charged based on maximum demand, the demand cost corresponding to the maximum grid-connected power during the optimization period can be added to the peak grid-connected cost.
[0056] Temperature and recovery costs are used to select the option with smaller temperature deviations, fewer start-ups and shutdowns, and smoother recovery from multiple feasible options that meet safety boundaries. Temperature and recovery costs include temperature deviation costs, compressor control change costs, unpaid recovery demand costs, response fairness costs, and recovery smoothing costs. Compressor control changes are calculated using the squared difference of control values between adjacent time periods to avoid cancellation between positive and negative changes. Response fairness costs are weighted by the recent cumulative response time based on the actual reduction ratio of a single container relative to the normal refrigeration baseline. Recovery smoothing costs are obtained by multiplying cluster recovery power by a concentration penalty coefficient, adding the square of the change in cluster recovery power between adjacent time periods multiplied by a rate of change penalty coefficient, and then summing over all time periods within the optimization time domain. Cluster recovery power is the sum of the positive power of all refrigerated containers above the normal refrigeration baseline. Higher temperature deviation weights and narrower allowable temperature bands can be assigned to high-risk goods.
[0057] The port area microgrid achieves active power balance during each dispatch period, meaning the power supply from the upstream grid, photovoltaic power, and energy storage discharge equals the power consumption from other loads in the port area, the refrigerated container cluster, and energy storage charging. If wind power, shore power, or other controllable resources exist in the port area, corresponding terms can be added while maintaining consistency in the positive and negative signs.
[0058] The state of charge (SBC) of energy storage is calculated recursively based on charge and discharge efficiencies. During charging, the SBC is increased by multiplying the charging power by the charging efficiency and the scheduling period length, then dividing by the equivalent available capacity of the energy storage. During discharging, the SBC is decreased by multiplying the discharging power by the scheduling period length, then dividing by the discharging efficiency and the equivalent available capacity of the energy storage. The available capacity and power of the energy storage are preferentially determined by the dynamic allowable values given by the battery management system based on the health status, temperature, and alarms.
[0059] Collaborative optimization must at least satisfy the following hard boundaries regarding temperature, energy storage, and grid connection: ;in, The lower limit of temperature safety, The temperature inside the chamber. To the upper limit of temperature safety, In the state of energy storage charge, and These are the upper and lower limits of the state of charge, respectively. For grid-connected power, To eliminate the peak-shaving gap, The upper limit of the safe grid-connected power for the equipment is defined. The upper and lower limits of temperature safety and the upper and lower limits of energy storage state of charge are both hard boundaries. The grid-connected power is first subject to the soft constraint of the upper limit of the peak-shaving target grid-connected power plus the unresolved peak-shaving gap, and must also meet the hard constraint of the upper limit of the safe grid-connected power for the equipment. The unresolved peak-shaving gap cannot be negative. Therefore, when peak-shaving resources are insufficient, the optimization model can remain feasible by increasing the unresolved peak-shaving gap, but cannot use this to exceed the safety boundaries of transformers or lines. When power is allowed to be fed back to the upstream grid, the hard lower limit of the grid-connected power can be changed to a corresponding negative value. The minimum start-stop time of the compressor, the maximum continuous response time, and the mutual exclusion conditions for energy storage charging and discharging, together with the above hard boundaries, serve as executable constraints.
[0060] The collaborative peak shaving optimization model also satisfies the following constraints: temperature state transition, minimum compressor start-up and shutdown time, maximum continuous response time of a single container, recovery interval, maximum cluster response power, upper limit of recovery power and ramping, and mutual exclusion constraints for energy storage charging and discharging.
[0061] During the rolling execution phase, the cluster optimization first provides the planned power reduction, and then the energy storage compensates for the difference between the planned value and the actual cluster response. The energy storage rapid control reference power is obtained by subtracting the actual power reduction of the refrigerated container cluster from the target peak-shaving reference power, and is then limited by the maximum allowable charging power and maximum allowable discharging power of the energy storage. This reference relationship still needs to be adjusted by the energy storage state of charge recursion and the energy storage safety boundary limit.
[0062] Collaborative optimization uses the current time to at least one recovery window after the expected peak ends as the optimization time domain. The scheduling cycle can be set to 1 minute to 15 minutes, and the optimization time domain can be set to 1 hour to 24 hours. Shorter cycles are used for temperature and cluster power correction, while longer time domains are used to determine whether the recovered load intersects with subsequent peaks. When fixed-frequency compressors use binary control variables, the model can be transformed into mixed-integer linear or mixed-integer quadratic optimization. When variable-frequency units use continuous power ratio, linear programming, quadratic programming, or model predictive control can be used. To control the solution workload of large-scale container groups, clustering can be performed first by temperature zone, thermal parameters, and priority, and group-level objectives can be obtained at the upper level. Then, the individual container response priorities can be decoded to the individual container level. After decoding, the individual container thermal model must be re-verified, and the group average temperature should not be used to replace the individual container boundary.
[0063] The constraints are prioritized as follows: cargo temperature safety and local equipment protection for refrigerated containers; energy storage safety and the hard boundary of grid-connected power for transformers and corresponding lines; executable peak shaving already entered the peak range; load smoothing restoration and fair rotation of refrigerated containers; and optimization of electricity purchase economy and energy storage lifespan. When the refrigerated container cluster and energy storage resources are insufficient to fully achieve the peak shaving target, an increase in the unresolved peak shaving gap is allowed, triggering an alarm, thereby relaxing the soft constraints at the peak shaving target level, but the upper limit of cargo temperature safety or the upper limit of grid-connected power for equipment safety must not be increased. If the predicted grid-connected power further approaches the hard boundary of equipment safety, a request is sent to the existing protection or emergency load limiting interface of the port area. After optimization, only the actions for the current scheduling period are executed, and future actions are reserved as plans. In the next period, the container temperature, single container power, port load, photovoltaic output, energy storage charge status, and equipment status are reread and solved in a rolling manner.
[0064] S6: Issue the refrigerated container response command and energy storage power and execute it. When the actual response of the refrigerated container cluster is lower than the planned response, the energy storage compensates for the rapid deviation within its safety boundary.
[0065] Refrigerated containers are selected to participate in the response based on their individual response priority and the required target peak-shaving power. Grouping and rotation are used to ensure that the cumulative response time of containers in the same group does not exceed a preset value. When a local controller of a container rejects a command, the temperature approaches the safety upper limit, or the actual adjustable power is lower than the command value, other containers are selected from the candidate queue to fill the gap. Any remaining gap that cannot be filled is quickly compensated by energy storage within its power and state of charge constraints.
[0066] The control parameters issued to the refrigerated container can be one of the following: allowable delay in startup duration, response end time, target power ratio, or target temperature offset. Regardless of the interface used, the local controller of the refrigerated container translates the commands into actions conforming to the manufacturer's control logic and exits early when the internal temperature approaches the upper temperature safety limit, an equipment alarm occurs, or the maximum continuous downtime is reached. The upper-level controller requires each command to have a reception confirmation and execution status. Unconfirmed refrigerated containers are not included in the actual power reduction of the cluster. Refrigerated containers that have been confirmed but whose actual power has not decreased have their credibility reduced based on power deviation. The energy storage compensates for these short-term deviations within allowable limits based on a fast reference relationship, preventing cluster execution differences from being directly transmitted to the grid connection point.
[0067] When energy storage compensation uses a unified notation for positive discharge and negative charging, the reference power for rapid energy storage control can be directly sent to the energy storage converter. If the system sets separate charging and discharging variables, positive values are mapped to energy storage discharge power, and negative absolute values are mapped to energy storage charging power. The local controller then applies limits based on the state of charge, battery temperature, health status, and converter alarms.
[0068] An unpaid recovery demand account is established for each refrigerated container, accumulating with peak-shaving response and being cleared as cooling resumes. This unpaid recovery demand account is used as a state variable for subsequent rolling optimization. After the response ends, not all refrigerated containers are simultaneously restored to above normal cooling capacity. Instead, recovery instructions are issued in batches based on the recovery availability margin between the port area's predicted grid-connected power and the peak-shaving target grid-connected power limit. The recovery power ramp-up rate of the cluster and adjacent scheduling periods is limited to prevent the formation of secondary load peaks after the response.
[0069] The upper limit of cluster recovery power is determined by the recovery margin between the predicted grid-connected power of the port area and the upper limit of the peak-shaving target grid-connected power. In addition to the recovery power upper limit, adjacent scheduling periods also satisfy recovery ramp-up constraints, meaning the absolute value of the difference between the cluster recovery power of adjacent periods does not exceed the recovery ramp-up upper limit. The recovery ramp-up upper limit is set based on the permissible degree of centralized compressor startup, transformer margin, and scheduling cycle. If the recovery power upper limit is 0, no centralized recovery cooling above the normal baseline will be scheduled for this period; only the necessary actions of the local temperature control to prevent temperature exceedances are permitted.
[0070] For the For each refrigerated container, the recommended recovery cooling power within a given recovery period is the normal cooling baseline power plus the outstanding recovery demand divided by the target recovery period, and is limited by the difference between the rated power and the normal cooling baseline power, taking the smaller of the two. The actual recommended recovery cooling power is also constrained by the cluster recovery power upper limit, the temperature safety lower limit, and the compressor operating status. The recovery order prioritizes refrigerated containers whose temperatures are close to the upper limit, have large outstanding recovery demands, and have no subsequent new peak window. Refrigerated containers with a large temperature margin are restored later. If the next peak is approaching, the recovery plan is jointly optimized with new peak-shaving preparations to avoid concentrated recovery followed by immediate load reduction.
[0071] S7: Based on the feedback of temperature, power and grid connection point status after execution, when the preset conditions are met, update the single-box response capability, cluster power-duration guarantee envelope, unpaid recovery requirements and recovery plan and perform rolling re-optimization.
[0072] A mechanism combining fixed-cycle rolling updates and event-triggered updates is adopted. When the difference between the predicted and measured values of the container temperature exceeds the temperature threshold, the difference between the actual power reduction of the cluster and the command value exceeds the power threshold, the ambient temperature or cargo operation status changes abruptly, the grid-connected power approaches the protection threshold, the available energy storage power changes, or the number of refrigerated containers participating in the response changes beyond the quantity threshold, the response capability assessment and collaborative optimization are immediately re-executed without waiting for the next fixed cycle.
[0073] Compare the measured temperature with the predicted temperature, and the actual response with the planned response. When the measured temperature rises faster than the predicted temperature, the adjustable power and response time of the refrigerator should be immediately reduced. When the actual response power is less than the commanded value, the reliability of the individual refrigerator or communication group should be reduced. The capability correction relationship is as follows: the corrected adjustable power of the individual refrigerator is obtained by multiplying the original adjustable power of the individual refrigerator by the correction factor. The correction factor is calculated by subtracting the ratio of the positive temperature deviation to the normalized temperature reference by temperature deviation correction gain from 1, and then subtracting the ratio of the positive power deviation to the normalized power reference by power deviation correction gain, and limiting it to the range of 0 to 1. When the corresponding difference is negative, it is treated as 0.
[0074] In addition to fixed-period rolling updates, event trigger flags are set. The event trigger flags are a logical OR of the following trigger conditions: temperature prediction deviation trigger condition, cluster response deviation trigger condition, grid connection risk trigger condition, and discrete state change trigger condition. The temperature prediction deviation trigger condition is that the maximum positive deviation of the measured temperature from the predicted temperature in all refrigerated containers is greater than or equal to the temperature deviation threshold. The cluster response deviation trigger condition is that the difference between the actual power reduction of the cluster and the commanded value is greater than or equal to the power deviation threshold. The grid connection risk trigger condition is that the grid connection power is greater than or equal to the grid connection power trigger threshold. The discrete state change trigger condition is that the discrete state change flag is equal to 1. When any Boolean condition is met, the event trigger flag is 1, and the response capability assessment and collaborative optimization are immediately re-executed. Each threshold is used to determine temperature prediction deviation, cluster response deviation, and grid connection risk, respectively. The discrete state flag is used to indicate significant changes in container door status, defrosting, communication, alarms, available energy storage power, or the number of participating containers.
[0075] The refrigerated container control process is divided into four states: normal cooling, peak shaving preparation, cluster response, and recovery. In normal cooling, the refrigerated container operates according to the local target temperature. When a peak is predicted in the port area and the cluster has effective response capability, it enters the peak shaving preparation state. Upon receiving a peak shaving request, it enters the cluster response state, lowering the power of participating refrigerated containers below their normal cooling power. After the peak ends, it enters the recovery state, controlling the container temperature to return to the target temperature. When the temperature recovers and no new adjacent peak occurs, it returns to normal cooling. If a new peak is immediately following the end of the previous one, the recovery state can directly transition to the peak shaving preparation state. If the peak prediction is canceled during the peak shaving preparation state, it returns to normal cooling.
[0076] When a refrigerated container's temperature sensor malfunctions, communication is interrupted, the thermal model's reliability falls below a threshold, or the control command is not acknowledged by the local controller, the corresponding refrigerated container will be removed from the respondable set. When the number of respondable refrigerated containers is insufficient, energy storage will be prioritized to cover the peak-shaving gap. When neither the refrigerated container cluster nor energy storage can fully meet the peak-shaving target, the peak-shaving gap will remain unresolved, and an alarm for exceeding grid-connected power limits will be generated. However, apparent peak-shaving capacity must not be obtained by relaxing the cargo temperature safety boundary. When the predicted grid-connected power further approaches the equipment's safe grid-connected power limit, the port's existing protection or emergency load limiting interfaces will be triggered.
[0077] For each thermal state estimation, response capacity calculation, refrigerated container screening, cluster capacity aggregation, peak shaving demand generation, collaborative optimization, control command, local rejection, state switching, recovery demand clearing and rolling correction, record the timestamp, refrigerated container number, cargo location number, model version, input data version, temperature prediction trajectory, response window, planned power, measured power, actual temperature, triggering reason and execution result to form a traceable port area refrigerated container cluster peak shaving control record.
[0078] Example 2 like Figure 2 As shown, the present invention also provides a port microgrid peak-shaving control system based on refrigerated container cluster response, incorporating the aforementioned port microgrid peak-shaving control method based on refrigerated container cluster response. The system includes a data acquisition module, a single container response capability assessment module, a cluster peak-shaving capability aggregation module, a peak-shaving demand calculation module, a collaborative optimization module, an instruction issuance and execution module, and a rolling correction module.
[0079] The data acquisition module is used to execute S1, collecting port area operation data and refrigerated container operation data. The module aligns data from the refrigerated container monitoring system, port microgrid energy management system, photovoltaic monitoring system, energy storage battery management system, and grid-connected metering devices using a unified timestamp, mapping data from different sampling periods to a unified scheduling time period and retaining quality indicators. Port area operation data includes port load after removing refrigerated container cooling power, renewable energy output, energy storage operation status, grid connection point power, peak-shaving target grid connection power limit, and equipment safe grid connection power limit. Refrigerated container operation data includes container temperature, target temperature, ambient temperature, cooling power, compressor status, cargo category, cargo temperature sensitivity level or response authority, alarm status, and communication status.
[0080] The single-box response capability assessment module is used to execute S2, establishing an electrothermal coupling model for each refrigerated box, estimating the current thermal state and determining the temperature safety margin, predicting two control trajectories: normal cooling and peak-shaving response, and forming the single-box response capability composed of the single-box adjustable power, the single-box sustainable response duration, and the unpaid recovery demand. The electrothermal coupling model characterizes the heat storage and heat transfer of the box, cargo, and internal air using equivalent heat capacity and equivalent thermal resistance. Inputs include ambient temperature, internal temperature, cargo additional heat load, door opening or defrosting additional heat load, and cooling power. The control variable for fixed-frequency units is the compressor start / stop variable. The control variable for variable-frequency units is a normalized cooling ratio from 0 to 1. Model parameters are identified from historical temperature and power sequences and corrected using rolling residuals. Door opening, defrosting, or loading / unloading are marked as non-stationary thermal disturbance periods; stable heat transfer parameters are not updated during these periods, and the prediction uncertainty margin is improved.
[0081] The cluster peak-shaving capacity aggregation module executes S3. Within the rolling forecast time domain, based on the availability status, temperature trajectory, and cumulative response constraints of each refrigerated container in each time period, it aggregates to form a cluster power-duration guarantee envelope that supports group relay. The cluster power-duration guarantee envelope is the adjustable power of a single container that meets local availability conditions, aggregated in each time period within the rolling forecast time domain. For a given continuous response duration, response participation variables for each container in each future time period are introduced. Under the constraints of single container temperature safety, sustainable duration, minimum compressor start / stop, and maximum continuous response, the minimum value of the aggregated adjustable power within the continuous time domain is taken and maximized. Different refrigerated containers are allowed to be grouped and rotated or relayed. The equivalent heat that each container can absorb from its current temperature to the safe upper limit is aggregated into the cluster's equivalent thermal energy storage capacity, and a virtual thermal energy storage state of the cluster is constructed to represent the remaining reduction capacity, but this does not replace the hard constraint of single container temperature safety.
[0082] The peak-shaving demand calculation module executes S4 to calculate the target peak-shaving power of the port area microgrid and, under the condition that the upper limit of the safe grid-connected power of the equipment is not exceeded, determines the time-sharing peak-shaving power to be jointly undertaken by the refrigerated container cluster and energy storage. The peak-shaving demand calculation module adds the predicted non-refrigerated container load of the port area to the normal refrigerated container cooling baseline, subtracts the predicted output of new energy sources, and obtains the predicted grid-connected power when peak shaving is not required. A peak-shaving target grid-connected power upper limit is set, not exceeding the upper limit of the safe grid-connected power of the equipment. The portion of the predicted grid-connected power exceeding this upper limit is determined as the target peak-shaving power, and the time-sharing share is determined based on the cluster guarantee envelope and the available discharge power and energy of the energy storage.
[0083] The collaborative optimization module executes S5 to construct a collaborative peak-shaving optimization model for refrigerated container clusters and energy storage. With the objectives of grid-connected peak cost, electricity purchase and energy storage operation cost, temperature deviation, response fairness, and recovery smoothness cost, it solves for the refrigerated container response command and energy storage power under soft constraints of cargo temperature safety, energy storage state of charge, peak-shaving target grid-connected power, and equipment safety grid-connected power. The objective function of the collaborative peak-shaving optimization model is that the total objective value equals the sum of the grid-connected peak cost, electricity purchase and energy storage operation cost, and temperature deviation and recovery cost. Hard constraints include upper and lower limits for temperature safety, upper and lower limits for energy storage state of charge, upper and lower limits for grid-connected power, and non-negativity of the unresolved peak-shaving gap. The model also satisfies constraints on temperature state transition, minimum compressor start-up and shutdown time, maximum continuous response time per container, recovery interval, maximum cluster response power, upper limit of recovery power and ramp-up, and mutual exclusion constraints for energy storage charging and discharging.
[0084] The instruction issuance and execution module is used to execute S6, issuing and executing the refrigerated container response instructions and energy storage power. When the actual response of the refrigerated container cluster is lower than the planned response, the energy storage compensates for the rapid deviation within its safety boundary. The instruction issuance and execution module selects participating containers according to the response priority of each container and rotates them in groups. When there is a local rejection, the temperature is close to the upper limit, or the actual adjustable power is insufficient, the candidate container fills the gap, and the remaining shortfall is compensated by energy storage. An account for unpaid recovery demand is established for each container, accumulating with the response and being cleared with recovery, and is used as a rolling status quantity. After the response, recovery is carried out in batches according to the grid-connected power margin, and the cluster recovery power and ramp-up rate are limited.
[0085] The rolling correction module executes S7, and based on the feedback of temperature, power, and grid connection point status after execution, updates the single-container response capability, cluster power-duration guarantee envelope, outstanding recovery needs, and recovery plan when preset conditions are met, and performs rolling re-optimization. The rolling correction module uses a combination of fixed-cycle and event-triggered rolling updates. It immediately re-evaluates and optimizes when there are deviations in temperature prediction, cluster response, sudden changes in environment or operation, grid connection approaching protection thresholds, changes in available energy storage power, or changes in the number of participating containers exceeding thresholds. The control process is divided into four states: normal cooling, peak shaving preparation, cluster response, and recovery operation. When there are sensor anomalies, communication interruptions, low model reliability, or unconfirmed commands, the corresponding container is removed. When resources are insufficient, the outstanding peak shaving gap is retained and an alarm is triggered, without relaxing the cargo temperature safety boundary.
[0086] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. The above descriptions are only preferred embodiments of this application. It should be noted that due to the limitations of written expression, while there are objectively infinite specific structures, those skilled in the art can make several improvements, modifications, or changes without departing from the principles of this application, and can also combine the above technical features in an appropriate manner. These improvements, modifications, changes, or combinations, or the direct application of the inventive concept and technical solution to other situations without modification, should all be considered within the scope of protection of this application.
Claims
1. A peak-shaving control method for port microgrids based on refrigerated container cluster response, characterized in that, include: S1: Collect port operation data and refrigerated container operation data; S2: Establish an electrothermal coupling model for each refrigerated container, estimate the current thermal state and determine the temperature safety margin, predict two control trajectories: normal cooling and peak shaving response, and form a single-container response capability consisting of adjustable power of a single container, sustainable response time of a single container, and unpaid recovery demand. S3: Within the rolling prediction time domain, based on the available status, temperature trajectory and cumulative response constraints of each refrigerated container for each time period, a cluster power-duration guarantee envelope that can support group relay is formed; S4: Calculate the target peak-shaving power of the port area microgrid, and determine the time-sharing peak-shaving power to be jointly undertaken by the cold storage container cluster and energy storage, provided that the upper limit of the safe grid-connected power of the equipment is not exceeded. S5: Construct a collaborative peak-shaving optimization model for refrigerated container clusters and energy storage. With the goals of grid-connected peak cost, electricity purchase and energy storage operation cost, temperature deviation, response fairness and recovery smoothness cost, the model solves the refrigerated container response command and energy storage power under the soft constraints of cargo temperature safety, energy storage state of charge, peak-shaving target grid-connected power and equipment safety grid-connected power. S6: Issue the refrigeration box response command and energy storage power and execute it. When the actual response of the refrigeration box cluster is lower than the planned response, the energy storage will compensate for the rapid deviation within its safety boundary. S7: Based on the feedback of temperature, power and grid connection point status after execution, when the preset conditions are met, update the single-box response capability, cluster power-duration guarantee envelope, unpaid recovery requirements and recovery plan and perform rolling re-optimization.
2. The peak-shaving control method for port microgrids based on refrigerated container cluster response according to claim 1, characterized in that, In S1, the data from the refrigerated container monitoring system, the port area microgrid energy management system, the photovoltaic monitoring system, the energy storage battery management system, and the grid-connected metering device are aligned with a unified timestamp, and data from different sampling periods are mapped to a unified scheduling period and quality indicators are retained. Port area operation data includes port area load after excluding refrigeration capacity of refrigerated containers, renewable energy output, energy storage operation status, grid connection point power, peak shaving target grid connection power limit and equipment safe grid connection power limit; The refrigerated container's operating data includes the internal temperature, target temperature, ambient temperature, refrigeration power, compressor status, cargo category, cargo temperature sensitivity level or response authority, alarm status, and communication status.
3. The peak-shaving control method for port microgrids based on refrigerated container cluster response according to claim 1, characterized in that, The electrothermal coupling model in S2 characterizes the heat storage and heat transfer of the box, cargo and air inside the box with equivalent heat capacity and equivalent thermal resistance. The inputs include ambient temperature, internal temperature, additional heat load of cargo, additional heat load of opening the door or defrosting, and cooling power. The control quantity for fixed-frequency units is the compressor start / stop variable, while the control quantity for variable-frequency units is the normalized refrigeration ratio from 0 to 1. Model parameters are identified from historical temperature and power sequences and corrected using rolling residuals; When the cabinet door is opened, defrosted, or when loading or unloading, it is marked as a period of non-stationary thermal disturbance. The stable heat transfer parameters are not updated and the prediction uncertainty margin is increased.
4. The peak-shaving control method for port microgrids based on refrigerated container cluster response according to claim 1, characterized in that, In S2, the difference between the upper limit of temperature safety and the current chamber temperature is defined as the temperature safety margin, and the lower limit of temperature safety is the recovery hard constraint. The adjustable power of a single box is: ; in, For the first The first refrigerator Adjustable power per unit during different time periods For the first The first refrigerator Normal cooling baseline power during the period, For the first The first refrigerator Candidate peak-shaving command power for the time period; The continuous response time for a single container is: ; in, For the sustainable response time of a single container, For continuous scheduling steps, The length of the scheduling period. For the first box future The conservative upper side temperature prediction value of the step, This is the upper limit of the safe temperature range; The outstanding recovery needs are: ; in, For the first Box No. The demand for recovery of outstanding debts during the period Actual or planned cooling capacity; A single container response priority is generated based on temperature safety margin, duration of operation, adjustable power, communication availability, cargo sensitivity level, recent cumulative response duration, and outstanding recovery requirements.
5. The peak-shaving control method for port microgrids based on refrigerated container cluster response according to claim 1, characterized in that, The cluster power-duration guarantee envelope in S3 is the adjustable power of a single container that meets local availability conditions by aggregating time periods within the rolling prediction time domain. For a given continuous response duration, response participation variables for each container in each future time period are introduced. Under the constraints of single-box temperature safety, continuous duration, minimum compressor start-up and shutdown, and maximum continuous response, the minimum value of the aggregate adjustable power in the continuous time domain is taken and then maximized, that is: ; in, For clusters in time periods future Power-duration guarantee envelope for each time period, This represents the total number of refrigerated containers. For the first The box in the future The response variables for each time period take values from 0 to 1. For the first box future Adjustable power per unit during different time periods; Different refrigerated containers can be grouped and rotated or relayed; The equivalent heat that each box can absorb when its temperature rises from the current level to the safety limit is aggregated into the equivalent thermal energy storage capacity of the cluster, and a virtual thermal energy storage state of the cluster is constructed to represent the remaining reduction capacity, but this does not replace the hard constraint of temperature safety for each box.
6. The peak-shaving control method for port microgrids based on refrigerated container cluster response according to claim 1, characterized in that, In S4, the predicted non-refrigerated container port area load is added to the normal refrigeration baseline of refrigerated containers, and the predicted output of new energy sources is subtracted to obtain the predicted grid-connected power when peak shaving is not required. Set the peak-shaving target grid-connected power limit no higher than the upper limit of the safe grid-connected power of the equipment. The portion of the predicted grid-connected power exceeding this upper limit will be defined as the target peak-shaving power. ; in, For the first Target peak-shaving power for the period To predict the non-refrigerated container port load, For the first The normal cooling baseline power of the box Contribute to new energy forecasting The upper limit of grid-connected power for peak shaving targets; The time-sharing allocation is determined based on the cluster's protection envelope, available discharge power of energy storage, and energy.
7. The peak-shaving control method for port microgrids based on refrigerated container cluster response according to claim 1, characterized in that, The objective function of the collaborative peak-shaving optimization model in S5 is: ; in, For the overall target value, For peak grid connection costs, The cost of purchasing electricity and operating energy storage, The cost of temperature deviation and recovery; Hard constraints include: ; in, The lower limit of temperature safety, The temperature inside the chamber. To the upper limit of temperature safety, In the state of energy storage charge, and These are the lower and upper limits of the state of charge, respectively. For grid-connected power, To eliminate the peak-shaving gap, The upper limit of the safe grid connection power of the equipment; The model also satisfies temperature state transition, minimum compressor start-up and shutdown time, maximum continuous response time of a single tank, recovery interval, maximum cluster response power, upper limit of recovery power and ramp-up, and mutual exclusion constraints for energy storage charging and discharging.
8. The peak-shaving control method for port microgrids based on refrigerated container cluster response according to claim 1, characterized in that, In S6 and S7, participating containers are selected and rotated in groups according to the single-container response priority. When local rejection occurs, the temperature approaches the upper limit, or the actual adjustable power is insufficient, the candidate tank will make up the difference, and the remaining gap will be compensated by energy storage. For each container, an account for outstanding recovery needs is established that accumulates with each response and is cleared with each recovery, and this account is used as a rolling status variable; after the response, recovery is carried out in batches according to the grid power margin, and the cluster recovery power and ramp-up rate are limited; A rolling update system combining fixed-cycle and event-triggered updates is adopted. When there are deviations in temperature prediction, cluster response, sudden changes in environment or operation, grid connection approaching the protection threshold, changes in available energy storage power, or changes in the number of participating containers exceeding the threshold, the system is immediately re-evaluated and optimized. The control process is divided into four states: normal cooling, peak shaving preparation, cluster response, and recovery operation. When there is sensor abnormality, communication interruption, low model credibility, or unconfirmed command, the corresponding container is removed. When resources are insufficient, the unresolved peak shaving gap is retained and an alarm is triggered, and the safety boundary of cargo temperature is not relaxed.
9. A port microgrid peak-shaving control system based on refrigerated container cluster response, comprising the port microgrid peak-shaving control method based on refrigerated container cluster response as described in any one of claims 1-8, characterized in that, include: The data acquisition module is used to collect port operation data and refrigerated container operation data; The single-box response capability assessment module is used to establish an electrothermal coupling model for each refrigerated box, estimate the current thermal state and determine the temperature safety margin, predict two control trajectories: normal cooling and peak-shaving response, and form the single-box response capability consisting of the single-box adjustable power, the single-box sustainable response duration and the unpaid recovery demand. The cluster peak shaving capability aggregation module is used to aggregate and form a cluster power-duration guarantee envelope that supports group relay within the rolling prediction time domain, based on the availability status, temperature trajectory and cumulative response constraints of each refrigerated box in each time period. The peak-shaving demand calculation module is used to calculate the target peak-shaving power of the port area microgrid and determine the time-sharing peak-shaving power to be jointly undertaken by the cold storage container cluster and energy storage, provided that the upper limit of the safe grid-connected power of the equipment is not exceeded. The collaborative optimization module is used to construct a collaborative peak-shaving optimization model for refrigerated container clusters and energy storage. With the grid-connected peak cost, electricity purchase and energy storage operation cost, temperature deviation, response fairness and recovery smoothing cost as objectives, it solves the refrigerated container response command and energy storage power under the soft constraints of cargo temperature safety, energy storage state of charge, peak-shaving target grid-connected power and equipment safety grid-connected power. The instruction issuance and execution module is used to issue and execute the response instructions and energy storage power of the refrigerated box. When the actual response of the refrigerated box cluster is lower than the planned response, the energy storage compensates for the rapid deviation within its safety boundary. The rolling correction module is used to update the single-box response capability, cluster power-duration guarantee envelope, unpaid recovery requirements and recovery plan based on the feedback of temperature, power and grid connection point status after execution, and to perform rolling re-optimization when preset conditions are met.
