Auto Commit
This commit is contained in:
@@ -14,7 +14,6 @@ std::vector<City> ReadFromFile::ReadFile(const std::string& fileName)
|
|||||||
City city;
|
City city;
|
||||||
city.SetCoordinates(x, y, name);
|
city.SetCoordinates(x, y, name);
|
||||||
cities.push_back(city);
|
cities.push_back(city);
|
||||||
std::cout << "name: " << name << std::endl;
|
|
||||||
name++;
|
name++;
|
||||||
}
|
}
|
||||||
return cities;
|
return cities;
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ int main(int argc, char* argv[])
|
|||||||
costMatrix = matrixTools::UnflattenMatrix(flatMatrix, citiesSize, citiesSize);
|
costMatrix = matrixTools::UnflattenMatrix(flatMatrix, citiesSize, citiesSize);
|
||||||
//Make permutations
|
//Make permutations
|
||||||
std::cout << "source size from main " << cities.size() << std::endl;
|
std::cout << "source size from main " << cities.size() << std::endl;
|
||||||
|
for(int i = 0; i < cities.size(); i++){
|
||||||
|
std::cout << cities[i].GetName() << " " << std::endl;
|
||||||
|
}
|
||||||
costs = MakePermutationMatrix::GetLowestCost(cities, rank, size, costMatrix);
|
costs = MakePermutationMatrix::GetLowestCost(cities, rank, size, costMatrix);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user