TSPRowSolver rowsolvers[] = new TSPRowSolver[numR];
for(int r = 0; r < numR; r++)
rowsolvers[r] = new TSPRowSolver
(r, MastertoRow[r],
Down[r],
Up[(r + 1) % numR],
RowtoMaster[r],
Up[r],
Down[(r + 1) % numR]);
new Parallel(new CSProcess[]{
new tspMaster(costmat, MastertoRow, RowtoMaster),
new Parallel(rowsolvers)
}).run();
}}
Previous slide | Next slide | Back to first slide | View graphic version |