CN114580306B - Flyback transformer design method based on improved PSO algorithm - Google Patents
Flyback transformer design method based on improved PSO algorithm Download PDFInfo
- Publication number
- CN114580306B CN114580306B CN202210452322.4A CN202210452322A CN114580306B CN 114580306 B CN114580306 B CN 114580306B CN 202210452322 A CN202210452322 A CN 202210452322A CN 114580306 B CN114580306 B CN 114580306B
- Authority
- CN
- China
- Prior art keywords
- particle
- particles
- fitness function
- optimal solution
- global
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000013461 design Methods 0.000 title claims abstract description 25
- 239000002245 particle Substances 0.000 claims abstract description 152
- 230000008569 process Effects 0.000 claims abstract description 31
- 230000006870 function Effects 0.000 claims description 48
- 238000004804 winding Methods 0.000 claims description 14
- 238000012804 iterative process Methods 0.000 claims description 11
- 239000011162 core material Substances 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 9
- 238000009413 insulation Methods 0.000 claims description 6
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical group [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 3
- 230000004907 flux Effects 0.000 claims description 3
- 238000005457 optimization Methods 0.000 description 8
- 230000009466 transformation Effects 0.000 description 3
- 241000764238 Isis Species 0.000 description 2
- 238000012938 design process Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 244000144992 flock Species 0.000 description 1
- 230000019637 foraging behavior Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 229940037201 oris Drugs 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- 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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/06—Multi-objective optimisation, e.g. Pareto optimisation using simulated annealing [SA], ant colony algorithms or genetic algorithms [GA]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/08—Probabilistic or stochastic CAD
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Geometry (AREA)
- Coils Or Transformers For Communication (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a flyback transformer design method based on an improved PSO algorithm, which comprises the following design steps: s100: setting target parameters and constraint conditions of the flyback transformer, and selecting member items of optimal variables; s200: randomly searching in respective value ranges through each member to form a multi-particle population; s300: iterating each particle, and solving the local optimum and the global optimum of each member according to the positions of the particles in the partial group in the iteration process; s400: judging the iteration times of the particles; if the iteration times are less than the set maximum iteration times, the particle reenters the step S300 to perform the next iteration, and if the iteration times reach the maximum iteration times, the optimal solution of each member is output. The members of different optimal variables are searched in a global range in different directions, so that the optimal value or the approximate optimal value of the target parameter of the flyback transformer design can be obtained with higher probability.
Description
Technical Field
The application relates to the technical field of transformer optimization design, in particular to a design method of a flyback transformer.
Background
The flyback transformer has the advantages of simple structure, small volume, low cost, no filter inductance, capability of realizing isolated output and the like, and is widely applied to the low-power direct-current application occasions below 100W, such as the fields of medical electronics, mobile communication, industrial control and the like.
When the flyback converter works as a switching power supply, the design of the transformer plays an important role in the working performance of the circuit. In the field of transformer optimization design, some common algorithms are: the Monte-Karlo method, the effective constraint direct method, the Powell method, the improved complex shape method, the circulation pass method, the positive variation experiment method and the like, but the algorithms are not ideal for the design of the transformer; or the calculation amount is too large, and the solving efficiency is low; or the algorithm itself cannot ensure global optimization; or the algorithm has poor universality, and the program cannot be conveniently transplanted; or the algorithm can not be applied to a complex mixed discrete variable optimization problem, and the like. There are many limitations to these approaches for solving the nonlinear programming problem.
Disclosure of Invention
One of the objectives of the present application is to provide a method for designing a flyback transformer capable of global optimization.
In order to achieve the purpose, the technical scheme adopted by the application is as follows: a flyback transformer design method based on an improved PSO algorithm comprises the following design steps:
s100: setting target parameters and constraint conditions of the flyback transformer, and selecting member items of optimal variables;
s200: randomly searching in respective value ranges through each member to form a multi-particle population;
s300: iterating each particle, and solving the local optimum and the global optimum of each member according to the positions of the particles in the partial group in the iteration process;
s400: judging the iteration times of the particles; if the iteration times are less than the set maximum iteration times, the particle reenters the step S300 to perform the next iteration, and if the iteration times reach the maximum iteration times, the optimal solution of each member is output.
Preferably, the target parameter of the flyback transformer in step S100 is at least one, and may be determined by an objective functionCarrying out representation;
;(ii) a Wherein n represents the number of member items, and n is more than or equal to 1;an objective function representing the member of the nth term,represents the nth member;and representing the member function corresponding to the nth member.
Preferably, the iterative process of the particles in step S300 includes the following steps:
s310: judging whether the particles in the step S200 meet the constraint condition, if so, solving the current position of the particlesCorresponding objective functionAnd the value of the fitness function, and further obtaining the local optimal solution of each memberAnd global optimal solution(ii) a Punishment is carried out if the particles do not meet the constraint condition;
s320: updating the position of the particle toSolving the value of the fitness function corresponding to the updated particle position;
s330: comparing the value of the fitness function before and after the updating of the particle position, and obtaining the local optimal solution of the particle according to the comparison resultAnd global optimal solutionUpdating is carried out;
the position update formula of the particle may be:(ii) a Wherein k represents the iteration times of the particles, and k is more than or equal to 1; w is the inertial weight; c is a learning factor; r is [0, 1 ]]The random number of (1);the historical optimal position of the particle i in the d dimension is taken as the optimal position;is the location vector of the d-th dimension of particle i in the k-th iteration.
Preferably, the inertia weight w decreases linearly with the increase of the number of iterations, and the specific calculation formula is as follows:
(ii) a Wherein,is the weight of the initial inertia, and,in order to terminate the inertial weight(s),is the maximum number of iterations.
Preferably, the fitness function comprises a local fitness functionAnd global fitness function(ii) a Thus, in step S330, the local fitness function is comparedAndvalue of (d) and global fitness functionAndaccording to the result of the comparison, a locally optimal solution for the particleAnd global optimal solutionUpdating is carried out;
;whereinrepresenting an objective functionThe maximum value of (a) is,representing an objective functionAverage value of (d);represents the weight corresponding to the nth member, and。
preferably, the penalty for the particles not meeting the constraint condition in step S310 includes the following steps:
s311: randomly searching the particles which do not meet the constraint condition again in the value range to obtain a new position;
s312: judging whether the particles meet the constraint condition again;
s313: if the particles meet the constraint conditions, solving the corresponding objective function according to the current positions of the particlesAnd the value of the fitness function; and if the particles still do not meet the constraint condition, removing the particles which do not meet the constraint condition.
Preferably, the constraints of the flyback transformer in step S100 include performance index constraints, structural and technical constraints, and form size and weight constraints.
Preferably, the performance indicator constraints include: the upper limit of voltage ratio error, the upper limit of magnetic flux density, the electric intensity margin of main insulation and longitudinal insulation of a winding, the upper limit of impedance voltage error, the limit of winding temperature rise, the upper limit of iron core temperature rise, the upper limit of oil temperature rise and the lower limit of efficiency; structural and technical condition constraints include specification constraints; form size and weight constraints include an upper limit on winding high error.
Preferably, the member items of the optimal variables include: core type, core material, core size, window area, winding wire diameter, and leakage inductance.
Preferably, the target parameter of the flyback transformer in step S100 includes a high-precision output voltage.
Preferably, in the process of iterating the particle, in order to avoid the particle from falling into the local optimum, the particle needs to be corrected, and the specific correction includes the following steps:
s301: setting the control factor a such that the particles are iterated toThe secondary process is divided into a plurality of parts;
s302: at the beginning of each part, a local fitness function corresponding to a single particleValue of (d) and global fitness functionComparing the values of (A);
s303: for local fitness functionIs better than the global fitness functionThe iterative process of step S300 is performed in a loop until the end of each part;
s304: for local fitness functionIs different from the global fitness functionSearching the position of the particle in the feasible region again, and then circularly performing the iterative process of the step S300 until the end of each part;
s305: comparing the fitness function of the particles in the step S303 and the step 304 at the end of each part, and carrying out local optimal solution according to the comparison resultAnd global optimal solutionUpdating is carried out;
Compared with the prior art, the beneficial effect of this application lies in:
(1) according to the method and the device, searching can be performed in a global range in different directions through members of different optimal variables, so that the optimal value or the approximate optimal value of the key parameter of the flyback transformer design can be obtained with high probability.
(2) The method gives up the speed updating in the iteration process, only keeps the position updating, and accelerates the running speed of the algorithm to a certain extent by removing the improvement of the speed updating.
(3) The method improves the problems of encoding, initial population, functions and the like of the traditional algorithm, and greatly improves the overall performance of the algorithm.
(4) Compared with the existing design method, the method can be suitable for the optimal solution of a plurality of target parameters, has intrinsic parallelism, and enables the design of the flyback transformer with multi-path output to achieve higher solution precision.
(5) Compared with the prior art, the method and the device have the advantages that the probability search technology is used, and the flexibility is higher.
Drawings
FIG. 1 is a schematic overall flow chart of the present invention.
Fig. 2 is a flow chart of an iterative process in the present invention.
FIG. 3 is a flow chart of the penalty process in the present invention.
Detailed Description
The present application is further described below with reference to specific embodiments, and it should be noted that, without conflict, any combination between the embodiments or technical features described below may form a new embodiment.
In the description of the present application, it should be noted that, for the terms of orientation, such as "central", "lateral", "longitudinal", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc., it indicates that the orientation and positional relationship shown in the drawings are based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, but does not indicate or imply that the device or element referred to must have a specific orientation, be constructed in a specific orientation, and be construed as limiting the specific scope of protection of the present application.
It is noted that the terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In one preferred embodiment of the present application, as shown in fig. 1 to 2, a method for designing a flyback transformer based on an improved PSO algorithm includes the following steps:
s100: and setting target parameters and constraint conditions of the flyback transformer, and selecting member items of the optimal variables.
S200: and randomly searching in respective value ranges through each member to form a multi-particle population.
S300: and iterating each particle, and solving the local optimum and the global optimum of each member according to the positions of the particles in the partial group in the iteration process.
S400: judging the iteration times of the particles; if the iteration times are less than the set maximum iteration times, the particle reenters the step S300 to perform the next iteration, and if the iteration times reach the maximum iteration times, the optimal solution of each member is output.
It is understood that the basic idea of the PSO algorithm stems from the foraging behavior of a flock of birds. Conventional PSO algorithms assign two attributes to a particle, velocity and position, when the particle is formed. The velocity represents the direction and distance that the particle will move in the next iteration, and the position represents a solution to the problem to be solved, so that the velocity and position of the particle need to be updated during each iteration.
In the improved PSO algorithm, only the positions of the particles are updated in each iteration process, and the updating of the speed is abandoned. The speed is constant value in each iteration process, so that the calculated amount of particles in updating can be reduced to a certain extent, and the solving speed of the algorithm is improved.
It will also be appreciated that each item member corresponds to a multi-particle partial population, such that the plurality of partial populations together form a multi-particle population. In each iteration process, the members are independent from each other in the iteration process, so that the optimal solution of the particles in the partial group of each member can be obtained according to the iteration process of each member, and the optimal solution is a local optimal solution; by integrating the local optimal solutions of all the members, the global optimal solution of the whole population can be obtained.
In this embodiment, the target parameter of the flyback transformer in step S100 is at least one, and may be determined by an objective functionAnd (4) performing representation.
;(ii) a Wherein n represents the number of member items, and n is more than or equal to 1;an objective function representing the member of the nth term,represents the nth member;and representing the member function corresponding to the nth member.
It can be understood that, when the flyback transformer is designed, the target parameters can be divided into two cases, namely single target parameters and multi-target parameters. For the calculation of multi-target parameters, a common method is to convert multiple targets into a single target through mathematical transformation to solve the problem. The specific mathematical transformation process has a plurality of modes, which are common knowledge in the field, and the skilled person can select the mathematical transformation process according to actual needs; so for convenience of description, the present application will be described with a single target parameter.
In this embodiment, under the condition that the performance of the flyback transformer is satisfied, the high accuracy of the output voltage can be selected as the objective function.
In the embodiment, the design process of the flyback transformer is carried out, and the selection of the optimal variable determines the calculated amount of the algorithm; the more optimal variable choices, the better the optimal result, but the calculation amount will also increase; the less the optimal variable selection is, the less the calculation amount is, but the worse the optimal result is. Therefore, when selecting the optimal variable, the optimal variable that is independent and has a large influence on the target parameter and the constraint condition is the best choice. Meanwhile, the structural size that must meet the relevant standards and design specifications should not be selected as an optimization variable for the design of the flyback transformer.
It can be understood that, since the target parameter is mainly affected by the optimal variable, the target function corresponding to the target parameter can be obtainedThe solving process of (2) is regarded as an objective function corresponding to each optimal variable memberThe solving process of (1). So that the optimal solution of the objective function corresponding to each member can be obtainedAndthe optimal solution of the target parameter is obtained by the relational expression of (A).
In this embodiment, the items for selecting the optimal variables according to the above principle include: magnetic core type, magnetic core material, magnetic core size, window area, winding wire diameter and leakage inductance; thus, the number n of the members in this embodiment takes the value of 6.
There are many constraints in the design process of the flyback transformer, the most important of which is three constraints. The first aspect is a performance indicator constraint; values such as impedance voltage, no-load losses, no-load current and temperature rise cannot exceed the limits. The second aspect is structural and technical constraints; for example, for constraints of mechanical clamping force, the minimum patch width of the core cannot be too narrow; the number of parallel turns of continuous winding cannot be more than 6 due to the limitation of winding process conditions. The third aspect is form size and weight limitations; the external dimensions and weight of the transformer must be limited to a certain extent in view of the transport and installation space. When the constraint condition is defined, the more the constraint condition is defined, the fewer the number of particles meeting the constraint condition, and the calculation amount of the algorithm is reduced, but the influence of the particles by irrelevant factors is increased, and the optimal result of the particles is shifted from the actually required result. The less the constraint, the greater the number of particles that satisfy the constraint, and the more the algorithm is computationally intensive, the less the optimal result of the particles will be used. Therefore, the constraint condition needs to be defined in relation to the target parameter.
According to the above principle; in the embodiment, the performance index constraint can limit the upper limit of voltage ratio error, the upper limit of magnetic flux density, the electric strength margin of main insulation and longitudinal insulation of the winding, the upper limit of impedance voltage error, the upper limit of winding temperature rise, the upper limit of iron core temperature rise, the upper limit of oil temperature rise and the lower limit of efficiency. Structural and technical constraints can be defined as convention constraints. Form size and weight constraints may be defined as upper limits of winding height error.
In one preferred embodiment of the present application, as shown in fig. 2, the iterative process of the particles in step S300 includes the following steps:
s310: judging whether the particles in the step S200 meet the constraint condition, if so, solving the current position of the particlesCorresponding objective functionAnd the value of the fitness function, and further obtaining the local optimal solution of each memberAnd global optimal solution(ii) a And if the particles do not meet the constraint condition, punishing.
S320: updating the position of the particle toAnd solving the value of the fitness function corresponding to the updated particle position.
S330: comparing the value of the fitness function before and after the updating of the particle position, and obtaining the local optimal solution of the particle according to the comparison resultAnd global optimal solutionAnd (4) updating.
The position update formula of the particle may be:(ii) a Wherein k represents the iteration times of the particles, and k is more than or equal to 1; w is the inertial weight; c is a learning factor; r is [0, 1 ]]The random number of (1);searching the optimal position of the particle i in the d dimension;is the location vector of the d-th dimension of particle i in the k-th iteration.
It is understood that the multi-particle fraction populations corresponding to each member are iterated independently of each other. Meanwhile, the iterative solving process of the particles is the convergence process of the objective function, so that the optimal solution of the particles is the limiting value of the objective function to be converged. That is, in this embodiment, the local optimal solution corresponding to each part of the group of particles is the objective functionMinimum value of (2)(ii) a Thereby the global optimal solution of the population corresponding to each member is an objective functionMinimum value of (2)。
In this embodiment, the number of iterations of the particle may be set according to actual needs. Meanwhile, according to the value of the member number n of the optimal variable, the particles can form the dimension D of the search space with the corresponding number, so that D =1, 2, … …, D; d = n = 6.
It can be understood that the multi-particle part group corresponding to each optimal variable member corresponds to a search space of one dimension. Thus, assuming that the number of best variable members is 6, a particle search space of 6 dimensions in total can be formed. The particles corresponding to each member are searched in the search space of respective dimension to solve the local optimal solution of each memberBy solving locally optimal solutionsThe global optimal solution of the whole population can be obtained by integration。
The inertial weight w describes how much the previous generation velocity of the particle affects the current generation velocity. The calculation of the inertial weight w may be linear or non-linear; the selection can be made according to practical problems. In the embodiment, global search can be firstly adopted for the target parameters, so that the search space is rapidly converged in a certain region, and then high-precision solution is obtained by adopting local fine search; therefore, an inertia weight w which can be linearly reduced along with the increase of the iteration number is provided, and a specific calculation formula is as follows:
(ii) a Wherein,in order to be the original inertial weight,in order to obtain the inertial weight of the pressure shaft,is the maximum number of iterations.
It can be appreciated that the original inertial weightsAnd the dead weightThe value range of (1) is (0); original inertial weightAnd the dead weightPreferred values of (b) are 0.9 and 0.4, respectively.
In this embodiment, the fitness function includes a local fitness functionAnd global fitness function(ii) a Thus, in step S330, the local fitness function is comparedAndvalue of (d) and global fitness functionAndaccording to the result of the comparison, a locally optimal solution for the particleAnd global optimal solutionAnd (6) updating.
;Whereinrepresenting an objective functionThe maximum value of (a) is,representing an objective functionAverage value of (d);represents the weight corresponding to the nth member, and。
it will be appreciated that the local fitness functionPartial groups corresponding to each member, global fitness functionCorresponding to a population containing all members.
Meanwhile, although each optimal variable member is related to the target parameter in the application, the influence degree of each optimal variable member on the target parameter is different, so that when the global fitness function value of the population is calculated, the weight corresponding to each optimal variable member can be set according to the influence degree of each optimal variable member on the target parameterThe value of (c).
The specific updating process is as follows:
first, the objective function value of each particle at the position is solved according to the position of each particle in the partial group corresponding to the member.
Then, comparing the value of the objective function corresponding to each particle, the partial group corresponding to each member can be obtainedAndand obtaining partial groups corresponding to each memberSo as to obtain the local fitness function value of each memberAnd global fitness function values for the entire population。
Then, the positions of the particles are updated, and the solution is obtained according to the updated positions of the particles、Andso as to obtain the local fitness function value of each member at the updated positionAnd global fitness function values for the entire population。
Then, the comparison is madeAnda value of, ifIs greater thanIf so, the local optimal solution corresponding to each part group is the local optimal solution after the particle position is updated; if it isIs less thanThe local optimal solution corresponding to each partial group is the local optimal solution before the particle position is updated. Also, ifIs greater thanIf so, the global optimal solution corresponding to the population is the global optimal solution after the particle position is updated; if it isIs less thanThe global optimal solution corresponding to the population is the global optimal solution before the particle position is updated.
It will be appreciated that when the particles are first renewed, they appearIs less thanAnd/orIs less thanValue of (A)The case (1); the local optimal solution corresponding to each part of the clusters is a historical local optimal solution, and the global optimal solution corresponding to the clusters is a historical global optimal solution. The historical local optimal solution and the global optimal solution may be obtained through experiments or experience.
In one embodiment of the present application, as shown in fig. 3, the penalty for the particles that do not satisfy the constraint condition in step S310 includes the following steps:
s311: and carrying out random search again on the particles which do not meet the constraint condition in the value range to obtain a new position.
S312: and judging whether the particles meet the constraint condition again.
S313: if the particles meet the constraint condition, solving a local optimal solution according to the positions of the particlesAnd global optimal solution(ii) a And if the particles still do not meet the constraint condition, removing the particles which do not meet the constraint condition.
It can be understood that the value range of the particles is the dimensional space corresponding to the particles. Meanwhile, for the particles which satisfy the constraint condition after the penalty, the method can enter the step S320 and the step S330 together with the particles which are not penalized to perform the update loop.
In one preferred embodiment of the present application, in the process of iterating the particle, the particle may be corrected, and the specific correction process includes the following steps:
s301: setting the control factor a such that the particles are iterated toThe secondary process is divided into multiple parts.
S302: at the beginning of each part, a local fitness function corresponding to a single particleValue of (A) andlocal fitness functionThe values of (a) are compared.
S303: for local fitness functionIs better than the global fitness functionUntil the end of each part, the iterative process of step S300 is repeated.
S304: for local fitness functionIs different from the global fitness functionThe position of the particle is searched again in the feasible region, and the iterative process of step S300 is performed in a loop until the end of each part.
S305: comparing the fitness functions of the particles in the step S303 and the step 304 at the end of each part, and carrying out local optimal solution according to the comparison resultAnd global optimal solutionAnd (6) updating.
It will be appreciated that, by setting the control factor a,the particles can be prevented from being trapped in a local optimal state, so that the global optimal result does not meet the use requirement. The number j of control factors a may divide the overall iterative process for each particle into 1,]、(,]、(,]、……、(,]a total of j +1 moieties; the number j of the control factors a can be set according to actual needs, andthe value of (b) is an integer. In addition, the following components are added,]For example, the iteration process corresponding to the part is shown as the second of the whole iteration processesNext toNext, the process is carried out.
At the beginning of each part, the local fitness function of the particle is calculatedIs better than the global fitness functionThe value of (b) indicates that the particle is more suitable for local search, so that the current inertia weight w of the particle is not changed, and the value of the inertia weight w of the particle in the part is linearly changed in the corresponding iteration process of the whole part, so as to realize local optimization of the particle. Local fitness function of particleIs different from the global fitness functionThe value of (2) indicates that the optimizing capability of the particle at the current position is poor; the fully feasible region of the part of particles in the corresponding dimensional space can be searched again to expect that the part of particles can find a better solution value in the subsequent loop process of the iterative part. Finally, at the end of each iteration part, the solution values of the particles of the two parts are compared to obtain the final optimal solution, so that the particles can be prevented from being trapped in the local optimization process.
The foregoing has described the principles, principal features, and advantages of the application. It will be understood by those skilled in the art that the present application is not limited to the embodiments described above, which are merely illustrative of the principles of the application, but that various changes and modifications may be made without departing from the spirit and scope of the application, and these changes and modifications are intended to be within the scope of the application as claimed. The scope of protection claimed by this application is defined by the following claims and their equivalents.
Claims (8)
1. A flyback transformer design method based on an improved PSO algorithm is characterized by comprising the following design steps:
s100: setting target parameters and constraint conditions of the flyback transformer, and selecting member items of optimal variables;
s200: randomly searching in respective value ranges through each member to form a multi-particle population;
s300: iterating each particle, and solving the local optimum and the global optimum of each member according to the position of the particle in the population in the iteration process;
s400: judging the iteration times of the particles; if the iteration times are less than the set maximum iteration times, the particles reenter the step S300 to carry out the next iteration, and if the iteration times reach the maximum iteration times, the optimal solution of each member is output;
wherein, the target parameter is at least one and can pass through the target functionCarrying out representation;
;(ii) a Wherein n represents the number of member items, and n is more than or equal to 1;an objective function representing the member of the nth term,represents the nth member;representing member functions corresponding to the nth member;
the iterative process of the particles in step S300 includes the following steps:
s310: determining particles in step S200Whether the child meets the constraint condition or not, if the particle meets the constraint condition, the current position of the particle is solvedCorresponding objective functionAnd the value of the fitness function, and further obtaining the local optimal solution of each memberAnd global optimal solution(ii) a Punishment is carried out if the particles do not meet the constraint condition;
s320: updating the position of the particle toSolving the value of the fitness function of the particle position update;
s330: comparing the value of the fitness function before and after the updating of the particle position, and obtaining the local optimal solution of the particle according to the comparison resultAnd global optimal solutionUpdating is carried out;
the position update formula of the particle may be:(ii) a Wherein k represents the iteration times of the particles, and k is more than or equal to 1; w is the inertial weight; c is a learning factor; r is [0, 1 ]]The random number of (1);is particle i ind-dimensional historical best position;a position vector of a d-th dimension of the particle i in the k-th iteration is obtained;
in the process of iterating the particle, in order to avoid the particle from falling into a local optimum, the particle needs to be corrected, and the specific correction includes the following steps:
s301: setting the control factor a such that the particles are iterated toThe secondary process is divided into a plurality of parts;
s302: at the beginning of each part, a local fitness function corresponding to a single particleValue of (d) and global fitness functionComparing the values of (A);
s303: for local fitness functionIs better than the global fitness functionThe iterative process of step S300 is performed in a loop until the end of each part;
s304: for local fitness functionIs different from the global fitness functionThe position of the particle is searched again in the feasible regionThen, the iterative process of step S300 is performed in a loop until the end of each part;
s305: comparing the fitness function of the particles in the step S303 and the step 304 at the end of each part, and carrying out local optimal solution according to the comparison resultAnd global optimal solutionUpdating is carried out;
2. The flyback transformer design method based on the improved PSO algorithm of claim 1, wherein: the inertia weight w is linearly reduced along with the increase of the iteration times, and the specific calculation formula is as follows:
3. Flyback transformer based on improved PSO algorithm according to claim 1The design method is characterized in that: the fitness function comprises a local fitness functionAnd global fitness function(ii) a Thus, in step S330, the local fitness function is comparedAndvalue of (d) and global fitness functionAndaccording to the result of the comparison, a locally optimal solution for the particleAnd global optimal solutionUpdating is carried out;
4. the method of claim 1, wherein the punishment of the particles not meeting the constraint condition in step S310 comprises the following steps:
s311: randomly searching the particles which do not meet the constraint condition again in the value range to obtain a new position;
s312: judging whether the particles meet the constraint condition again;
5. The flyback transformer design method based on the improved PSO algorithm of any of claims 1-4, wherein: the constraint conditions of the flyback transformer in step S100 include performance index constraints, structural and technical condition constraints, and form size and weight constraints.
6. The flyback transformer design method based on the improved PSO algorithm of claim 5, wherein:
the performance index constraints include: the upper limit of voltage ratio error, the upper limit of magnetic flux density, the electric intensity margin of main insulation and longitudinal insulation of a winding, the upper limit of impedance voltage error, the limit of winding temperature rise, the upper limit of iron core temperature rise, the upper limit of oil temperature rise and the lower limit of efficiency;
structural and technical constraints include: constraint of the specification;
form size and weight constraints include: high upper error limit of winding.
7. The flyback transformer design method based on the improved PSO algorithm of claim 1, wherein the member items of the optimal variables include: core type, core material, core size, window area, winding wire diameter, and leakage inductance.
8. The flyback transformer design method based on the improved PSO algorithm of claim 1, wherein: the target parameter of the flyback transformer in step S100 includes a high-precision output voltage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210452322.4A CN114580306B (en) | 2022-04-24 | 2022-04-24 | Flyback transformer design method based on improved PSO algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210452322.4A CN114580306B (en) | 2022-04-24 | 2022-04-24 | Flyback transformer design method based on improved PSO algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114580306A CN114580306A (en) | 2022-06-03 |
CN114580306B true CN114580306B (en) | 2022-07-29 |
Family
ID=81784122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210452322.4A Active CN114580306B (en) | 2022-04-24 | 2022-04-24 | Flyback transformer design method based on improved PSO algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114580306B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115270607B (en) * | 2022-07-06 | 2023-04-28 | 明珠电气股份有限公司 | Dry-type transformer optimization design method for nuclear power station by integrating expert experience |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018072351A1 (en) * | 2016-10-20 | 2018-04-26 | 北京工业大学 | Method for optimizing support vector machine on basis of particle swarm optimization algorithm |
CN112182943A (en) * | 2020-08-27 | 2021-01-05 | 河海大学 | Parameter optimization method for improving short circuit between poles of DC/DC direct-current transformer |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106096106B (en) * | 2016-06-03 | 2019-04-23 | 江苏科技大学 | High-frequency high-voltage transformer for electrostatic dust collection optimum design method |
CN108399451A (en) * | 2018-02-05 | 2018-08-14 | 西北工业大学 | A kind of Hybrid Particle Swarm Optimization of combination genetic algorithm |
-
2022
- 2022-04-24 CN CN202210452322.4A patent/CN114580306B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018072351A1 (en) * | 2016-10-20 | 2018-04-26 | 北京工业大学 | Method for optimizing support vector machine on basis of particle swarm optimization algorithm |
CN112182943A (en) * | 2020-08-27 | 2021-01-05 | 河海大学 | Parameter optimization method for improving short circuit between poles of DC/DC direct-current transformer |
Non-Patent Citations (2)
Title |
---|
Optimal Design for Rectifier Transformer Using Improved PSO Algorithm;Jiang Du et al;《IEEE》;20100605;828-831 * |
一种基于向量差的粒子群优化模型;王一萍;《高师理科学刊》;20100930;第30卷(第05期);36-39 * |
Also Published As
Publication number | Publication date |
---|---|
CN114580306A (en) | 2022-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112231988B (en) | Anti-offset parameter optimization method and system for IPT system and computer equipment | |
CN114580306B (en) | Flyback transformer design method based on improved PSO algorithm | |
CN102768536A (en) | Route planning method based on multi-target glowworm swarm algorithm | |
CN116168036B (en) | Abnormal intelligent monitoring system for inductance winding equipment | |
CN104900988A (en) | Method for designing thin cloth circular antenna array through changing auxiliary grid circle radius | |
Saha et al. | Cosine adapted modified whale optimization algorithm for control of switched reluctance motor | |
CN109103901B (en) | Multi-objective reactive power optimization method for electric power system based on DSICA algorithm | |
Yu et al. | Existence of an optimized stellarator with simple coils | |
CN117277351A (en) | Resonant frequency tracking control method based on improved whale optimization algorithm | |
Yang et al. | PI parameters tuning for frequency tracking control of wireless power transfer system based on improved whale optimization algorithm | |
CN116485057A (en) | Method for solving path planning by self-adaptive genetic algorithm | |
CN115310353B (en) | Power transformer design method based on rapid multi-objective optimization | |
Andreeva et al. | Characteristics of main configurations of Wendelstein 7-X | |
CN113282089B (en) | Global path planning method for mobile robot in high-temperature scene | |
CN114444354B (en) | Wireless charging system parameter optimization method for improving multi-objective wolf algorithm | |
CN113205171A (en) | Multi-objective optimization method for discrete binary particle swarm motor | |
Hirasawa et al. | Genetic symbiosis algorithm | |
Wang et al. | Empirical study of hybrid particle swarm optimizers with the simplex method operator | |
CN114169098B (en) | Advanced safe injection box parameter optimization method based on predator strategy and particle swarm optimization | |
van Nugteren et al. | Idealized coil cross sections with minimized conductor area for high field dipoles | |
CN105845427A (en) | Particle swarm optimization-based core section design method for transformer | |
CN112507527B (en) | Multi-solenoid magnet design method for rotary device | |
CN109508343A (en) | A kind of cuckoo searching method of simplex method and its application | |
CN117936241B (en) | Surrounding active shielding coil structure and multi-objective optimization method thereof | |
CN116702681A (en) | Design method and system of rotary tuning inductor |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |