예제 #1
0
 /**
  * Runs the GA if the time since the last application of the GA is greater than the threshold.
  *
  * @param tStamp is the actual time
  * @param envState is the environment state.
  */
 public void runGA(int tStamp, double[] envState) {
   if ((double) tStamp - getAverageClTime() >= Config.theta_GA && macroClSum > 0) {
     setTimeOfClassifiers(tStamp);
     ga.runGA(envState, this, tStamp);
   }
 } // end runGA