Research Article
Multiobjective Optimization Method for Polymer Injection Molding Based on a Genetic Algorithm
Algorithm 2
NonDominatedRank.
Input score //Enter the objective function value, the number of rows ‘popSize’ is the | |
number of populations after the merger, the number of columns is the value of the | |
objective function | |
do | |
for p=1 topopSize | |
if pis Sorted | |
continue // Perform the next cycle | |
end if | |
for q=1 to popSize | |
If there is a function value greater than p’s in q and all of q’s function values are not less | |
than p’s | |
q dominate p; | |
end if | |
end for | |
if p is not dominated | |
Assigns the current rank to p and p is sorted | |
end if | |
end for | |
rank++; | |
while all individuals are sorted | |
Output rank //Output combined population order value |