#include <tptr_geoseries.h>
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 for
(until
) 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 |