Multi-port energy router energy scheduling method based on particle swarm optimization algorithm

By optimizing the energy scheduling of energy routers using particle swarm optimization algorithm, the problem of unstable energy scheduling in microgrids is solved, and economical, safe and reliable energy management is achieved. This method is suitable for multi-energy complementary systems in industrial parks and military islands.

CN117526405BActive Publication Date: 2026-11-27WUHAN INSTITUTE OF MARINE ELECTRIC PROPULSION (THE 712TH RESEARCH INSTITUTE OF CHINA STATE SHIPBUILDING CORP LTD)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311392669.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2026-11-27
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

Existing energy routers are difficult to use in microgrids to achieve economical, safe and reliable energy dispatch, especially in power supply to industrial parks where they are prone to tripping and power outages.

Method used

An energy scheduling method based on particle swarm optimization algorithm for multi-port energy routers is adopted. By constructing an economic operation model of a multi-energy complementary system, and combining photovoltaic power generation, hybrid energy storage units and auxiliary power sources, energy scheduling is optimized.

Benefits of technology

This has reduced the system development and operation costs, improved the operational stability and reliability of the microgrid, and enabled its application in multi-energy complementary microgrid systems on military islands and reefs, giving full play to the flexibility and efficiency of distributed power sources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117526405B_ABST
    Figure CN117526405B_ABST
Patent Text Reader

Abstract

The application discloses a multi-port energy router energy scheduling method based on a particle swarm optimization algorithm, and is based on a multi-port energy router composed of a photovoltaic power generation unit, a hybrid energy storage unit and a 24V auxiliary power supply. A new particle swarm optimization algorithm is first constructed, an economic index is taken as a main optimization target, an objective function of the energy router is established, and finally the particle swarm optimization algorithm is used to solve the objective function. The method can not only reduce system development and operation costs, but also can be popularized and applied to a military island reef multi-energy complementary micro-grid system, and fully play the flexible and efficient application characteristics of the distributed power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of intelligent scheduling algorithms, specifically relating to an energy scheduling method for multi-port energy routers based on particle swarm optimization algorithm. Background Technology

[0002] New energy sources such as wind and solar power are characterized by randomness, volatility, and unpredictability. An energy router (ER) is a power electronics-based energy conversion device that enables the input, output, conversion, and storage of various energy forms. As a core device of the energy internet, it integrates computing, communication, precise control, remote coordination, and autonomy into an intelligent information and energy interconnection system. Research shows that ERs can be configured with centralized controllers and possess functions such as voltage transformation, electrical isolation, and multi-directional energy flow, gradually becoming programmable electrical devices with fault self-healing and state switching capabilities. Through communication lines, centralized collection, processing, and real-time sharing of information from various port nodes of a microgrid can be achieved, enabling flexible management and control of the microgrid's "source-grid-load-storage" system.

[0003] Energy storage generators (ERs) need to coordinate the energy flow among distributed power sources, the grid, loads, and energy storage units in a microgrid system. Coordinated control requires addressing the parallel operation of these units. Research revealed that ERs primarily employ three typical control methods: master-slave, peer-to-peer, and hierarchical. Ensuring coordinated operation of all ER ports within a microgrid and maintaining system stability, security, and reliability is a fundamental technical requirement that the control strategy for a multi-energy complementary system ("source-grid-load-storage") must first address. This presents a practical need for ER development; only in this way can the advantages of distributed power sources such as photovoltaics be fully utilized. Therefore, rationally planning power flow from an economic perspective and optimizing microgrid operation strategies at a higher level is crucial. Literature review reveals abundant research on modeling single loads. If these are reasonably combined with the overall economic indicators of microgrid operation, it will provide a new approach for the further application of ERs to meet the explosive demand for multiple energy sources in industrial parks, changing the current situation where power supply relies solely on generators and frequently results in power outages.

[0004] With the deepening development of the global energy internet and the rapid construction of distributed power sources to form microgrids, energy routers can achieve a high degree of integration of energy flow and information flow, and are conducive to the transmission, radiation, and comprehensive utilization of electrical energy. They are particularly suitable for the development needs of industrial park microgrids and can effectively reduce the occurrence of power outages. How can energy routers regulate the energy dispatch of "source-grid-load-storage" within a microgrid to ensure economical, safe, and reliable operation?

