CUG并行计算作业,利用mpi解决TSP问题
Main program
All you need to change is three parameters
First is MAXGEN //the number of the gernerations row 13
Sencond is INTERVAL //the number when the population exchange row 14
Third is intr_best[num] //num is the size of the final answer array row 64
Original example , open the powershell and run with commend: /
mpiexec -n num mpi.exe
//num is the number of Thread
data
save the final answer