#include <sim_anneal.h>
For the algorithms here, it is important that all of the inputs x[i] to the function are scaled similarly relative to the temperature. For example, if the inputs x[i] are all of order 1, one might consider a temperature schedule which begins with .
The number of iterations at each temperature is controlled by multi_min::ntrial which defaults to 100.
Definition at line 57 of file sim_anneal.h.
Public Member Functions | |
virtual int | mmin (size_t nvar, vec_t &x, double &fmin, param_t &pa, func_t &func)=0 |
Calculate the minimum fmin of func w.r.t the array x of size nvar . | |
virtual int | print_iter (size_t nv, vec_t &x, double y, int iter, double tptr, std::string comment) |
Print out iteration information. | |
virtual const char * | type () |
Return string denoting type, "sim_anneal" . | |
Data Fields | |
rng_t | def_rng |
The default random number generator. |
virtual int print_iter | ( | size_t | nv, | |
vec_t & | x, | |||
double | y, | |||
int | iter, | |||
double | tptr, | |||
std::string | comment | |||
) | [inline, virtual] |
Depending on the value of the variable verbose, this prints out the iteration information. If verbose=0, then no information is printed, while if verbose>1, then after each iteration, the present values of x and y are output to std::cout along with the iteration number. If verbose>=2 then each iteration waits for a character.
Definition at line 90 of file sim_anneal.h.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page