[0005] Particle Swarm Optimization (PSO) is a search algorithm that leverages the collective foraging behavior of birds in nature. Collective foraging makes the process more efficient and conserves energy. In group activities, each individual member benefits from the experience gained and accumulated by all members. PSO is a search algorithm based on group collaboration, where members work together to find a target.

[0006] The particles correspond to individual birds in a flock of birds in nature. Each particle has the potential to become the optimal solution and possesses two attributes: position and velocity. These attributes change as the search progresses. Position refers to the particle's location in each search iteration, while velocity represents its speed during the search process. Fitness is the criterion for evaluating whether a particle represents the optimal solution. Fitness is typically determined by setting an objective function. Optimal solutions are categorized into two types: those obtained from a single particle and those obtained through the combined efforts of the entire flock.

[0007] During initialization, each particle is randomly assigned a position. Then, each particle moves independently to search for the optimal solution through iteration. Each particle searches once and calculates its fitness when it reaches a position to determine whether the current solution is better than the current optimal solution and whether it is better than the collective optimal solution. Based on the comparison results, the optimal solutions for individual particles and the collective optimal solution are updated. Summary of the Invention

[0008] This patent comprehensively considers various economic factors such as photovoltaic power generation costs, grid power purchase costs, and energy storage costs, and provides a multi-port energy router energy scheduling method based on particle swarm optimization algorithm. By establishing an economic operation model of a "source-grid-load-storage" multi-energy complementary system, the optimal energy scheduling of the multi-energy complementary system is achieved based on the particle swarm optimization algorithm.

[0009] The technical solution adopted by this invention to solve its technical problem is: a multi-port energy router energy scheduling method based on particle swarm optimization algorithm, based on a multi-port energy router composed of a photovoltaic power generation unit, a hybrid energy storage unit, and a 24V auxiliary power supply. The hybrid energy storage unit is composed of a battery pack and a supercapacitor. The photovoltaic power generation unit is connected to the DC bus via a unidirectional DC / DC converter. The auxiliary power supply, battery pack, and supercapacitor are each connected to the DC bus via bidirectional DC / DC converters. The DC bus is also connected to two 380Vac and one 690Vac ports via DC / AC converters. The method includes the following steps:

[0010] S1, Construct a new particle swarm optimization algorithm:

[0011] S11, Assume the dimension of the space is D, the number of particles is N, and the position of the i-th particle is represented by a D-dimensional vector X. i= [x1,x2,…,x D ], i = 1, 2, ..., N, where x D The velocity of the i-th particle at position D is denoted as V. i =[v1,v2,…,v D ], i = 1, 2, ..., N, where v D Let p represent the velocity of a particle in the D-th dimension. The individual optimal solution for a single particle is denoted as p. best The optimal solution for the population is denoted as g. best ;

[0012] S12, Initialize all particles, randomly assigning position and velocity values ​​to each particle. The current position of each particle is the individual optimal solution p. best The current optimal solution among all particles is the population optimal solution g. best ;

[0013] S13, After each search, calculate the instantaneous fitness of each particle: if the instantaneous fitness is better than the current individual's optimal solution, then update p. best Otherwise, the current individual optimal solution remains unchanged; if the immediate fitness is better than the current group optimal solution, then update g. best Conversely, the current optimal solution for the population remains unchanged.

[0014] S14, the iterative formula for constructing the position of a single particle is x k =x k-1 +v k-1 The iterative formula for particle velocity is v k =ωv k-1 +c1×radn1(pbest k-1 -x k-1 )+c2×rand2(gbest k-1 -x k-1 ), where v k v represents the velocity of the particle during the k-th search. k-1 Let x represent the velocity of the particle during the (k-1)th search. k Let x represent the position of the particle during the k-th search. k-1 This represents the position of the particle during the (k-1)th search, ω is the inertia weight, c1 and c2 are acceleration coefficients, rand1 and rand2 are two random numbers in the interval [0, 1], and pbest k-1 It is the individual optimal solution in the (k-1)th search, gbest k-1 It is the population optimal solution in the (k-1)th search;

[0015] S15. After performing a search, determine whether the current search has reached the termination condition. If not, continue to execute step S13; otherwise, the search ends.

[0016] S2, using economic indicators as the main optimization objective, establishes the objective function of the energy router:

