Dynamic reconstruction optimization method of ship shore power system, computer equipment and storage medium

The structure of the ship's shore power system is dynamically adjusted through the particle collaborative optimization algorithm, which solves the problems of insufficient utilization of real-time load data and system security in the existing technology, improves load adaptability and grid connection efficiency, and ensures stable operation of the system and balanced energy distribution. .

CN118554520APending Publication Date: 2024-08-27JIANGSU UNIV OF SCI & TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410600844.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing technology fails to provide a method that can make full use of real-time load data to dynamically optimize the ship shore power system structure, resulting in uneven energy distribution and degradation of system performance, and lacks rapid adaptability to real-time load changes and system security and stability. consideration.

Method used

The particle collaborative optimization algorithm is used to predict load changes based on real-time data, dynamically adjust the system topology, describe the system network through the node-branch correlation matrix, and build an optimization model that minimizes weighted load shedding and voltage deviation to ensure that the system can be realized under constraint conditions. Optimization goals.

Benefits of technology

It significantly improves the system's adaptability to load fluctuations, ensures safe and stable operation, improves grid connection efficiency and power supply stability, reduces voltage drop levels, and optimizes energy distribution and power supply quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118554520A
    Figure CN118554520A
Patent Text Reader

Abstract

The invention discloses a dynamic reconstruction optimization method of a ship shore power system, computer equipment and a storage medium. The method comprises the steps of 1, acquiring network topology structure information and load power real-time change conditions of a ship and shore power grid-connected system in real time; wherein a node-branch incidence matrix is adopted to describe a network topology structure of the ship and shore power grid-connected system; 2, constructing a ship and shore power grid-connected system dynamic reconstruction optimization model and constraint conditions, wherein the ship and shore power grid-connected system dynamic reconstruction optimization model takes minimization of weighted load shedding and voltage deviation as optimization targets; and 3, based on the network topology structure information and load change information of the current ship and shore power grid-connected system, solving the dynamic reconstruction optimization model of the ship and shore power grid-connected system by adopting a particle collaborative optimization algorithm, and obtaining the dynamic reconstruction optimization model of the ship and shore power grid-connected system under constraint conditions during grid connection and after grid connection. And the network topology structure of the ship and shore power grid-connected system is realized when the target is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power system optimization, and specifically relates to a dynamic reconstruction optimization method, computer equipment and storage medium for a ship shore power system. Background Art

[0002] In the current technological context, the grid-connected operation of ships and shore power systems is crucial to ensure the efficient distribution and utilization of energy. Traditional network optimization methods usually rely on static configurations, which limits the adaptability and efficiency of the system when faced with time-varying load characteristics. Especially in the scenario where ships are connected to shore power systems, the dynamic changes in loads require the system to respond quickly and adjust its structure to maintain stable and efficient operation. However, the existing technology has failed to provide a method that can fully utilize real-time load data to dynamically optimize the system structure, resulting in uneven energy distribution and reduced system performance. In recent years, although there have been studies on improving grid-connected efficiency through algorithm optimization, these methods often lack the ability to quickly adapt to real-time load changes, or fail to fully consider the safety and stability of the system during the optimization process.

[0003] Therefore, there is an urgent need for a dynamic reconstruction optimization method for a ship shore power system to address the deficiencies in the existing technology. Summary of the invention

[0004] Purpose of the invention: To solve the problem that the prior art fails to provide a method that can fully utilize real-time load data to dynamically optimize the system structure, resulting in uneven energy distribution and decreased system performance, and to solve the problem that the existing algorithms lack the ability to quickly adapt to real-time load changes, or fail to fully consider the safety and stability of the system during the optimization process, the present invention proposes a dynamic reconstruction optimization method, computer equipment and storage medium for a ship shore power system, adopts a particle collaborative optimization algorithm, uses real-time data to predict load changes, dynamically adjusts the system topology, improves the system's adaptability to load fluctuations, ensures the safe and stable operation of the system, and improves the grid connection efficiency.

[0005] Technical solution: A dynamic reconstruction optimization method for a ship shore power system includes the following steps:

[0006] Step 1: Obtain the network topology information and real-time load power change of the ship and shore power grid-connected system in real time; wherein, the node-branch association matrix is ​​used to describe the network topology of the ship and shore power grid-connected system;

