[galib] terminator function

TECPRO@terra.es TECPRO at terra.es
Wed Oct 5 05:30:51 EDT 2011


Hello,

 

I am trying to stop the GA after some working time but it does not work.

 

//ga.evolve()



/*

 double start_time;

 start_time = GetTime();

 int time_limit = 10;

 

while(!ga.done())

 {

 ga.step();

 if( time_limit < (GetTime() - start_time)) break;

   } 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20111005/a8dd3e6e/attachment.htm


More information about the galib mailing list