tptr_geoseries Class Template Reference

#include <tptr_geoseries.h>

Inheritance diagram for tptr_geoseries:

tptr_schedule

Detailed Description

template<class vec_t = ovector_view>
class tptr_geoseries< vec_t >

Temperature schedule for a geometric series.

The temperature begins at start, and is divided by ratio, until it is smaller than end. The ending value is divided by sqrt(ratio) to avoid finite precision problems for series when start/end is an integral power of ratio.

The default schedule is $T=1/(1.01)^{n}$ for $n=0,1,2,3,...,463$ (until $T<0.01$) given by ustart=1, uend=0.01, uratio=1.01.

Definition at line 49 of file tptr_geoseries.h.


Public Member Functions

 tptr_geoseries ()
virtual ~tptr_geoseries ()
int set_series (double udstart, double uend, double uratio)
 Set the limits for the geometric series.
int get_npoints ()
 Get the number of temperatures in the series.
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_geoseries").

Protected Attributes

double last
 The last temperature returned.
parameters for the schedule
double dstart
double end
double ratio

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.