Documente Academic
Documente Profesional
Documente Cultură
https://doi.org/10.1007/s40430-018-1392-1(0123456789().,-volV)(0123456789().,-volV)
TECHNICAL PAPER
Abstract
In this study, adaptive inertia weight PSO (AIW-PSO) is applied to the path synthesis problem in order to compare the
performance of an adaptive solution technique to the so far implemented ones and to investigate the effect of adaptability
on the efficiency of the solution method. The search space is expanded by considering both circuits of the linkage as a
candidate solution in formulating the objective function, and a new constraint is considered to account for the circuit
defect. Moreover, a new refinement technique and a modification on a previously suggested one are introduced to improve
the efficiency of the algorithm and a comparative study with previous results is also done. Results show that the imple-
mented method performs better than other solution methods in all three case studies. AIW-PSO shows its capability to be
used as a powerful method for solving design problems.
Keywords Adaptive PSO Evolutionary algorithms Four-bar linkage Mechanism synthesis Optimization
Path generation
123
469 Page 2 of 11 Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469
modified GA to the problem. Cabrera et al. [4] utilized an change circuits to move from one desired position to the
algorithm based on GA and DE but different from each other (referred to as a circuit defect) is not useful as it
one. Laribi et al. [5] represented a combined genetic cannot do so without disassembly and reassembly. Circuit
algorithm and fuzzy logic method (GA-FL). A novel defects are fatal to linkage operation, but branch defects are
technique called the geometric centroid of precision points not [21].
was introduced by Shiakolas [6, 7] for optimization of four- The particle swarm optimization (PSO) is an evolu-
bar and six-bar linkages where DE was used to carry out tionary algorithm first developed by Kennedy and Eberhart
the solutions. GA, PSO and DE were implemented on the [22] based on the social behavior of birds. As in other
problem by Acharyya and Mandal [8], and performance of evolutionary algorithms, PSO starts with a population of
DE is found to be the best. They also suggested refinement random candidate solutions, and each one is treated as a
techniques for the algorithms to be more efficient in this flying bird or a moving particle. Through running of the
particular problem. Simulated annealing (SA) was first algorithm, each bird is flown through the D-dimensional
used in Martinez-Alfaro [9] work. Ebrahimi and Payvandi search space of the problem to find the global extremum of
[10] employed parallel SA and imperialist competitive the objective function. Evolutionary algorithms are not
algorithm (ICA) while considering a workspace limit for application-specific, and the relation between the algorithm
the problem. They suggested a method for imposing Gra- and the problem is limited to the objective function value.
shof’s law to initial population to improve the algorithm Many variations were suggested by the researchers to
performances. Some researchers focused on synthesizing improve the performance of PSO.
multi-objective mechanisms. Cabrera et al. [11] employed The aim of this study is to implement adaptive inertia
DE for multi-objective synthesis of planar mechanisms. weight PSO (AIW-PSO) algorithm on the path synthesis
Nariman-Zadeh et al. [12] considered the tracking error and problem to investigate the performance of an adaptive
transmission angle’s deviation from 90 as objective solution method on this problem. This is done by com-
functions and used a hybrid GA for the solution. Tracking paring the obtained results with previous works which
error, transmission angle’s deviation from 90 and maxi- results were the best among others. Although circuit defect
mum angular velocity ratio were considered as objective interrupts the linkage operation, none of the previous
functions by Khorshidi et al. [13]. A hybrid Pareto GA with evolutionary works considered the possibility of this
an adaptive local search was applied to obtain the solution. defect. This is accounted for in this study by introducing
Multi-path generation was considered by Chanekar and and imposing a new constraint to the problem. Therefore,
Ghosal [14]. Erkaya and Uzmay [15] represented a neural- our synthesized parameters need not be checked by another
genetic (NN-GA) approach for optimizing the mechanisms mean for defects. We also improve the search space in this
considering joint clearances. The joint clearances were study by considering both circuits of the linkage as a
modeled as mass-less links. A new error function was candidate solution although the focus of the previous works
introduced by Matekar and Gogate [16], and DE was used was only on the open configuration. Moreover, a new
for optimization. Lin [17] introduced a new algorithm refinement technique and a modification on a previously
called hybrid GA-DE by combining DE with the real-val- suggested one are introduced to improve the efficiency of
ued genetic algorithm (RGA) as the solution technique and the algorithm. That is, the contributions of this study can be
suggested a method to check the synthesized mechanism summarized as follows:
for defects: drawing a simple sketch of the synthesized
• The performance of an adaptive solution technique on
linkage in SolidWorks and dragging the crank link.
the linkage synthesis problem is investigated for the
MUMSA is another novel algorithm introduced by Cabrera
first time.
et al. [18] for implementing on this problem which resulted
• Circuit defects in the synthesized linkage are accounted
in the most accurate among other previous works. In a
for by introducing and imposing a new constraint to the
work by Kafash and Nahvi [19], a new objective function
problem.
based on geometry properties of the linkage was presented
• The search space is expanded by considering both
using circular proximity function (CPF) and the optimiza-
circuits of the linkage as a candidate solution.
tion was done using DE. Singh et al. [20] proposed the
• A new refinement technique and a modification on a
synthesis of a crank-rocker mechanism as the basis of a
previously suggested one are introduced to improve the
human knee exoskeleton. GA, PSO and teaching–learning-
efficiency of the algorithm.
based-optimization (TLBO) were applied to the problem,
and validations were done through simulation and .
experiment.
The solution found may be unusable due to circuit,
branch or order (CBO) defects. A mechanism that must
123
Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469 Page 3 of 11 469
123
469 Page 4 of 11 Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469
Problem variables are limited to some prescribed bounds A brief history of particle swarm optimization was stated in
according to the construction limitations, etc. introduction.
Let us assume n particles each of which is defined by the
2.3.4 Constraint 4 (circuit defect) following parameters:
!
Xi;k is a D-dimensional vector which represents the
Considering mentioned constraints, four types of linkages
position of the ith particle in the kth iteration.
can be generated namely, double-crank, crank-rocker, !
rocker-crank and double-rocker, while the two last ones are Vi;k is also a D-dimensional vector which represents the
not of our interest since the crank cannot rotate 360 and speed of the ith particle in the kth iteration.
the synthesized linkage encounters circuit defect. The following parameters are saved during run of the
The limiting values of the input angle can be obtained algorithm:
by setting the discriminant under the radical of Eq. (3) to ! ! !
zero. Then, the inequalities that guarantee the full rotation Pi;k ¼ Xi;j where Xi;j minimizes f for all j k ð10Þ
of crank can be derived as in [25]. But we deal with this !
Pi;k is the best position the ith particle has been in, until the
constraint differently as discussed further.
kth iteration—also known as personal best position.
2.4 Cost function ! ! !
Gk ¼ Pi;k where Pi;k minimizes f for all 1 i n ð11Þ
!
The cost function is considered as the sum of the tracking Gk is the best position ever reached until the kth itera-
errors between the precession points and the positions of tion—also known as global best position.
the coupler point generated by the synthesized mechanism In each iteration, the following parameters can be
calculated:
for a set of input angles hi2 . To improve the search space,
it is reformulated as follows in order to give a chance to ! ! !
Xi;kþ1 ¼ Xi;k þ Vi;kþ1 ð12Þ
both circuits of the linkage for being a candidate solution:
! ! ! ! !
!
( Vi;kþ1 ¼ Vi;k þ c1 rand1 Pi;k Xi;k þ c2 rand2
X N
2
2 ! !
i i
f ¼ min Cx;open ðZ Þ Cpx þ Cy;open ðZ Þ Cpy ; Gk Xi;k ð13Þ
i¼1
) ( ! !
!
N
X
2
2
Cx;crossed ðZ Þ i
Cpx i
þ Cy;crossed ðZ Þ Cpy ! Pi;k ; f Pi;k \f Xi;kþ1
Pi;kþ1 ¼ ! ð14Þ
i¼1 Xi;kþ1 ; otherwise
ð8Þ
where the symbol denotes element-by-element vector
i
where Cpj is the j component of the ith precession point multiplication, f ðx1 ; x2 ; . . .; xD Þ is the function that should
coordinate Cpi . be minimized, and rand1 ; rand2 are random D-dimensional
vectors between 0 and 1.
123
Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469 Page 5 of 11 469
It is now clear that in each iteration, each bird is trying reasonable number of iterations. Generally, three types of PSO-
to get closer to its own best position and the whole swarm’s based algorithms have been suggested based on their inertia
best position. Parameters c1, c2 are acceleration constants weight value. The first group uses constant or random inertia
that model sociality of flying birds, i.e., if c1 = 1, c2 = 0, weight value. The second group uses time-based inertia weight,
the algorithm turns into social-only model [26]. and the third group uses feedback parameters to make inertia
weight adaptive. Different feedback parameters were suggested
3.2 Variations of PSO in [29–33]. In this study, the AIW-PSO suggested by Nickabadi
et al. [26] which showed its power in solving traditional opti-
The balance between global and local search through the mization problems is employed. The objective is to investigate
course of a run is one of the most important factors that the effect of adaptability and compare the performance of an
make an optimization algorithm successful [27]. Shi and adaptive version of a well-established and simply structured
Eberhart [28] suggested the following formula for calcu- algorithm with its non-adaptive version and the other successful
lation of each particle’s velocity: algorithms in the field of mechanism synthesis which is of
! ! ! ! !
! practical importance.
Vi;kþ1 ¼ wVi;k þ c1 rand1 Pi;k Xi;k þ c2 rand2
! !
!
Gi;k Xi;k Xi;kþ1 3.3 AIW-PSO description
! !
¼ Xi;k þ Vi;kþ1
To make inertia weight adaptive, the following parameters
ð15Þ are defined [26]:
( !
!
They added a new parameter, called inertia weight (w), and 1; f Pi;k \f Pi;k1
claimed that increasing inertia weight facilitates a global search Sði; kÞ ¼ ð16Þ
0; otherwise
while decreasing it facilitates a local search. In practice, they
used a range of constant w values and showed that with w in
range of [0.8 1.2], PSO finds the global extremum in a
123
469 Page 6 of 11 Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469
Pn
i¼0 Sði; kÞ just the same as simple standard PSO, and less than most of
PS ðkÞ ¼ ð17Þ other evolutionary algorithms, it is shown that AIW-PSO
n
can find a more accurate solution in comparison with other
where n is the number of particles and PS is the feedback
PSO variants with the same number of particles and iter-
parameter which equals to the percentage of particles
ations [26].
which have had an improvement in their fitness in the last
iteration.
Then, a linear function is used to calculate w(k) as
4 Case studies
follows:
wðkÞ ¼ ðwmax wmin ÞPs ðkÞ þ wmin ð18Þ Three case studies are selected from the literature to test
To improve exploration, at the end of each iteration a the performance of the implemented AIW-PSO on path
mutated version of best particle is produced and replaced synthesis problem. Variables are of type length; thus, any
with the worst particle. Mutated particle is produced by identical unit applicable to express length can be consid-
adding a Gaussian noise with zero mean to a random ered for them, i.e., cm and inch. Moreover, since the cost
dimension of the best particle. function is defined as tracking error, the same unit accounts
for its value. Angles are expressed in radians.
3.4 Refinement techniques
4.1 Case 1: 6 precession points
As we stated before, the crank rotation must satisfy target without prescribed timing
points prescribed sequential order to avoid linkage order
defect. Therefore, the angle array must be a circular/rotated This case was first proposed by Cabrera et al. [4]. The
array. As in [8], in case of unordered angles, array is sorted synthesized mechanism is to trace a straight line. That is,
to calculate error function. An improvement can be made the problem data are as follows:
by checking all rotated permutations and return the one Variable ranges: r1 ; r2 ; r3 ; r4 2 ½5; 60; rct ; rcn ; x0 ; y0 2
which results in less cost function value. ½60; 60; h0 ; hi2 2 ½0; 2p
To make exploration more effective, all variables are Precession points: Cpi ¼ fð20; 20Þ; ð20; 25Þ; ð20; 30Þ;
scaled to a fixed range of [a b]. Therefore, all variables ð20; 35Þ; ð20; 40Þ; ð20; 45Þg
have equal bounds. This can make PSO explore variables Variables vector can be expressed by: Z ¼ ½r1 ; r2 ; r3 ;
with tight bounds more accurate and variables with loose r4 ; rct ; rcn ; x0 ; y0 ; h0 ; h12 ; h22 ; h32 ; h42 ; h52 ; h62 .
bounds faster since the velocities would be calculated in a
more reasonable way. 4.2 Case 2: 6 precession points with prescribed
Figure 2 and Table 1 show the implemented AIW-PSO timing
pseudo-code and parameters, respectively.
This case, first studied by Acharyya and Mandal [8], is to
3.5 Time complexity optimize 9 variables with the following given data. Pre-
cession points are arranged so that they make an approxi-
Letting n be the number of particles, k be the number of mately semi-circular arc for the mechanism to trace.
iterations and D be the number of dimensions, the com- Variable ranges: r1 ; r2 ; r3 ; r4 2 ½5; 50; rct ; rcn ; x0 ; y0 2
plexity of AIW-PSO is O(nkD). Although the complexity is ½50; 50; h0 2 ½0; 2p
123
Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469 Page 7 of 11 469
Table 3 Synthesized
Parameter Case 1 Case 2 Case 3
parameters for case studies
AIW-PSO MUMSA AIW-PSO MUMSA AIW-PSO MUMSA
123
469 Page 8 of 11 Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469
Results have been truncated to six significant figures, are shown in Figs. 4, 5 and 6 together with the curves
and each solution is the best obtained among ten times run obtained using other methods for the case studies.
of the algorithm. Obtained coupler curves using AIW-PSO Hybrid GA-DE [17] was employed and reported with
two different algorithm parameters; for our comparison
123
Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469 Page 9 of 11 469
123
469 Page 10 of 11 Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469
123
Journal of the Brazilian Society of Mechanical Sciences and Engineering (2018)40:469 Page 11 of 11 469
15. Erkaya S, Uzmay I (2008) A neural–genetic (NN–GA) approach 26. Nickabadi A, Ebadzadeh MM, Safabakhsh R (2011) A novel
for optimising mechanisms having joints with clearance. Multi- particle swarm optimization algorithm with adaptive inertia
body Syst Dyn 20(1):69–83 weight. Appl Soft Comput 11(4):3658–3670
16. Matekar SB, Gogate GR (2012) Optimum synthesis of path 27. Shi Y, Eberhart RC (2001) Fuzzy adaptive particle swarm opti-
generating four-bar mechanisms using differential evolution and mization. In: Proceedings of the 2001 congress on evolutionary
a modified error function. Mech Mach Theory 52:158–179 computation, 2001, vol 1. IEEE, pp 101–106
17. Lin WY (2010) A GA–DE hybrid evolutionary algorithm for path 28. Shi Y, Eberhart R (1998) A modified particle swarm optimizer.
synthesis of four-bar linkage. Mech Mach Theory In: The 1998 IEEE international conference on evolutionary
45(8):1096–1107 computation proceedings, 1998. IEEE world congress on com-
18. Cabrera JA, Ortiz A, Nadal F, Castillo JJ (2011) An evolutionary putational intelligence. IEEE, pp 69–73
algorithm for path synthesis of mechanisms. Mech Mach Theory 29. Chatterjee A, Siarry P (2006) Nonlinear inertia weight variation
46(2):127–141 for dynamic adaptation in particle swarm optimization. Comput
19. Kafash SH, Nahvi A (2017) Optimal synthesis of four-bar path Oper Res 33(3):859–871
generator linkages using circular proximity function. Mech Mach 30. Lei K, Qiu Y, He Y (2006) A new adaptive well-chosen inertia
Theory 115:18–34 weight strategy to automatically harmonize global and local
20. Singh R, Chaudhary H, Singh AK (2017) Defect-free optimal search ability in particle swarm optimization. In: 1st International
synthesis of crank-rocker linkage using nature-inspired opti- symposium on systems and control in aerospace and astronautics,
mization algorithms. Mech Mach Theory 116:105–122 2006. ISSCAA 2006. IEEE, 4 pp
21. Norton RL (1999) Design of machinery: an introduction to the 31. Fan SKS, Chiu YY (2007) A decreasing inertia weight particle
synthesis and analysis of mechanisms and machines, vol 924. swarm optimizer. Eng Optim 39(2):203–228
McGraw-Hill, Boston 32. Jiao B, Lian Z, Gu X (2008) A dynamic inertia weight particle
22. Kennedy J, Eberhart R (1995) Particle swarm optimization. In: swarm optimization algorithm. Chaos Solitons Fractals
Proceedings of IEEE international conference on neural networks 37(3):698–705
IV, vol 1000 33. Saber AY, Senjyu T, Urasaki N, Funabashi T (2006) Unit com-
23. Freudenstein F (1954) An analytical approach to the design of mitment computation—a novel fuzzy adaptive particle swarm
four-link mechanisms. Trans ASME 76(3):483–492 optimization approach. In: Power Systems Conference and Expo-
24. Balli SS, Chand S (2002) Defects in link mechanisms and solu- sition, 2006. PSCE’06. 2006 IEEE PES. IEEE, pp 1820–1828
tion rectification. Mech Mach Theory 37(9):851–876
25. McCarthy JM, Soh GS (2010) Geometric design of linkages, vol
11. Springer, Berlin
123