[0017] S21 defines the proportion of photovoltaic power generation in total electricity consumption. In the formula W pv W represents the annual power generation of a photovoltaic system. N This represents the amount of electricity the energy router draws from the public grid in one year, and the annual power generation (W) of photovoltaic power. pv The amount of electricity (W) that a microgrid obtains from the public grid in one year. N The calculation formulas are respectively

[0018]

[0019] In the formula P pv (r) represents the actual output power of photovoltaic power generation during time period r, P N (t) represents the interaction power between the energy router and the public power grid during time period t; the proportion of the interaction power between the energy router and the public power grid to the total electricity consumption is defined.

[0020] S22, Define the total cost C 总 =C pv +C ES +C N In the formula, C pv C represents the annual cost of the photovoltaic system. ES For the annual cost of the energy storage system, C N The annual cost of the photovoltaic system is the cost of purchasing electricity from the grid. In the formula N pv R represents the number of photovoltaic modules. pv Let r0 be the unit price of the photovoltaic module, r0 be the depreciation rate, m be the useful life, and u(P) be the depreciation rate. pv This represents the annualized cost of operation and maintenance for a single photovoltaic module.

[0021] Annual cost of energy storage system In the formula N ES R represents the number of energy storage units. ES The unit price of each energy storage unit is r0, the depreciation rate is u(P). ES The annual operating and maintenance cost for each energy storage unit;

[0022] The electricity purchase cost of the power grid, C N =ρ N (t)P N (t), where ρ N (t) represents the electricity price on the public power grid during time period t;

[0023] S3, Solving the objective function using the particle swarm optimization algorithm:

[0024] Photovoltaic power generation W pv The proportion μ of total electricity consumption is used as an objective function to find its maximum value; the solution of the proportion μ is transformed into finding the minimum value of the proportion δ of electricity exchanged between the microgrid and the public grid in the total electricity consumption; with the total cost C 总 The optimization objective is to minimize the value of the energy source. The position and velocity of each particle in the current particle swarm are updated under the constraints of the number of power sources, the power balance of the system, and the power of each micro-source and energy storage unit. A new particle swarm is generated and the global optimal solution is output.

[0025] Furthermore, the constraint expression for the number of power sources is as follows: In the formula N pv_max N represents the maximum number of photovoltaic power generation units that can be built. ES_max This represents the maximum number of energy storage units.

[0026] Furthermore, the power balance constraint expression of the system is P pv (t)+P ES (t)+P N (t)=P u (t)+P l (t), where P is a constant. pv (t) represents the power generated by photovoltaic power generation (kW), P ES (t) represents the power (kW) of the energy storage unit, P u (t) represents the power consumption of the load (kW), P l (t) represents the power loss (kW) on the line.

[0027] Furthermore, the power constraint expressions for each micro-source and energy storage unit are as follows:

[0028]

[0029] In the formula P pv_min and P pv_max P represents the minimum (kW) and maximum (kW) power of the photovoltaic power generation unit, respectively. ES_min and P ES_max P represents the minimum power (kW) and maximum power (kW) of the energy storage unit during charging and discharging, respectively. N_min and P N_max P represents the minimum (kW) and maximum (kW) power interaction between the DC microgrid and the public grid, respectively. u_min and P u_max These represent the minimum (kW) and maximum (kW) power consumption of the user, respectively.

[0030] The beneficial effects of this invention are: This invention uses economic factors as model constraints and employs particle swarm optimization algorithm to solve the objective function. The energy scheduling method can not only reduce the system development and operation costs, but also be extended to military island and reef multi-energy complementary microgrid systems, giving full play to the flexible and efficient application characteristics of distributed power sources. Attached Figure Description

[0031] Figure 1 This is the overall topology of the seven-port energy router of this invention;

[0032] Figure 2 This is a flowchart of the particle swarm optimization algorithm of the present invention;

[0033] Figure 3 This is a map showing the distribution of the monthly average total solar radiation.

[0034] Figure 4 The daily load change curve. Detailed Implementation

[0035] The embodiments of this utility model will be further described below with reference to specific examples and accompanying drawings.

[0036] This invention discloses an energy scheduling method for a multi-port energy router based on particle swarm optimization algorithm. The energy scheduling strategy is implemented based on the multi-port energy router, which can not only realize the coordinated operation control of each port, but also realize multi-source energy scheduling control.