[0007] Step 2: construct a dynamic reconstruction optimization model and constraint conditions for the ship and shore power grid-connected system, wherein the dynamic reconstruction optimization model for the ship and shore power grid-connected system takes minimizing weighted load shedding and voltage deviation as the optimization goal;

[0008] Step 3: Based on the network topology information and load change information of the current ship and shore power grid-connected system, the particle collaborative optimization algorithm is used to solve the dynamic reconstruction optimization model of the ship and shore power grid-connected system, and the network topology of the ship and shore power grid-connected system is obtained under the constraints when and after the grid-connection to achieve the optimization goal.

[0009] Furthermore, the network topology of the ship and shore power grid-connected system at least includes: a generator, a port bus, a starboard bus and a ship power system; the load of the ship power system is divided into primary load, secondary load and tertiary load in descending order of importance; only for the primary load, each primary load is connected to the port bus through a switch and to the starboard bus through another switch, forming two power supply paths.

[0010] Furthermore, the dynamic reconstruction optimization model of the ship and shore power grid connection system is expressed as:

[0011]

[0012] Where, L 1i,t , L 2j,t , L 3k,t They represent the power of the primary load, secondary load, and tertiary load in time period t respectively; ω1, ω2, and ω3 represent the weight coefficients of the primary load, secondary load, and tertiary load respectively; a i,t 、a j,t 、a k,t They represent the status of the primary load, secondary load, and tertiary load at time t respectively. When it is 1, it indicates that the load shedding operation is executed, and when it is 0, it indicates that the power supply is maintained. n1, n2, and n3 represent the total number of primary loads, secondary loads, and tertiary loads respectively. Δt is the step length of each reconstruction period. The reconstruction period is obtained by dividing the reconstruction time into N reconstruction periods based on the real-time change of load power obtained in step 1. is the rated voltage of node i, V i,t is the voltage of node i at time t, n bus is the total number of nodes in the ship and shore power grid-connected system; β1 and β2 are the weights of the two objectives of weighted load shedding and voltage deviation, respectively.

[0013] Furthermore, the constraints include: network topology constraints of the ship and shore power grid connection system, generator capacity constraints, branch power constraints, and node voltage constraints;

[0014] The network topology constraints of the ship-shore power grid connection system are expressed as:

[0015]

[0016] In the formula, represents the state of the switch connecting the primary load i and the port bus at time t, It represents the state of the switch connecting the primary load i and the starboard bus at time t;

[0017] The generator capacity constraint is expressed as:

[0018] P g,k ≤P gmax,k

[0019] Where P g,k represents the power generated by generator k, P gmax,k represents the maximum power of generator k;

[0020] The branch power constraint is expressed as:

[0021]

[0022] In the formula, are the power and maximum capacity of branch j, j = 1, 2, ..., n branch ;n branch The total number of branches of the ship-shore power grid connection system;

[0023] The node voltage constraint is expressed as:

[0024] V imin ≤V i,t ≤V imax

[0025] Where V i,t is the voltage of node i at time t, V imin and V imax are the upper and lower limits of the node i voltage.

[0026] Furthermore, the specific operations of step 3 include:

[0027] S310: Initialize the population according to the network topology information of the ship and shore power grid-connected system and the real-time change of load power and the reconstruction period obtained in real time in step 1, including: generating an initial population, particle positions and particle speeds:

[0028] S320: Calculate the network topology and load shedding nodes of the ship and shore power grid-connected system according to the particle position, and determine whether there is an isolated island in the ship and shore power grid-connected system. If there is an isolated island, return to S310 and regenerate the particle position; if there is no isolated island, execute S330:

[0029] S330: Calculate power flow information;

[0030] S340: Calculate fitness according to the result of the power flow information;

[0031] S350: Update the position and speed of the particle according to the fitness result:

[0032] S360: Based on the updated particle position and velocity, determine whether the particle swarm collaborative optimization is terminated. If terminated, output the switch combination of the reconstruction period k, save the reconstruction result of the reconstruction period, and execute S370; if not terminated, execute S320; k≤N;

