print statement

This commit is contained in:
2020-04-05 15:57:47 -06:00
parent 74af5ace34
commit d339d99b64

View File

@@ -43,8 +43,10 @@ long double MakePermutationMatrix::MakePermutation(std::vector<City> source, int
cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()];
}
//std::cout << std::endl << std::endl;
if(cost < lowest)
if(cost < lowest){
lowest = cost;
std::cout << "Current lowest cost: " << lowest << std::endl;
}
//Push permutation cost to the localCostVector.
//localCostVector.push_back(cost);
} while (std::next_permutation(myPerm.begin(), myPerm.end()) && myPerm!=nextPerm);