[0037] This embodiment selects a seven-port energy router based on a DC microgrid. The energy router is a whole system with a DC bus as the main body and various converters connected in parallel. The overall topology diagram is as follows. Figure 1 As shown, the photovoltaic power generation unit, as the main power source of the system, is the primary energy consumer in the DC microgrid. After being boosted by a unidirectional DC / DC converter, it is connected to the DC bus. The hybrid energy storage unit, composed of battery banks and supercapacitors, plays a crucial role in smoothing power fluctuations in the DC microgrid. It is connected to the DC bus via a bidirectional DC / DC converter. Other AC interface DC / AC converters include one 380Vac and two 690Vac ports, providing power interfaces for loads and the grid. In addition, there is a 24V auxiliary power port, providing auxiliary power to the entire system controller.

[0038] In addition, the distributed power sources in a microgrid are commonly referred to as micro-sources (MS). CERTSI defines a microgrid as a small system or collection of loads and micro-sources. This system is connected to the distribution network through a single point of common coupling (PCC), meaning it can operate in islanded mode or interconnected with the distribution network.

[0039] The following provides a detailed explanation of the multi-port "source-grid-load-storage" energy scheduling method based on the particle swarm optimization algorithm.

[0040] S1 initializes the structural and particle parameters of the simulation model and constructs a new particle swarm optimization algorithm.

[0041] S11, assuming the dimension of the space is D, and there are N particles, the position of the i-th particle can be represented by a D-dimensional vector, i.e., X. i = [x1,x2,…,x D ], i = 1, 2, ..., N, where x D The position in the D-th dimension; the velocity of the i-th particle can be expressed as V i =[v1,v2,…,v D ], i = 1, 2, ..., N, where v D The velocity of a particle in the D-th dimension is represented by p; the individual optimal solution for a single particle is denoted as p. best The optimal solution for the population is denoted as g. best .

[0042] S12, The basic process of implementing the particle swarm optimization algorithm of this invention is summarized as follows.

[0043] (1) Initialize all particles, and randomly assign positions and velocities to each particle. The current position of each particle is the individual optimal solution p. best The current optimal solution among all particles is the population optimal solution g. best .

[0044] (2) After each search, calculate the instantaneous fitness of each particle: if the instantaneous fitness is better than the current individual's optimal solution, then update p. best Otherwise, the current individual optimal solution remains unchanged; if the immediate fitness is better than the current group optimal solution, then update g. best Conversely, the current optimal solution for the population remains unchanged.

[0045] (3) The iterative formula for constructing the position of a single particle is x k =x k-1 +v k-1 The iterative formula for particle velocity is v k =ωv k-1+c1×rand1(pbest k-1 -x k-1 )+c2×rand2(gbest k-1 -x k-1 ), where v k v represents the velocity of the particle during the k-th search. k-1 Let x represent the velocity of the particle during the (k-1)th search. k Let x represent the position of the particle during the k-th search. k-1 This represents the particle's position during the (k-1)th search. ω is the inertia weight, initially set to 0.9, and linearly decreasing to 0.4 as the optimal solution iterates throughout the evolutionary process. c1 and c2 are acceleration coefficients, also known as learning factors, typically set to 2.0. rand1 and rand2 are two random numbers in the interval [0, 1]. pbest k-1 It is the individual optimal solution in the (k-1)th search, gbest k-1 It is the group optimal solution in the (k-1)th search.

[0046] (4) After performing a search, determine whether the current search has reached the end condition. If it has not, continue to execute step (2); otherwise, the search ends.

[0047] The process of the particle swarm optimization algorithm is as follows: Figure 2 As shown.

[0048] S2, construct an economic operation model for the energy router.

[0049] Using economic indicators as the main optimization objective, the objective function of the energy router is established, and the specific steps are as follows.

[0050] S21, define the proportion of photovoltaic power generation in total electricity consumption as μ, that is... In the formula W pv W represents the annual power generation of photovoltaic power (MJ). N This represents the amount of electricity (MJ) that the microgrid receives from the public grid in one year. A positive value indicates that the public grid supplies energy to the microgrid, while a negative value indicates that the microgrid feeds energy back to the public grid. The annual power generation of photovoltaic power is represented by W. pv The amount of electricity (W) that a microgrid obtains from the public grid in one year. N The calculation formulas are as follows:

[0051]

