Efficient distributed privacy protection energy management method for port microgrid

By establishing an energy management model with supply and demand balance and equipment safe operation constraints in the port microgrid, and using distributed privacy protection optimization algorithms and smooth segmentation mask functions, the energy management efficiency and privacy security of the port microgrid are solved by ships docking at the port. impact, achieving efficient, secure energy management and privacy protection.

CN118627980APending Publication Date: 2024-09-10DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410476866.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively solve the impact of ships arriving at ports on the energy management efficiency and privacy security of port microgrids, especially on the dynamically changing demand-side information and privacy information sharing issues when ships enter and leave the port, resulting in low energy management efficiency and privacy security. The risk is high.

Method used

An efficient distributed privacy-preserving energy management method for port microgrids is proposed. By establishing an energy management model that balances supply and demand and equipment safe operation constraints, a distributed privacy-preserving optimization algorithm and a smooth segmentation mask function are used to achieve the optimal management of ships when entering and leaving the port. Energy management decisions and privacy information protection.

Benefits of technology

It improves the energy management efficiency and privacy security of the port microgrid, ensures the stable, efficient and safe operation of the system during ships entering and leaving the port, and effectively resists malicious eavesdropping on high-privacy ships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627980A
    Figure CN118627980A
Patent Text Reader

Abstract

The invention provides an efficient distributed privacy protection energy management method for a port micro-grid, relates to the technical field of new energy and energy conservation, and provides an energy management method capable of ensuring efficient operation and privacy security at the same time aiming at the energy management problem of the port micro-grid. According to the method, the port micro-grid is taken as a research object, the operation cost of energy supply equipment is taken as a target function for the dynamic nature and privacy of the ship approaching the port, and the supply and demand balance constraint and the equipment safety operation constraint are considered to establish an energy management model; and a distributed privacy protection energy management method is designed to improve the energy management efficiency and privacy security of the port microgrid. According to the invention, the problem that the port micro-grid energy management efficiency and privacy security are affected when the ship enters and leaves the port can be effectively solved, the port micro-grid energy utilization efficiency is improved, and the port micro-grid can stably, efficiently and safely operate when the ship enters and leaves the port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of new energy and energy-saving technologies, and in particular to a highly efficient distributed privacy-preserving energy management method for a port microgrid. Background Art

[0002] With the booming development of the shipping industry, a large number of berthed ships relying on traditional energy have become the main source of pollution to the marine environment. In order to improve the port environment and solve the energy crisis, renewable energy resources have been widely used in port microgrids. In addition, in order to reduce port pollution emissions, ships at the port are encouraged to use shore power, but due to the dynamic and private nature of ships at the port, the energy dispatching efficiency of the port microgrid and the privacy information of the ship are affected. On the one hand, the entry and exit of ships in the port brings dynamic changes to the demand-side information of the port microgrid. The decision-making layer needs to recalculate the power task allocation of each device. The decision-making algorithm of the existing decision-making layer converges slowly, and the long calculation process affects the energy dispatching efficiency of the port microgrid. On the other hand, berthed ships need to provide power demand information to the port microgrid. For high-privacy ships, power demand information will expose the behavior of the ship. Once the eavesdropper obtains accurate power demand information and infers the current behavior of the ship, it can launch further attacks on the ship.

[0003] Due to the dynamic and private nature of ships at port, in-depth research on the energy management of port microgrids is relatively scarce. Most previous studies have focused on the diversification of port microgrid power supply equipment, but rarely on the impact of the use of shore power systems by ships at port on the energy management system of port microgrids. Especially in terms of energy management efficiency, existing studies often ignore the dynamic changes in demand-side information brought about by ships entering and leaving the port. These changes are difficult to predict and directly affect the real-time energy management decisions of port microgrids; in terms of privacy and security, existing studies have also failed to fully consider the information sharing issues after the use of shore power by ships at port, as well as the potential risks of distributed energy management methods that may expose sensitive information. Summary of the invention

[0004] In order to overcome the above-mentioned defects, the present invention proposes an efficient distributed privacy-preserving energy management method for port microgrids, and provides an energy management method that can simultaneously ensure efficient operation and privacy security for the energy management problem of port microgrids. The present invention takes the port microgrid as the research object, targets the dynamics and privacy of ships at the port, takes the operating cost of the energy supply equipment as the objective function, considers the supply and demand balance constraints and the equipment safe operation constraints, establishes its energy management model, and designs a distributed privacy-preserving energy management method to improve the energy management efficiency and privacy security of the port microgrid. The present invention can effectively overcome the difficult problem of ships entering and leaving the port affecting the energy management efficiency and privacy security of the port microgrid, realize the improvement of the energy utilization efficiency of the port microgrid, and ensure that the port microgrid can operate stably, efficiently and safely during the period when the ship enters and leaves the port.

