print statement
This commit is contained in:
@@ -43,8 +43,10 @@ long double MakePermutationMatrix::MakePermutation(std::vector<City> source, int
|
|||||||
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;
|
||||||
if(cost < lowest)
|
if(cost < lowest){
|
||||||
lowest = cost;
|
lowest = cost;
|
||||||
|
std::cout << "Current lowest cost: " << lowest << std::endl;
|
||||||
|
}
|
||||||
//Push permutation cost to the localCostVector.
|
//Push permutation cost to the localCostVector.
|
||||||
//localCostVector.push_back(cost);
|
//localCostVector.push_back(cost);
|
||||||
} while (std::next_permutation(myPerm.begin(), myPerm.end()) && myPerm!=nextPerm);
|
} while (std::next_permutation(myPerm.begin(), myPerm.end()) && myPerm!=nextPerm);
|
||||||
|
|||||||
Reference in New Issue
Block a user