two_opt_rand.cpp

00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
00002 
00003 // "two_opt_rand.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 "two_opt_rand.h"
00013 #include "graph.h"
00014 #include <utils/eoRNG.h>
00015 
00016 void TwoOptRand :: operator () (TwoOpt & __move) 
00017 {
00018   __move.first = rng.random (Graph :: size () - 3) ;
00019   __move.second = __move.first + 2 + rng.random (Graph :: size () - __move.first - 3) ;
00020 }

Generated on Thu Sep 20 11:30:28 2007 for ParadisEO-MOMovingObjects by  doxygen 1.5.2