| Molecular dynamics method |
| 1: Initialization: ; ; ; |
| 2: while stopping criteria are not met do |
| 3: Calculating force and updating and , Equation (12); calculating F, Equations (1)-(3); |
| 4: if then |
| 5: ; |
| 6: else if then |
| 7: ; ; Heating the system by setting the desired temperature ; |
| 8: else |
| 9: Heating the system by setting the desired temperature ; |
| 10: end if |
| 11: Damping the system by setting the atom j, if ; ; |
| 12: Checking the physical constraint, set , when , |
| 14: end while |
| 15: return ( ) as optimal solution |