moExponentialCoolingSchedule.h

00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
00002 
00003 // "moExponentialCoolingSchedule.h"
00004 
00005 // (c) OPAC Team, LIFL, 2003-2007
00006 
00007 /* LICENCE TEXT
00008    
00009    Contact: paradiseo-help@lists.gforge.inria.fr
00010 */
00011 
00012 #ifndef __moExponentialCoolingSchedule_h
00013 #define __moExponentialCoolingSchedule_h
00014 
00015 #include "moCoolingSchedule.h"
00016 
00018 
00022 class moExponentialCoolingSchedule: public moCoolingSchedule
00023 {
00024 
00025 public:
00027 
00031   moExponentialCoolingSchedule (double __threshold, double __ratio):threshold (__threshold), ratio (__ratio)
00032   {}
00033 
00035 
00041   bool operator() (double &__temp)
00042   {
00043     return (__temp *= ratio) > threshold;
00044   }
00045 
00046 private:
00047 
00049   double threshold;
00050 
00052   double ratio;
00053 };
00054 
00055 #endif

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