New meta model branch

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@608 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2007-09-20 14:32:41 +00:00
commit b0c0d480b1
413 changed files with 31937 additions and 0 deletions

View file

@ -0,0 +1,20 @@
// "two_opt.cpp"
// (c) OPAC Team, LIFL, January 2006
/*
Contact: paradiseo-help@lists.gforge.inria.fr
*/
#include "two_opt.h"
void TwoOpt :: operator () (Route & __route) {
unsigned i = 0;
while ((2 * i) < (second - first)) {
std :: swap (__route [first + i], __route [second - i]);
i ++;
}
}