Auto Commit

This commit is contained in:
2020-03-30 15:36:21 -06:00
parent 00b7773147
commit d0ef713976

View File

@@ -37,10 +37,12 @@ std::vector<double> MakePermutationMatrix::MakePermutation(std::vector<City> sou
std::cout << std::endl; std::cout << std::endl;
do { do {
double cost = 0; double cost = 0;
std::cout << "source: "; std::cout << "myPerm: ";
for(int i = 0; i < myPerm.size(); i++){ for(int i = 0; i < myPerm.size(); i++){
std::cout << myPerm[i].GetName() << " "; std::cout << myPerm[i].GetName() << " ";
} }
std::cout << std::endl;
//Add up the cost of the current permutation. //Add up the cost of the current permutation.
for (int i = 1; i < myPerm.size(); i++) { for (int i = 1; i < myPerm.size(); i++) {
cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()]; cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()];