[0033] S370: Calculate the result of the dynamic reconstruction optimization model of the ship and shore power grid-connected system in the reconstruction period k, and execute k=k+1 at the same time, and iterate continuously until k≤N, then end the optimization calculation, otherwise execute S320.

[0034] Further, the power flow information is calculated according to the following steps:

[0035] Based on the network topology of the ship and shore power grid-connected system, the node admittance matrix is ​​generated. Let M be the node-branch association matrix, and n be bus Line n branch Column matrix, assuming that branch k starts at node i and ends at node j, then:

[0036]

[0037] Assign initial values ​​to the voltage of each node according to the number to generate the node voltage vector U, and calculate the voltage drop column vector U of each branch according to the node-branch association matrix b :

[0038] U b =MU

[0039] According to Ohm's law, determine the current column vector I of each branch b :

[0040] I b =Y b U b

[0041] Where Y b is the branch admittance matrix;

[0042] According to the branch current column vector I b Calculate the current I injected into each node:

[0043] I=M T I b

[0044] According to the node load power L p Update the node voltage vector U:

[0045] U=L / I

[0046] Set the iteration accuracy δ. When the change in the node voltage between two values ​​is less than the iteration accuracy δ, the power flow calculation ends the iteration:

[0047] min(U (k+1) -U (k) )≤δ

[0048] Where U k is the node voltage vector in the kth iteration;

[0049] Finally, the node voltage and branch power are calculated based on the node voltage vector.

[0050] Furthermore, the fitness is calculated according to the following formula based on the result of the flow information:

[0051]

[0052] Furthermore, the position and speed of the particle are updated according to the fitness result:

[0053]

[0054]

[0055] Where w is the inertia weight factor, x i =(x i1 ,x i2 ,…,x im ) is the position of the collaborative homogeneous population where the i-th particle is located; v i =(v i1 ,v i2 ,…,v im ) is the position velocity of the coordinated homogeneous population where the i-th particle is located; r1, r2 are mutually independent random numbers; c1, c2 are acceleration factors; is the individual extreme position of the i-th particle; is the global optimal position of the ith particle.

[0056] The present invention discloses a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, steps of a method for dynamically reconfiguring and optimizing a ship shore power system are implemented.

[0057] The present invention discloses a storage medium, wherein the storage medium stores a dynamic reconstruction optimization program, and when the dynamic reconstruction optimization program is executed by at least one processor, the steps of a dynamic reconstruction optimization method of a ship shore power system are implemented.

[0058] Beneficial effects: Compared with the prior art, the present invention has the following advantages:

[0059] (1) Compared with the traditional static network optimization method, the present invention adopts a dynamic network reconstruction optimization method to predict load changes based on real-time data and dynamically adjust the structure of the ship and shore power grid-connected system, which significantly improves the adaptability of the ship and shore power grid-connected system to load fluctuations and ensures the safe and stable operation of the system;

[0060] (2) The present invention can make full use of real-time data to dynamically optimize the network structure of the ship and shore power grid-connected system, improve the grid-connected efficiency, solve the problems of uneven energy distribution and system performance degradation, and thus optimize energy distribution;

[0061] (3) Through the particle collaborative optimization algorithm, the present invention quickly obtains the optimal power system network optimization model, significantly improves the grid connection efficiency and the stability of power supply, and improves the system operation efficiency;

[0062] (4) The optimization method of the present invention can significantly reduce the voltage drop level of each node of the ship and shore power grid-connected system. By taking weighted load shedding and voltage deviation minimization as optimization goals, the power supply quality of the network is improved, thereby ensuring the power supply reliability of the ship. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 A topological structure diagram of the ship and shore power system grid connection system of the present invention;

[0064] Figure 2 This is a diagram showing the dynamic reconstruction idea of ​​the ship and shore power system grid connection system of the present invention;

[0065] Figure 3 A schematic diagram of the dynamic load change of the ship and shore power system grid-connected system of the present invention;

[0066] Figure 4 It is a flow chart of solving the reconstruction model by the particle collaborative optimization algorithm of the present invention;

[0067] Figure 5 It is a comparison diagram of node voltages under different reconstruction scenarios of the present invention. DETAILED DESCRIPTION

