Research Article
Posture Optimization Algorithm for Large Structure Assemblies Based on Skin Model
Algorithm 1
Pseudo code of the improved GA-PSO algorithm.
| Initialize the population and calculate the fitness so as to find the optimal position of particle i | | and the global optimal position | | Set evolution times and initialize the current iteration g = 1 | | do | | Update the velocity vector of every particle according to Eq. (6) | | Update particle position according to the position equation Eq. (7) | | Embed crossover and mutation operations | | Initial probabilities of crossover () and mutation () | | Generate new solution by crossover and mutation | | if >rand, crossover; end if | | if >rand, mutate; end if | | Accept the new solution if its fitness increases | | Update the of particle i and the global optimal position | | While accuracy requirement or maximum iterations is not satisfied |
|