Auto Commit

This commit is contained in:
2020-03-30 23:17:42 -06:00
parent b820b84c3f
commit 983860b2ee

View File

@@ -9,7 +9,7 @@
std::vector<double> MakePermutationMatrix::MakePermutation(std::vector<City> source, int rank, int size, std::vector<std::vector<double>> costMatrix){
std::vector<double> returnVector;
std::vector<double> localCostVector;
std::vector<std::size_t> localCostVector;
std::size_t counter = 0;
int vectorOffset = (source.size())/size;
std::sort(source.begin(), source.end());
@@ -44,7 +44,7 @@ std::vector<double> MakePermutationMatrix::MakePermutation(std::vector<City> sou
nextPerm = source;
}
do {
double cost = 0;
std::size_t cost = 0;
//Add up the cost of the current permutation.
// std::cout <<"Rank: " << rank << " Current perm: ";
for (int i = 0; i < myPerm.size(); i++) {