[0005] To this end, the present invention provides the following technical solutions:

[0006] The present invention discloses a highly efficient distributed privacy-preserving energy management method for a port microgrid, the method comprising:

[0007] Obtain the status information of different equipment in the port microgrid, including renewable power generation equipment, traditional fuel power generation equipment, onshore equipment and ships at port; Analyze the operating cost function based on the operating cost parameters of different types of power supply equipment in the port microgrid, take the minimum operating cost of the port microgrid as the optimization goal, follow the physical constraints of the safe operation of power generation equipment, and establish the port microgrid energy management model;

[0008] According to the status information of different devices in the port microgrid, a communication topology is constructed; based on a distributed privacy protection optimization algorithm, the energy management problem of the port microgrid under the condition of ships entering and leaving the port is solved, and the optimal energy management decision parameters of the port microgrid are obtained within a preset time;

[0009] Among them, the distributed privacy protection optimization algorithm includes:

[0010]

[0011] Among them, P D,i is the power demand of the network layer node corresponding to the i-th power supply device, η(t,T) is the time-varying gain function, expressed as follows:

[0012]

[0013] Where h>2, T is the preset convergence time; m i (P i (t),t)、m j (P j(t), t) is a smooth piecewise mask function that replaces the interactive gradient information in distributed optimization;

[0014] Based on the optimal energy management decision parameters of the port microgrid, real-time power task allocation is performed on the port microgrid.

[0015] Furthermore, the port microgrid energy management model includes:

[0016]

[0017] Among them, C total is the total cost of the port microgrid; C i (P i ) is the cost function of each power generation equipment; n is the number of power generation equipment in the port microgrid; n1 is the number of static loads such as quay cranes; n2 is the number of dynamic loads such as ships at the port; P i is the state variable of the i-th power generation device; D s,i is the power demand of the ith static load; D d,i is the power demand of the ith dynamic load; P i min and P i max are the minimum output power and maximum output power of the i-th power generation equipment respectively.

[0018] Furthermore, it also includes:

[0019] Based on the penalty function method, the equipment safety operation constraints in the port microgrid energy management model are relaxed and the port microgrid energy management model is simplified.

[0020] Furthermore, the penalty function is:

[0021]

[0022] l i (P i )=(P i min -P i )(P i max -P i ),;

[0023] Among them, C pen,i (P i ) is the designed penalty function, ψ is a small positive number, and the simplified energy management model is:

[0024]

[0025] Among them, κ is the penalty coefficient.

[0026] Furthermore, the smooth mask function is as follows:

[0027]

[0028] Among them, m i (t,P i (t),a i ,b i ) is the designed smooth segmentation mask function, a i ,b i >0 is the mask parameter and satisfies b i <T;a i is a randomly set positive number, b i is a randomly set positive number that satisfies b i ∈[0,1).

[0029] Furthermore, the energy management problem of port microgrid under the situation of ships entering and leaving the port is solved, including:

[0030] Initialize, set the preset convergence time T, complete the neighbor communication establishment, and give each node the auxiliary variable y i (0) Assignment;

[0031] Design smooth piecewise mask function m i (t,P i (t),a i ,b i ) to protect the interactive gradient information in distributed optimization;

[0032] According to the communication topology between power generation equipment in the port microgrid, the distributed privacy protection optimization algorithm is run until the convergence time T is reached, the distributed optimization calculation is completed, and the optimal energy management decision P is obtained. i * .

[0033] Advantages and positive effects of the present invention:

[0034] This invention is an innovative technology proposed based on in-depth research and analysis of port microgrids. This technology uses traditional power generation equipment and renewable energy equipment to establish an energy management model for port microgrids while considering global supply and demand balance and safe operation constraints to ensure the reliable operation of the system. Among them, the present invention designs an efficient distributed privacy-preserving energy management method, which can effectively solve the impact of ships entering and leaving the port on port energy management, and effectively resist malicious eavesdropping by attackers on high-privacy ships.

[0035] The existing distributed energy management methods of port microgrids partially adopt centralized algorithms such as subgradient method and alternating direction method of multipliers (ADMM). Since the heterogeneous power generation equipment in the port makes it present a distributed structure, it is necessary to explore an energy management method that adapts to its distributed operation mode. The current distributed energy management methods of port microgrids mainly adopt optimization algorithms with non-finite time convergence, and cannot protect the information interacted between devices. However, since the ships at the port use the shore power system, the energy management efficiency and privacy security of the port microgrid are greatly affected. Therefore, it is necessary to explore a distributed energy management method that can improve computing efficiency and protect interactive information to solve the energy management problem of the port microgrid. Therefore, the present invention proposes an efficient distributed privacy protection energy management method, which can achieve the synergy between heterogeneous devices, balance the power demand of the port, maintain the economic operation of the port, and improve the energy management efficiency and ensure the safe entry and exit of ships.

[0036] By implementing the present invention, the development of renewable energy can be effectively promoted, the port's dependence on traditional energy can be reduced, and thus it can help build a green port. The computing network is applied in the system to achieve efficient and reliable communication between devices and improve the computing power of the system; at the same time, the efficient distributed privacy protection energy management method can better adapt to the distributed operation mode, improve the energy management efficiency of the port microgrid, and protect the power demand data of ships at the port. Therefore, the present invention has important application and social significance. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 It is a privacy protection distributed energy management structure framework of the port microgrid in an embodiment of the present invention;

[0039] Figure 2 The physical structure and network structure of the port microgrid in the embodiment of the present invention;

[0040] Figure 3 The accuracy analysis of the microgrid output power is only considered under the privacy and security conditions in the embodiment of the present invention;

[0041] Figure 4 This is an analysis of the accuracy of output power under a general algorithm that does not consider privacy security in an embodiment of the present invention;

[0042] Figure 5 Comparison of eavesdropping information trajectories in an embodiment of the present invention;

[0043] Figure 6 Comparison of initial values ​​of eavesdropping information tracks in an embodiment of the present invention;

[0044] Figure 7 The output power accuracy of the port microgrid is analyzed considering the computing efficiency and privacy security conditions in the embodiment of the present invention;

[0045] Figure 8 This is the convergence analysis of output power under the general mask function;

[0046] Fig. 9 Comparison of eavesdropping information trajectories under different masking functions;

[0047] Fig.10 Comparison of initial values ​​of eavesdropping information trajectories under different masking functions. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

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

[0050] The present invention aims at the energy management problem of port microgrids, takes into account the dynamics and privacy of ships at port, and provides an efficient distributed privacy protection energy management method. The method is in line with the strategic goal of sustainable development of green economy, is an important practical measure to strengthen the construction of port shore power, and can effectively deal with the energy management problem of distributed power generation equipment in port microgrids. Taking into account the dual impact of the use of shore power system by ships on the energy management efficiency and privacy security of port microgrids, the present invention takes port microgrids as the research object, and establishes an energy management model of port microgrids based on the operating cost of power generation equipment, supply and demand balance constraints and equipment safe operation constraints. Based on preset time control and distributed optimization theory, the present invention proposes an efficient distributed energy management method to reduce the impact of ships entering and leaving the port on the data update of the port microgrid energy management system and improve its energy management efficiency. In addition, according to the operating characteristics of the distributed method, a smooth segmented mask function is proposed to package interactive information and protect sensitive power demand data of ships. The method can not only effectively solve the energy management problem of port microgrids and calculate the optimal scheduling plan, but also improve the system calculation efficiency, while ensuring the privacy information security of ships at port.

[0051] The energy management system of the port microgrid includes the physical layer and the network layer. The physical layer includes traditional fuel power generation equipment, renewable power generation equipment, shore cranes and berthing ships. Through advanced sensor technology, the power demand information in the physical layer is transmitted to the network layer, and the privacy information is packaged, information is exchanged and locally calculated in the network layer, and finally the energy management decision is obtained. The energy management problem of the port microgrid aims to minimize the power generation cost, and its energy management model is established based on the supply and demand balance constraints and safe operation constraints. According to the real-time power demand data and energy management model, the distributed privacy protection energy management method is used to complete the solution of the above optimization problem, and then the optimal energy management decision is obtained.