[0068] The technical solution of the present invention is now further described in conjunction with the accompanying drawings and embodiments.

[0069] Embodiment 1:

[0070] This embodiment discloses a method for dynamically reconfiguring and optimizing a ship shore power system, which has the ability to quickly adapt to real-time load changes and improve the system performance and adaptability during the grid connection process. The main ideas of the dynamic reconstruction proposed in this embodiment are as follows: Figure 2As shown, in different time periods, according to the load distribution and time characteristics, different topological structures are formed by adaptively optimizing the state of each switch, in order to achieve the goal of safe, stable and economical power supply of the power supply system. It mainly includes the following steps:

[0071] Step 1: Obtain system parameters of the ship power system, system parameters of the shore power system, network topology of the ship and shore power system grid connection system, and load power changes in real time;

[0072] Figure 1 The topological structure of a typical ship-shore power grid-connected system is shown, and its components can be simplified to generators, converters, port busbars, starboard busbars, and ship power systems. Among them, generators G1 and G4 are main generators, and G2 and G3 are auxiliary generators. According to different load categories, the ship power system includes propulsion systems, communication systems, daily loads, etc. According to the importance of the load, the load of the ship power system can be divided into different levels, and can be divided into primary loads, secondary loads, and tertiary loads in descending order of importance. Figure 1 Where bi (where i∈1,2…38) is the branch number; Lj (where j∈1,2…18) represents the load; SW k (where k∈1,2…12) represents a switch. The ship's power system has six primary loads (L1-L6), six secondary loads (L7, L9, L11, L13, L15, L17), and six tertiary loads (L8, L10, L12, L14, L16, L18). The primary load is an important load on the ship and is used to ensure the safe operation of the ship. In order to ensure the reliable power supply of the primary load, two power supply paths are designed to connect the left and right chord busbars respectively. By controlling the switch, the power supply path of the primary load can be automatically switched. Taking load L2 as an example, it is connected to the port busbar through switch SW2, and is connected to the starboard busbar through switch SW8, with a total of two power supply paths.

[0073] Step 2: Construct the dynamic reconstruction optimization target of the ship and shore power system grid connection system; the specific operations include:

[0074] In order to ensure that the total load power of the ship and shore power system connected to the grid is maximized, considering the different weights of load importance, an objective function with minimum weighted load shedding is constructed, which is expressed as:

[0075]

[0076] Where, L 1i,t , L 2j,t , L 3k,t They represent the primary, secondary and tertiary load powers in time period t respectively; ω1, ω2 and ω3 represent the weight coefficients of primary, secondary and tertiary loads respectively; a is the load state variable, ai,t 、a j,t 、a k,t =1 indicates that the first, second and third level loads perform load shedding operation at time t; a i,t 、a j,t 、a k,t =0 indicates that the primary, secondary and tertiary loads maintain power supply at time t; n1, n2 and n3 indicate the total number of primary, secondary and tertiary loads respectively.

[0077] To ensure good voltage quality, the voltage of each node in the ship-shore power system grid-connected system has no significant voltage drop in timing to prevent the load from being adversely affected by large voltage deviation. At the same time, a voltage deviation optimization target is added, which is the minimum sum of the absolute values ​​of the voltage deviations of all nodes relative to the rated voltage. The node voltage deviation minimum objective function is expressed as:

[0078]

[0079] In the formula, is the rated voltage of node i; V i,t is the voltage of node i at time t; n bus It is the total number of nodes in the grid-connected system between ships and shore power systems.

[0080] In summary, considering the weights of different objective functions, the dynamic reconstruction objective function can be expressed as:

[0081]

[0082] Where β1 and β2 are the weights of the two objectives, weighted load shedding and voltage deviation.

[0083] Step 3: Construct the dynamic reconstruction constraints of the ship-shore power system grid-connected system, including: the topological structure of the ship-shore power system grid-connected system, generator capacity limitation, branch power and node voltage and other constraints.

[0084] The topological structure constraints of the ship and shore power system grid connection system are expressed as:

[0085]

[0086] Combination Figure 1 Specifically, it can be expanded as follows:

[0087]

[0088] The engine capacity constraint expression is:

[0089] P g,k ≤P gmax,k

[0090] The branch power constraint expression is:

