Research Article
An Integrated Genetic Algorithm and Homotopy Analysis Method to Solve Nonlinear Equation Systems
Algorithm 1
Pseudocode of the proposed algorithm.
| | Initialize: | | (i) | the size of the population (N) | | (ii) | the maximum number of generations (G) | | (iii) | the initial random guess with its corresponding residual function F | | (iv) | (n + 1) the number of angles () with their respective domains, where n is the number of system variables | | (v) | m number of HAM series | | (vi) | The angle with its domain | | (vii) | The desired tolerance for stopping = Tol | | | While the stop criterion is not satisfied, do | | | Stage 1 | | | For It = 1 : G Do | | For i = 1 : N Do | | | | | | Calculate the new individual | | | | Calculate its fitness function | | | | End For | | End For | | | | | | If | | Then, display solution = | | Else | | | | | | Stage 2 | | | | | | | | | | Stage 3 | | For It = 1 : G Do | | For i = 1 : N Do | | | | | | End for | | End for | | | | | | | | If | | Then, display solution = | | Convergence control parameter optimum value = | | Else | | | | | | Go to stage 1 | | End while |
|