The Optimal Design and Simulation of Helical Spring Based On Particle Swarm Algorithm and Matlab
The Optimal Design and Simulation of Helical Spring Based On Particle Swarm Algorithm and Matlab
[1]
Abstract: - Optimal problem is often met in engineering practice. The method to solve complex optimal
problem is always studied by people. Springs are important mechanical members which are often used in
machines to exert force, to provide flexibility, and to store or absorb energy. Helical spring is the most popular
type of springs. The method of helical spring optimization is a typical one which can be used to solving other
mechanical optimal design problem. Particle Swarm Optimization algorithm is a good method in solving
optimal problem. MATLAB is a high-performance language for technical computing and is an easy tool for us
to simulate the optimization. In this paper, we mainly introduce the optimization of helical spring based on
particle swarm algorithms and simulation in MATLAB. Directed by the theory of Particle Swarm Optimization
algorithm, with the minimum weight of helical spring as objective function, with d, D2 and n as design
variables, with shear stress, maximum axial deflection, critical frequency, bucking, fatigue strength, coils not
touch, space and dimension as constraint conditions, the complex helical spring optimal design mathematics
model with three design variables and fourteen inequality constraints conditions is established. When the model
is simulated in MATLAB the minimal optimal value of variables and the minimal weight of helical spring can
be obtained. Simulating Result shows that Particle Swarm Optimization is practical in solving complicated
optimal design problems and effectively on avoiding constraint of solution. The fundamental idea, the method
of establishing mathematic model, the simulation process in MATLAB of helical spring can be used for
reference to other similar mechanical optimal design.
Key-Words: - Particle Swarm Optimization (PSO), fitness value, local best value, global best value, helical
spring, optimal design, mathematic model , objective function, design variables, constraints condition, shear
stress, deflection, critical frequency, bucking, fatigue strength.
is a high-performance language for technical
computing. It integrates computation, visualization,
and programming in an easy-to-use environment
where problems and solutions are expressed in
familiar mathematical notation. Typical uses include
Math and computation Algorithm development Data
acquisition Modeling, simulation. Simulated the
mathematic model of mechanical element or
machines in MATLAB, the fitness optimal value of
design variables and objective function can be easily
obtained. In this paper, we will focus on the optimal
design of helical spring based on PSO and its
simulation in MATLAB. Section 2 outlines
fundamental idea of PSO searching for optima and
its realization steps. Section 3 established the
optimal design mathematical model of helical spring
directed by theory of PSO algorithm. In Section 4
1 Introduction
Computer Aided Design (CAD) is widely used in
engineering practice particularly in mechanical
design, analysis, optimize and drawing [1]. The
automation design of component [2] and machine [3]
can be realized by applying CAD. Optimal design
problem is often met in industry design. Many
optimal algorithms are promoted to solve optimal
problem. Particle Swarm Optimization (PSO) is a
population based stochastic optimization technique,
inspired by social behavior of bird flocking or fish
schooling [4]. This algorithm with characteristics of
easy realization, high precision and rapid
convergence arouses the attention of academics and
displays the superiority in solving practical optimal
problem especially a complex one. This algorithm is
widely used in mechanical optimization. MATLAB
ISSN: 1109-2734
84
w(k+1)=aw(k) a (0,1)
w(k)= wmax
(1)
(2)
ISSN: 1109-2734
(4)
wmax wmin
k
kmax
(3)
85
ISSN: 1109-2734
86
ISSN: 1109-2734
(13)
(14)
K=(4C-1)/(4C-4)+0.615/C
(7)
87
Specification
Carbon steel
wires, B,C,D
0.3B
0.4B
0.5B
grade
65Mn
60Si2Mn
480
640
800
60Si2MnA
50CrVA
450
600
750
ISSN: 1109-2734
88
For
a
spring
with
fixed
ends,
fb=3.56105d/n D22 . For a spring with one fixed
g3 (x)=15 f w 3.56105 x1 / x 22 x3 0
2u m 2u
(20)
=
y 2 kl 2 t 2
where k is spring constant, l is the length of spring
between plates, m is the mass of spring, y is the
coordinate along length of spring, u is motion of any
particle at distance y.
The solution to this equation is well known. The
natural frequency in radians per second turns out to
be
fb =
1 k
d
=
2 m 2nD22
G
2
(21)
ISSN: 1109-2734
(23)
89
ISSN: 1109-2734
90
ISSN: 1109-2734
(41)
s.t.g u ( x ) 0 u = 1,2,3,,14
T
T
x = (d , D2 , n ) = ( x1 , x2 , x3 )
The helical spring optimal design model is a
complex one which has three design variables and
fourteen inequality constraints conditions.
4 Simulation of Helical
Optimization in MATLAB
Spring
91
ISSN: 1109-2734
92
5 Conclusion
Directed by theory of PSO algorithm the optimal
design mathematical model of helical spring is
established. This mathematical model with three
design variables and fourteen inequality constraints
conditions is a complex optimal design problem.
When simulated in MATLAB, minimal weight of
the helical spring can be obtained, and optimal
values of variables can be obtained too. The result
of simulation shows that by using PSO algorithm
the weight of the helical spring can be greatly
reduced, the design quality and efficiency can be
improved greatly, PSO algorithms can redound the
particles capability to dap out of the Maximum trap
effectively. PSO algorithm is a new method in
solving the complex optimal design problem. The
fundamental idea, simulation process and dataprocessing method of helical spring can be used for
reference to other similar mechanical optimal design.
References:
[1] Ibrahim Zeid, Theory and Practice, McGrawHill, Inc., 1991.
[2] Mikell P.Groover, Emory W.Zimmers Jr.,
Computer-Aided Design and Manufacturing,
Prentice-Hall Inc., 1984.
[3] C.B.Besant, Computer-Aided Design and
Manufacture, Ellis Horwood Limitad, 1998.
[4] Eberhart, R. C. and Shi, Y, Particle swarm
optimization: developments, applications and
resources, Proc. congress on evolutionary
computation 2001 IEEE service center,
Piscataway, NJ., Seoul, Korea., 2001.
[5] Kennedy, J. and Eberhart R. C., Particle
Swarm Optimization, Proceedings of the 1995
IEEE International Conference on Neural
Networks, Piscataway, 1995.
[6] Shi Y., and Eberhart R. C., Parameter selection
in particle swarm optimization, Evolutionary
ISSN: 1109-2734
93