[0091]

[0092] The node voltage constraint expression is:

[0093] V imin ≤V i,t ≤V imax

[0094] In the formula, Indicates the state of connecting the primary load i and the port bus switch at time t, Indicates the state of connecting the primary load i and the starboard bus switch at time t. g,k is the power generated by generator k; P gmax,k is the maximum power of generator k. are the power and maximum capacity of branch j, j = 1, 2, ..., n branch ;n branch is the total number of branches in the grid-connected power system; V i,t is the voltage of node i at time t, V imin and V imax are the upper and lower limits of the node i voltage.

[0095] Step 4: Determine the load fluctuation and divide the reconstruction period; the specific operations include: Figure 3 The real-time changes of typical load power of the ship and shore power system grid-connected system are shown. Figure 3 In this embodiment, the total reconstruction time (1.5 hours) is divided into multiple reconstruction periods based on the load fluctuation during the fault recovery period. The step size of each reconstruction period is set to 15 minutes. Therefore, the reconstruction period is divided into N=1.5*60 / 15=6, that is, the total reconstruction time is divided into 6 reconstruction periods in total.

[0096] Step 5: Calculate the tidal current information related to the ship's shore power system; specifically including:

[0097] This embodiment proposes a node potential method to calculate the power flow of the ship shore power system. Under the assumption that the system generator potential remains unchanged, the voltage of each node is first assigned an initial value, and then the system power flow distribution is obtained through repeated iterations of the node admittance matrix until the calculation accuracy requirement is met and the iteration is stopped. The specific operations include:

[0098] To this end, we first establish the system topology and generate the node admittance matrix. The system topology is described by the node-branch association matrix. M is the node-branch association matrix, which is n bus Line n branch Column matrix, assuming that branch k starts at node i and ends at node j, then:

[0099]

[0100] Assign initial values ​​to each node potential according to the number to generate the node voltage vector U. According to the node-branch association matrix, the voltage drop column vector U of each branch can be calculated. b ,Right now:

[0101] U b =MU

[0102] According to Ohm's law, determine the current column vector I of each branch b ,Right now:

[0103] I b =Y b U b

[0104] Where Y b is the branch admittance matrix.

[0105] According to the branch current column vector I b Calculate the current I injected into each node:

[0106] I=M T I b

[0107] According to the node load power L p Update the node voltage vector U:

[0108] U=L / I

[0109] Set the iteration accuracy to δ. When the change in the node voltage between two values ​​is less than the preset value, the power flow calculation ends the iteration, which can be expressed as:

[0110] min(U (k+1) -U (k) )≤δ

[0111] Where U k is the node voltage vector in the kth iteration.

[0112] Finally, the current, power, network loss and other parameters in the system network are calculated based on the voltage distribution.

[0113] Step 6: Construct a dynamic reconstruction model optimization algorithm; the specific operations include:

[0114] like Figure 4As shown, this embodiment adopts a particle collaborative optimization algorithm to quickly obtain the optimal ship shore power system model, and generates an initial population, particle position and particle speed according to the system data information collected in the early stage and the reconstruction period division; then calculates the network structure and load shedding node of the ship shore power system according to the particle position, and determines whether there is an isolated island in the ship shore power system. If so, returns to regenerate the particle position; on the basis of ensuring that there is no isolated island, based on the tidal current information result calculated in step 5, the fitness is calculated according to the following formula:

[0115]

[0116] According to the fitness results, the position and velocity of the particle are updated as follows:

[0117]

[0118]

[0119] In the formula, x i =(x i1 ,x i2 ,…,x im ) is the position of the collaborative homogeneous population where the i-th particle is located; v i =(v i1 ,v i2 ,…,v im ) is the position velocity of the coordinated homogeneous population where the i-th particle is located; r1, r2 are mutually independent random numbers; c1, c2 are acceleration factors; is the individual extreme position of the i-th particle; is the global optimal position of the ith particle.

[0120] Secondly, determine whether the inertial particle swarm collaborative optimization is terminated. If it is terminated, output the switch combination of the kth reconstruction period and save the reconstruction result of the period. Otherwise, return to the previous step to calculate the network structure and load shedding nodes of the ship shore power system according to the particle position to determine whether there is an island in the system.