[0052] In the formula P pv (r) represents the actual output power (MW) of photovoltaic power generation during time period r, P N(t) represents the interaction power (MW) between the microgrid and the public grid during time period t. The proportion μ of photovoltaic power generation in total electricity consumption is used as an objective function; its maximum value is sought.

[0053] The proportion of electricity exchanged between the energy router and the public power grid in the total electricity consumption is defined as δ, i.e. The solution for the proportion μ can then be transformed into finding the minimum value of the proportion δ of the electricity exchanged between the microgrid and the public grid in the total electricity consumption.

[0054] S22, Total Cost C 总 It consists of three parts, namely C 总 =C pv +C ES +C N In the formula, C pv C represents the annual cost (in ten thousand yuan) of the photovoltaic system. ES C represents the annual cost (in ten thousand yuan) of the energy storage system. N The electricity purchase cost for the power grid (in ten thousand yuan).

[0055] The annual cost of a photovoltaic system can then be expressed as: In the formula N pv R represents the number of photovoltaic modules. pv The unit price of the photovoltaic module is (ten thousand yuan), r0 is the depreciation rate, m is the useful life, and u(P) is the depreciation rate. pv The figure represents the annual value (in ten thousand yuan) of the operating and maintenance costs for a single photovoltaic module.

[0056] The annual cost of an energy storage system can be expressed as In the formula N ES R represents the number of energy storage units. ES The unit price (in ten thousand yuan) for each energy storage unit, r0 is the depreciation rate, and u(P) is the depreciation rate. ES The annual operating and maintenance cost (in ten thousand yuan) for each energy storage unit is given. The cost calculation for energy storage units is divided into two types: batteries and supercapacitors. For the sake of simplifying the problem analysis, it is assumed that their calculation methods are the same.

[0057] The electricity purchase cost of the power grid, C N =ρ N (t)P N (t), where ρ N (t) represents the electricity price (yuan / kWh) of the public power grid during time period t; the following is the total cost (C 总 Minimize ) as the optimization objective.

[0058] S3, Case Construction and Result Analysis: Solving the objective function using the particle swarm optimization algorithm.

[0059] Constraints such as the number of power sources, system power balance, and the power of each micro-source and energy storage unit are used to update the position and velocity of each particle in the current particle swarm, generating a new particle swarm and outputting the global optimal solution. Distributed power sources are subject to constraints and limitations from the external environment. During the solution process, it is necessary to define reasonable upper and lower limits for the key parameters of the photovoltaic power generation unit, energy storage unit, and bidirectional energy storage converter to ensure the rationality of the established model and reduce the search space of the optimal solution.

[0060] S31, Constraints on the Number of Power Sources. In a microgrid where photovoltaics is the primary power source, the number of power sources is constrained by natural conditions such as the microgrid's irradiance area and geographical environment. The number of energy storage units is also constrained, and the constraint expression is as follows: In the formula N pv_max N represents the maximum number of photovoltaic power generation units that can be built. ES_max This represents the maximum number of energy storage units.

[0061] S32, System power balance constraint. Most commonly used energy storage units store energy in the form of chemical and mechanical energy, rather than electrical energy. Therefore, during the operation of a microgrid, the power is in a state of equilibrium within a certain time range. The power balance constraint expression for the system is:

[0062] P pv (t)+P ES (t)+P N (t)=P u (t)+P l (t),

[0063] In the formula P pv (t) represents the power generated by photovoltaic power generation (kW), P ES (t) represents the power (kW) of the energy storage unit, P u (t) represents the power consumption of the load (kW), P l (t) represents the power loss (kW) on the line.

[0064] S33, Power constraints for each micro-source and energy storage unit. The actual power of each distributed power source and energy storage unit also needs to be limited to a certain range, i.e.

[0065]

[0066] In the formula, P pv_min and P pv_max These represent the minimum (kW) and maximum (kW) power output of the photovoltaic power generation unit, respectively; P ES_min and P ES_max These represent the minimum power (kW) and maximum power (kW) of the energy storage unit during charging and discharging, respectively; P N_min and P N_maxThese represent the minimum (kW) and maximum (kW) power interaction between the microgrid and the public grid, respectively; P u_min and P u_max These represent the minimum (kW) and maximum (kW) power consumption of the user, respectively.

