MPI Provides function to calculate network topology and particle swarm optimization algorithm for multimode problems.