[0121] Finally, the objective function of the system in the kth reconstruction period is calculated, and k=k+1 is executed at the same time. The optimization calculation is terminated when k≤N. Otherwise, the optimization calculation is returned to the previous step to determine whether there is an island in the system.

[0122] In this embodiment, the speed update method with inertia weight is added. By selecting a suitable inertia weight factor w, the algorithm finds a balance between the global optimal solution and the local optimal solution, which helps to improve the algorithm performance and enhance the execution efficiency. Adding the inertia weight factor w to the speed update can be expressed as:

[0123]

[0124] Step 7: After the above steps of dynamic reconstruction optimization of the ship shore power system, the corresponding dynamic reconstruction optimization results are compared with the static reconstruction and the non-reconstruction conditions. For example, Figure 5 As shown. Finally, according to the real-time comparison results, if the voltage deviation of the corresponding dynamic reconstruction voltage quality optimization effect does not reach the set threshold compared with the static reconstruction, then return to step 1 to step 6 to re-optimize the system until the dynamic reconstruction optimization method improves the voltage quality to the set range requirement compared with the static reconstruction, and then the optimization ends. This real-time verification feedback method can ensure the reliability of the proposed dynamic reconstruction optimization method, while improving the optimization efficiency of the method, ensuring that the adopted method can effectively improve the corresponding optimization effect.

[0125] Embodiment 2:

[0126] This embodiment discloses a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps disclosed in any of the above embodiments are implemented.

[0127] Embodiment 3:

[0128] This embodiment discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps disclosed in any of the above embodiments are implemented.

[0129] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A dynamic reconstruction optimization method for a ship shore power system, characterized in that: The following steps are involved: Step 1: Obtain the network topology information and real-time load power change of the ship and shore power grid-connected system in real time; wherein, the node-branch association matrix is ​​used to describe the network topology of the ship and shore power grid-connected system; Step 2: construct a dynamic reconstruction optimization model and constraint conditions for the ship and shore power grid-connected system, wherein the dynamic reconstruction optimization model for the ship and shore power grid-connected system takes minimizing weighted load shedding and voltage deviation as the optimization goal; Step 3: Based on the network topology information and load change information of the current ship and shore power grid-connected system, the particle collaborative optimization algorithm is used to solve the dynamic reconstruction optimization model of the ship and shore power grid-connected system, and the network topology of the ship and shore power grid-connected system is obtained under the constraints when and after the grid-connection to achieve the optimization goal.

2. A method for dynamic reconstruction and optimization of a ship shore power system according to claim 1, characterized in that: The network topology of the ship and shore power grid-connected system at least includes: a generator, a port bus, a starboard bus and a ship power system; the load of the ship power system is divided into primary load, secondary load and tertiary load in descending order of importance; only for the primary load, each primary load is connected to the port bus through a switch and to the starboard bus through another switch, forming two power supply paths.

3. A method for dynamic reconstruction and optimization of a ship shore power system according to claim 2, characterized in that: The dynamic reconstruction optimization model of the ship and shore power grid connection system is expressed as: Where, L 1i,t , L 2j,t , L 3k,t They represent the power of the primary load, secondary load, and tertiary load in time period t respectively; ω1, ω2, and ω3 represent the weight coefficients of the primary load, secondary load, and tertiary load respectively; a i,t 、a j,t 、a k,t They represent the status of the primary load, secondary load, and tertiary load at time t respectively. When it is 1, it indicates that the load shedding operation is executed, and when it is 0, it indicates that the power supply is maintained. n1, n2, and n3 represent the total number of primary loads, secondary loads, and tertiary loads respectively. Δt is the step length of each reconstruction period. The reconstruction period is obtained by dividing the reconstruction time into N reconstruction periods based on the real-time change of load power obtained in step 1. is the rated voltage of node i, V i,t is the voltage of node i at time t, n bus is the total number of nodes in the ship and shore power grid-connected system; β1 and β2 are the weights of the two objectives of weighted load shedding and voltage deviation, respectively.