[0067] This patent selects a microgrid in a park in southern my country as the analysis object. The monthly average total solar radiation in this region in 2020 is as follows: Figure 3 As shown. Analysis Figure 3 The bar chart showing the monthly average total solar radiation indicates that the highest total solar radiation was recorded in July at a certain industrial park in the south, reaching 601.56 MJ / m². 2 The lowest level was in December, at 266.56 MJ / m³. 2 . Figure 4 This represents the daily load variation curve of the microgrid power supply area in a certain industrial park in the south in 2020.

[0068] The key parameters of the photovoltaic generator set are shown in Table 1.

[0069] Parameter name Parameter value Rated power / kW 10 Depreciation rate 0.08 Service life / years 12 Component unit price / 10,000 yuan 1.9 Annual maintenance cost (ten thousand yuan) 0.03 Maximum number of units / group 86

[0070] The key parameters of the energy storage unit are shown in Table 2 below.

[0071]

[0072] The electricity purchase price for a certain industrial park in the south is shown in Table 3, which is as follows.

[0073] Time period / h Unit price (yuan / degree) 0~7 0.22 7~10 0.5 10~17 0.78 17~21 0.65 21~24 0.5

[0074] The rated power of a single grid-connected unit is 20kW. The analysis object is modeled in MATLAB, and the scheduling scheme is optimized. Key parameters of the particle swarm optimization algorithm are set as follows: number of particles 40, particle dimension 6, and number of iterations 120. The objective functions are to minimize the amount of electricity exchanged between the energy router and the public grid and to minimize the total system cost.

[0075] Table 4 presents the calculation results of the five operations, as shown below.

[0076]

[0077] This invention's method was applied to a seven-port energy router in a certain industrial park. The minimum total cost of this system is 904,200 yuan, and the photovoltaic power generation ratio can reach over 90%. Analysis of the calculation results from five operations shows that, in the five minimum value calculations, the minimum total system cost is 904,200 yuan, and the photovoltaic power generation ratio can reach over 90%. Simulation calculations and device experiments both verified the effectiveness of the optimal energy dispatch scheme for the multi-energy complementary system considering economic costs.

[0078] Simulation analysis and device tests both show that the present invention can obtain the optimal energy dispatch scheme through particle swarm optimization, so that the number of photovoltaic power generation units, the number of energy storage units, and the amount of electricity exchanged between the microgrid and the public grid are optimally configured, ensuring that the two objectives of maximizing the proportion of new energy power generation and minimizing the total system cost can be achieved.

[0079] The above embodiments are merely illustrative of the principles and effects of the present invention, as well as some of the application examples. For those skilled in the art, various modifications and improvements can be made without departing from the inventive concept of the present invention, and these all fall within the protection scope of the present invention.

Claims

