CN111178642A - Micro-grid optimization method based on simulated annealing particle swarm algorithm - Google Patents
Micro-grid optimization method based on simulated annealing particle swarm algorithm Download PDFInfo
- Publication number
- CN111178642A CN111178642A CN202010009714.4A CN202010009714A CN111178642A CN 111178642 A CN111178642 A CN 111178642A CN 202010009714 A CN202010009714 A CN 202010009714A CN 111178642 A CN111178642 A CN 111178642A
- Authority
- CN
- China
- Prior art keywords
- particle
- grid
- annealing
- micro
- microgrid
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 239000002245 particle Substances 0.000 title claims abstract description 110
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 62
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000002922 simulated annealing Methods 0.000 title claims abstract description 25
- 238000005457 optimization Methods 0.000 title claims abstract description 18
- 230000007613 environmental effect Effects 0.000 claims abstract description 13
- 238000000137 annealing Methods 0.000 claims description 35
- 238000010248 power generation Methods 0.000 claims description 32
- 230000006870 function Effects 0.000 claims description 25
- 239000007789 gas Substances 0.000 claims description 17
- 230000005611 electricity Effects 0.000 claims description 10
- 230000002068 genetic effect Effects 0.000 claims description 10
- 238000004146 energy storage Methods 0.000 claims description 9
- 230000001186 cumulative effect Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000009194 climbing Effects 0.000 claims description 4
- 239000000446 fuel Substances 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 claims description 4
- 238000006467 substitution reaction Methods 0.000 claims description 4
- 230000003993 interaction Effects 0.000 claims description 3
- 238000007599 discharging Methods 0.000 claims description 2
- 230000007547 defect Effects 0.000 abstract description 6
- 230000008901 benefit Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 239000003344 environmental pollutant Substances 0.000 description 2
- 238000003912 environmental pollution Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 231100000719 pollutant Toxicity 0.000 description 2
- 241001672018 Cercomela melanura Species 0.000 description 1
- DIWRORZWFLOCLC-UHFFFAOYSA-N Lorazepam Chemical compound C12=CC(Cl)=CC=C2NC(=O)C(O)N=C1C1=CC=CC=C1Cl DIWRORZWFLOCLC-UHFFFAOYSA-N 0.000 description 1
- 239000002253 acid Substances 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Economics (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- General Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Mathematical Physics (AREA)
- Computing Systems (AREA)
- Molecular Biology (AREA)
- Evolutionary Computation (AREA)
- Development Economics (AREA)
- Data Mining & Analysis (AREA)
- Game Theory and Decision Science (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- General Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a micro-grid optimization method based on a simulated annealing particle swarm algorithm, which is based on the fact that the pursuit targets are different when a micro-grid operates, the lowest cost and the lowest pollution cannot be met at the same time, and a corresponding objective function is established in consideration of economy and environmental protection. In order to avoid the defect that the traditional particle swarm algorithm is easy to fall into the local optimal solution, the algorithm combining the simulated annealing algorithm and the particle swarm algorithm is adopted, and compared with the traditional particle swarm algorithm, the local optimal solution is not easy to fall into, so that the running mode more suitable for the micro-grid is obtained, and the cost is reduced.
Description
Technical Field
The invention belongs to the field of microgrid optimization operation, and particularly relates to a microgrid optimization method combining a simulated annealing algorithm and a particle swarm algorithm, so that an operation mode more suitable for a microgrid is obtained.
Background
The distributed power generation system is used as powerful supplement of a centralized power supply system, and has certain advantages in the aspects of power supply economy and environmental pollution degree. However, the cost of power generation and pollution to the environment of distributed power sources remain largely unnoticeable. The distributed power supply is connected to the power grid in a micro-grid mode, and the distributed power supply is the most effective mode for exerting the energy efficiency of the distributed power supply. The combination and output mode of various distributed power supplies can meet different power consumption requirements, and on the premise of ensuring the reliability and stability of power consumption, scientific proportioning enables the power consumption to achieve the maximization of economic benefits and the minimization of environmental pollution is the key point of current discussion.
To date, various algorithms have been applied to the research of optimization algorithms of the microgrid, such as genetic algorithms, particle swarm optimization algorithms, and the like. The optimization problem has two main aspects: firstly, a global minimum point is required to be found, and secondly, a higher convergence rate is required. The genetic algorithm has three basic operators: selection, crossover, and mutation. The implementation of these operators requires many parameters, and the selection of these parameters, which are mostly empirical, seriously affects the quality of the solution. The particle swarm optimization algorithm has no intersection and variation used by the genetic algorithm, the system is initialized to a group of random solutions, and an optimal value is searched through iteration. The self-state of the particles is adjusted by fully utilizing self experience and group experience, and system parameters can be effectively optimized. The method has the defects that the particle swarm is easy to get early and fall into the local optimal solution, so that the optimal solution cannot be found out frequently.
Disclosure of Invention
Based on the defect condition in the prior art, the invention provides a microgrid optimization method combining a simulated annealing algorithm and a particle swarm algorithm for avoiding the defect that the traditional particle swarm algorithm is easy to fall into the local optimal solution, has the advantages of easy realization, fast convergence, higher accuracy and the like, and obtains an operation mode more suitable for a microgrid under the constraint condition of a power system.
Compared with the ordinary Greedy algorithm, the simulated annealing algorithm introduces random factors in the searching process. That is to say, it has a certain probability to accept a solution which is worse than the current solution, so that it can jump out the extreme value, i.e. get rid of the local optimum solution, so as to find out the global optimum solution, and solve the defect that the particle swarm algorithm is easy to fall into the local optimum solution.
The technical solution for realizing the purpose of the invention is as follows:
a micro-grid optimization method based on simulated annealing particle swarm optimization is characterized by comprising the following steps:
step 1: establishing an objective function C comprehensively considering the operating performance of the microgrid3;
Step 2: setting constraint conditions;
and step 3: initializing parameter inertial weight omega and learning factor c1、c2And an annealing speed δ;
and 4, step 4: randomly generating a population, wherein the population comprises m particles, and randomly initializing the speed and the position of the particles;
and 5: calculating the fitness (x (i)) of each particle i, f (x) for short, and recording the optimal position P of the ith particleidGlobal optimum position PpdFitness f (P)id) And global optimum fitness f (P)pd);
Step 6: according to the global optimum fitness f (P)pd) Calculating to obtain the initial temperature T of the annealing algorithm0;
And 7: note fSA(x) The function is a function for calculating the fitness of the annealing algorithm, and each P is at the current temperature TidFitness of annealing algorithm
And 8: selecting genetic algorithm from individual optimum position P by rouletteidOne of the alternative global optimum positions P is selectedpdIs denoted by Prd;
And step 9: will PpdBy substitution of PrdSubstituting a particle swarm formula, and updating the speed of each particle;
step 10: then calculating the fitness of each particle, and updating the optimal position P of each particleidAnd a population global optimum position Ppd;
Step 11: carrying out annealing operation;
step 12: and judging whether a termination condition is met, if so, stopping searching, outputting a calculation result to obtain a global optimal solution of the target function, and if not, turning to the step 7.
Further, the purpose defined in step 1The operation cost of the standard function only considering the economic operation of the microgrid is C1The operation cost when only considering the environmental protection operation of the micro-grid is C2。
wherein, C1Only considering the operation cost of the micro-grid during economic operation;the average daily running cost is calculated, and T is 24 hours, namely the running cost of 1-24 hours; cf(t) converting the fuel consumption cost to every kilowatt-hour at time t; cma(t) converting each electric energy unit to the maintenance and management cost of each kilowatt hour at the moment t; cdep(t) depreciation losses of each power unit at time t; cgov(t) government subsidy amount of clean energy at time t; kCgrid(t) the interaction cost with the large power grid at the moment t, and when electricity is purchased from the large power grid, k is more than 0; when selling electricity to a large power grid, k is less than 0.
wherein, C2only considering the operation cost (element) of the micro-grid during the environmental protection operation and mainly considering the treatment cost of the polluted gas, j represents the j-th type polluted gas, α j represents the treatment cost of the j-th type polluted gas, and betaijand betamjThe discharge coefficient of the discharge amount of the j-th type polluted gas converted into unit power in a micro-grid power generation unit and a large power grid respectively; pitAnd PmtThe current actual working power of the micro-grid power generation unit and the large power grid at the moment t is indicated; j is the total number of polluted gases; l is the total number of the micro-grid power generation units
Further, the constraint conditions set in the step 2 include power balance constraint of a power grid, output constraint of each power generation unit in a micro power grid, climbing rate constraint of a controllable power generation unit in the micro power grid, transmission power constraint of a micro power grid tie line, charge and discharge capacity constraint of an energy storage device and electric quantity constraint of exchange with a large power grid.
Further, the setting formula of the inertia weight is as follows:
wherein, ω ismaxAnd ωminRespectively the initial value and the final value of the inertia weight, K is the current iteration number, KmaxIs the maximum number of iterations.
Further, the roulette selection genetic algorithm in step 8 comprises the following steps:
step 1: pBet ═ rand (), pBet being a random number from 0 to 1;
And step 3: according to the cumulative probability, selecting the individual optimal position P of the r-th particle meeting the conditionrdReplacing the global optimum position PpdThe conditions are as follows: comfit (r-1) < pBet < comfit (r).
Further, the update speed of each particle is set in step 9 as follows:
c1,c2-acceleration constant, adjusting the learning maximum step size;
r1,r2two random functions, over a range of values [0, 1 ]]To increase search randomness;
omega-inertial weight, non-negative, adjusts the search range for the solution space;
Further, the update positions of the particles in step 10 are:
Further, the annealing operation of each particle in step 11 is:
Tnew=δTold
Told-the annealing temperature at the previous moment;
Tnew-an iterated annealing temperature;
delta-annealing speed.
Compared with the prior art, the invention adopting the technical scheme has the following technical effects:
(1) the invention establishes a comprehensive objective function considering economy and environmental protection, considers various realistic factors such as power generation cost, maintenance cost, depreciation cost, pollution gas treatment cost and the like, and has realistic significance in optimizing the result.
(2) The method comprehensively considers the factors of economy and environmental protection under the constraint condition of multiple micro-grids, obtains the running mode more suitable for the micro-grids, and has the advantages of lowest total running cost and optimal environmental protection effect.
(3) The simulated annealing particle swarm algorithm provided by the invention can effectively avoid the defect that the traditional particle swarm algorithm is easy to fall into the local optimal solution, and in the particle motion process, when the next generation position of the particle is better than the current position, the particle moves to the next generation position; on the other hand, if the next generation position is worse than the current position, the particles do not move directly to the next generation position, but move with a certain probability, and this probability is controlled by the temperature. Thus, when the temperature drops sufficiently slowly, the particles do not easily jump out of the search area where they are "wanted", thereby enhancing the local search capability of the particles.
Drawings
Fig. 1 is a schematic diagram of a grid-connected microgrid structure according to the present invention.
FIG. 2 is a diagram of the operation of each micro-power source under the conventional particle swarm optimization.
FIG. 3 is a diagram of the operation of each micro-power source under the simulated annealing particle swarm algorithm of the present invention.
Fig. 4 is an algorithm flow diagram of the present invention.
Detailed Description
The invention will be described in further detail below with reference to the accompanying drawings, specific data, and accompanying simulation examples.
As shown in fig. 4, the method for optimizing the microgrid based on the simulated annealing particle swarm algorithm obtains an operation mode more suitable for the microgrid by adopting an algorithm combining the simulated annealing algorithm and the particle swarm algorithm. The method comprises the following steps:
step 1: establishing an operation cost objective function C when the economy and the environmental protection performance of the microgrid are comprehensively considered3。
In the formula: c3The operation cost (element) is the operation cost when the economy and the environmental protection performance of the micro-grid are comprehensively considered. Lambda [ alpha ]1、λ2Are weight coefficients. Wherein C is1Only the operating cost of the microgrid during economic operation is taken into account, C2Only the operating cost of the micro-grid during the environmental protection operation is considered.
Step 2: a constraint is set.
And step 3: initializing parameter inertial weight omega and learning factor c1、c2And an annealing speed δ.
And 4, step 4: a population is randomly generated containing m particles, and the velocity and position of the particles are randomly initialized.
And 5: calculating the fitness (x (i)) of each particle i into a fitness function, namely an objective function, f (x) for short, and recording the optimal position P of each (ith) particleidGlobal optimum position PpdFitness f (P)id) And global optimum fitness f (P)pd)。
Step 6: according to the global optimum fitness f (P)pd) Calculating to obtain the initial temperature T of the annealing algorithm0。
And 7: note fSA(x) The function is a function for calculating the fitness of the annealing algorithm, and each P is at the current temperature TidFitness of annealing algorithm
And 8: using the idea of selecting genetic algorithms by roulette, from an individual optimum position PidOne of the alternative global optimum positions P is selectedpdIs denoted by Prd。
And step 9: will PpdBy substitution of PrdSubstituting a particle swarm formula, and updating the speed of each particle as follows:
c1,c2-acceleration constant, adjusting the learning maximum step size;
r1,r2two random functions, over a range of values [0, 1 ]]To increase search randomness;
omega-inertial weight, non-negative, adjusts the search range for the solution space;
Step 10: then calculating the fitness of each particle, and updating the optimal position P of each particleidAnd the population optimal position Ppd。
step 11: and (3) carrying out annealing operation:
Tnew=δTold
Told-the annealing temperature at the previous moment;
Tnew-an iterated annealing temperature;
delta-annealing speed.
Step 12: and judging whether the termination condition is met, if so, stopping searching, outputting a calculation result, and if not, turning to the step 7.
Only considering the operation cost C of the microgrid during economic operation in the objective function defined in the step 11And the operation cost C only considering the environment-friendly operation of the microgrid2Comprises the following steps:
wherein, C1Only considering the operation cost of the micro-grid during economic operation;means that the average daily operating cost is calculated herein, T ═ 24, i.e. 1-24 hours of operating cost; cf(t) converting the fuel consumption cost to every kilowatt-hour at time t; cma(t) converting each electric energy unit to the maintenance and management cost of each kilowatt hour at the moment t; cdep(t) depreciation losses of each power unit at time t; cgov(t) government subsidy amount of clean energy at time t; kCgrid(t) the interaction cost with the large power grid at the moment t, and when electricity is purchased from the large power grid, k is more than 0; when selling electricity to a large power grid, k is less than 0.
Wherein, C2Only considering the operation cost (element) of the micro-grid during the environmental protection operation and mainly considering the treatment cost of the polluted gas; j denotes the j-th pollution gas (including CO and CO generated in micro-grid and large-grid)2、SO2And NOxderivatives of alpha)jthe treatment cost (yuan/kw) of the j-th type of contaminated gas, betaijand betamjThe discharge coefficient of the discharge amount of the j-th type polluted gas converted into unit power in a micro-grid power generation unit and a large power grid respectively; pitAnd PmtThe current actual working power (kw) of the micro-grid power generation unit and the large power grid at the moment t is indicated; j is the total number of polluted gases; l is the total number of the micro-grid power generation units
The constraint conditions set in the step 2 are as follows:
and power balance constraint of the power grid:
in the formula: pl(t) represents the generated power (kw) of the ith power generation unit which is currently working at the time t; pbat(t) represents the power (kw) emitted by the energy storage device, and if the power (kw) is a negative number, the microgrid charges the energy storage device; pgrid(t) power (kw) for purchasing electricity from the large power grid is represented, and if the power (kw) is negative, the micro-grid sells electricity to the large power grid; pe(t) represents the load power (kw) required by the user at the present time.
And (3) output constraint of each power generation unit in the microgrid:
Plmin(t)≤Pil(t)≤Plmax(t)
in the formula: plmin(t)、PlmaxAnd (t) is the minimum value and the maximum value of the generated power of the ith power generation unit which is currently operated at the time t.
And (3) restricting the climbing rate of the controllable power generation unit in the micro-grid:
in the formula: pl,up(t) represents the active power (kw) increased by the ith power generation unit currently operating at time t; pl,up(t-1) represents the active power (kw) increased by the ith power generation unit currently in operation at time t-1; pl,down(t) represents the active power (kw) reduced by the ith power generation unit currently operating at time t; pl,down(t-1) represents the active power (kw) reduced by the ith power generation unit currently operating at time t-1; rl,upAn active power limit (kw) representing the increase of the current working ith power generation unit; rl,downRepresenting the reduced active power limit (kw) of the current working ith power generation unit. The climbing rate of the system can reflect the performance of each controllable power generation unit, and the feasibility of the system is guaranteed by combining with the reality.
Microgrid tie line transmission power constraint:
Pline,min≤Pline≤Pline,max
in the formula: plineThe transmission capacity (kw) of the line between the microgrid and the distribution network is represented, and the upper limit P in a certain range is required to be met according to actual conditionsline,maxAnd a lower limit Pline,minAnd (4) the following steps.
And (3) restricting the charge and discharge capacity of the energy storage device:
SSOCmin≤SSOC(t)≤SSOCmax;
in the formula: sSOC(t) represents the state of charge of the energy storage device at time tSatisfy a certain upper and lower limits SSOCmax、SSOCmin;PBESSin(t) and PBESSout(t) respectively represents the charging and discharging power of the energy storage device at the moment t, and a certain upper limit P needs to be metBESSin,max、PBESSout,max。
And (3) electric quantity exchange constraint with a large power grid:
considering the black start capability of the micro-grid, the annual exchange quantity of the micro-grid and the large grid is set to be restricted to be not more than 40% of the annual power consumption.
The inertial weight in step 3 is set as:
wherein, ω ismaxAnd ωminRespectively the initial value and the final value of the inertia weight, K is the current iteration number, KmaxIs the maximum number of iterations.
The concept of the roulette selection genetic algorithm in step 8 is as follows:
step 1: pBet ═ rand () (pBet is a random number from 0 to 1)
And step 3: according to the cumulative probability, selecting the individual optimal position P of the r-th particle meeting the conditionrdReplacing the global optimum position Ppd. The conditions are as follows: comfit (r-1) < pBet < comfit (r)
In step 9, the update speed of each particle is set as follows:
the update positions of the particles in step 10 are:
the annealing operation of each particle in the step 11 is as follows:
Tnew=δTold。
example 1
In the embodiment, a higher altitude area of a remote area is taken as an example, an actual micro-grid system is analyzed, and a calculation period is set as one day on average.
1) Setting system parameters: and predicting the photovoltaic power generation and wind power generation power by referring to the local area illumination intensity and the wind speed. Fig. 1 shows a general grid-connected microgrid structure model, comprising a microgrid device: photovoltaic power generation systems (PV for short), Wind power generation systems (WT for short), Micro gas turbines (MT for short), Fuel cells (FC for short), and Diesel generators (DEG for short). In the energy storage device in the model, a Lead-acid batteries (BAT for short) is considered, and the load refers to daily load requirements in life.
The discharge coefficient and the treatment cost corresponding to the type of pollutant discharge are shown in Table 2, and the electricity prices at different local time zones are shown in Table 3.
TABLE 1 micro-grid system for each processing unit
TABLE 2 pollutant discharge coefficient and treatment cost
TABLE 3 local different time zone electricity price table
Note: the load peak time period is as follows: 10:00-13:00, 17:00-20: 00;
the load trough period is as follows: 0:00-7:00, 23:00-0: 00;
the rest is a load leveling period.
Based on the parameters, an operation cost objective function C in the operation process of comprehensively considering the economy and the environmental protection of the microgrid is established3。
2) A constraint is set. And (4) predicting the photovoltaic and wind power generation amount and the load of cell users on the same day, wherein PV and WT are operated at the maximum power. The maximum charge-discharge power of the energy storage device is 10kw, and the electric quantity purchased from a large power grid does not exceed 40% of the electric load on the same day. The premise is that the large power grid has sufficient electric quantity, and power failure loss is not considered temporarily.
3) Initializing parameter inertial weight omega and learning factor c1、c2And an annealing speed δ. Through experiments, the parameter omegamaxAnd ωminWhen the values of (A) and (B) are set to 0.9 and 0.4, respectively, the search ability of the particles is better, c1、c2Is a learning factor which respectively represents the learning ability of the particles under the best state of the particles and the best state of the population, and the invention c is proved by experiments1、c22.05 of the sample is taken. In the simulated annealing particle swarm optimization, the simulated annealing process can be as slow as possible to improve the probability of finding a global optimal solution, so the simulated annealing speed delta is 0.95.
4) A population is randomly generated containing 600 particles, and the velocity and position of the particles are randomly initialized.
5) Calculating the fitness (x (i)) of each particle i into a fitness function, namely an objective function, f (x) for short, and recording the optimal position P of each (ith) particleidGlobal optimum position PpdFitness f (P)id) And global optimum fitness f (P)pd)。
6) According to the global optimum fitness f (P)pd) The annealing algorithm initial temperature T0 is calculated.
7) Note fSA(x) The function is a function for calculating the fitness of the annealing algorithm, and each P is at the current temperature TidFitness of annealing algorithm
8) Using the idea of selecting genetic algorithms by roulette, from an individual optimum position PidOne of the alternative global optimum positions P is selectedpdIs denoted by Prd。
9) Will PpdBy substitution of PrdSubstituting a particle swarm formula, and updating the speed of each particle as follows:
10) then calculating the fitness of each particle, and updating the optimal position P of each particleidAnd a population global optimum position Ppd。
11) And (3) carrying out annealing operation:
Tnew=δTold
12) the dimension of the search space set by the invention is 48; the maximum number of iterations is 300. After the termination condition is met, the output calculation result is 37453.7 yuan, and about 3000 yuan is saved compared with the original algorithm.
Fig. 2 shows the operation of each micro power source in the particle swarm optimization distribution mode. FIG. 3 shows the operation of each micro-power source in the simulated annealing particle swarm algorithm distribution mode. Compared with the original method, the method has the advantages that the cost is lower, the power supply of a public power grid is not depended, and the independence of the micro-grid is increased. Indicating the effectiveness of the present invention.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can make several modifications without departing from the principle of the present invention, therefore, the scope of the present invention should be subject to the protection scope of the claims.
Claims (10)
1. A micro-grid optimization method based on simulated annealing particle swarm optimization is characterized by comprising the following steps:
step 1: establishing an objective function C comprehensively considering the operating performance of the microgrid3;
Step 2: setting constraint conditions;
and step 3: initializing parameter inertial weight omega and learning factor c1、c2And an annealing speed δ;
and 4, step 4: randomly generating a population, wherein the population comprises m particles, and randomly initializing the speed and the position of the particles;
and 5: calculating the fitness (x (i)) of each particle i, f (x) for short, and recording the optimal position P of the ith particleidGlobal optimum position PpdFitness f (P)id) And global optimum fitness f (P)pd);
Step 6: according to the global optimum fitness f (P)pd) Calculating to obtain the initial temperature T of the annealing algorithm0;
And 7: note fSA(x) The function is a function for calculating the fitness of the annealing algorithm, and each P is at the current temperature TidFitness of annealing algorithmWherein n is the total number of particles;
and 8: selecting genetic algorithm from individual optimum position P by rouletteidOne of the alternative global optimum positions P is selectedpdIs denoted by Prd;
And step 9: will PpdBy substitution of PrdSubstituting a particle swarm formula, and updating the speed of each particle;
step 10: then calculating the fitness of each particle, and updating the optimal position P of each particleidAnd a population global optimum position Ppd;
Step 11: carrying out annealing operation;
step 12: and judging whether a termination condition is met, if so, stopping searching, outputting a calculation result to obtain a global optimal solution of the target function, and if not, turning to the step 7.
2. The method for optimizing the microgrid based on the simulated annealing particle swarm algorithm according to claim 1, characterized in that the operation cost C of the microgrid during economic operation is only considered in the objective function defined in the step 11The operation cost when only considering the environmental protection operation of the micro-grid is C2。
3. The method for optimizing a microgrid based on a simulated annealing particle swarm algorithm according to claim 2, characterized in that,
wherein, C1Only considering the operation cost of the micro-grid during economic operation;the average daily running cost is calculated, and T is 24 hours, namely the running cost of 1-24 hours; cf(t) converting the fuel consumption cost to every kilowatt-hour at time t; cma(t) time of each electricityThe maintenance and management cost per kilowatt hour can be converted by a unit; cdep(t) depreciation losses of each power unit at time t; cgov(t) government subsidy amount of clean energy at time t; kCgrid(t) the interaction cost with the large power grid at the moment t, and when electricity is purchased from the large power grid, k is more than 0; when selling electricity to a large power grid, k is less than 0.
4. The method for optimizing a microgrid based on a simulated annealing particle swarm algorithm according to claim 2, characterized in that,
wherein, C2only considering the operation cost (element) of the micro-grid during the environmental protection operation and mainly considering the treatment cost of the polluted gas, j represents the j-th type polluted gas, alphajthe treatment cost of the j-th type polluted gas, betaijand betamjThe discharge coefficient of the discharge amount of the j-th type polluted gas converted into unit power in a micro-grid power generation unit and a large power grid respectively; pitAnd PmtThe current actual working power of the micro-grid power generation unit and the large power grid at the moment t is indicated; j is the total number of polluted gases; and L is the total number of the micro-grid power generation units.
5. The method for optimizing the microgrid based on the simulated annealing particle swarm algorithm according to claim 1, wherein the constraint conditions set in the step 2 comprise power balance constraint of the microgrid, output constraint of each power generation unit in the microgrid, climbing rate constraint of controllable power generation units in the microgrid, transmission power constraint of a microgrid connecting line, charging and discharging capacity constraint of an energy storage device and electric quantity constraint of exchange with a large power grid.
6. The method for optimizing the microgrid based on the simulated annealing particle swarm optimization of claim 1, wherein the setting formula of the inertia weight ω is as follows:
wherein, ω ismaxAnd ωminRespectively the initial value and the final value of the inertia weight, K is the current iteration number, KmaxIs the maximum number of iterations.
7. The method of claim 1, wherein the roulette selection genetic algorithm in step 8 comprises the following steps:
step 1: pBet ═ rand (), pBet being a random number from 0 to 1;
And step 3: according to the cumulative probability, selecting the individual optimal position P of the r-th particle meeting the conditionrdReplacing the global optimum position PpdThe conditions are as follows: comfit (r-1) < pBet < comfit (r).
8. The method for optimizing the microgrid based on the simulated annealing particle swarm algorithm of claim 1, wherein the updating speed of each particle in the step 9 is set as follows:
c1,c2accelerationA constant for adjusting a learning maximum step length;
r1,r2two random functions, over a range of [0, 1 ]]For increasing search randomness;
omega-inertial weight, non-negative, used to adjust the search range for solution space;
9. The method for optimizing the microgrid based on the simulated annealing particle swarm algorithm of claim 1, wherein the update positions of the particles in the step 10 are as follows:
10. The method for optimizing the microgrid based on the simulated annealing particle swarm algorithm of claim 1, wherein the annealing operation of each particle in the step 11 is as follows:
Tnew=δTold
Told-the annealing temperature at the previous moment;
Tnew-an annealing temperature after iteration;
delta. annealing speed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010009714.4A CN111178642A (en) | 2020-01-06 | 2020-01-06 | Micro-grid optimization method based on simulated annealing particle swarm algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010009714.4A CN111178642A (en) | 2020-01-06 | 2020-01-06 | Micro-grid optimization method based on simulated annealing particle swarm algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111178642A true CN111178642A (en) | 2020-05-19 |
Family
ID=70652481
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010009714.4A Withdrawn CN111178642A (en) | 2020-01-06 | 2020-01-06 | Micro-grid optimization method based on simulated annealing particle swarm algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111178642A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112183841A (en) * | 2020-09-23 | 2021-01-05 | 上海电机学院 | Optimized dispatching method of micro-grid containing electric automobile based on simulated annealing algorithm |
CN113361146A (en) * | 2021-07-21 | 2021-09-07 | 国网江西省电力有限公司供电服务管理中心 | Improved particle swarm optimization-based manganese-copper shunt structure parameter optimization method |
-
2020
- 2020-01-06 CN CN202010009714.4A patent/CN111178642A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112183841A (en) * | 2020-09-23 | 2021-01-05 | 上海电机学院 | Optimized dispatching method of micro-grid containing electric automobile based on simulated annealing algorithm |
CN113361146A (en) * | 2021-07-21 | 2021-09-07 | 国网江西省电力有限公司供电服务管理中心 | Improved particle swarm optimization-based manganese-copper shunt structure parameter optimization method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325608B (en) | Distributed power supply optimal configuration method considering energy storage and considering photovoltaic randomness | |
CN109859071B (en) | Virtual power plant multi-energy complementary source load storage optimal configuration method | |
CN105811409B (en) | A kind of microgrid multiple target traffic control method containing hybrid energy storage system of electric automobile | |
Qi et al. | Low-carbon community adaptive energy management optimization toward smart services | |
CN110705776A (en) | Energy optimization scheduling method | |
CN110705863A (en) | Energy optimization scheduling device, equipment and medium | |
CN116667325B (en) | Micro-grid-connected operation optimization scheduling method based on improved cuckoo algorithm | |
CN115147245B (en) | Virtual power plant optimal scheduling method for industrial load participating in peak shaving auxiliary service | |
Rouhani et al. | A comprehensive method for optimum sizing of hybrid energy systems using intelligence evolutionary algorithms | |
CN111178642A (en) | Micro-grid optimization method based on simulated annealing particle swarm algorithm | |
CN115995822A (en) | Optimization method for distributed energy access micro-grid | |
CN107834574B (en) | Control method for power exchange between distributed energy system and power grid | |
CN112580897A (en) | Multi-energy power system optimal scheduling method based on parrot algorithm | |
Xiao et al. | A multi‐energy complementary coordinated dispatch method for integrated system of wind‐photovoltaic‐hydro‐thermal‐energy storage | |
CN115241923A (en) | Micro-grid multi-objective optimization configuration method based on snake optimization algorithm | |
Zheng et al. | Multi-objective optimization of hybrid energy management system for expressway chargers | |
CN112883630A (en) | Day-ahead optimized economic dispatching method for multi-microgrid system for wind power consumption | |
CN116611575A (en) | Multi-VPP shared energy storage capacity optimal configuration method based on double-layer decision game | |
Li et al. | Research on microgrid optimization based on simulated annealing particle swarm optimization | |
CN116191508A (en) | Energy storage-containing active power distribution network economic operation optimization method considering wind and light output | |
CN111319505A (en) | Energy optimization method and device for light storage type electric vehicle charging station | |
CN114841448A (en) | Hierarchical and partitioned load optimization regulation and control method based on multi-agent system | |
CN112561120B (en) | Microgrid-based optimized operation method for day-ahead market clearing system | |
CN114914943A (en) | Hydrogen energy storage optimization configuration method for green port shore power system | |
CN113807566A (en) | Community energy scheduling method based on renewable energy and uncertain internal load |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200519 |
|
WW01 | Invention patent application withdrawn after publication |