4. A method for dynamic reconstruction and optimization of a ship shore power system according to claim 3, characterized in that: The constraints include: network topology constraints of the ship and shore power grid connection system, generator capacity constraints, branch power constraints, and node voltage constraints; The network topology constraints of the ship-shore power grid connection system are expressed as: In the formula, represents the state of the switch connecting the primary load i and the port bus at time t, It represents the state of the switch connecting the primary load i and the starboard bus at time t; The generator capacity constraint is expressed as: P g,k ≤P gmax,k Where P g,k represents the power generated by generator k, P gmax,k represents the maximum power of generator k; The branch power constraint is expressed as: In the formula, are the power and maximum capacity of branch j, j = 1, 2, ..., n branch ;n branch The total number of branches of the ship-shore power grid connection system; The node voltage constraint is expressed as: In imin ≤V i,t ≤V imax Where V i,t is the voltage of node i at time t, V imin and V imax are the upper and lower limits of the node i voltage.

5. A method for dynamic reconstruction and optimization of a ship shore power system according to claim 4, characterized in that: Step 3: S310: Initialize the population according to the network topology information of the ship and shore power grid-connected system and the real-time change of load power and the reconstruction period obtained in real time in step 1, including: generating an initial population, particle positions and particle speeds: S320: Calculate the network topology and load shedding nodes of the ship and shore power grid-connected system according to the particle position, and determine whether there is an isolated island in the ship and shore power grid-connected system. If there is an isolated island, return to S310 and regenerate the particle position; if there is no isolated island, execute S330: S330: Calculate power flow information; S340: Calculate fitness according to the result of the power flow information; S350: Update the position and speed of the particle according to the fitness result: S360: Based on the updated particle position and velocity, determine whether the particle swarm collaborative optimization is terminated. If terminated, output the switch combination of the reconstruction period k, save the reconstruction result of the reconstruction period, and execute S370; if not terminated, execute S320; k≤N; S370: Calculate the result of the dynamic reconstruction optimization model of the ship and shore power grid-connected system in the reconstruction period k, and execute k=k+1 at the same time, and iterate continuously until k≤N, then end the optimization calculation, otherwise execute S320.

6. A method for dynamic reconstruction and optimization of a ship shore power system according to claim 5, characterized in that: Follow these steps to calculate power flow information: Based on the network topology of the ship and shore power grid-connected system, the node admittance matrix is ​​generated. Let M be the node-branch association matrix, and n be bus Line n branch Column matrix, assuming that branch k starts at node i and ends at node j, then: Assign initial values ​​to the voltage of each node according to the number to generate the node voltage vector U, and calculate the voltage drop column vector U of each branch according to the node-branch association matrix b : U b =MU According to Ohm's law, determine the current column vector I of each branch b : I b =Y b U b Where Y b is the branch admittance matrix; According to the branch current column vector I b Calculate the current I injected into each node: I=M T I b According to the node load power L p Update the node voltage vector U: U=L p / I Set the iteration accuracy δ. When the change in the node voltage between two values ​​is less than the iteration accuracy δ, the power flow calculation ends the iteration: min(U (k+1) -IN (k) )≤δ Where U k is the node voltage vector in the kth iteration; Finally, the node voltage and branch power are calculated based on the node voltage vector.

7. A method for dynamic reconstruction and optimization of a ship shore power system according to claim 6, characterized in that: According to the results of the tidal current information, the fitness is calculated according to the following formula:

8. A method for dynamic reconstruction and optimization of a ship shore power system according to claim 7, characterized in that: The position and speed of the particle are updated according to the fitness results: Where w is the inertia weight factor, x i =(x i1 ,x i2 ,…,x im ) is the position of the collaborative homogeneous population where the i-th particle is located; v i =(v i1 ,v i2 ,…,v im ) is the position velocity of the coordinated homogeneous population where the i-th particle is located; r1, r2 are mutually independent random numbers; c1, c2 are acceleration factors; is the individual extreme position of the i-th particle; is the global optimal position of the ith particle.

9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method implements the steps of a dynamic reconstruction optimization method for a ship shore power system as claimed in any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium stores a dynamic reconstruction optimization program, and when the dynamic reconstruction optimization program is executed by at least one processor, the steps of the dynamic reconstruction optimization method of a ship shore power system according to any one of claims 1 to 8 are implemented.