Auto Commit
This commit is contained in:
@@ -24,6 +24,8 @@ std::vector<double> MakePermutationMatrix::MakePermutation(std::vector<City> sou
|
|||||||
std::partial_sort(nextPerm.begin()+1, nextPerm.end(), nextPerm.end());
|
std::partial_sort(nextPerm.begin()+1, nextPerm.end(), nextPerm.end());
|
||||||
//rotate my perm.
|
//rotate my perm.
|
||||||
std::rotate(myPerm.begin(), myPerm.begin()+rank,myPerm.end());
|
std::rotate(myPerm.begin(), myPerm.begin()+rank,myPerm.end());
|
||||||
|
std::partial_sort(myPerm.begin()+1, myPerm.end(), myPerm.end());
|
||||||
|
|
||||||
//std::cout << "source.last(): " << source[8].GetName() << std::endl;
|
//std::cout << "source.last(): " << source[8].GetName() << std::endl;
|
||||||
std::cout << "source: ";
|
std::cout << "source: ";
|
||||||
for(int i = 0; i < source.size(); i++){
|
for(int i = 0; i < source.size(); i++){
|
||||||
|
|||||||
Reference in New Issue
Block a user