Auto Commit
This commit is contained in:
@@ -46,8 +46,9 @@ std::vector<double> MakePermutationMatrix::MakePermutation(std::vector<City> sou
|
|||||||
std::size_t cost = 0;
|
std::size_t cost = 0;
|
||||||
//Add up the cost of the current permutation.
|
//Add up the cost of the current permutation.
|
||||||
// std::cout <<"Rank: " << rank << " Current perm: ";
|
// std::cout <<"Rank: " << rank << " Current perm: ";
|
||||||
|
std::cout << "Rank: "<< rank;
|
||||||
for (int i = 0; i < myPerm.size(); i++) {
|
for (int i = 0; i < myPerm.size(); i++) {
|
||||||
std::cout << "Rank: "<< rank << " i: " << i;
|
std::cout << " i: " << i;
|
||||||
cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()];
|
cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()];
|
||||||
}
|
}
|
||||||
std::cout << std::endl << std::endl;
|
std::cout << std::endl << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user