[0052] The energy management system framework of the port microgrid described in the present invention is shown in the attached Figure 1 As shown in the figure, the system is based on the port microgrid as the research carrier, which includes traditional fuel energy supply equipment, renewable energy energy supply equipment, shore power system and other power-consuming equipment. In order to analyze the operation and economic characteristics of the port microgrid, a port microgrid energy management model is constructed. The model takes into account the supply and demand balance constraints and safe operation constraints, and aims to minimize the power generation cost. The parameter information and power demand in the model are important privacy energy information. Through advanced sensor technology, the current status and privacy data of each device in the port microgrid are transmitted to the computing power network, and the privacy information packaging and information interaction are completed in the computing power network. According to the efficient distributed privacy protection energy management method proposed in the present invention, local calculations are completed to obtain the optimal energy management decision of the port microgrid.

[0053] This embodiment takes a 20-node system as an example (including 5 photovoltaic panels 1, 5 wind turbines 1, 5 traditional power generation equipment, 5 photovoltaic panels 2 and 5 wind turbines 2). Its physical topology and communication topology are as shown in the attached figure. Figure 2 As shown in FIG, the distributed privacy-preserving energy management method aims to improve energy management efficiency and protect the privacy data of ships at the port, including the following steps:

[0054] Step 1: Obtain the status information of different devices in the port microgrid, including renewable power generation equipment, traditional fuel power generation equipment, onshore equipment and ships at the port; based on the operating cost parameters of different types of power supply equipment in the port microgrid, analyze the operating cost function, take the minimum operating cost of the port microgrid as the optimization goal, follow the physical constraints of the safe operation of power generation equipment, and establish the energy management model of the port microgrid. And pre-process the problem.

[0055] Establish an energy management model, which can be expressed as:

[0056]

[0057] Among them, C total is the total cost of the port microgrid; C i (P i ) is the cost function of each power generation equipment; n is the number of power generation equipment in the port microgrid; n1 is the number of static loads such as quay cranes; n2 is the number of dynamic loads such as ships at the port; P i is the state variable of the i-th power generation device; D s,i is the power demand of the ith static load; D d,i is the power demand of the ith dynamic load; P i min and P i max are the minimum output power and maximum output power of the i-th power generation equipment respectively.

[0058] Cost function C of each power generation equipment i (P i ) The specific expression is:

[0059] C i (P i )=a i P i 2 +b i P i +c i ;

[0060] Among them, a i , b i and c i are the model parameter information of power generation cost, ai Satisfy a i >0.

[0061] The equipment operation parameters and power demand information settings in the port microgrid energy management model are shown in Figure 1.

[0062] Table 1

[0063]

[0064] At this point, step 1 of establishing the energy management model is completed.

[0065] Step 2: Use the penalty function to simplify the energy management problem of the port microgrid;

[0066] The penalty function is expressed as follows:

[0067]

[0068] l i (P i )=(P i min -P i )(P i max -P i ),;

[0069] Among them, C pen,i (P i ) is the designed penalty function, ψ i is a small positive number.

[0070] The simplified energy management model is:

[0071]

[0072]

[0073] Among them, κ is the penalty coefficient; κ satisfies:

[0074]

[0075] in, satisfy:

[0076]

[0077] in Satisfies the Slater condition.

[0078] Considering the number of devices and the cost function parameter settings, set ψ i =0.001,κ=120.

[0079] At this point, step 2 of energy management model preprocessing is completed.

[0080] Step 3: Based on the multi-agent system and the simplified energy management model, the operation mode of the distributed optimization algorithm and the physical meaning of the interactive information are analyzed, and a smooth piecewise mask function is designed to protect the sensitive power demand information of the ships at the port (interactive gradient information in distributed optimization).

[0081] According to the status information of different devices in the port microgrid, its communication topology is constructed, and an efficient distributed privacy protection optimization algorithm is designed to solve the energy management problem of the port microgrid under the entry and exit of ships, and obtain the optimal energy management decision of the port microgrid within a preset time; the optimal energy management decision of the port microgrid includes: the decision variables output by the efficiently running distributed privacy protection algorithm.

[0082] When designing an efficient distributed privacy-preserving optimization algorithm, the simplified port microgrid energy management scheduling model is considered as follows:

[0083]

[0084] The dual problem is:

[0085]

[0086] Among them, v is the dual variable, D i ∈{D s,i ,D d,i}. Its Lagrangian function is:

[0087]

[0088] When P * is the optimal solution to the original problem, So when the gradients are consistent, that is, Get the optimal solution.

