tptr_schedule Class Template Reference

#include <tptr_schedule.h>

Inheritance diagram for tptr_schedule:

tptr_geoseries

Detailed Description

template<class vec_t = ovector_view>
class tptr_schedule< vec_t >

Simulated annealing temperature schedule base.

The schedules are designed to be used in the following way

      for(temper=tp->start(fmin,nvar,pb,NULL);
      tp->done(fmin,nvar,pb,NULL)==false;
      temper=tp->next(fmin,nvar,pb,NULL)) {
      }

Definition at line 48 of file tptr_schedule.h.


Public Member Functions

virtual ~tptr_schedule ()
virtual double start (double min, int nv, const vec_t &best, void *vp)
 Return the first temperature.
virtual double next (double min, int nv, const vec_t &best, void *vp)
 Return the next temperature.
virtual bool done (double min, int nv, const vec_t &best, void *vp)
 Return true if the last step made the temperature too small.
virtual const char * type ()
 Return string denoting type ("tptr_schedule").

The documentation for this class was generated from the following file:
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.