1. An energy scheduling method for a multi-port energy router based on particle swarm optimization algorithm, comprising a photovoltaic power generation unit, a hybrid energy storage unit, and a 24V auxiliary power supply. The hybrid energy storage unit consists of a battery bank and a supercapacitor. The photovoltaic power generation unit is connected to the DC bus via a unidirectional DC / DC converter. The auxiliary power supply, battery bank, and supercapacitor are each connected to the DC bus via bidirectional DC / DC converters. The DC bus is also connected to several Vac ports via DC / AC converters. The method is characterized by: Includes the following steps S1, Construct a new particle swarm optimization algorithm: S11, let the dimension of the space be D, the number of particles be N, and the position of the i-th particle be represented by a D-dimensional vector X. i =[x1,x2,…,x D ], i = 1, 2, ..., N, where x D The velocity of the i-th particle at position D is denoted as V. i =[v1,v2,…,v D ], i = 1, 2, ..., N, where v D Let p represent the velocity of a particle in the D-th dimension. The individual optimal solution for a single particle is denoted as p. best The optimal solution for the population is denoted as g. best ; S12, Initialize all particles, randomly assigning position and velocity values ​​to each particle. The current position of each particle is the individual optimal solution p. best The current optimal solution among all particles is the population optimal solution g. best ; S13, After each search, calculate the instantaneous fitness of each particle: if the instantaneous fitness is better than the current individual's optimal solution, then update p. best Conversely, the current optimal solution for the individual remains unchanged. If the immediate fitness is better than the current population optimum, then update g. best Conversely, the current optimal solution for the population remains unchanged. S14, the iterative formula for constructing the position of a single particle is x k =x k-1 +v k-1 The iterative formula for particle velocity is v k =ωv k-1 +c1×rand1(pbest k-1 -x k-1 )+c2×rand2(gbest k-1 -x k-1 ), where v k v represents the velocity of the particle during the k-th search. k-1 Let x represent the velocity of the particle during the (k-1)th search. k Let x represent the position of the particle during the k-th search. k-1 This represents the position of the particle during the (k-1)th search, ω is the inertia weight, c1 and c2 are acceleration coefficients, rand1 and rand2 are two random numbers in the interval [0, 1], and pbest k-1 It is the individual optimal solution in the (k-1)th search, gbest k-1 It is the population optimal solution in the (k-1)th search; S15: After performing a search, determine whether the termination condition has been met. If not, continue to execute step S13; otherwise, the search ends. S2, using economic indicators as the main optimization objective, establishes the objective function of the energy router: S21 defines the proportion of photovoltaic power generation in total electricity consumption. In the formula W pv W represents the annual power generation of a photovoltaic system. N This represents the amount of electricity (in W) that the power router draws from the public power grid in one year. pv and W N The calculation formulas are as follows: In the formula P pv (r) represents the actual output power of photovoltaic power generation during time period r, P N (t) represents the interaction power between the energy router and the public power grid during time period t; the proportion of the interaction power between the energy router and the public power grid to the total electricity consumption is defined. S22, Define the total cost C 总 =C pv +C ES +C N In the formula, C pv C represents the annual cost of the photovoltaic system. ES For the annual cost of the energy storage system, C N The annual cost of the photovoltaic system is the cost of purchasing electricity from the grid. In the formula N pv R represents the number of photovoltaic modules. pv Let r0 be the unit price of the photovoltaic module, r0 be the depreciation rate, m be the useful life, and u(P) be the depreciation rate. pv This represents the annualized cost of operation and maintenance for a single photovoltaic module. Annual cost of energy storage system In the formula N ES R represents the number of energy storage units. ES The unit price of each energy storage unit is r0, the depreciation rate is u(P). ES The annual operating and maintenance cost for each energy storage unit; The electricity purchase cost of the power grid, C N =ρ N (t)P N (t), where ρ N (t) represents the electricity price on the public power grid during time period t; S3, Solve the objective function using the particle swarm optimization algorithm: Given the photovoltaic power generation W... pv Find the maximum value of μ, which is the proportion of total electricity consumption. The solution for the proportion μ is transformed into finding the minimum value of the proportion δ of the electricity exchanged between the microgrid and the public grid in the total electricity consumption; With total cost C 总 The optimization objective is to minimize the value of the energy source. The position and velocity of each particle in the current particle swarm are updated under the constraints of the number of power sources, the power balance of the system, and the power of each micro-source and energy storage unit. A new particle swarm is generated and the global optimal solution is output.

2. The energy scheduling method for a multi-port energy router based on particle swarm optimization algorithm according to claim 1, characterized in that, The constraint expression for the number of power sources is as follows: In the formula N pv_max N represents the maximum number of photovoltaic power generation units that can be built. ES_max This represents the maximum number of energy storage units.

3. The energy scheduling method for a multi-port energy router based on particle swarm optimization algorithm according to claim 2, characterized in that, The power balance constraint expression of the system is P pv (t)+P ES (t)+P N (t)=P u (t)+P l (t), where P is a constant. pv (t) represents the power generated by photovoltaic power generation, P ES (t) represents the power of the energy storage unit, P u (t) represents the power consumption of the load, P l (t) represents the power loss on the line.

4. The energy scheduling method for a multi-port energy router based on particle swarm optimization algorithm according to claim 3, characterized in that, The power constraint expressions for each micro-source and energy storage unit are as follows: In the formula P pv_min and P pv_max P represents the minimum and maximum power of the photovoltaic power generation unit, respectively. ES_min and P ES_max These represent the minimum and maximum power of the energy storage unit during charging and discharging, respectively, P. N_min and P N_max P represents the minimum and maximum power of the interaction between the energy router and the public power grid, respectively. u_min and P u_max These represent the minimum and maximum power consumption of the user, respectively.

Citation Information

Patent Citations

  • Microgrid multi-energy dispatching optimization method based on positive and negative feedback particle swarm algorithm

    CN108471143A

  • New energy access optimization strategy for multi-direct-current feed-in receiving end power grid

    CN115659779A