Research Article

Multiobjective Optimization Method for Polymer Injection Molding Based on a Genetic Algorithm

Algorithm 1

Selection tournament.

Input playerlist // The list of athletes includes the ‘nParents’ groups, and each group
has ‘tournamentSize’ athletes.
for i=1 to nParents
 winner=plyer
for j=2 to tournamentSize
 if rank(j)<rank(j-1)
winne(i)r=player(j)  // Athletes with small rank win, winners in group i are marked
as winner(i)
end if
if rank(j)=rank(j-1)
 if distance(j)>distance(j-1)
  winner(i)=player(j) //Individuals with greater crowding distance win,when they
have the same order value
 end if
end if
end for
Output winner