Auto Commit

This commit is contained in:
2020-03-30 19:16:35 -06:00
parent aabe5f0f32
commit 2d3912143b

View File

@@ -38,7 +38,7 @@ std::vector<double> MakePermutationMatrix::MakePermutation(std::vector<City> sou
do { do {
double cost = 0; double cost = 0;
//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 = 0; i < myPerm.size(); i++) {
std::cout << myPerm[i].GetName() << " "; std::cout << myPerm[i].GetName() << " ";
cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()]; cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()];
} }