A method and system for replenishing power for emergency repair power supply
Optimizing the output power of the photovoltaic module through the GSLPSO algorithm and combining it with the automotive power module solves the problem of low power replenishment efficiency of emergency repair power supplies, achieving efficient, environmentally friendly, and low-cost power replenishment effects to meet emergency response needs.
Patent Information
- Application Number
- CN202410774239.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The existing emergency repair power supply using photovoltaic modules has low power replenishment efficiency and cannot effectively meet the response speed requirements in emergencies. Moreover, traditional diesel generator sets have problems of environmental pollution and high cost.
The GSLPSO algorithm is used to optimize the output power of the photovoltaic module. By comparing the output power of the photovoltaic module with the power threshold, the charging mode is adjusted, and the vehicle power supply module is used for power replenishment to ensure efficient power replenishment of the emergency repair power supply.
It improves the power replenishment efficiency of emergency repair power supply, shortens the convergence time of maximum output power tracking, reduces the response speed to changes in environmental factors, and reduces carbon emissions and energy costs.
Smart Images

Figure CN118336887B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent charging control, and in particular to a power replenishment method and system for an emergency repair power supply. Background Art
[0002] In the power system, emergency repair power supplies play a key role. When faced with power grid failures, natural disasters or other emergencies, they can quickly respond to repair tasks and quickly provide power support, thereby helping the power grid to quickly resume operation and ensure public safety. In the related technology, common types of emergency repair power supplies include traditional diesel generator sets and gas generator sets. The above two types have problems such as environmental pollution, high fuel reserve costs, and inconvenient operation. As an improvement plan, the related technology also includes the use of photovoltaic modules as emergency repair power supplies, which have less impact on the environment, are more environmentally friendly and energy-saving, and have lower costs than traditional diesel generator sets.
[0003] However, the efficiency of using photovoltaic modules for emergency repair power supply needs to be improved. Summary of the invention
[0004] The present invention provides a power replenishment method and system for an emergency repair power supply, so as to improve the power replenishment efficiency of the emergency repair power supply in the related technology.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for replenishing power of an emergency repair power supply, comprising:
[0006] When the emergency repair power supply needs to be charged, determining a candidate charging module capable of charging the emergency repair power supply;
[0007] In a case where the candidate charging module does not include an AC charging module but includes a photovoltaic module, optimizing the current output power of the photovoltaic module by using a GSLPSO algorithm to obtain an optimized output power of the photovoltaic module;
[0008] Correcting the current power threshold to obtain a corrected power threshold;
[0009] A corresponding charging mode instruction is output according to the optimized output power and the corrected power threshold; wherein the charging mode instruction is used to control the emergency repair power supply to be connected to a corresponding charging module.
[0010] The present invention outputs a charging mode instruction by comparing the output power of the photovoltaic module with the power threshold, and continuously corrects the power threshold during the calculation process, thereby improving the accuracy of the charging mode instruction, maintaining the power replenishment efficiency of the emergency repair power supply at a high level, and meeting the requirements of the emergency repair power supply to cope with emergency situations.
[0011] As a preferred solution, the current output power of the photovoltaic module is optimized by the GSLPSO algorithm to obtain the optimized output power of the photovoltaic module, which specifically includes:
[0012] Initialize the parameters in the GSLPSO algorithm and randomly assign the positions of the particles, where the positions of the particles represent the duty cycle of the photovoltaic module;
[0013] Perform fitness evaluation on the particle population, where the fitness is the output power of the photovoltaic module, and when the fitness of the particle population is better at this time, update the optimal fitness;
[0014] Mutate the optimal individuals of the particle population;
[0015] Calculate the mass and gravity of each particle according to the gravitational constant, and update the position and velocity of each particle according to the velocity update coefficient;
[0016] The speed update coefficient and the gravitational constant are updated, and the iterative calculation is returned to be performed again until the number of iterations reaches the maximum number of iterations, and the output power of the photovoltaic module at this time is output as the optimized output power.
[0017] The present invention tracks the maximum output power of the photovoltaic module through the GSLPSO algorithm, and ensures that the output power of the photovoltaic module is at the highest level by adjusting the working point of the photovoltaic module. Compared with conventional algorithms, the GSLPSO algorithm shortens the convergence time of maximum output power tracking, improves the response speed of the photovoltaic module to changes in environmental factors, and can reduce the probability of falling into the local optimum during the search process, thereby improving the power output level of the photovoltaic module.
[0018] As a preferred solution, the mutating of the optimal individual of the particle population specifically includes:
[0019] The optimal individual is mutated, and the magnitude of the gravitational force of the optimal individual after the mutation is calculated. When the gravitational force of the optimal individual after the mutation is greater than the gravitational force of the current optimal individual, the optimal individual is updated;
[0020] When the number of mutations does not reach the preset number of mutations, return to the next type of mutation, otherwise the mutation ends.
[0021] As a preferred embodiment, the mutation includes Gaussian mutation, Cauchy mutation, elite mutation and scaling mutation.
[0022] The present invention expands the search range of the maximum output power by performing multiple mutations on the optimal individuals in the particle population, and reduces the probability of falling into the local optimum during the search process compared with common algorithms.
[0023] As a preferred solution, the current power threshold is corrected to obtain a corrected power threshold, specifically including:
[0024] The current power threshold is iteratively corrected multiple times according to the power error between the actual charging power of the emergency repair power supply and the optimized output power until the power error is less than the error threshold, thereby obtaining a corrected power threshold.
[0025] The present invention corrects the power threshold through iterative learning according to the power error between the actual charging power and the optimized output power, thereby reducing the power error and improving the accuracy of the charging mode instruction, so that the emergency repair power supply is always recharged in a higher power charging mode, solving the problem of low recharge efficiency of the emergency repair power supply in the related art, resulting in the inability to meet the response speed required in an emergency situation.
[0026] As a preferred solution, the power error is determined in the following manner:
[0027] Outputting a corresponding charging mode instruction according to the magnitude relationship between the optimized output power and the current power threshold;
[0028] Connecting the emergency repair power supply to the candidate charging module corresponding to the charging mode instruction to obtain the actual charging power of the emergency repair power supply;
[0029] The power error is obtained by calculating the difference between the actual charging power and the optimized output power.
[0030] The present invention reduces power error through iterative learning, so that the actual charging power of the emergency repair power supply is close to the maximum output power obtained by the GSLPSO algorithm, thereby improving the charging efficiency of the emergency repair power supply.
[0031] As a preferred embodiment, the method further comprises:
[0032] When the candidate charging modules include an AC charging module, the emergency repair power supply is controlled to be connected to the AC charging module.
[0033] In the present invention, the AC charging module has a higher and more stable output power and less impact on the environment than other charging modules. Therefore, when the candidate charging modules include the AC charging module, the module can be directly selected to be connected to the emergency repair power supply for power replenishment.
[0034] As a preferred solution, the candidate charging module also includes a car power module with a power level higher than a power threshold; the outputting of a corresponding charging mode instruction according to the optimized output power of the photovoltaic module and the corrected power threshold includes:
[0035] When the optimized output power is greater than the corrected power threshold, a first charging mode instruction is output; wherein the first charging mode instruction is used to control the emergency repair power supply to be connected to the photovoltaic module;
[0036] When the optimized output power is less than the corrected power threshold, a second charging mode instruction is output; wherein the second charging mode instruction is used to control the emergency repair power supply to be connected to the vehicle power module.
[0037] The candidate charging modules in the present invention also include an automobile power module with a power level higher than a power threshold. When the output power of the photovoltaic module cannot meet the power threshold, the automobile power module can be used to supplement the emergency repair power supply, thereby overcoming the problem that the emergency repair power supply's supplementary power process is subject to time and environmental limitations, and improving the emergency repair power supply's supplementary power efficiency when environmental conditions do not meet the working conditions of the photovoltaic module.
[0038] As a preferred solution, when the power threshold is less than the output power of the automobile power module, the correction is stopped.
[0039] When the power threshold is less than the output power of the vehicle power module, if the charging mode instruction is still output according to the power threshold, the actual charging power of the emergency repair power supply will be less than the maximum power that the candidate charging module can output, resulting in a decrease in the charging efficiency of the emergency repair power supply. By stopping the correction, the actual charging power of the emergency repair power supply is ensured to be at a higher level.
[0040] The embodiment of the present invention further provides a power replenishment system for emergency repair power supply, comprising:
[0041] A candidate module determination module, used to determine a candidate charging module capable of charging the emergency repair power supply when the emergency repair power supply needs to be charged;
[0042] A photovoltaic power optimization module, used for optimizing the current output power of the photovoltaic module by using a GSLPSO algorithm to obtain the optimized output power of the photovoltaic module when the candidate charging module does not include an AC charging module but includes a photovoltaic module;
[0043] A power threshold correction module is used to correct the current power threshold to obtain a corrected power threshold;
[0044] A charging instruction output module is used to output a corresponding charging mode instruction according to the optimized output power and the corrected power threshold; wherein the charging mode instruction is used to control the emergency repair power supply to be connected to a corresponding charging module.
[0045] Compared with the related art, the embodiments of the present invention have the following beneficial effects:
[0046] 1. The present invention outputs a charging mode instruction by comparing the output power of the photovoltaic module with the power threshold, and continuously corrects the power threshold during the calculation process, thereby improving the accuracy of the charging mode instruction, maintaining the power replenishment efficiency of the emergency repair power supply at a high level, and meeting the requirements of the emergency repair power supply to cope with emergency situations;
[0047] 2. The present invention tracks the maximum output power of the photovoltaic module through the GSLPSO algorithm, and ensures that the output power of the photovoltaic module is at the highest level by adjusting the working point of the photovoltaic module; the GSLPSO algorithm adopted in the present invention shortens the convergence time of the maximum output power tracking, improves the response speed of the photovoltaic module to the change of environmental factors, and can reduce the probability of falling into the local optimum during the search process, thereby improving the power output level of the photovoltaic module;
[0048] 3. The candidate charging modules of the present invention do not include the traditional diesel generator sets and gas generator sets in the related technology. Solar energy and electric energy from automobile power supplies are used as the energy source for charging, which reduces carbon emissions, reduces the impact of the charging process on the environment, and reduces the cost of generating energy. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 : A schematic diagram of the steps of a method for replenishing power for an emergency repair power supply provided by an embodiment of the present invention;
[0050] Figure 2 : A schematic diagram of a flow chart of charging mode selection in an embodiment of the present invention;
[0051] Figure 3 : is a schematic diagram of a process for optimizing the output power of a photovoltaic module in an embodiment of the present invention;
[0052] Figure 4 : is a curve diagram of the output power after optimization in an embodiment of the present invention;
[0053] Figure 5 : is a curve diagram of the actual charging voltage of the emergency repair power supply in the embodiment of the present invention;
[0054] Figure 6 : is a curve diagram of the actual charging current of the emergency repair power supply in the embodiment of the present invention;
[0055] Figure 7 : A schematic diagram of a module of a power supply system for emergency repair power supply provided by an embodiment of the present invention;
[0056] Among them, the figure numbers of the drawings in the specification are as follows: 1. Candidate module determination module, 2. Photovoltaic power optimization module, 3. Power threshold correction module, 4. Charging instruction output module. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0058] In the related art, since photovoltaic modules are greatly affected by environmental factors, their output power will be reduced at night or during periods of poor weather conditions, affecting the efficiency of emergency power supply replenishment, and may even fail to effectively replenish the emergency power supply, affecting the response speed of the emergency power supply.
[0059] Embodiment 1
[0060] The present invention outputs a charging mode instruction by comparing the output power of the photovoltaic module with the power threshold, and continuously corrects the power threshold during the calculation process, thereby improving the accuracy of the charging mode instruction and reducing the probability of the emergency repair power supply's power replenishment efficiency being too low for a long time, thereby maintaining it at a high level and meeting the requirements of the emergency repair power supply to cope with emergency situations.
[0061] The present invention also tracks the maximum output power of the photovoltaic module through the GSLPSO algorithm. Compared with the conventional algorithm, the GSLPSO algorithm shortens the convergence time of the maximum output power tracking, improves the response speed of the photovoltaic module to the changes in environmental factors, and can reduce the probability of falling into the local optimum during the search process, thereby improving the power output level of the photovoltaic module.
[0062] Please refer to Figure 1 As shown, Figure 1 A schematic diagram of the steps of a method for replenishing an emergency repair power supply provided in an embodiment of the present invention. In this method, for the emergency repair power supply in this embodiment, it is first determined whether it needs to be replenished based on the current power level of the emergency repair power supply. When the power level of the emergency repair power supply is higher than the emergency power requirement, the emergency repair power supply works normally and does not need to be replenished. When the power level of the emergency repair power supply is lower than the emergency power requirement, the emergency repair power supply needs to be replenished. At this time, the candidate charging modules are determined based on the status of each charging module.
[0063] Step S1: when the emergency repair power supply needs to be charged, determining a candidate charging module that can charge the emergency repair power supply.
[0064] In this embodiment, the charging modules that can be used as candidate charging modules include AC charging modules, photovoltaic modules and car power modules. The AC charging module includes an AC socket, which can provide a reliable and stable power supply for the emergency repair power supply. The photovoltaic module includes a photovoltaic array composed of photovoltaic panels, a DC converter and a microcontroller for controlling the operation of the photovoltaic module. The microcontroller outputs a PWM wave with a suitable duty cycle to control the working point of the photovoltaic panel, so that the output power of the photovoltaic module reaches the maximum. The car power module includes a number of electric vehicles. The emergency repair power supply can charge itself with the power in the electric vehicle through the car charger when it needs to be supplemented. In other embodiments, other charging modules can also be selected according to actual application conditions, and their scope includes but is not limited to: wind power modules including wind power generators and hydropower modules including hydropower generators.
[0065] The specific method for determining the candidate charging modules is as follows: for an AC charging module, if an AC charging module exists within a certain range around the emergency repair power supply and can be connected to the AC charging module, then the candidate charging modules include the AC charging module. For a photovoltaic module, if a photovoltaic module exists within a certain range around the emergency repair power supply and can be connected to the photovoltaic module, then the candidate charging modules include the photovoltaic module. For an automobile power module, if there are several electric vehicles being charged in a charging station within a certain range around the emergency repair power supply, and the power of the electric vehicles is higher than the power threshold, then the candidate charging modules include the automobile power module.
[0066] In this step, by determining the type of candidate charging modules, the reliability of the candidate charging modules is improved, ensuring that the emergency repair power supply can be recharged at different times and environmental conditions, and solving the problem in related technologies that the recharging process is limited by environmental factors, resulting in the emergency repair power supply being unable to store enough electricity to cope with emergencies.
[0067] Please refer to Figure 2 As shown, Figure 2 The present invention is a flowchart of charging mode selection in an embodiment of the present invention. During the charging process, different charging modules are selected to be connected to the emergency repair power supply according to the specific type of the candidate charging module determined in step S1. The coexistence of multiple charging modes reduces the uncertainty of a single charging mode and improves the reliability of the emergency repair power supply.
[0068] When the candidate charging modules include an AC charging module, the emergency repair power supply is controlled to connect to the AC charging module and perform power replenishment. Compared with other candidate charging modules, the AC charging module has a higher and more stable output power, and the AC charging module has a smaller impact on the environment. Therefore, when the candidate charging modules include an AC charging module, the module can be directly selected to connect to the emergency repair power supply for power replenishment.
[0069] Step S2: when the candidate charging module does not include an AC charging module but includes a photovoltaic module, the current output power of the photovoltaic module is optimized by using a GSLPSO algorithm to obtain an optimized output power of the photovoltaic module.
[0070] When the candidate charging modules do not include AC charging modules but include photovoltaic modules, this method optimizes the current output power of the photovoltaic modules through the GSLPSO algorithm. The GSLPSO algorithm is a hybrid gravitational search leader particle swarm optimization algorithm that combines the GSA algorithm and the LPSO algorithm. It has both the global search capability of the GSA algorithm and the randomness provided by the LPSO algorithm, reducing the probability of particles falling into local optimality due to premature convergence.
[0071] Please refer to Figure 3 As shown, Figure 3 A schematic diagram of a process for optimizing the output power of a photovoltaic module in an embodiment of the present invention includes the following steps:
[0072] Step S2.1: Initialize the parameters in the GSLPSO algorithm and randomly assign the positions of the particles.
[0073] In the process of optimizing the current output power of the photovoltaic module through the GSLPSO algorithm, the parameters in the GSLPSO algorithm are first initialized, including the position, mass and speed of the particle population, and the position of each particle is randomly assigned using the rand function. In this embodiment, the position of the particle represents the duty cycle of the photovoltaic module, and different duty cycles represent different working points of the photovoltaic module. By randomly assigning the position of the particle, various scenarios that exist in actual work can be simulated to achieve a global search for the optimal duty cycle.
[0074] Step S2.2: Evaluate the fitness of the particle population.
[0075] In this embodiment, the fitness function is the output power of the photovoltaic module, which is affected by the duty cycle. The output power of the photovoltaic module working under different duty cycles is different. For the initial particle population, the optimal fitness in the particle population is taken as the optimal fitness.
[0076] Step S2.3: mutate the optimal individual of the particle population.
[0077] After the fitness evaluation is completed, the best individual in the current particle population, that is, the individual with the largest mass, is mutated. In this embodiment, the best individual is mutated multiple times in sequence, and the gravitational force of the best individual after mutation is calculated after each mutation. The gravitational force of the best individual represents the degree of search for the optimal solution in the current number of iterations. If the gravitational force of the best individual after mutation is greater than the gravitational force of the current best individual, the current best individual is updated to the best individual after mutation, otherwise it is not updated.
[0078] When the number of mutations does not reach the preset number of mutations, it returns to the next type of mutation. The mutation types in this embodiment include Gaussian mutation, Cauchy mutation, elite mutation and scaling mutation. The first stage of mutation is Gaussian mutation, which is in the following form:
[0079]
[0080] in, is the optimal individual after the mutation in the first stage, is the current optimal individual, and are the upper and lower boundaries of the control variable, respectively. In this embodiment, the control variable is the position of the particle. is subject to the mean , the standard deviation is The best individual after the first stage mutation is Calculate the magnitude of gravity when The gravitational force is greater than When the gravitational force Updated to .
[0081] The second stage of mutation is Cauchy mutation, which is in the following form:
[0082]
[0083] in, is the optimal individual after the second stage mutation, is a random value following the Cauchy distribution, is the proportional factor, which is in the following form:
[0084]
[0085] in, is the current iteration number, is the maximum number of iterations. For the optimal individual after the second stage mutation Calculate the magnitude of gravity when The gravitational force is greater than When the gravitational force Updated to .
[0086] The third stage of mutation is elite mutation, which is in the following form:
[0087]
[0088] in, is the best individual after the third stage mutation. Calculate the magnitude of gravity when The gravitational force is greater than When the gravitational force Updated to .
[0089] The fourth stage of mutation is scaling mutation, which is in the following form:
[0090]
[0091] in, is the optimal individual after the fourth stage mutation, is the scaling factor, and Respectively represent Two random particles at the iteration. The optimal individual after the fourth stage mutation Calculate the magnitude of gravity when The gravitational force is greater than When the gravitational force Updated to When the number of mutations reaches the preset number of mutations, the mutation ends and the optimal individual at this time is output.
[0092] In this method, the search range of the GSLPSO algorithm is expanded by performing multi-stage mutations on the optimal individuals in the particle population. Compared with conventional algorithms, the probability of falling into the local optimum during the search process is reduced, and the global optimal solution can be determined more accurately, so that the photovoltaic module can work at the maximum output power.
[0093] Step S2.4: Calculate the mass and gravity of each particle according to the gravitational constant, and update the position and velocity of each particle according to the velocity update coefficient.
[0094] After the mutation is completed, the mass and gravity of each particle in the particle population containing the optimal individual obtained through mutation are calculated, where the mass of the particle is as follows:
[0095]
[0096] in, For the The first iteration The mass of a particle, The form is as follows:
[0097]
[0098] in, For the The first iteration The fitness of particles, and Respectively The best fitness and the worst fitness in the particle population at the iteration.
[0099] After determining the mass of the particle, the gravitational force of the particle can be calculated based on the mass, in the following form:
[0100]
[0101] in, For the The first iteration Particles and The magnitude of the gravitational force between particles, and Respectively represent The first iteration Particles and The mass of a particle, For the The first iteration Particles and The distance between particles, For the The gravitational constant at the iteration is in the following form:
[0102]
[0103] in, is the initial gravitational constant, is the coefficient of variation of the gravitational constant.
[0104] After obtaining the magnitude of gravity, the acceleration of the particle at this time can be calculated by the magnitude of gravity, and the position and velocity of the particle can be updated by the acceleration, where the position and velocity of the particle are as follows:
[0105]
[0106]
[0107] in, and For the Second and The first iteration The position of a particle, and For the Second and The first iteration The speed of a particle, is the particle update coefficient, For the The first iteration The acceleration of a particle, and Are speed update coefficients, and their forms are as follows:
[0108]
[0109]
[0110] in, , , and It is a constant and can be set according to actual conditions.
[0111] Step S2.5: Update the speed update coefficient and the gravitational constant, and return to re-iterate the calculation until the number of iterations reaches the maximum number of iterations, and output the output power of the photovoltaic module at this time as the optimized output power.
[0112] At this time, if the number of iterations has not reached the maximum number of iterations, the speed update coefficient and the gravitational constant are updated according to the number of iterations, and the next iterative calculation is performed, that is, returning to step S2.2. At this time, in the process of evaluating the fitness, if the fitness after the iteration is greater than the current optimal fitness, the fitness after the iteration is updated to the optimal fitness. If the number of iterations reaches the maximum number of iterations, the optimal duty cycle is output according to the position of the optimal individual in the current particle population, and the photovoltaic module is controlled according to the optimal duty cycle to maximize the output of the photovoltaic module and obtain the optimized output power of the photovoltaic module.
[0113] Compared with conventional algorithms, the GSLPSO algorithm provided by this method effectively shortens the convergence time of maximum output power tracking through the GSA algorithm and the update of particle velocity and position, and improves the response speed of the photovoltaic module to changes in environmental factors. At the same time, the LPSO algorithm can reduce the probability of falling into the local optimum during the search process, thereby improving the power output level of the photovoltaic module.
[0114] Step S3: Correct the current power threshold to obtain a corrected power threshold.
[0115] The power error is obtained by comparing the actual charging power of the emergency repair power supply with the optimized output power. The power threshold is iteratively corrected according to the power error until the power error is less than the error threshold, thereby obtaining the corrected power threshold.
[0116] The calculation method of the power error in this step is: input the optimized output power into the controller, the controller includes an iterative learning controller, a charging mode switching system and a memory, wherein the charging mode switching system compares the optimized output power with the current power threshold, and outputs the corresponding charging mode instruction according to the magnitude relationship between the optimized output power and the current power threshold. In this embodiment, the charging mode instruction is used to control the emergency repair power supply to be connected to the corresponding charging module, connect the emergency repair power supply to the candidate charging module corresponding to the output charging mode instruction, and replenish the power to the emergency repair power supply to obtain the actual charging power of the emergency repair power supply at this time. The power error is obtained by subtracting the actual charging power from the optimized output power.
[0117] When the power error is less than the error threshold, the charging mode instruction output at this time is accurate and meets the requirements, and there is no need to correct the current power threshold; when the power error is greater than the error threshold, the charging mode instruction output at this time is wrong and the current power threshold needs to be corrected.
[0118] During the correction process, the power error and the current power threshold are first input into the memory and then into the iterative learning controller. In the iterative learning controller, the current power threshold is corrected according to the set proportional gain and learning rate, wherein the correction form is as follows:
[0119]
[0120] in, and Respectively Second and The corrected power threshold at the iteration number, is the learning rate, is the proportional gain, and Respectively Second and The power error at the iteration number.
[0121] Through multiple iterative learning, this method continuously reduces the error between the actual charging power of the emergency repair power supply and the maximum output power of the candidate charging module, thereby reducing the error rate of charging mode selection, effectively improving the control effect, and solving the problem in related technologies that the charging efficiency of the emergency repair power supply is limited due to the single charging mode.
[0122] Step S4: outputting a corresponding charging mode instruction according to the optimized output power and the corrected power threshold; wherein the charging mode instruction is used to control the emergency repair power supply to be connected to a corresponding charging module.
[0123] The corrected power threshold is input into the charging mode switching system, and the corrected power threshold is compared with the input optimized output power, and the corresponding charging mode instruction is output. The charging mode instruction is used to control the emergency repair power supply to connect with the corresponding charging module, so as to start charging.
[0124] Compared with the related art, the embodiments of the present invention have the following beneficial effects:
[0125] 1. The present invention outputs a charging mode instruction by comparing the output power of the photovoltaic module with the power threshold, and continuously corrects the power threshold during the calculation process, thereby improving the accuracy of the charging mode instruction, maintaining the power replenishment efficiency of the emergency repair power supply at a high level, and meeting the requirements of the emergency repair power supply to cope with emergency situations;
[0126] 2. The present invention tracks the maximum output power of the photovoltaic module through the GSLPSO algorithm, and ensures that the output power of the photovoltaic module is at the highest level by adjusting the duty cycle of the photovoltaic module, shortens the convergence time of the maximum output power tracking, and improves the response speed of the photovoltaic module to changes in environmental factors. At the same time, it can reduce the probability of falling into the local optimum during the search process, and improve the power output level of the photovoltaic module;
[0127] 3. The candidate charging modules of the present invention do not include the traditional diesel generator sets and gas generator sets in the related technology. Solar energy and electric energy from automobile power supplies are used as the energy source for charging, which reduces carbon emissions, reduces the impact of the charging process on the environment, and reduces the cost of generating energy.
[0128] Embodiment 2
[0129] The method of this embodiment is the same as that described in the first embodiment, and in this embodiment, the candidate charging modules include a photovoltaic module and a car power module, wherein the power level of the car power module is higher than the power threshold.
[0130] In step S4 of the present embodiment, the charging mode switching system compares the optimized output power with the corrected power threshold. When the optimized output power is greater than the corrected power threshold, a first charging mode instruction is output, and the first charging mode instruction is used to control the emergency repair power supply to be connected to the photovoltaic module, and to supplement the power for the emergency repair power supply through the photovoltaic module. When the optimized output power is less than the corrected power threshold, a second charging mode instruction is output, and the second charging mode instruction is used to control the emergency repair power supply to be connected to the vehicle power module, and to supplement the power for the emergency repair power supply through the vehicle power module. In the present embodiment, by outputting different charging mode instructions, it is possible to flexibly switch the charging mode according to environmental conditions, thereby ensuring the normal power supplement efficiency of the emergency repair power supply.
[0131] In this embodiment, during the correction process of the current power threshold, when the power threshold is less than the output power of the car power module, the correction is stopped. At this time, if the charging mode instruction is still output according to the power threshold, resulting in the emergency repair power supply selecting a photovoltaic module whose output power does not meet the requirements after optimization for power replenishment, the actual charging power of the emergency repair power supply will be less than the maximum power that the candidate charging module can output, limiting the power replenishment efficiency of the emergency repair power supply. In this embodiment, by maintaining the power threshold above the output power of the car power module, when the output power of the photovoltaic mode after optimization is still low and cannot meet the requirements during the power replenishment process, the emergency repair power supply is connected to the car power module and the power is replenished, ensuring that the emergency repair power supply can be normally replenished under various times and environmental conditions, thereby improving the reliability of the emergency repair power supply.
[0132] Embodiment 3
[0133] In this embodiment, a simulation experiment was carried out according to the method given in the second embodiment. The photovoltaic module in this embodiment adopts a simulated photovoltaic panel, the ambient temperature is set to 25 degrees Celsius, the light radiation in the environment is set to a step signal, and the light radiation is 1000W / m from 0 to 1 second. 2 , the irradiance is 400W / m in 1 to 2 seconds 2 .
[0134] Please refer to Figure 4 As shown, Figure 4 The optimized output power curve in the embodiment of the present invention shows that in the initial period of receiving light radiation, the optimized output power of the photovoltaic module has a certain fluctuation, and the fluctuation duration is less than 0.1 second, which will not affect the actual power replenishment process. After the initial period, the optimized output power converges to the light radiation of 1000W / m 2 The maximum power at 1 second is 400W / m 2 After optimization, the output power drops rapidly and converges to a light radiance of 400W / m in a very short time. 2 The maximum power is achieved at the time of the power on, and the waveform is smooth and stable within 1 to 2 seconds.
[0135] Depend on Figure 4 It can be seen that the GSLPSO algorithm provided in this embodiment can quickly respond to changes in the light radiance in the environment, and has a fast convergence speed and good working performance.
[0136] Please refer to Figure 5 and Figure 6 As shown, Figure 5 is a curve diagram of the actual charging voltage of the emergency repair power supply in an embodiment of the present invention, Figure 6is a curve diagram of the actual charging current of the emergency repair power supply in the embodiment of the present invention, Figure 5 and Figure 6 It can be seen that from 0 to 1 second, due to the strong light radiation, the optimized output power of the photovoltaic module is high, and the charging module connected at this time is the photovoltaic module. From 1 to 2 seconds, due to the decrease in light radiation, according to Figure 4 The output power after optimization is reduced. At this time, the comparison of the charging mode switching system shows that the optimized output power is lower than the corrected power threshold. During the correction process, the correction of the power threshold is stopped because the corrected power threshold is lower than the output power of the vehicle power module. Therefore, the emergency repair power supply is connected to the vehicle power module and replenished within 1 to 2 seconds.
[0137] Depend on Figure 5 and Figure 6 It can be seen that the emergency repair power supply recharging method provided in this embodiment adopts an iterative learning method, which outputs accurate charging mode instructions by correcting the power threshold to achieve charging mode switching, and has a fast response speed to changes in environmental factors, solving the problem in related technologies that the recharging efficiency is limited by the environment, resulting in the emergency repair power supply being unable to recharge normally.
[0138] Embodiment 4
[0139] Please refer to Figure 7 As shown, Figure 7 A module schematic diagram of a power replenishment system for an emergency repair power supply provided in an embodiment of the present invention. The present invention also provides a power replenishment system for an emergency repair power supply, including a candidate module determination module 1, a photovoltaic power optimization module 2, a power threshold correction module 3 and a charging instruction output module 4.
[0140] Among them, the candidate module determination module 1 is used to determine the candidate charging module that can charge the emergency repair power supply when the emergency repair power supply needs to be charged. The photovoltaic power optimization module 2 is used to optimize the current output power of the photovoltaic module by the GSLPSO algorithm when the candidate charging module does not include an AC charging module but includes a photovoltaic module, so as to obtain the optimized output power of the photovoltaic module. The power threshold correction module 3 is used to correct the current power threshold to obtain the corrected power threshold. The charging instruction output module 4 is used to output the corresponding charging mode instruction according to the optimized output power and the corrected power threshold; wherein the charging mode instruction is used to control the emergency repair power supply to be connected to the corresponding charging module. The system provided in this embodiment can be used to execute a power replenishment method for an emergency repair power supply as provided in any one of embodiments one to three.
[0141] Compared with the related art, the embodiments of the present invention have the following beneficial effects:
[0142] 1. The present invention outputs a charging mode instruction by comparing the output power of the photovoltaic module with the power threshold, and continuously corrects the power threshold during the calculation process, thereby improving the accuracy of the charging mode instruction, maintaining the power replenishment efficiency of the emergency repair power supply at a high level, and meeting the requirements of the emergency repair power supply to cope with emergency situations;
[0143] 2. The present invention tracks the maximum output power of the photovoltaic module through the GSLPSO algorithm, and ensures that the output power of the photovoltaic module is at the highest level by adjusting the working point of the photovoltaic module; the GSLPSO algorithm adopted in the present invention shortens the convergence time of the maximum output power tracking, improves the response speed of the photovoltaic module to the change of environmental factors, and can reduce the probability of falling into the local optimum during the search process, thereby improving the power output level of the photovoltaic module;
[0144] 3. The candidate charging modules of the present invention do not include the traditional diesel generator sets and gas generator sets in the related technology. Solar energy and electric energy from automobile power supplies are used as the energy source for charging, which reduces carbon emissions, reduces the impact of the charging process on the environment, and reduces the cost of generating energy.
[0145] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for replenishing power for emergency repair power supply, characterized in that: include: When the emergency repair power supply needs to be charged, determining a candidate charging module capable of charging the emergency repair power supply; In the case where the candidate charging module does not include an AC charging module but includes a photovoltaic module, the current output power of the photovoltaic module is optimized by using a GSLPSO algorithm to obtain an optimized output power of the photovoltaic module; wherein the GSLPSO algorithm is a hybrid gravitational search leader particle swarm optimization algorithm obtained by combining the global search capability of the GSA algorithm and the randomness provided by the LPSO algorithm, and the photovoltaic module corresponds to a power threshold, and the power threshold is used to compare with the output power of the photovoltaic module to output a charging mode instruction; The current power threshold of the photovoltaic module is corrected to obtain a corrected power threshold; wherein, the current power threshold of the photovoltaic module is corrected to obtain a corrected power threshold, including: performing multiple iterations of corrections on the current power threshold according to the power error between the actual charging power of the emergency repair power supply and the optimized output power, until the power error is less than the error threshold, to obtain the corrected power threshold; wherein, the power error is determined in the following manner: outputting a corresponding charging mode instruction according to the magnitude relationship between the optimized output power and the current power threshold; connecting the emergency repair power supply to a candidate charging module corresponding to the charging mode instruction, to obtain the actual charging power of the emergency repair power supply; and obtaining the power error by taking the difference between the actual charging power and the optimized output power; Outputting corresponding charging mode instructions according to the optimized output power and the corrected power threshold; wherein the charging mode instructions are used to control the connection between the emergency repair power supply and the corresponding charging module; the candidate charging module also includes an automobile power module with a power level higher than the power threshold; outputting corresponding charging mode instructions according to the optimized output power and the corrected power threshold includes: when the optimized output power is less than the corrected power threshold, outputting a second charging mode instruction; wherein the second charging mode instruction is used to control the connection between the emergency repair power supply and the automobile power module.
2. The method according to claim 1, characterized in that The optimizing the current output power of the photovoltaic module by using the GSLPSO algorithm to obtain the optimized output power of the photovoltaic module specifically includes: Initialize the parameters in the GSLPSO algorithm and randomly assign the positions of the particles, where the positions of the particles represent the duty cycle of the photovoltaic module; Perform fitness evaluation on the particle population, where the fitness is the output power of the photovoltaic module, and when the fitness of the particle population is better at this time, update the optimal fitness; Mutate the optimal individuals of the particle population; Calculate the mass and gravity of each particle according to the gravitational constant, and update the position and velocity of each particle according to the velocity update coefficient; The speed update coefficient and the gravitational constant are updated, and the iterative calculation is returned to be performed again until the number of iterations reaches the maximum number of iterations, and the output power of the photovoltaic module at this time is output as the optimized output power.
3. The method according to claim 2, characterized in that The mutating of the optimal individual of the particle population specifically includes: The optimal individual is mutated, and the magnitude of the gravitational force of the optimal individual after the mutation is calculated. When the gravitational force of the optimal individual after the mutation is greater than the gravitational force of the current optimal individual, the optimal individual is updated; When the number of mutations does not reach the preset number of mutations, return to the next type of mutation, otherwise the mutation ends.
4. The method according to claim 3, characterized in that The mutations include Gaussian mutations, Cauchy mutations, elite mutations and scaling mutations.
5. The method according to claim 1, characterized in that The method further comprises: When the candidate charging modules include an AC charging module, the emergency repair power supply is controlled to be connected to the AC charging module.
6. The method according to claim 1, characterized in that The step of outputting a corresponding charging mode instruction according to the optimized output power of the photovoltaic module and the corrected power threshold value further includes: When the optimized output power is greater than the corrected power threshold, a first charging mode instruction is output; wherein the first charging mode instruction is used to control the emergency repair power supply to be connected to the photovoltaic module.
7. The method according to claim 6, characterized in that When the power threshold is less than the output power of the automobile power module, the correction is stopped.
8. An emergency power supply system, characterized in that: include: A candidate module determination module, used to determine a candidate charging module capable of charging the emergency repair power supply when the emergency repair power supply needs to be charged; A photovoltaic power optimization module, used for optimizing the current output power of the photovoltaic module by using the GSLPSO algorithm to obtain the optimized output power of the photovoltaic module when the candidate charging module does not include an AC charging module but includes a photovoltaic module; wherein the GSLPSO algorithm is a hybrid gravitational search leader particle swarm optimization algorithm obtained by combining the global search capability of the GSA algorithm and the randomness provided by the LPSO algorithm; the photovoltaic module corresponds to a power threshold, and the power threshold is used to compare with the output power of the photovoltaic module to output a charging mode instruction; A power threshold correction module, used for correcting the current power threshold of the photovoltaic module to obtain a corrected power threshold; wherein, the correction of the current power threshold of the photovoltaic module to obtain the corrected power threshold includes: performing multiple iterative corrections on the current power threshold according to the power error between the actual charging power of the emergency repair power supply and the optimized output power, until the power error is less than the error threshold, and the corrected power threshold is obtained; wherein, the power error is determined in the following manner: outputting a corresponding charging mode instruction according to the magnitude relationship between the optimized output power and the current power threshold; connecting the emergency repair power supply with a candidate charging module corresponding to the charging mode instruction to obtain the actual charging power of the emergency repair power supply; and obtaining the power error by taking the difference between the actual charging power and the optimized output power; A charging instruction output module is used to output corresponding charging mode instructions according to the optimized output power and the corrected power threshold; wherein, the charging mode instruction is used to control the connection between the emergency repair power supply and the corresponding charging module; the candidate charging module also includes an automobile power module with a power level higher than the power threshold; the corresponding charging mode instruction is output according to the optimized output power and the corrected power threshold, including: when the optimized output power is less than the corrected power threshold, output a second charging mode instruction; the second charging mode instruction is used to control the connection between the emergency repair power supply and the automobile power module.
Citation Information
Patent Citations
Dynamic balance autonomous method, device and equipment of power grid and storage medium
CN116024747A
Method and system for repairing power supply of power distribution network
CN118157173A