[0089] Therefore, considering the energy dispatch efficiency of the port microgrid, the following algorithm is designed based on the multi-agent consistency principle and preset time control:

[0090]

[0091] Among them, P D,i is the power demand of the network layer node corresponding to the i-th power supply device, η(t,T) is the time-varying gain function, expressed as follows:

[0092]

[0093] Where h>2, T is the preset convergence time;

[0094] However, the above algorithm needs to exchange gradient information with neighbors The eavesdropper can infer the initial state of the information based on the state of the exchanged information, that is, This includes the ship's power demand information i Therefore, the following smooth mask function is also designed in the embodiment of the present invention to protect its initial state to ensure that the power demand information of the ship is not identified by the eavesdropper. The form of the smooth mask function is as follows:

[0095]

[0096] Among them, m i (t,P i (t),a i ,b i ) is the designed smooth segmentation mask function, a i ,b i >0 is the mask parameter and satisfies b i <T。a i is a randomly set positive number, b i is a randomly set positive number that satisfies b i ∈[0,1).

[0097] The mask function is used instead of the gradient for information interaction to protect the sensitive power demand information of the ship. The efficient distributed privacy protection optimization algorithm is as follows:

[0098]

[0099] At this point, the design of the smooth mask function for each device in step 3 is completed.

[0100] Step 4: According to the communication topology between power generation equipment in the port microgrid, based on distributed optimization theory and preset time control, an energy management method is proposed to formulate the optimal power supply scheduling plan;

[0101] Step 4.1: Initialize, set the preset convergence time, complete the neighbor communication establishment, and give each node the auxiliary variable y i (0) Assignment;

[0102] Step 4.2: Design a smooth piecewise mask function m i (t,P i (t),a i ,b i ) to protect the interactive gradient information in distributed optimization;

[0103] Step 4.3: According to the communication topology between power generation equipment in the port microgrid, run the efficient distributed privacy protection optimization algorithm, setting k = 10, ò = 1, h = 2.5, t0 = 0, T = 1.

[0104] Until the convergence time T is reached, the distributed optimization calculation is completed and the optimal energy management decision P is obtained. i * ; At this point, the energy management decision of the port microgrid is obtained.

[0105] The above efficient distributed privacy protection optimization algorithm can effectively protect sensitive information of ships and achieve fast convergence. Specifically:

[0106] Privacy: When the mask parameter satisfies a i ,b i >0, Therefore, even if an eavesdropper obtains the interaction information between devices, he cannot identify the actual power demand information.

[0107] And the design of the mask function satisfies, And ‖m i (t,p i (0),a i ,b i )-C i,r (p i * )‖>ò, therefore, the designed smooth mask function parameters can effectively protect the sensitive power demand information of ships.

[0108] Convergence: Consider the following Lyapunov function:

[0109]

[0110] Its derivative is:

[0111]

[0112] According to the comparison lemma and the form of the smooth mask function designed by the present invention, it satisfies:

[0113]

[0114] in, Moreover, k>0, the monotonically decreasing function φ(t)>0. Therefore, under the algorithm designed by the present invention, it satisfies:

[0115]

[0116] It can be concluded that

[0117] Consider the following Lyapunov function:

[0118] V2=C r (y(t))-C r (y* ).

[0119] Its derivative is

[0120]

[0121] Since all smooth piecewise mask functions are n Then it disappears and we get:

[0122]

[0123] According to convex optimization theory:

[0124]

[0125] According to the preset time convergence theory, we get

[0126] therefore,

[0127] In summary, the efficient distributed privacy protection algorithm designed by the present invention can quickly obtain the optimal power allocation decision while protecting the privacy power demand information of the ship.

[0128] Figure 3 and 4 The output power curves of the privacy-safety algorithm and the one without considering the privacy-safety algorithm are shown in the figure. As can be seen from the figure, the energy management decisions under the privacy-safety algorithm and the one without considering the privacy-safety algorithm are: photovoltaic panel 1 output 57.687MW, wind turbine 1 output 60.144MW, traditional power generation equipment output 37.295MW, photovoltaic panel 2 output 43.545MW and wind turbine 2 output 51.329MW. The total cost is $10547.4915. Figure 5 and 6 The exchange information curves and the corresponding exchange information initial values ​​of the privacy security algorithm and the privacy security algorithm are as follows: Figure 5 and Figure 6 It can be seen that under the effect of the mask function, even if the interactive information between devices is stolen, the initial value of the interactive information It will not be stolen, thus protecting the power demand information of ships at port.

