00001 // "city_swap.cpp" 00002 00003 // (c) OPAC Team, LIFL, 2002 00004 00005 /* 00006 Contact: paradiseo-help@lists.gforge.inria.fr 00007 */ 00008 00009 #include <utils/eoRNG.h> 00010 00011 #include "city_swap.h" 00012 00013 bool CitySwap :: operator () (Route & __route) { 00014 00015 std :: swap (__route [rng.random (__route.size ())], 00016 __route [rng.random (__route.size ())]) ; 00017 00018 __route.invalidate () ; 00019 00020 return true ; 00021 }
1.4.7