00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- 00002 00003 // "part_two_opt_init.cpp" 00004 00005 // (c) OPAC Team, LIFL, 2003-2006 00006 00007 /* LICENCE TEXT 00008 00009 Contact: paradiseo-help@lists.gforge.inria.fr 00010 */ 00011 00012 #include <utils/eoRNG.h> 00013 00014 #include "part_two_opt_init.h" 00015 00016 void PartTwoOptInit :: operator () (TwoOpt & __move, const Route & __route) 00017 { 00018 __move.first = rng.random (__route.size () - 6) ; 00019 __move.second = __move.first + 2 ; 00020 }
1.5.2