36 #ifndef PALLAS_METROPOLIS_H 37 #define PALLAS_METROPOLIS_H 88 double w = std::min(1.0, exp(-1.0 * (cost_new - cost_old) * beta));
89 double r = (*random_num)();
112 #endif //METROPOLIS_H Metropolis(double T)
Definition: metropolis.h:62
Definition: basinhopping.h:51
~Metropolis()
Definition: metropolis.h:68
Implements a probabilistic acceptance criterion for candidate solutions.
Definition: metropolis.h:48
bool operator()(double cost_new, double cost_old)
Calls the accept_reject function Accepts the candidate solution based on the function: /code double w...
Definition: metropolis.h:105
bool accept_reject(double cost_new, double cost_old)
Returns a bool whether to accept the candidate solution.
Definition: metropolis.h:87