Class anneal_para (o2scl)¶
-
template<class
func_t
= multi_funct, classvec_t
= boost::numeric::ublas::vector<double>>
classo2scl
::
anneal_para
: public o2scl::anneal_gsl<multi_funct, boost::numeric::ublas::vector<double>>¶ Multidimensional minimization by simulated annealing (OpenMP/MPI version)
This class works particularly well for functions which are not trivial to evaluate, i.e. functions where the execution time is more longer than the bookkeeping that anneal_para performs between trials. For functions which satisfy this requirement, this algorithm scales nearly linearly with the number of processors.
Verbose I/O for this class happens only outside the parallel regions unless the user places I/O in the streams in the function that is specified.
Basic usage
-
int
next
(size_t nvar, vec_t &x_old, double min_old, vec_t &x_new, double min_new, double &T, size_t n_moves, vec_t &best_x, double best_E, int &finished)¶ Determine how to change the minimization for the next iteration.
-
const char *
type
()¶ Return string denoting type (“anneal_para”)
Public Types
-
typedef boost::numeric::ublas::vector<double>
ubvector
¶
-
int