[0129] Figure 7 The output power curve of the efficient distributed privacy protection energy management algorithm. It can be seen from the figure that the energy management decisions of the port microgrid are: photovoltaic panel 1 output 57.630MW, wind turbine 1 output 60.166MW, traditional power generation equipment output 37.299MW, photovoltaic panel 2 output 43.525MW and wind turbine 2 output 51.380MW. The total cost is 10547.4920$. Figure 8 ,Under the effect of the general mask function, the energy management method cannot complete the preset time convergence within 1 second, affecting the efficient operation of the port microgrid. Similarly, comparing the three different mask functions, the interaction information curves and the initial values ​​of the interaction information are shown in Fig. 9 and 10 As shown in the figure, the initial value of the exchange information can be protected without affecting the convergence of the preset time. So far, the energy management decision of the port microgrid can be obtained under the premise of ensuring computational efficiency and privacy security.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An efficient distributed privacy protection energy management method for port microgrid, characterized in that: The method comprises: Obtain the status information of different equipment in the port microgrid, including renewable power generation equipment, traditional fuel power generation equipment, onshore equipment and ships at port; Analyze the operating cost function based on the operating cost parameters of different types of power supply equipment in the port microgrid, take the minimum operating cost of the port microgrid as the optimization goal, follow the physical constraints of the safe operation of power generation equipment, and establish the port microgrid energy management model; According to the status information of different devices in the port microgrid, a communication topology is constructed; based on a distributed privacy protection optimization algorithm, the energy management problem of the port microgrid under the condition of ships entering and leaving the port is solved, and the optimal energy management decision parameters of the port microgrid are obtained within a preset time; Among them, the distributed privacy protection optimization algorithm includes: Among them, P D,i is the power demand of the network layer node corresponding to the i-th power supply device, η(t,T) is the time-varying gain function, expressed as follows: Where h>2, T is the preset convergence time; m i (P i (t),t)、m j (P j (t), t) is a smooth piecewise mask function that replaces the interactive gradient information in distributed optimization; Based on the optimal energy management decision parameters of the port microgrid, real-time power task allocation is performed on the port microgrid.

2. According to claim 1, a highly efficient distributed privacy protection energy management method for a port microgrid is characterized in that: The port microgrid energy management model includes: Among them, C total is the total cost of the port microgrid; C i (P i ) is the cost function of each power generation equipment; n is the number of power generation equipment in the port microgrid; n1 is the number of static loads such as quay cranes; n2 is the number of dynamic loads such as ships at the port; P i is the state variable of the i-th power generation device; D s,i is the power demand of the ith static load; D d,i is the power demand of the ith dynamic load; P i min and P i max are the minimum output power and maximum output power of the i-th power generation equipment respectively.

3. According to claim 1, a highly efficient distributed privacy protection energy management method for a port microgrid is characterized in that: Also includes: Based on the penalty function method, the equipment safety operation constraints in the port microgrid energy management model are relaxed and the port microgrid energy management model is simplified.

4. A highly efficient distributed privacy protection energy management method for a port microgrid according to claim 3, characterized in that: The penalty function is: l i (P i )=(P i min -P i )(P i max -P i ),; Among them, C pen,i (P i ) is the designed penalty function, ψ is a small positive number, and the simplified energy management model is: Among them, κ is the penalty coefficient.

5. According to claim 1, a highly efficient distributed privacy protection energy management method for a port microgrid is characterized in that: The smooth mask function is as follows: Among them, m i (t,P i (t),a i ,b i ) is the designed smooth segmentation mask function, a i ,b i >0 is the mask parameter and satisfies b i <T;a i is a randomly set positive number, b i is a randomly set positive number that satisfies b i ∈[0,1).

6. The method for efficient distributed privacy protection energy management of a port microgrid according to claim 1 is characterized in that: Solve the energy management problems of port microgrids under the situation of ships entering and leaving the port, including: Initialize, set the preset convergence time T, complete the neighbor communication establishment, and give each node the auxiliary variable y i (0) Assignment; Design smooth piecewise mask function m i (t,P i (t),a i ,b i ) to protect the interactive gradient information in distributed optimization; According to the communication topology between power generation equipment in the port microgrid, the distributed privacy protection optimization algorithm is run until the convergence time T is reached, the distributed optimization calculation is completed, and the optimal energy management decision P is obtained. i * .